Page 1 of 1
Virtual Modbus Slave and Node-Red
Posted: 15 Jun 2021, 12:59
by RobD
Hi, I read a post indicating that nodes for Node-Red where being developed to allow access to the virtual Modbus slave module's registers from Node-Red. I have not been able to find any such nodes and was wondering if this work was ever completed or is there an existing method for communicating with the virtual slave module?
Kind regards,
Rob
Re: Virtual Modbus Slave and Node-Red
Posted: 21 Jun 2021, 16:59
by dirk
Hi Rob, I took the liberty of moving your post here. This is where the experts who developed these nodes moderate.
In general, however, you can always access values from the process image by using an "exec" node.
You can then execute e.g.: "piTest -1 -q -r MyVariable" to get the value of MyVariable.
Re: Virtual Modbus Slave and Node-Red
Posted: 25 Jun 2021, 13:11
by nicolaiB
Hi Rob,
this should be possible. How does your current configuration (modbus in pictory, nodered) look like?
Nicolai
Re: Virtual Modbus Slave and Node-Red
Posted: 02 Jul 2021, 07:14
by RobD
Hi Nicolai,
I have opted for using the Modbus Server node from node-red-contrib-modbus instead of the virtual Modbus slave in Pictory. This has been working well so far.
I am currently writing data to about 70 registers and reading about 15 coils and I did not think invoking piTest was a very efficient way to do this.
Regards,
Rob
Re: Virtual Modbus Slave and Node-Red
Posted: 26 Jul 2023, 07:44
by mitchellday06
Hey i know this is some time ago, but when you say modbus are you meaning tcp of rtu? I am trying to work out the best method of connecting to a series of modbus rtu devices through node-red-contrib-modbus