Mitsubishi Q00JCPU User Manual page 189

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(b) Calculation example
Sign Exponent part
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
Sign Exponent part
0 0 1 1 1 1 1 1 1 0 1 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
POINT
Calculation examples are shown below (the nnnnn "X" indicates an X-system data
expression).
1) Storing "10"
SignPositive to 0
Exponent part3 to 401
Mantissa(
0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Therefore, the data expression will be 4014000000000000
4
0
0
0
2) Storing "0.75"
SignPositive to 0
Exponent part--1 to 3FD
Mantissa(
1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Therefore, the data expression will be 3FD8000000000000
8
0
0
0
In binary notation, the portion of the value following the decimal point is calculated
as follows:
Example) (0.1101)
2
0.
1
This bit expresses2
-1
-2
-4
(0.1101)
=2
+2
+2
=0.5+0.25+0.0625=(0.8125)
2
3.9 Numeric Values which can be Used in Sequence Programs
(10)
(1010)
(1.01000..... 2
10
2
to (100 0000 0001)
H
2
Mantissa
0
0
0
0
(0.75)
(0.11)
(1.100..... 2
10
2
to (011 1111 1101)
H
Mantissa
0
0
0
0
1
-1
-2
This bit expresses2
This bit expresses2
10
3.9.4 Real numbers (Floating-point data)
3
)
2
, as shown below.
H
0
0
0
0
-1
)
2
2
, as shown below.
H
0
0
0
0
0
1
-3
This bit expresses2
3
1
2
)
2
3
0
4
)
2
5
6
0
7
-4
8
- 91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents