![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bgaf.png)
FX Series Programmable Controlers Applied Instructions 5
5-49
5.5.10 FLT (FNC 49)
Operation 1:
When the float instruction is used without the float
fla
(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 re
ardless of the size of the
source data (S), i.e. whether (S) is a sin
le device
(16 bits) or a double device (32 bits) has no effect
on the number of destination devices (D) used to
store the floatin
point number. Examples:
Operation 2:
(Applicable units: FX
(2C)
) This function is equivalent to FNC 129 INT.
When the float instruction is performed and the float fla
M8023 is ON, the float operation will
be conducted in reverse to Operation 1. An
floatin
point format number stored at source (S)
will be convertin
to its decimal equivalent and stored at destination (D).
Continued over the pa
e...
Mnemonic Function
Operands
Program steps
SD
FLT
FNC 49
(
Floatin
point)
Used to convert
data to and from
floatin
point
format
D D FLT, FLTP:
5 steps
DFLT,
DFLTP:
9 steps
M8023 = OFF data is converted from decimal
to floatin
point format
M8023 = ON data is converted from floatin
point format to decimal format
X15
D 2
[ S ] [ D ]
D15
FLT
X27
M8023
M8000
M8023
D120D100FLT
Decimal source data
(S)
Floatin
point
destination value (D)
-26700
404
-2.67
×
10
4
4.04
×
10
2
1 1