B.4: Floating Point Values - Electro Industries Shark 100S Installation & Operation Manual

Electronic submeter with wifi ethernet capability
Hide thumbs Also See for Shark 100S:
Table of Contents

Advertisement

FLOAT:

B.4: Floating Point Values

Floating Point Values are represented in the following format:
Register
Byte
0
Bit
7
6
5
4
Meaning
s
e
e
e
sign
exponent
The formula to interpret a Floating Point Value is:
sign
exponent-127
-1
x 2
sign
137-127
-1
x 2
10
-1 x 2
x 1.75871956
-1800.929
Register
Byte
0x0C4
Bit
7
6
5
4
3
1
1
0
0
0
Meaning
s
e
e
e
e
m
m m m m m m m m m m m m m m m
sign
exponent
1
0x089 + 137
Formula Explanation:
C4E11DB9 (hex)
The sign of the mantissa (and therefore the number) is 1, which represents a nega-
tive value.
The Exponent is 10001001 (binary) or 137 decimal.
Electro Industries/GaugeTech
Electro Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
The Leader In Power Monitoring and Smart Grid Solutions
32-bit IEEE floating point number spanning 2
registers. The lower-addressed register is the
high order half (i.e., contains the exponent).
0
1
3
2
1
0
7
6
5
4
3
e
e
e
e
e
m m m m m m m m m m m m m m m m m m m m m m m
mantissa
x 1.mantissa = 0x0C4E11DB9
x 1· 1000010001110110111001
0x0C4E1
0x0E1
2
1
0
7
6
5
4
3
1
0
0
1
1
1
0
0
e
e
e
e
m m m m m m m
mantissa
0b011000010001110110111001
11000100 11100001 00011101 10111001
(binary)
B: Shark® 100-S Meter Modbus Map
0
2
1
0
7
6
5
4
3
0x01D
2
1
0
7
6
5
4
3
2
0
0
1
0
0
0
1
1
1
Doc
E145721
#
1
1
2
1
0
7
6
5
4
3
2
0x01DB9
0x0B9v
1
0
7
6
5
4
3
2
0
1
1
0
1
1
1
0
1
0
1
0
0
1
B - 2

Advertisement

Table of Contents
loading

Table of Contents