DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-84
API Mnemonic Operands Function
26
DAND P Logical DWord AND
Controllers
ES2/EX2 SS2 SA2
SE SX2
Bit Devices Word devices Program Steps Type
OP X Y M S K H KnX KnYKnM KnS T C D E F
S1 * * * * * * * * **
S2 * * * * * * * * **
D * * * * * **
DAND, DANDP: 13 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2 SA2
SE SX2 ES2/EX2 SS2 SA2
SE SX2 ES2/EX2 SS2 SA2
SE SX2
Operands:
S1: Source data device 1 S2: Source data device 2 D: Operation result
Explanations:
1. Logical double word (32-bit) AND operation.
2. This instruction conducts logical AND operation of S1 and S2 in 32-bit mode and stores the
result in D.
3. If operands S1, S2, D use index F, only a 16-bit instruction is available.
Program Example:
When X1 = ON, the 32-bit source (D11, D10) and (D21, D20) are analyzed and the result of the
logical AND is stored in (D41, D40).
X1 DAND D10 D20 D40
0000111111111111
000 00 00 0 0 0011 111
000 00 000000 00
11 1
DAND
b31
Before
execution
After
execution
0000111111111111
000 00 000 0 0011 111
000 00 0 00000 0 0
11 1
b15 b0
D11 D10
D21 D20
D41 D40