Converting 16-bit unsigned binary data to 32-bit unsigned binary
data
UINT2UDINT(P)
These instructions convert the 16-bit unsigned binary data in the device specified by (s) to 32-bit unsigned binary data, 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 16-bit unsigned binary data in the device specified by (s) to 32-bit unsigned binary data, 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,
U\G
C, LC
W, SD, SW, R
(s)
MOVP
H0F000
D0
D0
(s)
(d)
UINT2UDINT
D0
D100
Structured text
Not supported
Range
Data type
16-bit unsigned binary
32-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
Before conversion
∙∙∙
b15
b0
F000H
D101, D100
(61440)
Stores in lower 16 bits
Data type (label)
ANY16_U
ANY32_U
Constant
Others
K, H
E
$
(d)
After conversion
∙∙∙
∙∙∙
b31
b16
b15
b0
0000H
F000H
(61440)
"0" is stored.
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
6
259