Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 403

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions convert the double-precision real number in the device specified by (s) to 32-bit unsigned binary data,
and store the converted data in the device specified by (d).
• After conversion, the first digit after the decimal point of the double-precision real number is rounded off.
• When an input value is set using the engineering tool, a rounding error may occur. For the precautions on setting an input
value using the engineering tool, refer to the following.
Page 49 Precautions
The following program example converts, when M0 turns on, the double-precision real number stored in D0 to D3 to 32-bit
unsigned binary data, and stores the converted data in D100 and D101.
SM402
M0
DBL2UDINT
Operation error
Error code
Description
(SD0)
3401H
The double-precision real number in the device specified by (s) is out of the range, 0 to 4294967295.
3402H
An unusual number is set to (s).
• The double-precision real number set to (s) is not within the following range:
-1022
|(s)|<2
0, 2
• The value set to a device or label is -0, a subnormal number, NaN (not a number), or .
EDMOVP
E765432.1
D0
(s)
(s)
D3, D2, D1, D0
(d)
D0
D100
1024
b63
∙∙∙
b49
b48
∙∙∙
b32
b31
∙∙∙
b16
b15
∙∙∙
4127H
5BF0H
3333H
3333H
(765432.1)
6.6 Data Conversion Instructions
(d)
b0
b31 b16
∙∙∙
b15 b0
∙∙∙
D101, D100
000BH
ADF8H
(765432)
6 BASIC INSTRUCTIONS
6
401

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents