FXCPU Structured Programming Manual
(Application Functions)
Program example
In this program, specified number of characters are extracted from an arbitrary position of a character string
stored in devices specified in
1) Function without EN/ENO(MID)
[Structured ladder]
g_string1="ABCDEF12345"
[ST]
g_string2:=MID(g_string1,g_int1,g_int2);
2) Function with EN/ENO(MID_E)
[Structured ladder]
g_bool1
g_string1
[ST]
g_bool3:=MID_E(g_bool1,g_string1,g_int1,g_int2,g_string2);
, and the obtained data is output to devices specified in
s
MID
_IN
g_int1=5
_L
g_int2=5
_P
MID_E
EN
ENO
_IN
g_int1
_L
g_int2
_P
5.8 Standard Character String Functions
g_string2="EF123"
g_bool3
g_string2
1
.
d
2
3
4
5
6
A
183