Jump to content

TCP/IP Connection unavailable


Recommended Posts

Hey guys,

I'm using the following piece of code to connect to a Vsision V570 PLC.

public void Connect(string ip)
                var ethernet = new Ethernet(ip, 20257, EthProtocol.TCP, 3, 3000);                
                PLC = PLCFactory.GetPLC(ethernet, 1);
                Debug.WriteLine($"Connection successfull");
            catch (Exception ex)

Most of the time it works, but every now and then I get the following exception:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

SB168 is set on.

SI 103 - 106 are set to 30.

SI 107 - 110 are set to 0.

On the PLC in the Info menu > Ethernet > Parameter Summarize: Connect = YES. This leads me to think that sometimes when I close the application the connection remains on, and I have to reboot the PLC to be able to reconnect from the SCADA PC.

What should I try?

Thanks :)

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...