remote controlling an AUX of the Classic via LAN ?

Started by binkino, October 13, 2017, 02:54:33 PM

Previous topic - Next topic

binkino

... again me and my ideas :D



Is there a way to remote controll an AUX output in the Classic over ethernet, by a command line?
Otherwise I allways have to open the LA, go to the AUX settings, change state there...


I want to control the big relais between grid and inverter (if battery volts are below 47v, it switches over to grid, so batteries are not discharged below critical %)

But I also want to control this relais manually.

Can I send a command over ethernet, that sends something like "change/set state of AUX1 to ON" ( / OFF) ?

Telnet possible ...  or a clean command line in CLI in Linux or DOS-Box in Windos ?



After I rebuild the system, when I get the new batteries, I didn't install this again.
Before, I set a voltage range, when the Classic disconnects the inverter from grid (then it acts like a UPS)
and sometimes I had to open the LA and change this manually.


May be, one day I buy a inverter with ethernet interface; but so long, as they are not that cheap, this inverter must do its job.
I also miss a feedback way from the interter, that shows me the state, if it is on grid or on battery.
Soon I will open it and look for the big big relais, or what they use, and try to get a status from this, feed back to the classic to an AUX :D So I can see the status.
So long, I fixes now an old smartphone in front of the "grid energy counter" , so I have one way, to see it.
If the disc runs, I know I use power from grid :D
(image in attachment)
PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

ClassicCrazy

I would think you could do it with modbus commands .

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

binkino

PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

atop8918

Hi, binkino,
You'll need a command line modbus interface -- here's one, though I haven't used it myself:

https://github.com/tallakt/modbus-cli

Looks like you'll need ruby installed.

Once it's built and installed you should be able to do the following:

modbus write <IP of Classic> <HR Offset> [reg values]

In the case of the Classic Aux:

modbus write <IP of classic> %MW4165 [Aux1&2 value]

The Aux 1& 2 value is complicated, you'll have to look at the table in the manual to set it to exactly what you want (Table 4165-1,2,3,4):
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

For example, to set the aux1 to off and leave aux 2 on auto WBJr you would write:
modbus write <IP of classic> %MW4165 20993

             
0x5201 = 01 010010  00 000000
01=aux2 auto
010010 = aux2 function18 (WBJr)
00 = aux1 off
000001 = aux1 function1 (Diversion)






atop8918


binkino

PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php