A Forum run by Enthusiasts of MidNite Solar

Charge Controllers and Clippers => The "Classic" charge controller => Topic started by: jedon on October 14, 2018, 09:09:43 PM

Title: Classic 150SL following a Classic 150 Lite, Modbus output
Post by: jedon on October 14, 2018, 09:09:43 PM
I have a Classic 150 Lite that is at capacity so I need another one. I have it hooked up via ethernet and poll modbus data off it using Node-Red. If I get A 150SL that does not have ethernet but if I connect them together can I read the combined data over the ethernet off the classic lite?
Thanks,
-Jedon
Title: Re: Classic 150SL following a Classic 150 Lite, Modbus output
Post by: ClassicCrazy on October 14, 2018, 10:31:21 PM
 Jedon ,
Don't know the answer to your question but the price difference between the regular Classic and Solar is $63 .  I just looked at the SL brochure and it says it does modbus and can be paralleled with the Classic Lite. So you are wondering if it will send the data to your Lite and then you can get it via network that way ? Will be interesting to see what the answer to that question is. 

Would you be interested in sharing your Node Red flow- or at least parts of it ?
I started working on Node Red last winter but only got it talking - haven't figured out any control or monitoring yet because I am a beginner and haven't put the time into it this summer.

Larry

Title: Re: Classic 150SL following a Classic 150 Lite, Modbus output
Post by: jedon on October 15, 2018, 05:34:08 PM
Not worth the risk for $63!
Sure, I was just thinking others might be interested in that part. Not too hard, I'll work on a little tutorial.
You will need the modbustcp node

This is the code from  modbus to nodered

//[ 549, 19, 0, 94, 1027, 14, 650, 1417, 0, 46335, 20948, 0, 5381, 4380, 4100, 12800, 65326, 375, 450, 0, 600, 502, 15, 14400, 19 ]
/*
ChargeStage= [4120]MSB
Lifetime kW-Hours= (([4127] << 16) + [4126]) kWh
Infoflags = (([4131] << 16) + [4130])
FloatTimeToday= ([4138]) s
KwhToday=    ([4118]) kWh
Tbatt=   ([4132] /10) degC
Tfet=   ([4133] /10) degC
Vbatt= ([4115] /10) V
Ibatt= ([4117] /10) A
Vpv=    ([4116] /10) V
Ipv=    ([4121] /10) A
Watts= ([4119]) W
*/

var base = 4114;
var EMP = msg.payload[4131-base]/10.0

var newMsg = {
    payload: {
    BatteryVolts:msg.payload[4114-base]/10.0,
    TotalKWH:msg.payload[4117-base]/10.0,
    Watts:msg.payload[4118-base],
    AmpHours:msg.payload[4124-base]/10.0}
};
return newMsg;
Title: Re: Classic 150SL following a Classic 150 Lite, Modbus output
Post by: ClassicCrazy on October 15, 2018, 08:14:31 PM
jedon ,
Could you add your tutorial on this thread  ?
http://midniteftp.com/forum/index.php?topic=4081.0
Someone there recently asked if anyone else had gotten Node Red to work via the network - which you have.  I had mine connected via serial.

Thanks ,
Larry
Title: Re: Classic 150SL following a Classic 150 Lite, Modbus output
Post by: FNG on October 16, 2018, 08:26:58 AM
You would not be able to poll the serial port of an SL through the Ethernet port of a seperate classic, You could poll the serial port of multiple classics in follow me through one serial port but its not as easy, I agree for $63 if you are gathering Modbus over TCP/IP get a standard classic