Converting 32-Bit Unsigned Binary Data To Double-Precision Real Number - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting 32-bit unsigned binary data to double-precision real
number
UDINT2DBL(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert 32-bit unsigned binary data 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
UDINT2DBL
UDINT2DBLP
Setting data
■Description, range, data type
Operand
Description
(s)
Integral data to be converted to a double-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 32-bit unsigned binary data in the device specified by (s) to a double-precision real number,
and store the real number in the device specified by (d).
SM402
DMOVP
M0
UDINT2DBL
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)
K123456
D0
b31
∙∙∙
D1, D0
0001H
(s)
(d)
D0
D100
*1
ST
ENO:=UDINT2DBL(EN,s,d);
ENO:=UDINT2DBLP(EN,s,d);
Range
Data type
0 to 4294967295
32-bit unsigned binary
Double-precision real
number
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
(d)
b16
b15
∙∙∙
b0
E240H
D103, D102, D101, D100
(123456)
Data type (label)
ANY32_U
ANYREAL_64
BOOL
BOOL
Constant
specification
K, H E
$
b63
∙∙∙
b49
b48
∙∙∙
b32
b31
∙∙∙
b16
b15
∙∙∙
40FEH
2400H
0000H
0000H
(123456.0)
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
7
Others
b0
757

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents