ModBus TCP Client Node open many connections!

Hi all,

I have a PLC that acts as ModBus TCP Server and can manage only 1 ModBus TCP Client.

In Node Red I use the "node-red-contrib-modbustcp" library to read and write some tags (Holding register, Coil, etc) and so I use many different modbustcp-read nodes that use the same Server.

It seems that, for every modbustcp-read node, Node Red open a different connection with the Server.

In effect, PLC side, I see that first connection from Node Red is accepted and the others are refused (Node Red side only 1 modbustcp-read node is "Connected").

In Node Red I have defined only one Server.

Is it possible to force system in using only one connection?


Not sure if the author of the node hangs out here. Maybe best to raise an issue direct on that nodes repository on github.

Hello Roberto, Were you able to solve this issue ? I am facing the same issue in my implementation

If you look at the issues on the github page for the node you should be bale to see if @roberto.zeni opened an issue.

If he did you can add to it, hopefully making it easier for the author to resolve the issue.
If he didn't then you can open the issue direct with the nodes author and hopefully get it resolved.

There are also other Modbus TCP client nodes you can try

To have a temporarely solution: Can't you place all your register after each other in the PLC and then do only 1 read? The different read nodes are always different telegrams. On my suggested way you can combine all these telegrams in 1. Then you do the split in node-red.
What PLC do you have? How fast does he closes his sockets?