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
- 87
1
O
verv
iew
2
Per
fo
rma
nce
S
p
ecifica
tio
n
3
S
equ
en
ce P
ro
g
ra
m
Co
nfig
ura
tio
n a
nd
E
xecut
io
n Co
nd
iti
o
ns
4
I/O N
unb
er
Assig
n
m
e
nt
5
Me
mor
ie
s a
nd
File
s
Ha
nd
led
by CP
U Mo
du
le
6
Func
tions
7
Co
mmu
nic
a
tion
us
in
g
bu
ilt
-i
n E
th
e
rne
t po
rt
s o
f
CP
U mod
u
le
8
Co
mm
un
icatio
n
w
ith
Int
e
lli
ge
nt
Fun
ction
Mo
du
le
(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 82
H
to (1000 0010)
2
Mantissa(010 00000 00000 00000 00000)
2
Therefore, the data expression will be 41200000
H
, 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 7E
H
to (0111 1110)
2
Mantissa(100 00000 00000 00000 00000)
2
Therefore, the data expression will be 3F400000
H
, 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.
1
1
0
1
This bit expresses2
-1
This bit expresses2
-2
This bit expresses2
-3
This bit expresses2
-4
Sign
Exponent part
Mantissa
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
0
0
0
0
0
Sign Exponent part
Mantissa
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
0
0
0
0
0