FX Series Programmable Controlers Applied Instructions 5
5-64
5.5.10 FLT (FNC 49)
Operation:
When the float instruction is used without the float
flag (M8023 = OFF) the source data (S) is
converted in to an equivalent value stored in float
format at the destination device (D).
Please note that two consecutive devices (D and
D
+1) will be used to store the converted float
number. This is true regardless of the size of the
source data (S), i.e. whether (S) is a single device
(16 bits) or a double device (32 bits) has no effect
on the number of destination devices (D) used to
store the floating point number. Examples:
Mnemonic Function
Operands
Program steps
SD
FLT
FNC 49
(
Floating
point)
Used to convert
data to and from
floating point
format
D D FLT, FLTP:
5steps
DFLT,
DFLTP:
9steps
M8023 = OFF data is converted from decimal
to floating point format
M8023 = ON data is converted from floating
point format to decimal format
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X15
D 2
[ S ] [ D ]
D15
FLT
X27
M8023
M8000
M8023
D120D100FLT
Decimal source data
(S)
Floating point
destination value (D)
-26700
404
-2.67
×
10
4
4.04
×
10
2
1 1