Mitsubishi Electric MELSEC FX3U Programming Manual page 527

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
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
X002
18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion
−2
(scientific notation)
FNC 12
K314
D 0
MOVP
FNC 12
K -2
D 1
MOVP
FNC119
D 0
D 10
DEBIN
→ For program examples of floating point operations, refer to Section 12.10.
18 Floating Point – FNC110 to FNC139
K314 → D0
[D1]
314 × 10
−2
[D0]
K -2 → D1
(D1,D0) → (D11,D10)
314 × 10
−2
Binary floating point
11
12
13
14
15
16
17
18
19
20
525

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents