VA Motion Controller Programming Manual
230
10.4.13 SEL_STRING (binary selection of strings)
LD, FBD
programming language
Function: The SEL_STRING instruction is used to retrieve the last few consecutive characters
in the input string.
OUT:=SEL_STRING ( IN, IN1 , IN2 )
Note
: IL, ST
language programming need to insert variables
IN, IN1, IN2
and
OUT
or use
constants in the current
POU
variable worksheet
SEL_STRING
instruction processing data types
Output
If IN=0, OUT=IN1; if IN=1, OUT=IN2
Funtion and Action examples
String for selecting output by the value
of variable
V 419
When the contact
C 201
is
O N
time ,
the instruction execution, when the
address
V 419
is
0
when the output of the
address
V420
in a string; when the
address
V419
is
. 1
,
the output address
V421
in the string :