Floating-Point Value Conversion 64-Bit Into 32-Bit : Sflt - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.7.8 Floating-point value conversion 64-bit into 32-bit : SFLT

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
-3.40
[Errors]
SFLT(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Data which will be converted into 32-bit
(S)
(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.
10
38
to -1.18
10
(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.
(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.
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
floating-point value
-38
, 0.0, 1.18
10
-38
to 3.40
5 - 51
F/FS
Ver.!
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
32-bit floating-point type
10
38
(single precision real number)
G
2
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents