32-Bit Real Number And 64-Bit Real Number Data Conversion (Dflt, Sflt) - Mitsubishi Electric Q Series Programming Manual

Motion controller
Hide thumbs Also See for Q Series:
Table of Contents

Advertisement

6 MOTION PROGRAMS FOR POSITIONING CONTROL

6.16.8 32-bit real number and 64-bit real number data conversion (DFLT, SFLT)

Code
32-bit real number and 64-bit
Function
real number data conversion
D
F
Format
S
F
[Explanation]
[Program Example]
DFLT, SFLT
L
T
[ ] n
;
L
T
[ ] n
;
(1) DFLT : 32-bit real number data (a floating-point type) is converted 64-bit real
number data (a floating-point type).
(2) SFLT : 64-bit real number data (a floating-point type) is converted 32-bit real
number data (a floating-point type).
#2004F = DFLT [#2002L] ;
#2010L = SFLT [#2012F] ;
REMARK
32-bit real number data is used in QCPU, and the data conversion between Motion
CPU and PLC CPU must use this instruction.
[64-bit double precision real number type]
63
51
Bits 0 to 51 : Significant digit part (virtual part)
Bits 52 to 62 : Exponent part
Bit 63 : Sign part
[32-bit double precision real number type]
31
23
Bits 0 to 22 : Significant digit part (virtual part)
Bits 23 to 30 : Exponent part
Bits 31 : Sign part
The DFLT instruction converts the data from 32-bit real number to 64-
bit real number.
The SFLT instruction converts the data from 64-bit real number to 32-bit
real number.
6 - 141
Indirect setting only
32bit real number
64bit real number data
conversion command
Indirect setting only
64bit real number
32bit real number data
conversion command
Bit 0
Bit 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173hcpuQ172hcpu

Table of Contents