306
WAND, WANDP, DAND, DANDP
When two data are set ( , ( +1, ) ( +1, ) ( +1, ))
: 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)
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) When bit devices are designated, the bit devices after the points designated as digits are regarded as "0" in the
operation. (See Program Example (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) 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 is no operation error in the WAND(P) or DAND(P) instruction.
WAND, WANDP
Logical products with 16-bit data
DAND, DANDP
Logical products with 32-bit data
7.1.1
WAND, WANDP, DAND, DANDP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
D
S
D
D
D
S
S
D
D
Command
Command
P
S
D
S
D
WAND,DAND
WANDP,DANDP
indicates an instruction s
y
mbol of
W
AND/DAND.
S
D
S
D
D
S
D
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
b15
b8
b0
b7
b0
b7
b15
b8
AND
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
b0
b7
b15
b8
D
S
D
S1
S2
D
+ 1
0
1
0
1
1
0
0
1
0
1
0
0
0
1
b0
b15
b31
b16
AND
+ 1
1
1
1
1
1
1
0
0
1
1
0
0
1
1
b0
b15
b31
b16
0
1
0
1
1
0
0
0
0
1
0
0
0
1
b31
b16
b0
b15
+ 1
D
S
D
D
D
S
D
D
S