I 've got an Energy meter (yes again!) which returns 16bit registers at the maximum range 65535. some times that is also negative... that is format IEEE 754
It's the first time see this format and I can't find a way to read automatically the correct values.
I read some articles and some other post with multi array but this is not multiarray it's just a number which need some calculations on it if I got it right? (find the "mantissa" and so on).
Or I got it totally w
I thought this sounded familiar. Your Modbus words probably need to be swapped to have the correct value. Notice I said WORDS, not bytes. Keep in mind that Buffer data types are 8 bits (bytes), while Modbus returns registers in 16 bit words.
This is VERY IMPORTANT - have you been able to actually read a value from your meter? What is that value? Do you know what the corresponding floating point value is?
There is no right answer to this. I know you're trying very hard