Mitsubishi MELSEC-Q/L Programming Manual page 316

Table of Contents

Advertisement

WOR, WORP, DOR, DORP
When three data are set (
WOR, DOR
WORP, DORP
,
: Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)
S1 S2
: Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
D
Setting
Internal Devices
Data
Bit
S1
S2
D
Function
WOR
(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by
device designated by
S2
(2) For bit devices, the bit devices after 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
device designated by
S2
(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 WOR(P) or DOR(P) instruction.
314
, ( +1,
)
S1
S2
D
S1
S1
Command
Command
R, ZR
Word
Bit
, and stores the results at the device designated by
b15
S1
1
1
0
0
0
0
b15
S2
0
0
0
0
1
1
b15
D
1
1
0
0
1
1
, and stores the results at the device designated by
S1
+ 1
b31
S1
0
0
0
1
1
S2
+ 1
b31
S2
0
0
1
0
1
+ 1
D
b31
D
0
0
1
1
1
( +1,
)
( +1,
))
S2
S2
D
D
indicates an instruction symbol of WOR/DOR.
S 1
P
S 1
J
\
U
\G
Word
.
D
b8
b7
0
0
1
1
1
1
0
0
OR
b8
b7
0
0
0
0
0
0
1
1
b8
b7
0
0
1
1
1
1
0
0
.
D
S1
b16
b15
0
0
0
1
1
1
1
OR
S2
b16
b15
1
0
0
0
0
1
1
D
b16
b15
1
1
1
0
0
1
1
S2
D
S2
D
Constants
Zn
K, H
––
and the 16-bit data of the
S1
b0
0
0
b0
1
1
b0
1
1
and the 32-bit data of the
S1
b0
0
0
b0
1
1
b0
1
1
Other
––
––
––

Advertisement

Table of Contents
loading

Table of Contents