Delta AH500 Programming Manual page 225

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

b 15
16#42( B)
S 1
16#44( D)
S 1
+1
16#00
S 1
+2
"
ABCDF
Comparison symbol
$=
$<>
$>
$>=
$<
$<=
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
in S
is "99999"". Owing to the fact that the string in S
2
string in S
is composed of 5 characters, the string in S
2
corresponding comparison operation results of the instructions are listed below.
b 15
b 8 b 7
16#32(2)
S 1
16#34(4)
S 1
+1
16#36(6)
+2
S 1
16#00
S 1
+3
"
1234567
Comparison symbol
$=
$<>
$>
$>=
$<
$<=
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.
6 - 2 0
b 0
b 8 b 7
16#41( A)
Compar ison sign
16#43( C)
16#46( F)
"
Comparison operation result
b 0
Comparison sign
16#31(1)
16#33(3)
16#35(5)
16#37(7)
"
Comparison operation result
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
b 15
b 8 b 7
16#42( B)
S 2
16#44( D)
S 2
+1
16#00
S 2
+2
"
ABCDE
OFF
ON
ON
ON
OFF
OFF
is "1234567", and the string
1
is composed of 7 characters, and the
1
is greater than the string in S
1
b 15
16#39(9)
S 2
16#39(9)
S 2
+1
16#00
+2
S 2
"
99999
OFF
ON
ON
ON
OFF
OFF
b 0
16#41( A)
16#43( C)
16#45( E)
"
. The
2
b 8 b 7
b 0
16#39(9)
16#39(9)
16#39(9)
"

Advertisement

Table of Contents
loading

Table of Contents