VA Motion Controller Programming Manual
222
When the contact
C 192
is
O N
, the
execution of the instruction;
address
V 389
string, replace
address
V 390
string, where
P
is the number
of strings is replaced by the first few
Start being replaced,
L
is the number of
characters to be replaced.
Execution result:
PLC-----VECTOR
10.4.5 LEN ( string length )
LD, FBD programming language
Function:
LEN
determines the length of a string.
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet
数据 Data type processed by LEN instruction
Output, the length of one character is 1
Funtion and Action examples
Determine the length of a string
When the contact
C 193
is
O N
when the
instruction is executed
,
the address
V 394
length of
the string is displayeDAs an integer, there is an
address
V 395
in
Execution result:
V ECTOR-------6