Fnc119 - Ebin / Scientific Notation To Floating Point Conversion - 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.7
FNC119 – EBIN / Scientific Notation to Floating Point Conversion
Outline
This instruction converts scientific notation stored in devices into binary floating point.
1. Instruction format
FNC 119
D
EBIN
2. Set data
Operand Type
S
D
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
D
Explanation of function and operation
1. 32-bit operation (DEBIN and DEBINP)
Scientific notation stored in [
[
+1,
D
D
Command
input
FNC119
DEBIN
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16
Before
execution
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16
After
execution
524
Mnemonic
16-bit Instruction
P
Data register number storing scientific notation data
Data register number storing converted binary floating point.
Digit Specification
+1,
S
].
S
D
Exponent part
+1
S
Exponent part (8 bits)
Sign (1 bit)
+1
D
18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
] is converted into binary floating point, and transferred to
S
] → [
S
S
D
[
+1,
Scientific notation
Binary floating point
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
+1
S
× 10
S
After execution
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Mantissa part (23 bits)
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DEBIN
9 steps
DEBINP
Real number
Real number (binary)
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
D
+1,
]
Low order
Mantissa part
S
Low order
D
Continuous
Operation
Pulse (Single)
Operation
Data Type
(decimal)
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents