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)
FBD/LD
EN
ENO
s
d
*1 Supported by engineering tool version "1.035M" and later.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data before conversion
(d)
Data after conversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(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.
Word
T, ST, C, D, W,
U\G
SD, SW, R
DMOVP
K123456
D0
(s)
(d)
UDINT2FLT
D0
D100
*1
Structured text
ENO:=UDINT2FLT(EN,s,d);
ENO:=UDINT2FLTP(EN,s,d);
Range
Data type
0 to 4294967295
32-bit unsigned binary
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
(s)
b31
b16
b15
b0
D1, D0
0001H
E240H
(123456)
Data type (label)
ANY32_U
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
(d)
b31
b16
b15
b0
D101, D100
47F1H
2000H
(123456.0)
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
505