Mitsubishi 00JCPU User Manual page 94

Q series programmable controller
Table of Contents

Advertisement

(b) Calculation example
Calculation examples are shown below. (The "X" in (nnnnnn)
1) Storing "10"
(10)
(1010)
10
Sign:
Exponent:
Mantissa:
In this case, the value will be encoded as 41200000
Sign
0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2) Storing "0.75"
(0.75)
10
Sign:
Exponent:
Mantissa:
In this case, the value will be encoded as 3F400000
Sign
0 0 1 1 1 1 1 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
Values after the decimal point (in binary) is calculated as follows.
Example
-1
(0.1101)
=2
2
2 - 49
(1.010000.....
2
Positive
0
3
82
(10000010)
H
(010 00000 00000 00000 00000)
Exponent
4
1
2
-1
(0.11)
(1.100.....
2
2
Positive
0
1
7E
(01111110)
H
(100 00000 00000 00000 00000)
Exponent
3
F
4
(0.1101)
2
0.
The bit represents
-2
-4
+2
+2
=0.5+0.25+0.0625=(0.8125)
indicates the numeral system used.)
3
2
)
2
2
2
.
H
Mantissa
0
0
0
)
2
2
2
.
H
Mantissa
0
0
0
1
1
The bit represents
-1
-2
2
2
10
0
0
0
0
0
The bit represents
The bit represents
-3
2
1
-4
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents