Chapter 6 Applied Instructions
6-20
16#41(A)
16#43(C)
16#42(B)
16#44(D)
16#46(F)
16#00
S1
S1
S1
+1
+2
b15 b8
b7
b0
""ABCDF
16#41(A)
16#43(C)
16#42(B)
16#44(D)
16#45(E)
16#00
S2
S2
S2
+1
+2
b15 b8
b7
b0
""ABCDE
Comparison sign
Comparison operation result
$=
OFF
$<>
ON
$>
ON
$>=
ON
$<
OFF
$<=
OFF
5. When the lengths of the strings are different, the string whose length is longer is greater than
the string whose length is shorter. For example, the string in S
1
is “1234567”, and the string
in S
2
is “99999””. Owing to the fact that the string in S
1
is composed of 7 characters, and the
string in S
2
is composed of 5 characters, the string in S
1
is greater than the string in S
2
. The
corresponding comparison operation results of the instructions are listed below.
16#31(1)
16#33(3)
16#32(
2)
16#34(4)
16#35(5)
16#00
S1
S1
S1
+1
+2
b15 b8
b7
b0
""1234567
16#39(9)
16#39(9)
16#39(9)
16#39(9)
16#39(9)
16#00
S2
S2
S2
+1
+2
b15 b8
b7
b0
""99999
Comparison sign
16#36(6)
16#37(7)
S1
+3
Comparison operation result
$=
OFF
$<>
ON
$>
ON
$>=
ON
$<
OFF
$<=
OFF
Example:
When M0 is ON and the string starting with the data in D0 is equal to the string staring with D2,
Y0.0 is ON.