6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
423
6
• These instructions convert the 32-bit unsigned binary data in the device specified by (s) to 16-bit unsigned binary data, and
store the converted data in the device specified by (d).
The following program example converts, when M0 turns on, the 32-bit unsigned binary data stored in D0 and D1 to 16-bit
unsigned binary data, and stores the converted data in D100.
There is no operation error.
(1) Data before conversion is stored in the lower 16 bits.
b31 b16
(1164413355)
89ABH4567HD1, D0
(d)
b15 b0
(35243)
89ABHD100
(s)
b15 b0
SM402
(s)
(d)
M0
DMOVP
H456789AB
D0
UDINT2UINT
D0
D100
(1)