Logical Products With 16-Bit Data; Logical Products With 32-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

WAND, WANDP, DAND, DANDP
7.1.1
WAND, WANDP

Logical products with 16-bit data

7.1.1
DAND, DANDP

Logical products with 32-bit data

WAND, WANDP, DAND, DANDP
When two data are set (
WAND,DAND
WANDP,DANDP
: Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)
S
: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Setting
Data
Bit
S
D
Function
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) 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
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.
306
, (
+1,
)
(
D
S
D
D
D
Command
Command
R, ZR
Word
Bit
, and the results are stored in the device designated at
S
b15
D
1
1
1
1
1
1
b15
S
0
0
0
1
0
0
b15
D
0
0
0
1
0
0
, and stores the results at the device designated by
S2
D
+ 1
b31
D
1
1
1
1
1
S
+ 1
b31
S
0
1
0
1
1
D
+ 1
b31
D
0
1
0
1
1
High
Basic
performance
+1,
)
(
+1,
))
S
S
D
D
indicates an instruction symbol of WAND/DAND.
J
\
U
\G
Word
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
D
b16
b15
b0
1
0
0
1
1
0
0
1
1
AND
S
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
Process
Redundant Universal
LCPU
D
S
P
D
S
Constants
Zn
K, H
––
and the 16-bit data
D
.
D
and the 32-bit data for
S1
.
Other
––
––

Advertisement

Table of Contents
loading

Table of Contents