VA Motion Controller Programming Manual
232
Funtion and Action examples
Comparison
V42 . 6
and
V427
two
character strings
When the contact C 203 is O N time , the
instruction execution, when the address of V42 .
6 is a string length greater than equal to the
address V42 . 7 of string length when; address V42 .
8 outputs 1 ; No's output 0
Execution of results ; V42 . 6 > = V42 .
6 Output 1
10.4.16 EQ_STRING (string equals)
LD, FBD
programming language
Function: The
EQ_STRING
instruction is used to determine if the first string is equal to the
second string.
Note : IL, ST language programming needs to insert variables IN1, IN2 and OUT or use
constants in the current POU variable worksheet
EQ_STRING
instruction processing data types
Output, if the first input string is exactly the same as the
second input string, then
IN1=IN2, OUT=1;
otherwise
OUT=0
Funtion and Action examples
Comparison V42 . 9 and V430 two character
strings