Logical Sums Of 16-Bit And 32-Bit Data (Wor(P), Dor(P)) - Mitsubishi MELSEC QS Series Programming Manual

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

Advertisement

WOR(P), DOR(P)
7.1.2

Logical sums of 16-bit and 32-bit data (WOR(P), DOR(P))

WOR(P), DOR(P)
When two data are set (
WOR, DOR
WORP, DORP
Function
WOR
(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by
and the 16-bit data of the device designated by
D
designated by
(2) For bit devices, the bit devices below the points designated by digit specification are regarded as
"0" in the operation.
DOR
(1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by
and the 32-bit data of the device designated by
D
designated by
7-8
7.1 Logical Operation Instructions
7.1.2 Logical sums of 16-bit and 32-bit data (WOR(P), DOR(P))
D
S
D
Command
Command
: Data for a logical sum operation or start number of the devices where the data is stored (BIN 16/32 bits)
S
: Start number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Set
Data
Bit
Word
D
.
D
b15
b8
b7
D
0
1
0
1
1
1
1
1
0
OR
b15
b8
b7
S
1
0
0
1
1
1
0
0
1
b15
b8
b7
1
1
0
1
1
1
1
1
1
D
.
D
D
+ 1
b31
b16
b15
1
1
1
1
0
0
0
0
D
OR
S
+ 1
b31
b16
b15
S
1
0
0
1
0
0
0
1
D
+ 1
b31
b16
b15
D
1
1
1
1
0
0
0
1
, (
+1,
)
(
+1,
D
D
S
S
P
Constants
Others
K, H
––
––
––
, and stores the results at the device
S
b0
0
0
0
0
0
1
1
b0
1
0
0
1
1
0
0
b0
1
0
0
1
1
1
1
, and stores the results at the device
S
D
b0
0
0
0
0
1
1
S
b0
1
1
0
0
1
1
D
b0
1
1
0
0
1
1
)
(
+1,
))
D
D
indicates "WOR / DOR".
S
D
S
D

Advertisement

Table of Contents
loading

Table of Contents