Mitsubishi MELSEC QS Series Programming Manual page 141

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

When three data are set (
WAND,DAND
WANDP,DANDP
Function
WAND
(1) A logical product operation is conducted for each bit of the 16-bit data of the device
designated at
stored in the device designated at
(2) For bit devices, the bit devices below 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
S1
device designated by
S1
S2
Command
Command
,
: Data for a logical product operation or the start number of the devices where the data is stored
S1
S2
(BIN 16/32 bits)
:
Start number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Set
Data
Bit
Word
S1
S2
D
and the 16-bit data of the device designated at
S1
D
b15
S1
1
1
1
1
1
1
b15
S2
0
0
0
1
0
0
b15
D
0
0
0
1
0
0
.
D
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
7.1.1 Logical products with 16-bit and 32-bit data (WAND(P), DAND(P))
, (
+ 1,
)
(
+1,
D
S1
S1
S2
S1
P
S1
Constants
Others
K, H
––
––
––
––
.
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
, and stores the results at the
S2
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
7.1 Logical Operation Instructions
WAND(P), DAND(P)
)
(
+1,
))
S2
D
D
indicates "WAND / DAND".
D
S2
D
S2
, and the results are
S2
7-5
7

Advertisement

Table of Contents
loading

Table of Contents