6 - 141
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.8 32-bit real number and 64-bit real number data conversion (DFLT, SFLT)
Code DFLT,
SFLT
Function
32-bit real number and 64-bit
real number data conversion
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.
Format
L
Indirect setting only
F
[ ]
n
T
32bit real number 64bit real number data
conversion command
;
D
L
Indirect setting only
F
[ ]
n
T
;
S
64bit real number 32bit real number data
conversion command
[Explanation]
(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).
[Program Example]
#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]
Bits 0 to 51 : Significant digit part (virtual part)
63
51
Bit 0
Bit 63 : Sign part
Bits 52 to 62 : Exponent part
[32-bit double precision real number type]
Bits 0 to 22 : Significant digit part (virtual part)
31
23
Bit 0
Bits 31 : Sign part
Bits 23 to 30 : Exponent part
Содержание Q172HCPU
Страница 35: ...2 10 2 POSITIONING CONTROL BY THE MOTION CPU MEMO ...
Страница 79: ...3 44 3 MOTION DEDICATED PLC INSTRUCTION MEMO ...
Страница 373: ...6 186 6 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Страница 453: ...7 80 7 AUXILIARY AND APPLIED FUNCTIONS MEMO ...