EasyManua.ls Logo

Mitsubishi Electric R64MTCPU - Floating-Point Value Conversion 32-Bit into 64-Bit: DFLT

Mitsubishi Electric R64MTCPU
354 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...
4 OPERATION CONTROL PROGRAMS
4.9 Type Conversions
175
4
Floating-point value conversion 32-bit into 64-bit: DFLT
Setting data
Usable Data
: Usable
*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
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.
-3.40 10
38
to -1.18 10
-38
, 0.0, 1.18 10
-38
to 3.40 10
38
(single precision real number)
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
Format Number of basic steps Usable steps
F/FS G
DFLT(S) 4 
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)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S) 
*1

Setting data Description Data type of result
(S) Data which will be converted into 64-bit floating-point value 64-bit floating-point type
K-1.0
D2001 D2000
#2 #1#3 #0
K-1.0 D2000L
#0F = DFLT(D2000L)
#0F

Table of Contents

Other manuals for Mitsubishi Electric R64MTCPU

Related product manuals