Mitsubishi MELSEC QS Series Programming Manual page 146

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

Advertisement

WOR(P), DOR(P)
When three 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
S1
designated by
(2) For bit devices, the bit devices below the points designated by digit specification are
regarded as "0" in the operation. (See Program Example (1))
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
S1
designated by
7-10
7.1 Logical Operation Instructions
7.1.2 Logical sums of 16-bit and 32-bit data (WOR(P), DOR(P))
S1
Command
Command
,
: Data for a logical sum operation or start number of the devices where the data is stored (BIN 16/32 bits)
S1
S2
:
Start number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Set
Data
Bit
S1
S2
D
.
D
b15
b8
S1
1
1
0
0
0
0
0
0
OR
b15
b8
S2
0
0
0
0
1
1
0
0
b15
b8
D
1
1
0
0
1
1
0
0
.
D
+ 1
S1
b31
b16
S1
0
0
1
1
0
0
1
S2
+ 1
b31
b16
S2
0
0
0
0
1
1
1
+ 1
D
b31
b16
D
0
0
1
1
1
1
1
, (
+1,
)
(
S2
D
S1
S1
S2
S1
P
S1
Constants
Others
K, H
Word
––
––
––
––
, and stores the results at the device
S2
b7
b0
1
1
1
1
0
0
0
0
b7
b0
1
1
0
0
0
0
1
1
b7
b0
1
1
1
1
0
0
1
1
, and stores the results at the device
S2
S1
b0
b15
1
0
0
1
1
0
0
OR
S2
b0
b15
0
0
0
1
1
1
1
D
b0
b15
1
0
0
1
1
1
1
+1,
)
(
+1,
))
S2
D
D
indicates "WOR / DOR".
S2
D
S2
D

Advertisement

Table of Contents
loading

Table of Contents