Delta AH500 Programming Manual page 221

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0036~
LD$※
0041
Device X
Y
M
S
1
S
2
Symbol:
Taking LD$= for example
Explanation:
1.
The instructions are used to compare the data in S
strings. Take the instruction LD$= 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
API
Instruction
number
0036
LD$=
0037
LD$<>
0038
LD$>
0039
LD$>=
0040
LD$<
0041
LD$<=
2.
Only when the data in S~S+n (n indicates the n
judged as a complete string.
3.
When two strings are the same, the corresponding comparison operation results of the
instructions are listed below.
b 15
b 8 b 7
16#42(B)
S 1
16#44(D)
S 1
+1
16#00
+2
S 1
"
ABCDE
6 - 1 6
Operand
S
, S
1
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-17 steps)
-
: 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
Comparison operation result
ON
=S
S
1
2
≠S
S
1
2
>S
S
1
2
≧S
S
1
2
<S
S
1
2
≦S
S
1
2
b 15
16#32( 2)
S
16#34( 4)
S+1
16#00
S+2
"
12345
b 0
Comparison sign
16#41(A)
16#43(C)
16#45(E)
"
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Comparing the strings
2
L
SM SR
E
AH500
String
String
with that in S
, and the data compared is
1
2
OFF
≠S
S
1
2
=S
S
1
2
≦S
S
1
2
<S
S
1
2
≧S
S
1
2
>S
S
1
2
th
device) includes 16#00 can the data be
b 8 b 7
b 0
16#31( 1)
16#33( 3)
16#35( 5)
"
b 15
16#42(B)
S 2
16#44(D)
S 2
+1
16#00
+2
S 2
Function
PR
K
16# "$"
DF
32-bit instruction
-
b 8 b 7
b 0
16#41(A)
16#43(C)
16#45(E)
"
"
ABCDE

Advertisement

Table of Contents
loading

Table of Contents