Mitsubishi Electronics FX2C Home Theater Server User Manual


 
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
g
(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
g
ardless of the size of the
source data (S), i.e. whether (S) is a sin
g
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
g
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
g
M8023 is ON, the float operation will
be conducted in reverse to Operation 1. An
y
floatin
g
point format number stored at source (S)
will be convertin
g
to its decimal equivalent and stored at destination (D).
Continued over the pa
g
e...
Mnemonic Function
Operands
Program steps
SD
FLT
FNC 49
(
Floatin
g
point)
Used to convert
data to and from
floatin
g
point
format
D D FLT, FLTP:
5 steps
DFLT,
DFLTP:
9 steps
M8023 = OFF data is converted from decimal
to floatin
g
point format
M8023 = ON data is converted from floatin
g
point format to decimal format
X15
D 2
[ S ] [ D ]
D15
FLT
X27
M8023
M8000
M8023
D120D100FLT
Decimal source data
(S)
Floatin
g
point
destination value (D)
-26700
404
-2.67
×
10
4
4.04
×
10
2
1 1