Fnc120 - Eadd / Floating Point Addition - 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
18.8
FNC120 – EADD / Floating Point Addition
Outline
This instruction executes addition of two binary floating point data.
1. Instruction format
FNC 120
D
EADD
2. Set data
Operand Type
S
1
S
2
D
*1.
When a constant (K or H) is specified, it is automatically converted into binary floating point (real number)
when the instruction is executed.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
1
S
2
D
: This function is supported only in FX
Explanation of function and operation
1. 32-bit operation (DEADD and DEADDP)
Binary floating point data [
result in the binary floating point format is transferred to [
Command
input
FNC120
DEADD
When a constant (K or H) is specified as [
binary floating point.
Command
input
FNC120
DEADD
Caution
1. When the same device is specified
The same device number can be specified in [
In this case, note that the addition result changes in every operation cycle when the continuous operation type
instruction (DEADD) is used.
506
→ For program examples of floating point operations, refer to Section 12.10.
Mnemonic
16-bit Instruction
P
Word device number storing binary floating point data used in addition
Word device number storing binary floating point data used in addition
Data register number storing the addition result
Digit Specification
/FX
3U
S
+1,
S
] is added to binary floating point data [
2
2
S
S
1
2
S
S
1
2
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
PLCs.
3UC
D
+1,
D
D
[
S
+1,
S
] + [
1
1
Binary floating point
S
+1,
S
] or [
S
1
1
2
D
[
S
+1,
S
1
1
Binary floating point
S
+1,
S
],[
S
1
1
2
18 Floating Point – FNC110 to FNC139
18.8 FNC120 – EADD / Floating Point Addition
Mnemonic
Operation Condition
DEADD
13 steps
DEADDP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
S
+1,
S
1
1
].
] → [
S
+1,
S
D
2
2
Binary floating point
Binary floating point
+1,
S
], it is automatically converted into
2
] → [
] + [
K2346
Automatically
Binary floating point
converted into binary
floating point
+1,
S
] and [
D
+1,
2
Continuous
Operation
Pulse (Single)
Operation
Data Type
Real number
binary
*1
(
)
Others
Charac-
Pointer
ter String
" "
P
], and the addition
+1,
D
]
D
+1,
D
]
D
].

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents