Mitsubishi Electronics FX3G User Manual

Page of 964
287
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (
+, −, ×, ÷) – FNC 20 to FNC 29
10.8 FNC 27 – WOR / Logical Word OR
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
2. 32-bit operation (DOR and DORP)
The logical sum (OR) operation is executed to the contents of [
+1, 
] and [
+1, 
] in units of bit,
and the result is transferred to [
+1, 
].
• While the command input is OFF, the data of the transfer destination [
+1, 
] does not change.
• While the command input is ON, the data of the transfer source [
+1, 
] [
+1, 
] do not 
change.
• When a constant (K) is specified in the transfer source [
+1, 
] [
+1, 
], it is automatically 
converted into binary format.
• The logical sum operation is executed in units of bit as shown in the table below (1 
∨ 1 = 1, 0 ∨ 1 = 1, 
∨ 0 = 0, 1 ∨ 0 = 1).
1: ON, 0: OFF
+1, 
+1, 
+1, 
DOR (FNC 27) instruction
Logical operation
(unit: bit)
0
0
0
1
0
1
0
1
1
1
1
1
  
S
1
  
S
1
  
S
2
  
S
2
   
D
   
D
Command
input
FNC 27
DOR
S
S
+1,           
∨           +1,           →          +1,
S
S
S
S
   
D
   
D
  
S
1
  
S
1
  
S
2
  
S
2
  
S
1
  
S
1
  
S
2
  
S
2
  
S
1
  
S
1
  
S
2
  
S
2
  D
  D