7.1 Logical Operation Instructions
7.1.3 Logical OR operation on 16-/32-bit data
7-9
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
WOR, DOR
WOR, DOR
7.1.3
Logical OR operation on 16-/32-bit data
WOR, DOR
Function
WOR(P)
(1) Performs a logical OR operation on each bit of the 16-bit data of the device specified for
and the 16-bit data of the device specified for
, and stores the results to the device
specified for
.
(2) For bit devices, the operation is performed regarding the bit devices after the point of
specified digit as 0. (Refer to Program Example (1))
WOR (P)
DOR (P)
P: Executing condition
:
indicates any of the following
instructions.
WOR
WORP
DOR
DORP
Input argument,
EN:
Executing condition
:Bit
s1:
Data on which the logical OR operation is performed
:ANY16/32
s2:
Data on which the logical OR operation is performed
:ANY16/32
Output argument,
ENO:
Execution result
:Bit
d:
Logical OR operation result
:ANY16/32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K,H
Others
Bit
Word
Bit
Word
−
−
−
−
Universal
UD
High
Performance
WOR_3_M
EN
ENO
s
1
d
s
2
WOR_3_M
(EN,
s
1,
s
2, d);
ENO:=
Structured ladder
ST
WOR
EN
ENO
s
1
d1
s
2
WOR
(EN,
s
1,
s
2, d1);
ENO:=
s
1
s
2
d
s
1
s
2
d
0
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
1
1
0
0
1
1
b15
b8
b0
b7
b0
b7
b15
b8
OR
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
b0
b7
b15
b8
s
1
s
2
d1
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......