Mitsubishi Electronics FX3G User Manual

Page of 964
270
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. Arithmetic and Logical Operation (
+×÷) – 
FNC 20 to FNC 29
FNC 20 to FNC 29 provide instructions for arithmetic operations and logical operations of numeric data.
Floating point operation instructions
FX
3S
, FX
3G
, FX
3GC
, FX
3U
 and FX
3UC
 PLCs offer not only arithmetic operation instructions in binary format but also
arithmetic operation instructions in the floating point format.
For details, refer to the explanation of each instruction.
→ For the floating point operation, refer to Chapter 18.
FNC No.
Mnemonic
Symbol
Function
Reference
20
ADD
Addition
Section 10.1
21
SUB
Subtraction
Section 10.2
22
MUL
Multiplication
Section 10.3
23
DIV
Division
Section 10.4
24
INC
Increment
Section 10.5
25
DEC
Decrement
Section 10.6
26
WAND
Logical Word AND
Section 10.7
27
WOR
Logical Word OR
Section 10.8
28
WXOR
Logical Exclusive OR
Section 10.9
29
NEG
Negation
Section 
10.10
FNC No.
Instruction mnemonic
Contents of processing
120
[D]EADD
Addition of binary floating point
121
[D]ESUB
Subtraction of binary floating point
122
[D]EMUL
Multiplication of binary floating point
123
[D]EDIV
Division of binary floating point
ADD
S2 D
S1
SUB
S2 D
S1
MUL
S2 D
S1
DIV
S2 D
S1
D
INC
D
DEC
D
WAND
S2
S1
D
WOR
S2
S1
D
WXOR
S2
S1
D
NEG