M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.6 Logical Operation Instructions
WAND, WANDP, DAND, DANDP: Logical products with 16-bit and 32-bit data (Device at storage destina-
tion: Shared type)
Setting
Bit devices
data
X
Y
M
L
F
S
○
○
○
○
○
D
○
○
○
○
○
△ : This is not available with DAND(P).
[Instruction symbol] [Execution condition]
WAND, DAND
WANDP, DANDP
Setting data
Setting data
S
Data from which logical product will be determined, or number of devices
D
Functions
WAND
Conducts a logical product operation on each bit of the 16-bit data of the device designated by "D" and the 16-bit data of
the device designated by "S", and stores the results in the device designated by "D".
1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
Before execution D
Before execution S
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
After execution D
0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
For the bit device, the bits corresponding the digits other than the designated digit are handled as "0" in the operation.
DAND
Conducts a logical product operation on each bit of the 32-bit data of the device designated by "D" and the 32-bit data of
the device designated by "S", and stores the results in the device designated by "D".
1 1 1 1
Before execution D
0 0 0 1
Before execution S
After execution D
0 0 0 1
For the bit device, the bits corresponding the digits other than the designated digit are handled as "0" in the operation.
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
○
○
○
○
Command
Command
Meaning
storing such data
16 Bit
AND
32 Bit
D+1
D
1 1 1 0 0 0
1 1 1 1
AND
S+1
S
0 1 0 0 0 1
0 1 0 0
D+1
D
0 1 0 0 0 0
0 1 0 0
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
○
○
○
○
○
△
○
○
○
○
○
○
△
265
Digit
Pointer
designa-
Index
tion
H
P
○
○
○
indicates the signs WAND/DAND
S
D
P
S
D
Data type
BIN 16/32 bits
IB-1501667-B