Delta AH500 Programming Manual page 379

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0812~
D
AND#
0814
Device X
Y
M
S
1
S
2
Symbol:
Taking AND& and DAND& for example
Explanation:
1.
The instruction is used to compare the data in S
not 0, the condition of the instruction is met. When the comparison result is 0, the condition of
the instruction is not met.
2.
Only the instruction DAND# can use the 32-bit counter.
3.
The instruction AND# and the contact are connected is series.
API No.
16-bit instruction
0812
0813
0814
4.
&: Logical AND operation
5.
|: Logical OR operation
6.
^: Logical exclusive OR operation
Example:
1.
When X0.0 is ON, the logical operator AND takes the data in C0 and C10, and performs the
logical AND operation on each pair of corresponding bits. When the operation result is not 0,
Y1.0 is ON.
2.
When X0.1 is OFF, the logical operator OR takes the data in D10 and D0, and performs the
logical OR operation on each pair of corresponding bits. When the operation result is not 0,
Y1.1 keeps ON.
3.
When X0.2 is ON, the logical operator XOR takes the data in the 32-bit register (D200, D201)
and the data in the 32-bit register (D100, D101), and performs the logical exclusive OR
operation on each pair of corresponding bits. When the operation result is not 0, or when X0.3
is ON, Y1.2 is ON.
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
AND&
DAND&
AND|
DAND|
AND^
DAND^
C ha pt er 6 A p pl i e d In s tr uc t io ns
Function
Contact type of logical operation AND#
L
SM SR
E
PR
AH500
Word/Double word
Word/Double word
with that in S
. When the comparison result is
1
2
Comparison operation result
ON
S
&S
0
1
2
S
|S
0
1
S
^S
0
1
2
K
16# "$"
DF
AH500
OFF
=
S
&S
0
1
2
=
S
|S
0
1
2
=
S
^S
0
1
6 - 2 11

Advertisement

Table of Contents
loading

Table of Contents