7-8
WAND(P),DAND(P)
(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
1
H FF0FFFFF
1111111000011111111111111111111
b31
b16 b0b15
1Y2B to Y10 1 1
000
1
000000
1
0 00
1
0
1
0
11
00
11
11
000
Y20
Y10
Y1F
0
D10, D11 (BCD12345678)
00
1
00
1
000
1
1
0
1
0
00
1
0
1
0
11
00
11
11
00
0
b31
b16 b0b15
Y2B
Y28 Y27
Y24
Y23 Y1C
Y1B
Y18 Y17
Y14
Y13
AND
Not changed
Y2F
Y2C