VA Motion Controller Programming Manual
227
10.4.10 LEFT (Remove the last few characters of the
string)
LD, FBD
programming language
Function: The LEFT instruction is used to retrieve the last few consecutive characters in the
input string.
Note
: IL, ST
language programming needs to insert variables
IN, L
and
OUT
or use
constants in the variable worksheet of the current
POU
数据 Data type processed by LEFT instruction
The number of characters to be fetched
Output, take out L consecutive characters from the
leftmost side of the input string ; L must be greater than 0 ,
and less than or equal to the number of characters of
the input string IN
Funtion and Action examples
Extract the first three characters of
the string
"VECTOR"
When the contact is
O N
when the
instruction is executed, the
address
V 409
string extracted first three
characters
Execution result:
V ECTOR - ---VEC