User guide

Page 179
Chapter 4. Programming
[Function] Compares the column in Operand 1 and the column in Operand 2.
Compares only the length set by the SLEN command.
When Operand 2 is a literal character, that is the length compared.
[Example] SCMP 1 'ABC' 600
When column 1 ~ 3 is 'ABC', flag 600 turns ON.
SLEN 5
SCMP 10 30 999
Set the length to be compared to 5 bytes.
When the 5 bytes from column 10 and column 30 are equal, flag 999 turns ON.
LET 1 10
LET 2 20
SLEN 3
SCMP *1 *2 310
Assign 10 to variable 1.
Assign 20 to variable 2
Set the length to be compared to 3 bytes.
When the 3 bytes in column 10 (the content of variable 1) and the 3 bytes in column 20 (the content of
variable 2) are equal, then output 310 turns ON.
SCMP (Compare Character String)
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional SCMP Column no.
Column no.
Literal character
Required