Mitsubishi Q00JCPU User Manual page 185

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(b) Calculation example
POINT
Calculation examples are shown below (the nnnnn "X" indicates an X-system data
expression).
1) Storing "10"
SignPositive to 0
Exponent part3 to 82
Mantissa(010 00000 00000 00000 00000)
Therefore, the data expression will be 41200000
Sign
Exponent part
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
4
1
2
2) Storing "0.75"
SignPositive to 0
Exponent part-1 to 7E
Mantissa(100 00000 00000 00000 00000)
Therefore, the data expression will be 3F400000
Sign Exponent part
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
3
F
4
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 (1000 0010)
H
2
2
Mantissa
0
0
0
(0.75)
(0.11)
(1.100..... 2
10
2
to (0111 1110)
H
2
2
Mantissa
0
0
0
1
-1
-2
This bit expresses2
This bit expresses2
3.9.4 Real numbers (Floating-point data)
3
)
2
, as shown below.
H
0
0
-1
)
2
, as shown below.
H
0
0
0
1
-3
This bit expresses2
10
3
1
2
3
4
5
6
-4
7
8
- 87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents