Author Topic: Modbus registers list  (Read 624 times)

Frenergy

  • Newby
  • *
  • Posts: 4
Modbus registers list
« on: October 26, 2021, 11:31:21 AM »
I'm trying to get info from my C200 using modbus from within Node Red. I need the data so that my code can decide what to do with the load based on daily solar energy.  The latest register listing I have from Midnite is "MidNite Solar MODBUS Network Spec. Rev C.4 --- Dec 9, 2013" and it doesn't seem to be helping.  I am able to read the register values into Node Red.

For example, it tells me I can get the C200 charge state from the MSB and LSB at register 4120.  (I think this is float, absorb, bulkMPPT, etc).  When I use table 4120-1 and 2 the states I get are not the same as shown on the C200 display.

Any suggestions.

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 3109
Re: Modbus registers list
« Reply #1 on: October 26, 2021, 01:19:23 PM »
look on the open source topic on forums here.
Graham knows most of those modbus addresses and I think he discussed some recently in one of the topic there.

Larry
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Graham

  • Sr. Member
  • ****
  • Posts: 307
    • ClassicDiy
Re: Modbus registers list
« Reply #2 on: October 28, 2021, 08:19:31 AM »
My Android app uses the MSB of 4120

see https://github.com/ClassicDIY/ClassicMonitor/blob/NoMQTT/app/src/main/java/ca/farrelltonsolar/classic/ModbusTask.java

I read starting from register 4100 for 44 bytes at line 314 then grab the MSB at index 19 (which is register 4120)


Graham
« Last Edit: October 28, 2021, 08:41:39 AM by Graham »
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

LWTP

  • Newby
  • *
  • Posts: 2
Re: Modbus registers list
« Reply #3 on: January 11, 2022, 12:37:12 PM »
I am attempting to read Classic 150 ModBus registers using GE iFix 5.9 SCADA software and have a choice of MBE or IGS data readers.
So far, I only get comm errors so I was wondering if the ModBus has to be enabled in the Classic first?

Thank you,
Chris

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 3109
Re: Modbus registers list
« Reply #4 on: January 11, 2022, 02:02:36 PM »
I am attempting to read Classic 150 ModBus registers using GE iFix 5.9 SCADA software and have a choice of MBE or IGS data readers.
So far, I only get comm errors so I was wondering if the ModBus has to be enabled in the Classic first?

Thank you,
Chris
Reading it via serial or ip ?
Larry
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

LWTP

  • Newby
  • *
  • Posts: 2
Re: Modbus registers list
« Reply #5 on: January 12, 2022, 02:22:45 PM »
This would be reading by IP.      GE-iFIX is supposed to read just about anything but sure opens the door for a million different settings which all have to be perfect before data will flow.     

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 3109
Re: Modbus registers list
« Reply #6 on: January 12, 2022, 11:25:58 PM »
This would be reading by IP.      GE-iFIX is supposed to read just about anything but sure opens the door for a million different settings which all have to be perfect before data will flow.   
Only one thing can read modbus at a time over IP .
So if you have midnite Local Status App running  you can't read the modbus data with another program.
I use the Classic DIY Raspberry Pi program  that reads the classic modbus data and then converts it into MQTT and you can have as many connections as you want to the MQTT data.
Larry
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie