Mitsubishi Electric melsec q00ujcpu User Manual page 81

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)
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
2)
Storing "0.75"
(0.75)
10
Sign:
Positive
Exponent: -1
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.
Example
(0.1101)
2
2 =
2 - 42
(1010)
(1.010000.....
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.11)
(1.100.....
2
2
0
3FD
(011 1111 1101)
H
1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
8
0
0
(0.1101)
2
0.
1
The bit represents 2
-1
-2
-4
+ 2
+ 2
0.5 + 0.25 + 0.0625
=
3
2
)
2
2
Mantissa
0
0
0
0
-1
)
2
2
Mantissa
0
0
0
0
1
-1
The bit represents 2
(0.8125)
=
10
indicates the numeral system used.)
x
)
2
.
H
0
0
0
0
)
2
.
H
0
0
0
0
0
-2
-3
The bit represents 2
The bit represents 2
0
0
0
0
1
-4

Advertisement

Table of Contents
loading

Table of Contents