question

miketuk avatar image

Start generator via ModBusTCP on Quattro

Hi

Is it possible to start/stop the generator on a Quattro using ModbusTCP? It looks like this is register 3223 from the spreadsheet (CCGX-Modbus-TCP-register-list-2.23.xlsx) , but I have no idea which id this corresponds to and they all fail. It is listed as com.victronenergy.genset in the dbus-service-name.

I am using ModbusTcpClient on a local Raspberry Pi to do this from Python.

Thanks

Mike


Modbus TCP
1556727337074.png (1.1 KiB)
10 |3000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
uniport avatar image
uniport answered ·

Hi @mvader (Victron Energy Staff)

If we use the relay in the GX to start/stop the generator, when the Quattro requests power, will that trigger the relay in the GX?


1 comment Share
10 |3000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

That depends on the settings, please see our generator start/stop manual. And, your question is not related to ModbusTCP, or is it? In that case, if you have more questions, please ask a new question; and then community can help you.

Success!

mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Hi, this depends on how you’ve wired the generator; its not possible to control the relay inside the Quattro, using ModbusTCP


But, if you’re using the generator start/stop mechanism in your GX device, and have the generator wired there as well, then you can do it via ModbusTCP.

4 comments Share
10 |3000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Hey there mvader,

I've got an RPi 3 B+ running Venus OS v2.30~45 (really awesome, btw, I'll probably end up buying a real Venus GX now that I've used it). I've got a MPPT 150/85 and BMV-712 on USB, all working great.

I'm using OpenHAB2 for some things, and I can toggle the relay via modbus TCP from OH if I write to register 806 (in com.victronenergy.system), but the relay has to be in manual mode on the Venus. If I switch the relay mode to Generator Start/Stop, I can only monitor the relay from OH, writing to 806 register doesn't stick, it just toggles back to 0.

So, probably like the OP Mike, I figured maybe I would need to use the com.victronenergy.genset registers instead after switching the relay to Generator Start/Stop. However, I've got the same problem, I can't find these addresses in Modbus, I don't know what UnitID to map.

Any help would be appreciated.

Hi @questvent, it sounds like we don't have those registers com.victronenergy.genset registers mapped on the ModbusTCP interface.

If you search Google, you can find dbus modbustcp repository, in it attributes.csv, which is also on your Venus OS. From then on you'll have to do without my help I'm afraid. I'd like to help more, but need to do some other things. Sorry.


questvent avatar image questvent mvader (Victron Energy) ♦♦ ·

It gives me a place to start, thanks for your time.

Just wondered if you had any luck with this ?