VA Motion Controller Programming Manual
229
10.4.12 RIGHT (remove the rightmost characters of the
string)
LD, FBD
programming language
Function: The RIGHT command is used to retrieve the rightmost 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
数据 RIGHT
command processing data type
The number of characters to be fetched
Output, take out
L
consecutive characters from the
rightmost 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 rightmost 3 characters of
the string V ECTOR
When the contact
C 200 is
of
O N
, the
execution of the instruction,
address
V416
three rightmost character is
extracted, the output
V 418
Execution result:
V ECTOR---TOR