Logical Products With 16-Bit And 32-Bit Data (Wand(P), Dand(P)) - Mitsubishi MELSEC QS Series Programming Manual

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

Advertisement

7.1.1
Logical products with 16-bit and 32-bit data
(WAND(P), DAND(P))
WAND(P), DAND(P)
When two 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) 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))
DAND
(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated
by
D
device designated by
D
S
Command
Command
: Data for a logical product operation or the start number of the devices where the data is stored
S
(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
D
and the 16-bit data of the device designated at
D
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 the 32-bit data for the device designated by
.
D
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

7.1.1 Logical products with 16-bit and 32-bit data (WAND(P), DAND(P))

, (
+ 1,
)
(
D
D
D
S
Constants
Others
K, H
––
––
––
.
D
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
S
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
7.1 Logical Operation Instructions
WAND(P), DAND(P)
+ 1,
)
(
+ 1,
))
S
D
D
indicates "WAND / DAND".
D
S
P
S
D
, and the results are
S
7
7-3

Advertisement

Table of Contents
loading

Table of Contents