A Forum run by Enthusiasts of MidNite Solar

MidNite Solar Monitoring software and hardware => MidNite Monitoring FAQ'S => Topic started by: Frenergy on October 26, 2021, 11:31:21 AM

Title: Modbus registers list
Post by: Frenergy 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.
Title: Re: Modbus registers list
Post by: ClassicCrazy 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
Title: Re: Modbus registers list
Post by: Graham 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 (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
Title: Re: Modbus registers list
Post by: LWTP 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
Title: Re: Modbus registers list
Post by: ClassicCrazy on January 11, 2022, 02:02:36 PM
Quote from: LWTP 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
Reading it via serial or ip ?
Larry
Title: Re: Modbus registers list
Post by: LWTP 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.     
Title: Re: Modbus registers list
Post by: ClassicCrazy on January 12, 2022, 11:25:58 PM
Quote from: LWTP 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.   
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