EasyManua.ls Logo

Mitsubishi Electric Q173DSCPU - Floating-Point Value Conversion 64-Bit into 32-Bit: SFLT

Mitsubishi Electric Q173DSCPU
556 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 - 51
5 OPERATION CONTROL PROGRAMS
F/FS G
5.7.8 Floating-point value conversion 64-bit into 32-bit : SFLT
Ver.!
Format SFLT(S) Number of basic steps 2
[Usable data]
Setting
data
Usable Data
Bit device
Word device Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
(S)
: Usable
[Setting data]
Setting data Description Data type of result
(S)
Data which will be converted into 32-bit
floating-point value
32-bit floating-point type
[Functions]
(1) The 64-bit floating-point (double precision real number) value stored in the device
specified with (S) is converted into the 32-bit floating-point (single precision real
number) value. Convertible data ranges are shown below.
-3.40
10
38
to -1.18 10
-38
, 0.0, 1.18 10
-38
to 3.40 10
38
(single precision real number)
(2) The 64-bit floating-point type is used as the data of floating-point type in the
Motion SFC program. Use this instruction to output the data into the external
devices that cannot use the 64-bit floating-point type.
POINT
The number of effective digits of 32-bit floating-point value data is approx. 7 digits.
Data in the seven digits or later of conversion result by SFLT instruction may not
match the (S) data.
[Errors]
(1) An operation error will occur if:
• The (S) data is not a valid 64-bit floating-point type.
• The (S) data after convert is outside the range of 32 bit floating-point type.
Ver.!
: Refer to Section 1.3 for the software version that supports this function.

Table of Contents

Related product manuals