EasyManua.ls Logo

Delta AH500 - Page 213

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-8
API
Instruction code Operand
Function
0006~
0011
D
AND
S
1
, S
2
Comparing the values
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
S
1
S
2
Pulse instruction 16-bit instruction (5 steps)
32-bit instruction (5 steps)
AH500
AH500
Symbol:
Taking AND= and DAND= for example
S
1
Data source 1 Word/Double word
S
2
Data source 2 Word/Double word
Explanation:
1. The instructions are used to compare the value in S
1
with that in S
2
. Take the instruction
AND= for example. When the comparison result is that the value in S
1
is equal to that in S
2
,
the condition of the instruction is met. When the comparison result is that the value in S
1
is
not equal to that in S
2
, the condition of the instruction is not met.
2. Only the 32-bit instruction can use the 32-bit counter.
API
number
16-bit
instruction
32-bit
instruction
Comparison operation result
ON
OFF
0006
AND DAND S
1
S
2
S
1
S
2
0007
AND<> DAND<>
S
1
S
2
S
1
S
2
0008
AND DAND S
1
S
2
S
1
S
2
0009
AND>= DAND>= S
1
S
2
S
1
S
2
0010
AND DAND S
1
S
2
S
1
S
2
0011
AND<= DAND<= S
1
S
2
S
1
S
2
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.

Table of Contents

Other manuals for Delta AH500

Related product manuals