Fnc118 - Ebcd / Floating Point To Scientific Notation Conversion - 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.6
FNC118 – EBCD / Floating Point to Scientific Notation Conversion
Outline
This instruction converts binary floating point into scientific notation.
1. Instruction format
FNC 118
D
P
EBCD
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 (DEBCD and DEBCDP)
Binary floating point stored in [
].
D
Command
input
FNC118
DEBCD
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16
Before
Exponent part (8 bits)
execution
Sign (1 bit)
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16
After
execution
Caution
1. Handling of floating point
In floating point operations, all data is handled in binary floating point.
Because binary floating point is difficult to understand (requiring a dedicated monitoring method), it is converted into
scientific notation so that monitoring can be easily executed by peripheral equipment.
GX Developer and GOT have the function to directly monitor and display binary floating point.
Mnemonic
16-bit Instruction
Data register number storing binary floating point
Data register number storing converted scientific notation
Digit Specification
+1,
S
S
[
S
D
Binary floating point
+1
S
Exponent part
+1
D
D
18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
9 steps
Description
Word Devices
Special
System User
Unit
V
] is converted into scientific notation, and transferred to [
] → [
S
S
D
+1,
+1,
Scientific notation
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Mantissa part (23 bits)
After execution
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Mantissa part
+1
D
× 10
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
Continuous
DEBCD
Operation
Pulse (Single)
DEBCDP
Operation
Data Type
Real number (binary)
Real number (decimal)
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
D
]
Low order
S
Low order
D
11
12
13
14
Pointer
P
15
16
+1,
D
17
18
19
20
503

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents