![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bg7a.png)
FX Series Programmable Controllers Devices in Detail 4
4-48
4.15.2 Floating Point Format
Floatin
point format extends the abilities and ran
es provided b
Scientific Notation with the
abilit
to represent fractional portions of whole numbers, for example;
Performin
and displa
in
the calculation of 22 divided b
7 would
ield the followin
results:
a) Normal FX operation usin
decimal (inte
ers) numbers would equal 3 remainder 1
b) In floatin
point it would equal 3.14285 (approximatel
)
c) In Scientific format this calculation would be equal to 3142 10
-3
So it can be seen that a
reater de
ree of accurac
is provided b
floatin
point numbers, i.e.
throu
h the use of lar
er numerical ran
es and the availabilit
of more calculable di
its.
Hence, calculations usin
floatin
point data have some si
nificant advanta
es. Decimal data
can be converted in to floatin
point b
usin
the FLT, float instruction (FNC 49). When this
same instruction is used with the float fa
M8023 set ON, floatin
point numbers can be
converted back to decimal. see pa
e 5-49 for more details.
The followin
points should be remembered about the use of Floatin
Point within appropriate
FX units;
• Floatin
point numbers, no matter what numerical value, will alwa
s occup
two consecu-
tive data re
isters (or 32 bits).
• Floatin
point values cannot be directl
monitored, as the
are stored in a special format
recommended b
the I.E.E.E (Institute of Electrical and Electronic En
ineers) for personal
and micro computer applications.
• Floatin
point numbers have both mantissa and exponents (see Scientific Notation for an
explanation of these terms). In the case of floatin
point exponents, onl
8 bits are used.
Additionall
there is a sin
le si
n bit
for the mantissa. The remainin
bits
of the 32 bit value, i.e. 23 bits, are
used to ‘describe’ the mantissa
value.
Valid ran
es for floatin
point numbers as used in FX Main Processin
Units:
Description Sign
Exponent
(bit pattern)
Mantissa
(bit pattern)
Remark
Normal Float
0 or 1
11111110
00000001
11111111111111111111111
11111111111111111111110
00000000000000000000001
00000000000000000000000
Lar
est number +/- 3.403 10
38
Accurac
: 7 si
nificant fi
ures
Smallest number +/- 1.175
10
-38
Zero
0 or 1
00000000 00000000000000000000000 All di
its are 0 (zero)
b15 b0
Data re
ister 'D+1'
(16 bits)
b15 b0
Data re
ister 'D'
(16 bits)
Si
n bit
Exponet
(8 bits)
Mantissa
(23 bits)
FX Data Re
ister Contruction
Floatin
Point Format