14.29 ESCMP (String Compare: With Storage Area Size)
■
Ladder diagram
■
List of operands
Operand
Description
S1
String 1 to be compared (available range: 0 to 65534; for character constant: 0 to 256 characters)
S2
String 2 to be compared (available range: 0 to 65534; for character constant: 0 to 256 characters)
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S1
●
●
S2
●
●
(Note 1)
Only 16-bit devices can be modified. (Character constants cannot be specified.)
■
Outline of operation
● This instruction compares the string specified by [S1] and the string specified by [S2]. The
comparison result is output to the system relays SRA to SRC (assessment flags for the
comparison instruction).
● The size of the storage area is not included in the judgment conditions.
● Comparison flags (system relays SRA to SRC) are operated as follows.
[S1] < [S2]
[S1] = [S2]
[S1] > [S2]
● If the numbers of characters to be compared are different, they are processed as follows.
"ABCDE"
"ABCD"
WUME-FP7CPUPGR-12
14.29 ESCMP (String Compare: With Storage Area Size)
16-Bit device:
W
W
W
S
D
R
L
S
D
T
●
●
●
●
●
●
[S1]
"B"
32-Bit
device:
TS
TE
L
U
W
WI
C
C
D
M
O
S
E
●
●
SRA
>
OFF
OFF
ON
=
<
>
Real
Integer
numbe
r
IX
K
U
H
SF
SRB
=
OFF
ON
OFF
[S2]
"ABCDE"
"ABCDE"
"ABCDE"
St
rin
Index
g
modifie
r
D
(Note 1)
" "
F
●
●
●
●
SRC
<
ON
OFF
OFF
14-119