Floating-Point Value Conversion 32-Bit Into 64-Bit : Dflt - 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.7 Floating-point value conversion 32-bit into 64-bit : DFLT

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
-3.40
[Errors]
[Program examples]
DFLT (S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(Note-1)
(Note-1) : The data is handled as the 32-bit integer type on the program, but store the 32-bit floating-point data in the device.
Data which will be converted into 64-bit
(S)
(1) The 32-bit floating-point (single precision real number) value stored in the device
specified with (S) is converted into the 64-bit floating-point (double 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 input the data of 32-bit floating-point
type from the external devices.
(1) An operation error will occur if:
• The (S) data is not a valid 32-bit floating-point type.
(1) Program which converts the 32-bit floating-point value data of D2000L into 64-bit
floating-point value data and substitutes the result to #0F
#0F = DFLT(D2000L)
#3
#2
#0F
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
#1
#0
K-1.0
5 - 50
F/FS
Ver.!
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
64-bit floating-point type
10
38
(single precision real number)
D2001
D2000L
K-1.0
G
2
Comparison
conditional
expression
: Usable
D2000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents