Tady
Well-known member
Hello
I have a nework analyzer that uses modbus communication. Now I have a problem reading the measured value.
It seems the meter is using two 16bit bytes for each value.
Currently I'm trying to read only Power
So if the measured power consumption is less than 1000W, say 136.71W the first byte is 65024 (decimal) and the second is 13671(decimal).
But if the power goes over 1000W.. say 2034.2W the first byte is 65280 and the second is 20342
So the first byte represents the decimal place and the second the actual value..
Can someone help me how to calculate this so I get actual values in float?
Thank you!
I have a nework analyzer that uses modbus communication. Now I have a problem reading the measured value.
It seems the meter is using two 16bit bytes for each value.
Currently I'm trying to read only Power
So if the measured power consumption is less than 1000W, say 136.71W the first byte is 65024 (decimal) and the second is 13671(decimal).
But if the power goes over 1000W.. say 2034.2W the first byte is 65280 and the second is 20342
So the first byte represents the decimal place and the second the actual value..
Can someone help me how to calculate this so I get actual values in float?
Thank you!