309
WAND, WANDP, DAND, DANDP
1
2
3
4
4
6
7
8
7.1
Logical oper
atio
n instructions
7.1.1
W
AN
D, WANDP, DAND
, DANDP
(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]
(3) The following program masks the digit in the hundred-thousands place of the 8-digit BCD value at D10 and D11 (sixth
digit from the end) to 0 when XA is ON, and outputs the results to from Y10 to Y2B.
[Ladder Mode]
[List Mode]
[Operation]
Step
Instruction
Device
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
0
M15
M8
M0
M7
b0
b7
b15
b8
b8
AND
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
b0
b7
b15
D10
D20
M3
M4
M11
M12
Not changed
Step
Instruction
Device
1
H FF
0
FFFFF
1
1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
b31
b16
b0
b15
1
Y
2B
to
Y
10 1
1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Y
20
Y
10
Y
1
F
0
D10
,
D11
(
BCD123
4
5678
)
0
0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
b31
b16
b0
b15
Y
2B
Y
28
Y
27
Y
2
4 Y
23
Y
1C
Y
1B
Y
18
Y
17
Y
1
4 Y
13
A
N
D
N
ot
changed
Y
2
F Y
2C