I am trying to make a modbus server on Node Red and have a client on a different software, Productivity Suite, access the Node Red modbus server. I believe I have my nodes on Node Red working, and my ladder logic on Productivity Suite is working. However, I can't figure out how to make the connection with the IP address, port, unit ID, etc.
The modbus library I am using for the modbus server is node-red-contrib-modbus. I am including screenshots of how I am attempting to create the TCP connection to the server. Let me know if anything looks wrong especially with how I set up the connection to the modbus server.
Is this the correct spot for me to ask this question since this also knowledge on Productivity Suite? If it is, then what I am trying to do possible, how should I go about fixing the connection issue, and what other screenshots are needed to help give more info? Thanks.
A modbus server does not connect to anything. It is the other way round, a modbus client connects to a server and reads or writes registers in the server. So is node red actually the server and productivity suite the client or the other way round? Or to put it another way do the registers reside in node red or in productivity suite, whatever that is?
Thank you for the clarification since I am still learning how to use Node Red/Modbus communications. I would do which ever works best, but I am currently trying to have Node Red be the server and have modbus clients on Productivity Suite to read/write data from the Node Red server. If I make a client on Node Red, then I can get that client to connect with the Node Red server, but it won't work for a client on Productivity Suite. I edited my post to put more clarification on my question. Does it look like I am setting up my connection incorrectly?
Please stop node-red and start it again in a command window and post here the full output you see. Copy/paste please not screenshot. It should include the Welcome to node red message.
[Edit] Is your productivity suite software capable of using MQTT? If so then use that, it would be much easier.