News:

To visit MidNite Solar click this link www.midnitesolar.com

Main Menu

Modbus register 4120

Started by robp, October 30, 2016, 06:39:20 AM

Previous topic - Next topic

robp

Hi, I'm having trouble reading the charger state register (4120 MSB) as referred to by the modbus doc dated 9 dec 2013.

During the day I was getting 0x02BC which doesn't seem to conform to the doc (no 0x02 listed) and this doesn't change when the charger changes modes ie absorb to float, which leads me to believe that I'm looking in the wrong register.  At night I'm getting 0x0044 or 0x0046...  0x00 could mean resting.

I'd just like to confirm that it has not changed with newer firmware? or that others are reading it ok.

classic 150 rev 4
firmware 2079

I've had no problems reading other registers such as voltage and current.

Thanks in advance.
Rob

WillEert

When I developed the need to get this data I used Dgd's method. The MSB needs to be shifted to the right 8 places and then read. David's code has examples of how this works in his sketches.

Will
(1)24 ET 185 mono, Classic 150,8x Surrette 6CS25p, 4x Magnum 4448, homecooked diversion system;(2)15 Heliene 330 mono,Classic 150;(3)2X6 Hansol345mono, 2 stand alone Hotspot ACDC12C Minisplit heat pumps.(4)15 Hanwha Q cell 400 1/2 cell, Classic 200: (5)1X6 HanwhaQcell 400 1 Hotspot minisplit ACDC18C

robp

Thanks for your reply,  I did find dgd's program which help me confirm I was trying to do the right thing. http://kb1uas.com/mnsforum/index.php?topic=2393.0   (arduino code about half way down). 

In the end it was simple mistake on my part  I was requesting register 4121 expecting 4120 but I should I have been requesting 4119.  I knew I had to add or subtract one....

I'm now getting the hex reply 04 03 which if I just look at the high byte (04) tells me that it's in bulk mppt.

Thanks again