6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
399
6
Processing details
• These instructions convert the double-precision real number in the device specified by (s) to 32-bit signed 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.
The following program example converts, when M0 turns on, the double-precision real number stored in D0 to D3 to 32-bit
signed binary data, and stores the converted data in D100 and D101.
Operation error
Error code
(SD0)
Description
3401H
The double-precision real number in the device specified by (s) is out of the range, -2147483648 to 2147483647.
3402H
An unusual number is set to (s).
• The double-precision real number set to (s) is not within the following range:
0, 2
-1022
|(s)|<2
1024
• The value set to a device or label is -0, a subnormal number, NaN (not a number), or
.
b63 b49
(-765432.1)
5BF0H
C127H
D3, D2, D1, D0
b48 b32
(s)
b31 b16
3333H
3333H
b15 b0
(d)
b31 b16
(-765432)
5208H
FFF4H
b15 b0
D101, D100
∙∙∙
∙∙∙
∙∙∙
∙∙∙
∙∙∙
∙∙∙
SM402
(s)
(d)
M0
EDMOVP
E-765432.1
D0
DBL2DINT
D0
D100
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......