Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 750

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

Advertisement

Processing details
• These instructions convert the 32-bit unsigned 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 0 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
748
7.9 Real Number Instructions
DMOVP
K123456
(s)
UDINT2FLT
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
0001H
(d)
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
E240H
D101, D100
(123456)
222030032
372588928
b31
b16
b15
b0
47F1H
2000H
(123456.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents