Converting 32-Bit Signed Binary Data To Single-Precision Real Number - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Converting 32-bit signed binary data to single-precision real
number
DINT2FLT(P)
These instructions convert the 32-bit signed binary data in the device specified by (s) to single-precision real number, and
store the converted data in the device specified by (d).
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data before conversion
(d)
Data after conversion
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions convert the 32-bit signed binary data in the device specified by (s) to single-precision real number, and
store the converted data in the device specified by (d).
SM402
M0
Operation error
There is no operation error.
7 APPLICATION INSTRUCTION
428
7.7 Real Number Instruction
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
DMOVP K-123456
(s)
DINT2FLT
D0
Structured text
Not supported
Range
Data type
-2147483648 to +2147483647
32-bit signed binary
Single-precision real number
Double word Indirect
U\G
Z
LC
Before conversion
D0
(s)
b31
b16
b15
(d)
D1, D0
FFFEH
1DC0H
D100
(-123456)
Data type (label)
ANY32
Single-precision real number
Constant
specification
LZ
K, H
After conversion
(d)
b0
b31
b16
D101, D100
C7F1H
(-123456.0)
Others
E
$
b15
b0
2000H

Advertisement

Table of Contents
loading

Table of Contents