7-7
WAND(P),DAND(P)
1
2
3
4
6
6
7
8
7.1 Logical operation instructions
7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))
as "0" in the operation. (See Program Example (3))
Operation Error
(1) There are no operation errors associated with 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]
(2) The following program performs a logical product operation on the data at D10 and at D20
when X1C is ON, and stores the results from M0 to M11.
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
0
1
0
111
0
11111
0000
000010010011000
0
b15 b8 b0b7
b0b7b15 b8
AND
D33
D40
000010010011110
0
X10X17
X1B to X10
X13X18
X1B
Regarded as 0s.
Step Instruction Device
000
1111111111111
1111101010101010
M15 M8 M0M7
b0
b7
b15 b8
b8
AND
0000
1
0
1
0
1
0
1
0
1
0
1
0
b0
b7
b15
D10
D20
M3M4
M11
M12
Not changed