Interpreting data read from Register 4120 via pymodbus

Started by greydove, April 25, 2015, 11:50:19 AM

Previous topic - Next topic

greydove

I've been reading data from my Classic 250V (rev 4) with pymodbus and dumping the data into a mysql database.  I'd like to interpret the data I'm getting from register 4120 (which I pull by accessing register 4121), but the data I'm getting doesn't make sense based on the data in http://www.midnitesolar.com/pdfs/classic_register_map_Rev-B3-May-28-2013.pdf.

For instance, right now, I'm getting the value 336.  My current power is 39,  My battery Voltage is at 12.5.  If I look at it from the little android app, it says "Max power point tracking until absorb voltage reached".  I've seen the forum listing talking about newmodbus where they get:

4120 1027 (0x403) 

If I interpret the 336 I'm getting currently as 0x336 then another app should interpret it as "Regulating battery voltage at Equalize Set point" which I don't think makes sense.  I should be seeing something like 436, not 336.

If I interpret the 336 as a decimal number which translates to 0x150, then the Battery Charge State is value 1 which isn't in the table.

On the charge controller, I'm sitting at the following firmware versions:

Firmware:     
- Classic Rev: 1181
- Network Rev: 1122

I'm using the following in my program:
client = ModbusTcpClient(IP Of My Charge Controller)
base = 4114
rq = client.read_holding_registers(base,40)
ChargeState = rq.registers[4121-base]


Does anyone have any suggestions on how to interpret the data I'm getting from this register using pymodbus?

Westbranch

Hi Greydove,  you ill probably have to wait for one of the modbus gurus from down-under to wake up, ~ 12 hrs off PST ...

In the mean time you could update the FW to 1839 (network)/1849(Classic)

cheers
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

dgd

In that modbus PDF at table 4120-1  Battery Charge Stage, the text part for Name=ABSORB Value=3 should say
Regulating battery voltage at ABSORB set point
instead of
Regulating battery voltage at EQUALIZE set point

Little documentation errors like this are sprinkled throughout this pdf.

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

boB

Quote from: dgd on April 25, 2015, 08:40:18 PM
In that modbus PDF at table 4120-1  Battery Charge Stage, the text part for Name=ABSORB Value=3 should say
Regulating battery voltage at ABSORB set point
instead of
Regulating battery voltage at EQUALIZE set point

Little documentation errors like this are sprinkled throughout this pdf.

dgd


OK, well, that's an easy one to fix.

You have more like that, DGD ?



K7IQ 🌛  He/She/Me