Mitsubishi Electric melsec q00ujcpu User Manual page 79

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(b) Calculation example
Calculation examples are shown below. (The "X" in (nnnnnn)
1) Storing "10"
(10)
(1010)
10
Sign:
Positive
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:
Positive
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
(0.1101)
2
2 =
2 - 40
(1.010000.....
2
0
3
82
(10000010)
H
(010 00000 00000 00000 00000)
Exponent
4
1
2
(0.11)
(1.100.....
2
2
0
-1
7E
(01111110)
H
(100 00000 00000 00000 00000)
Exponent
3
F
4
(0.1101)
2
0.
1
The bit represents 2
-1
-2
-4
+ 2
+ 2
0.5 + 0.25 + 0.0625
=
3
2
)
2
2
2
.
H
Mantissa
0
0
-1
)
2
2
2
.
H
Mantissa
0
0
0
1
-1
The bit represents 2
(0.8125)
=
10
indicates the numeral system used.)
x
0
0
0
0
0
0
-2
-3
The bit represents 2
The bit represents 2
1
-4

Advertisement

Table of Contents
loading

Table of Contents