12.02.2020, 16:48
(12.02.2020, 16:22)Daniel. Wrote: How do you know it reads only one register? Maybe it need some read_swap. Check in manuals.
It still doesn't make sense
Well, If I read the registers at 40093 with the test program, at the moment it returns 2 and 2968. If I use those values to calculate the energy, that seems to be OK.
The Modbus object returns only 2 which is the value of the first register. Earlier today the values were 1 and somewhere in the 60000. At that time the Modbus result was 1. Once the second register hits 65536, it is set to 0 and the first register becomes 2.
I can't find anything in the manual about this.
I found another document which states:
SunSpec register order for 32-bit Integer and Floating Point values is HI-LO, therefore, the 16-bit Modbus register at the address given in the Modbus map below is the HI register, and the next consecutive 16-bit Modbus register is the LO register.