5.7 Standard Character String Functions
5.7.1 Extract mid string
5-159
5
APPLICATION
FUNCTIONS
MID(_E)
MID(_E)
Operation Error
No operation error occurs in the execution of the MID(_E) function.
Program Example
The program which extracts the specified number of characters from the specified start position
in the character string input to , and outputs the operation result from .
(a) Function without EN/ENO (MID)
[Structured ladder]
[ST]
g_string2:=MID(g_string1, g_int1, g_int2);
(b) Function with EN/ENO (MID_E)
[Structured ladder]
[ST]
g_bool3 := MID_E(g_bool1, g_string1, g_int1, g_int2, g_string2);
s
d