Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-4
WAND(P),DAND(P)
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) When bit devices are designated, the bit devices below the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))
Operation Error
(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.
Program Example
(1) The following program masks the digit in the 10s place of the 4-digit BCD value at D10
(second digit from the end) to 0 when XA is turned ON.
[Ladder Mode] [List Mode]
[Operation]
S1
S2
D
+ 1
0101 100101 0001
b0b15b31 b16
AND
+ 1
1111 110011 0011
b0b15b31 b16
0
1
0
11
0000
1
000
1
b31 b16 b0b15
+ 1
D
S
D
D
D
S
D
D
S
Step Instruction Device
1111111100001111
000
1
00
1
000000
1
00
b15 b8 b0
b7
b0
b7
b15 b8
AND
0001001000110100
b0
b7
b15 b8
D10 BCD1234
HFF0F
D10 BCD1204