Arithmetic And Logical Operation (+, −, ×, ÷) – Fnc 20 To Fnc 29 - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents