Converting 16-Bit Signed 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 16-bit signed binary data to double-precision real
number
INT2DBL(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert 16-bit signed 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
INT2DBL
INT2DBLP
Setting data
■Description, range, data type
Operand
Description
(s)
Integral data to be converted to a double-precision real
number, or the 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 16-bit signed 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
MOVP
M0
INT2DBL
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)
b15
∙∙∙
K-4321
D0
D0
EF1FH
(s)
(d)
(-4321)
D0
D100
*1
ST
ENO:=INT2DBL(EN,s,d);
ENO:=INT2DBLP(EN,s,d);
Range
Data type
-32768 to 32767
16-bit signed binary
Double-precision real
number
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
(d)
b0
b63
∙∙∙
D103, D102, D101, D100
C0B0H
Data type (label)
ANY16_S
ANYREAL_64
BOOL
BOOL
Constant
specification
K, H E
$
b49
b48
∙∙∙
b32
b31
∙∙∙
b16
b15
∙∙∙
b0
E100H
0000H
0000H
(-4321.0)
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
7
Others
751

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents