question

Danakil avatar image
Danakil asked

Venus: TCP/modBus request set-up

Hi everyone,

Is there by any chance, a possible way to use the Venus GX as a TCP/modbus master and get these informations on remote ?

Indeed, and ideally, I wish to use the Venus to get information from a another device over TCP/modbus, I got the register table and tested it, all good.

There's 2 choices:

  • I can modify and use the registers already set-up but not used (for example the genset), which means I need to go deep into the program, cross-compile it again, make sure the upgrade doesn't overwrite it, check the upload on the VRM, test it for a while and bother Victron Staff because it doesn't work on the first tries...
  • OR there's a much easier way that I don't know and will save me weeks of work ?


Thanks in advance.


Best regards,


Nicolas M

Venus OSsoftwareTCP IP Networking
2 |3000

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

2 Answers
Pat Davitt avatar image
Pat Davitt answered ·

From other posts on this forum and the developers group on Google, it appears that Victron is working on a number of enhancements to the I/O and Communications capabilities of the Venus OS. I agree with you that doing customization's of the Venus OS is not a good idea for production systems, especially if they are used in a Customer install. It would be a maintenance nightmare.

Might be a good idea to wait and see what Victron comes up with.

There is another way, but it is fairly complex and not very practical. Build an Industrial Automation, PLC based add-on system. I built one mainly for Test and Evaluation purposes using Modbus TCP as the communications protocol between the Venus device and the PLC. Design schematic is below.

Pat


2 comments
2 |3000

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

Craig Myatt avatar image Craig Myatt commented ·

I am doing this at the moment, with an IA Mduino...still going through programming, have not yet started accessing Venus registers via Modbus. There is some big advantages, the main one being that the PLC can effectively be programmed to do what I want it to do with sensors, while getting the data from the VenusGX about Multiplus/charger status, as needed. I am also creating an HTML dashboard, with some success...although I also looked at Node-Red.

0 Likes 0 ·
Pat Davitt avatar image Pat Davitt Craig Myatt commented ·

Check to see if your PLC is 0 based or 1 based for querying ModBus register addresses. I had to add a 1 to Victron's published registry addresses to get the correct data.

Other than that it's a piece of cake.

Pat

0 Likes 0 ·
Danakil avatar image
Danakil answered ·

Hi Pat,

You use your PLC as the master and get your system's information from the CCGX, don't you ? Can you still use the VRM portal ?

That's kinda what I used to do in my precedent job, but we had our own remote management system. But now, I want/have to keep the VRM.


By the way, nice set-up ;)


5 comments
2 |3000

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

Pat Davitt avatar image Pat Davitt commented ·

Yes, as long as your Router/Firewall allows the Venus device to connect to the Internet, VRM will function normally. You won't, however, have any of the PLC information on VRM.

Pat

0 Likes 0 ·
Show more comments

Related Resources

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Additional resources still need to be added for this topic