Floating-Point Value Conversion 32-Bit Into 64-Bit: Dflt - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Floating-point value conversion 32-bit into 64-bit: DFLT

Format
DFLT(S)
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(S)
*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.
■Description, data type of result
Setting data
Description
(S)
Data which will be converted into 64-bit floating-point value
Processing details
• 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.
38
-38
-3.40  10
to -1.18  10
• 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.
Operation error
An operation error will occur if:
• The (S) data is not a valid 32-bit floating-point type.
Program example
■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
K-1.0
Number of basic steps
4
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
*1
-38
, 0.0, 1.18  10
to 3.40  10
#1
#0
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
38
(single precision real number)
D2001
D2000
D2000L
K-1.0
4 OPERATION CONTROL PROGRAMS
G
Bit
Comparison
conditional
conditional
expression
expression
Data type of result
64-bit floating-point type
175
4.9 Type Conversions
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents