6-80
FLT(P),DFLT(P)
Program Example
(1) The following program converts the BIN 16-bit data at D20 to a 32-bit floating decimal point
type real number and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 32-bit floating
decimal point type real number, and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
Integer
conversion
32-bit floating-point
real number
15923
D20
BIN value
D1
15923
D0
Step
Instruction
Device
Integer
conversion
Integer
conversion
An error is generated in operation results since
the number of significant digits is "7".
BIN value
D21
173963112
D20
BIN value
D21
16543521
D20
32-bit floating-point
real number
D1
16543521
D0
32-bit floating-point
real number
D1
173963120
D0