Fnc120 - Eadd / Floating Point Addition - 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
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 [
addition result in the binary floating point format is transferred to [
Command
input
FNC120
DEADD
When a constant (K or H) is specified as [
into binary floating point.
Command
input
FNC120
DEADD
Caution
1. When a 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.
526
→ 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
3U
+1,
S
S
2
2
S
S
1
2
S
S
1
2
18.8 FNC120 – EADD / Floating Point Addition
→ 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
/FX
PLCs.
3UC
] is added to binary floating point data [
D
S
S
[
+1,
] + [
1
1
Binary floating point
+1,
] or [
S
S
S
1
1
2
D
S
S
[
+1,
] + [
1
1
Binary floating point
+1,
],[
S
S
S
1
1
2
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DEADD
13 steps
DEADDP
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
+1,
S
1
+1,
].
D
D
] → [
S
S
D
+1,
2
2
Binary floating point
Binary floating point
+1,
], it is automatically converted
S
2
] → [
D
K2346
Automatically
Binary floating point
converted into binary
floating point
+1,
] and [
S
D
2
Continuous
Operation
Pulse (Single)
Operation
Data Type
Real number
*1
binary
(
)
Charac-
Pointer
ter String
" "
P
], and the
S
1
D
+1,
]
D
+1,
]
+1,
].
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents