FLOAT
The FLOAT format consists of 4 bytes and is used when floating
decimal values are to be transmitted. The IEEE 754 format
should be used. The numerical range accepted by the recorder
lies within −9.990E9 and +9.990E9.
For example: transmit the value −12.5.
−12.5 dec = C1 48 00 00 hex
Determination of the hex figure
The general form of the floating decimal point is: (sign)
×
2
Exp−127
×
(Rest).
The binary display of the figure −12.5 is
11000001 01001000 00000000 00000000
Exp
Rest
(8 bit)
(23 bit)
negative sign
1. Calculate the sign:
the bit is set in case of a negative sign.
2. Calculate the exponent:
the highest exponent is calculated:
EXP = INT [lg”Figure
dec
”/lg2] + 127
in the example:
INT [lg12.5/lg2] + 127 = 130 dec = 82 hex = 10000010 bi-
nary
3. Calculate the rest:
Rest = “Figure
dec
”/2
Exp
in the example:
12.5/2
130 − 127
= 1.562
4. Transform into binary code:
Rank
: 2
0
+ 2
−1
+ 2
−2
+ 2
−3
+ 2
−4
+ ... +2
−23
In the example: 1
1
0
0
1
The value of 2
0
is always 1 and is therefore not carried for-
ward.
Technical Data ... • Data formats
5