Delta AH500 Programming Manual page 224

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0042~
AND$※
0047
Device X
Y
M
S
1
S
2
Symbol:
Taking AND$= for example
Explanation:
1.
The instructions are used to compare the data in S
strings. Take the instruction AND$= for example. When the comparison result is that the data
in S
is equal to that in S
1
that the data in S
1
2.
Only when the data in S~S+n (n indicates the n
judged as a complete string.
3.
When the strings are completely the same, the corresponding comparison operation results
of the instructions are listed below.
b 15
16#42( B)
S 1
16#44( D)
+1
S 1
16#00
S 1
+2
"
ABCDE
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.
Operand
S
, S
1
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-17 steps) 32-bit instruction
-
: Data source 1
S
1
: Data source 2
S
2
, the condition of the contact is met. When the comparison result is
2
is not equal to that in S
, the condition of the contact is not met.
2
b 8 b 7
b 0
16#41( A)
Compar ison sign
16#43( C)
16#45( E)
"
Comparison operation result
is "ABCDE". The first different values met in the strings are
1
. The corresponding comparison operation results of the
1
Comparing the strings
2
L
SM SR
E
AH500
String
String
with that in S
, and the data compared is
1
2
device) includes 16#00 can the data be
th
b 15
16#42( B)
S 2
16#44( D)
+1
S 2
16#00
S 2
+2
ON
OFF
OFF
ON
OFF
ON
Function
PR
K
16# "$"
DF
-
b 8 b 7
b 0
16#41( A)
16#43( C)
16#45( E)
"
"
ABCDE
6 - 1 9
1

Advertisement

Table of Contents
loading

Table of Contents