7-6
WAND(P),DAND(P)
When three data are set ( , ( +1, ) ( +1, ) ( +1, ))
Function
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
, :
Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
S1
S2
D
S1 S1
S2 S2
D D
Command
P
WAND,DAND
WANDP,DANDP
S1
S2
D
D
S1
S2
indicates an instruction symbol of WAND/DAND.
Command
S1 S2
D
S1
S2
D
S1
S2
D
000
1
00
1
000
11
0
1
00
0001001000000100
b15 b8 b0
b7
b0b7b15 b8
AND
11111111
0000
1111
b0
b7
b15 b8
S1
S2
D
S1
S2
D
0101 100101 0001
b0b15b31 b16
AND
1111 110011 0011
b0b15b31 b16
0
1
0
11
0000
1
000
1
b31 b16 b0b15
+ 1
+ 1
+ 1
S1
S2
S1
S2
S1
S2
D
D D