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?

Thanks

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
Ajay

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?

Br

1 Like

Yes I finally ended up doing that

Did you raise an issue on the repo? The author may not realise this is happening. Would be good for the community if this was fixed.

Hello @Steve-Mcl

I havent raised an issue on the repo. I used the modbus flex and that worked so didn't come back to this node. Will raise this on the repo. Thanks for the note !

AJ