Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual page 502

Table of Contents

Advertisement

(b) Calculation example
Calculation examples are shown below. (The "X" in (nnnnnn) x indicates the numeral system used.)
• Storing "10"
 (1010)
(10)
10
Sign:
Exponent:
Mantissa:
In this case, the value will be encoded as 4014000000000000
Sign
Exponent
0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4
0
1
• Storing "0.75"
(0.75)
10
Sign:
Exponent: -1  3FD
Mantissa: (
In this case, the value will be encoded as 3FD8000000000000
Sign
Exponent
0 0 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3
F
D
Values after the decimal point (in binary) is calculated as follows.
Ex.
(0.1101)
(0.1101)
2
=
2
500
 (1.010000..... × 2
2
Positive  0
3  401
 (100 0000 0001)
H
(
0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
4
0
0
0
 (0.11)
 (1.100..... × 2
2
Positive  0
 (011 1111 1101)
H
1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
8
0
0
0
2
0.
The bit represents 2
-1
-2
-4
+ 2
+ 2
0.5 + 0.25 + 0.0625
=
3
)
2
2
Mantissa
0
0
0
0
-1
)
2
2
Mantissa
0
0
0
0
1
-1
-2
. The bit represents 2
(0.8125)
=
10
)
2
.
H
0
0
0
)
2
.
H
0
0
0
0
-3
. The bit represents 2
. The bit represents 2
0
0
0
0
1
-4
.

Advertisement

Table of Contents
loading

Table of Contents