3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.9 Numeric Values which can be Used in Sequence Programs
3.9.4 Real numbers (Floating-point data)
3 - 91
1
Overview
2
Performance
Specification
3
Sequence Program
Configuration and
Execution Conditions
4
I/O Nunber Assignment
5
Memories and Files
Handled by CPU Module
6
Functions
7
Communication using
built-in Ethernet ports of
CPU module
8
Communication with
Intelligent Function
Module
(b) Calculation example
Calculation examples are shown below (the nnnnn "X" indicates an X-system data
expression).
1) Storing "10"
(10)
10 (1010)2 (1.01000..... 2
3
)2
SignPositive to 0
Exponent part3 to 401
H to (100 0000 0001)
2
Mantissa(0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000)
2
Therefore, the data expression will be 4014000000000000H, as shown below.
2) Storing "0.75"
(0.75)
10 (0.11)2 (1.100..... 2
-1
)2
SignPositive to 0
Exponent part--1 to 3FD
H to (011 1111 1101)2
Mantissa(1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000)2
Therefore, the data expression will be 3FD8000000000000H, as shown below.
POINT
In binary notation, the portion of the value following the decimal point is calculated
as follows:
Example) (0.1101)
2
(0.1101)2=2
-1
+2
-2
+2
-4
=0.5+0.25+0.0625=(0.8125)10
0.1101
This bit expresses2
-1
This bit expresses2
-2
This bit expresses2
-3
This bit expresses2
-4
Sign Exponent part Mantissa
0 100000000010100000000000000000000000000000000000000000000000000
4 0 1 4 0 0 0 0 0 0 0 0 0 0 0 0
Sign Exponent part Mantissa
0 011111110111000000000000000000000000000000000000000000000000000
3 F D 8 0 0 0 0 0 0 0 0 0 0 0 0