Converting single-precision real number to double-precision real
number
FLT2DBL(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert a single-precision real number to a double-precision real number.
Ladder
(s)
(d)
FBD/LD
EN
ENO
s
d
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
FLT2DBL
FLT2DBLP
Setting data
■Description, range, data type
Operand
Description
(s)
Integral data to be converted to a single-precision real
number, or the start device containing integral data
(d)
Start device for storing the converted double-precision real
number
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
Processing details
These instructions convert the single-precision real number in the device specified by (s) to a double-precision real number,
and store the double-precision real number in the device specified by (d).
SM402
EMOVP
M0
FLT2DBL
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
(s)
E123456.7
D0
b31
∙∙∙
D1, D0
471FH
(s)
(d)
D0
D100
*1
ST
ENO:=FLT2DBL(EN,s,d);
ENO:=FLT2DBLP(EN,s,d);
Range
Data type
-126
128
|(s)|<2
0, 2
Single-precision real
number
Double-precision real
number
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
(d)
b16
b15
∙∙∙
b0
205AH
D103, D102, D101, D100
(123456.7)
Data type (label)
ANYREAL_32
ANYREAL_64
BOOL
BOOL
Constant
specification
K, H E
$
b63
∙∙∙
b49
b48
∙∙∙
b32
b31
∙∙∙
b16
b15
40FEH
240BH
4000H
0000H
(123456.7)
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
7
Others
∙∙∙
b0
759