502
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion
Program example
By DEBIN instruction, a numeric value containing the decimal point can be directly converted into binary floating point.
Example: Converting "3.14" into binary floating point
3.14 = 314 × 10
−2
(scientific notation)
→ For program examples of floating point operations, refer to Section 12.10.
X002
FNC 12
MOVP
K314 D 0
K314 → D0
FNC 12
MOVP
K -2 D 1
FNC119
DEBIN
D 0 D 10
K -2 → D1
(D1,D0) → (D11,D10)
314 × 10
−2
Binary floating point
[D1]
[D0]
314 × 10
−2