Converting 32-Bit Unsigned 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 unsigned binary data to single-precision real
number
UDINT2FLT(P)
These instructions convert the 32-bit unsigned 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)
(d)
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,
U\G T, ST,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions convert the 32-bit unsigned 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.
Range
0 to 4294967295
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
DMOVP
K123456
D0
(s)
(s)
(d)
D1, D0
UDINT2FLT
D0
D100
Structured text
Not supported
Data type
32-bit unsigned binary
Single-precision real number
Double word Indirect
specification
Z
LC
LZ
Before conversion
b31
b16
b15
b0
0001H
E240H
D101, D100
(123456)
7 APPLICATION INSTRUCTION
Data type (label)
ANY32
Single-precision real number
Constant
Others
K, H
E
$
After conversion
(d)
b31
b16
b15
b0
47F1H
2000H
(123456.0)
7.7 Real Number Instruction
7
429

Advertisement

Table of Contents
loading

Table of Contents