EasyManua.ls Logo

Vector VEC-VA Series

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA Motion Controller Programming Manual
229
10.4.12 RIGHT (remove the rightmost characters of the
string)
IL
programming
language
LD, FBD
programming language
Function: The RIGHT command is used to retrieve the rightmost few consecutive characters
in the input string.
LD IN
RIGHT L
ST OUT
ST programming
language
OUT:=RIGHT ( IN, L )
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
Input and
output
type of data
description
IN
STRING
Input string
L
ANY_INT
The number of characters to be fetched
OUT
STRING
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
description
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

Table of Contents

Related product manuals