Delta AH500 Programming Manual page 215

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0012~
D
OR※
0017
Device X
Y
M
S
1
S
2
Symbol:
Taking OR= and DOR= for example
Explanation:
1.
The instructions are used to compare the value in S
for example. When the comparison result is that the value in S
condition of the instruction is met. When the comparison result is that the value in S
equal to that in S
, the condition of the instruction is not met.
2
2.
Only the 32-bit instruction can use the 32-bit counter.
API
16-bit
number
instruction
0012
OR=
0013
OR<>
0014
OR>
0015
OR>=
0016
OR<
0017
OR<=
Example:
1.
When X0.1 is ON, or when the current value in C10 is equal to 100, Y0.10 is ON.
2.
When both X0.2 and M30 are ON, or when the value in (D101, D100) is greater than or equal
to 1000,000, M60 is ON.
6 - 1 0
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
32-bit
instruction
DOR=
DOR<>
DOR>
DOR>=
DOR<
DOR<=
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 OR=
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
, the
2
is not
1
≠S
1
2
=S
2
≦S
1
2
<S
2
≧S
1
2
>S
2

Advertisement

Table of Contents
loading

Table of Contents