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
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 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 4014000000000000
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 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 3FD8000000000000
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 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
4
0
0
0
0
0
0
0
0
0
0
0
0
Sign Exponent part
Mantissa
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
8
0
0
0
0
0
0
0
0
0
0
0
0
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......