266
FX3G/FX3U/FX3UC Series Programmable Controllers
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
3G, FX3U and FX3UC PLCs offer not only arithmetic operation instructions in the 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 DS1
SUB S2 DS1
MUL S2 DS1
DIV S2 DS1
DINC
DDEC
D
WAND
S2S1
DWOR S2S1
D
WXOR
S2S1
DNEG