DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
D
AND#
Serial Type Logic Operation
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
AND#: 5 steps
DAND#: 9 steps
EX2/
SS2
SA2/
SE
SX2
EX2/
SS2
SA2/
SE
SX2
EX2/
SS2
SA2/
SE
SX2
Operands:
S
1
: Source device 1 S
2
: Source device 2
Explanation:
1. This instruction conducts logic operation between the content in S
1
and S
2
. If the result is not
“0”, the continuity of the instruction is enabled. If the result is “0”, the continuity of the instruction
is disabled.
AND# (#: &, |, ^) instruction is used for serial connection with contacts.
API No.
=
Operation:
& : Logic “AND” operation, | : Logic “OR” operation, ^ : Logic “XOR” operation
When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit
instruction (DAND#). If 16-bit instruction (AND#) is adopted, a “program error” will occur and the
ERROR indicator on the MPU panel will flash
Program Example:
1. When X0 = ON, and the result of logical AND operation between C0 and C10 ≠ 0, Y20 = ON
When X1 = OFF, and the result of logical OR operation between D10 and D0 ≠ 0, Y21 = ON and
latched
AND
C0 C10
AND
D10 D0
SET
&
|
Y21
Y20
X0
X1