Mitsubishi MELSEC-Q/L Programming Manual page 310

Table of Contents

Advertisement

WAND, WANDP, DAND, DANDP
WAND
(1) A logical product operation is conducted for each bit of the 16-bit data of the device designated at
of 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
the device designated by
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation. (See
Program Example (3))
Operation Error
(1) There is no operation error in the WAND(P) or DAND(P) instruction.
Program Example
(1) The following program performs a logical product operation on the data from X10 to X1B and the data at D33 when XA is
ON, and stores the results at D40.
[Ladder Mode]
[Operation]
X1B to X10
0
0
0
Regarded as 0s.
b15
D33
0
1
0
b15
D40
0
0
0
308
, and the results are stored in the device designated at
S2
b15
S1
1
1
1
1
1
1
b15
S2
0
0
0
1
0
0
b15
D
0
0
0
1
0
0
, and stores the results at the device designated by
S2
S1
+ 1
b31
S1
1
1
1
1
1
S2
+ 1
b31
S2
0
1
0
1
1
+ 1
D
b31
D
0
1
0
1
1
[List Mode]
Step
X1B
X18
X17
0
1
0
0
1
0
0
1
AND
b8
b7
1
1
1
0
1
1
1
1
b8
b7
0
1
0
0
1
0
0
1
b8
b7
b0
1
1
0
0
0
0
1
1
1
1
AND
b8
b7
b0
1
0
0
0
1
1
0
1
0
0
b8
b7
b0
1
0
0
0
0
0
0
1
0
0
D
S1
b16
b15
b0
1
0
0
1
1
0
0
1
1
AND
S2
b16
b15
b0
0
0
1
0
1
0
0
0
1
D
b16
b15
b0
0
0
0
0
1
0
0
0
1
Instruction
Device
X13
X10
1
1
1
0
0
b0
1
0
0
0
0
b0
1
0
0
0
0
and the 16-bit data
S1
.
D
and the 32-bit data for
S1
.

Advertisement

Table of Contents
loading

Table of Contents