Delta AH500 Programming Manual page 213

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0006~
D
AND※
0011
Device X
Y
M
S
1
S
2
Symbol:
Taking AND= and DAND= for example
Explanation:
1.
The instructions are used to compare the value in S
AND= for example. When the comparison result is that the value in S
the condition of the instruction is met. When the comparison result is that the value in S
not equal to that in S
2.
Only the 32-bit instruction can use the 32-bit counter.
API
16-bit
number
instruction
0006
AND=
0007
AND<>
0008
AND>
0009
AND>=
0010
AND<
0011
AND<=
Example:
1.
When X0.0 is ON and the current value in C10 is equal to 100, Y0.10 is ON.
2.
When X0.1 is OFF and the value in D0 is not equal to -10, Y0.11 keeps ON.
3.
When X0.2 is ON and the value in (D11, D10) is less than 678,493, or when M3 is ON, M50
is ON.
6 - 8
Operand
S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
: Data source 1
S
1
: Data source 2
S
2
, the condition of the instruction is not met.
2
32-bit
instruction
DAND=
DAND<>
DAND>
DAND>=
DAND<
DAND<=
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Comparing the values
L
SM SR
E
PR
AH500
Word/Double word
Word/Double word
with that in S
. Take the instruction
1
2
is equal to that in S
1
Comparison operation result
ON
OFF
=S
S
S
1
2
≠S
S
S
1
2
1
>S
S
S
1
2
≧S
S
S
1
2
1
<S
S
S
1
2
≦S
S
S
1
2
1
Function
K
16# "$"
DF
AH500
,
2
is
1
≠S
1
2
=S
2
≦S
1
2
<S
2
≧S
1
2
>S
2

Advertisement

Table of Contents
loading

Table of Contents