Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 748

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

Advertisement

Processing details
• These instructions convert the 32-bit signed binary data in the device specified by (s) to a single-precision real number, and
stores the real number in the device specified by (d).
SM402
M0
• A single-precision real number is processed in 32-bit single precision, and therefore the effective number of digits is 24 bits
when it is represented in binary and is about 7 digits when represented in decimal. For this reason, if the integer value
exceeds the range from -16777216 to 16777215 (24-bit binary value), an error occurs in the converted value. The operation
result is an integer value in which the 25th bit from upper bits is rounded off.
b31
∙∙∙
b24 b23
0 0 0
0
1
1 0 1 0
0
1
b31
∙∙∙
b24 b23
0 0 0
1
0
1 1 0 0
0
1
(1) Rounded down.
(2) Rounded off.
Operation error
There is no operation error.
7 APPLICATION INSTRUCTIONS
746
7.9 Real Number Instructions
DMOVP
K-123456
(s)
DINT2FLT
D0
∙∙∙
b16
b15
∙∙∙
1 1 0 1 1
1 1 1
0
1
0 0 0 1
∙∙∙
b16
b15
∙∙∙
1 0 1 0 1
0 1 0
0
0
0 0 1 0
(s)
D0
b31
∙∙∙
b16
D1, D0
FFFEH
(d)
(-123456)
D100
b8b7
∙∙∙
b0
1
0
0 1 1 1 0
(1)
(2)
b8b7
∙∙∙
b0
1
1
1 0 1 1 1
(1)
(2)
(d)
b15
∙∙∙
b0
b31
1DC0H
D101, D100
222030032
372588928
∙∙∙
b16
b15
∙∙∙
b0
C7F1H
2000H
(-123456.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents