Jump to content

Recommended Posts

Posted

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

Posted

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.

 

 

 

 

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.