Delta AH500 Programming Manual page 222

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
Comparison symbol
$=
$<>
$>
$>=
$<
$<=
4.
When the lengths of the strings are the same, but their contents are different, the first
different values (ASCII codes) met in the strings are compared. For example, the string in S
is "ABCDF", and the string in S
"F" (16#46) and "E" (16#45). Owing to the fact that 16#46 is greater than 16#45, the string in
S
is greater than that in S
1
instructions are listed below.
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
$=
$<>
$>
$>=
Comparison operation result
is "ABCDE". The first different values met in the strings are
1
. The corresponding comparison operation results of the
1
b 0
b 8 b 7
Compar ison sign
16#41( A)
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
ON
OFF
OFF
ON
OFF
ON
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
1
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)
"
6 - 1 7

Advertisement

Table of Contents
loading

Table of Contents