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

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
DIV
24
INC
25
DEC
26
WAND
27
WOR
28
WXOR
29
NEG
Floating point operation instructions
FX
, FX
and FX
3G
3U
operation instructions in the floating point format.
FNC No.
120
121
122
123
For details, refer to the explanation of each instruction.
Symbol
ADD
S1
SUB
S1
MUL
S1
DIV
S1
INC
DEC
S1
WAND
WOR
S1
S1
WXOR
NEG
PLCs offer not only arithmetic operation instructions in binary format but also arithmetic
3UC
Instruction mnemonic
[D]EADD
[D]ESUB
[D]EMUL
[D]EDIV
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Function
Addition
S2 D
Subtraction
S2 D
Multiplication
S2 D
Division
S2 D
Increment
D
Decrement
D
Logical Word AND
S2
D
Logical Word OR
S2
D
Logical Exclusive OR
S2
D
Negation
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.
1
2
Reference
3
Section 10.1
Section 10.2
Section 10.3
4
Section 10.4
Section 10.5
5
Section 10.6
Section 10.7
Section 10.8
6
Section 10.9
Section
10.10
7
8
9
10
269

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents