Appendix a - ieee for normal float type – Hardy HI 2151/30WC Single-Scale Controller User Manual
Page 63
![background image](/manuals/657640/63/background.png)
Appendix
57
Appendix A - IEEE For Normal Float Type
IEEE Format for Normal Float Type
Used for Block Read #21 and Selectable Read Parameter #15.
Sign bit - 31
Exponent (8 bits) - 30 29 28 27 26 25 24 23
Mantissa (23 bits) - 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 4 5 6 3 2 1 0
Sign bit
0 = Positive value
1 = Negative value
Exponent
8 bit value - 127 (decimal) = EXPONENT VALUE
Mantissa
1 + 23 bit of mantissa (where binary point is just left of bit 22) = MANTISSA VALUE
Example:
To read NET weight, read bytes 4 through 7 in Read Data Buffer and interpret NET weight
value as floating point.
Sign
Exponent
Mantissa
0
01111110
000000000000000000000
+
126 - 127=-1
1 + 0 = 1 +(1.0 x 2
-1
) = 0.5