308
WAND, WANDP, DAND, DANDP
WAND
(1) A logical product operation is conducted for each bit of the 16-bit data of the device designated at and the 16-bit data
of the device designated at , and the results are stored in the device designated at .
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(See Program Examples (1) and (2))
DAND
(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated by and the 32-bit data for
the device designated by , and stores the results at the device designated by .
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation. (See
Program Example (3))
Operation Error
(1) There is no operation error in the WAND(P) or DAND(P) instruction.
Program Example
(1) The following program performs a logical product operation on the data from X10 to X1B and the data at D33 when XA is
ON, and stores the results at D40.
[Ladder Mode]
[List Mode]
[Operation]
S1
S2
D
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
b15
b8
b0
b7
b0
b7
b15
b8
AND
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
b0
b7
b15
b8
S1
S2
D
S1
S2
D
0
1
0
1
1
0
0
1
0
1
0
0
0
1
b0
b15
b31
b16
AND
1
1
1
1
1
1
0
0
1
1
0
0
1
1
b0
b15
b31
b16
0
1
0
1
1
0
0
0
0
1
0
0
0
1
b31
b16
b0
b15
+ 1
+ 1
+ 1
S1
S2
S1
S2
S1
S2
D
D
D
Step
Instruction
Device
0
1
0
1
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
b15
b8
b0
b7
b0
b7
b15
b8
A
N
D
D33
D
4
0
0
0
0
0
1
0
0
1
0
0
1
1
1
1
0
0
X10
X17
X1B
to
X10
X13
X18
X1B
Regarded
as
0s
.