Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 193

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling character string data in structured programs, you cannot specify 16-bit devices directly,
different from simple projects. Use labels when handling character string data.
Use global labels when specifying labels.
Error
An operation error occurs in the following cases. The error flag M8067 turns ON, and D8067 stores the error
code.
1) When "00H" does not exist in the corresponding device range after the device specified in
(Error code: K6706)
2) When the number of characters of a character string stored in devices specified in
(Error code: K6706)
3) When the number of devices after the device number specified in
devices required for storing the character string remaining after deletion of specified number of
characters
(Error code: K6706)
4) When the value specified in
(Error code: K6706)
Program example
In this program, specified number of characters are deleted from an arbitrary position of a character string
stored in devices specified in
specified in
.
d
1) Function without EN/ENO(DELETE)
[Structured ladder]
g_string1="ABCDEF12345"
[ST]
g_string2:=DELETE(g_string1,g_int1,g_int2);
2) Function with EN/ENO(DELETE_E)
[Structured ladder]
g_bool1
g_string1
g_int1
g_int2
[ST]
g_bool3:=DELETE_E(g_bool1,g_string1,g_int1,g_int2,g_string2);
is negative
n2
, and the character string remaining after deletion is output to devices
s
DELETE
_IN
g_int1="4"
_L
g_int2="3"
_P
DELETE_E
g_bool3
EN
ENO
_IN
g_string2
_L
_P
5.8 Standard Character String Functions
is smaller than the number of
d
g_string2="AB12345"
1
2
s
3
is 32768 or more
s
4
5
6
A
191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents