Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
460
18 Applied Instructions (Floating Point)
18.6 DEBCD / Floating Point to Scientific Notation Conversion
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 32-bit operation (DEBCD, DEBCDP)
The binary floating decimal point of the device specified by is converted into decimal floating decimal
point, and is transferred to the device specified by .
Cautions
1) In the floating decimal point operation, all operations are executed at the binary floating decimal point.
However, since the binary floating decimal point is a difficult numeric value (exclusive monitor method),
by converting it into decimal floating decimal point, it is easier for monitoring by peripheral devices or the
like.
Meanwhile, GX Works 2 or GOT is provided with a function for monitoring or displaying the binary floating
decimal point directly.
2) Some restrictions to applicable devices.
S1: The FX
3U and FX3UC PLCs only are applicable.
Command
input
Binary floating
decimal point
Decimal floating
decimal point
[ +1, ] [ +1, ]
DEBCD
EN ENO
d
s
ds s d
Device for storing the binary
floating decimal point data
Device for storing the converted
decimal floating decimal point data
After execution
Higher position Lower position
b15b14 b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0b31b30 b29b28 b27b26b25 b24b23 b22b21b20 b19b18 b17b16
Before
execution
Mantissa part (23 bits)
+1
Lower position
b15b14 b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Higher position
b31b30 b29b28 b27b26b25 b24b23 b22b21b20 b19b18 b17b16
After
execution
Mantissa partExponential part
+1
×10
+1
Exponential part (8 bits)
Sign (1 bit)
d
s
d
s
d
d