Bituga Posted September 28 Report Share Posted September 28 Hi I am trying to establish a Modbus client on a V700 to read from a Modbus server at: IP 10.0.60.1 Port 502 Slave ID: 1 Holding registers 100, 101, 102, 103, 104 Unfortunately, the V700 Ethernetcard never reaches to connect any socket to the slave (see attached Visilogic-file). Can anybody tell me, what I am doing wrong? Kind regards Stefan 230928 V9891 V700 Modbus Client.vlp Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted September 28 Report Share Posted September 28 Server (IP 10.0.60.1, as per your wrote) and client (IP 10.60.1.3) are in different networks. Why do you set mask to 255.255.255.240? It limits devices the PLC can talk to. In your code, Port 2 are set to wrong port number, should be 502. Quote Link to comment Share on other sites More sharing options...
Bituga Posted October 4 Author Report Share Posted October 4 Hi Gabriel Thank you for your checks: The IP was correct, I just wrote it the wrong way in my post. I set the mask to 255.255.255.0 and Port 2 to port number 502 and now it works. There was an other problem with the server to, so all together solved the problem! 👍 Kind regards Stefan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.