cataliz3er Posted November 4, 2016 Report Share Posted November 4, 2016 Hey guys, I'm using the following piece of code to connect to a Vsision V570 PLC. public void Connect(string ip) { try { var ethernet = new Ethernet(ip, 20257, EthProtocol.TCP, 3, 3000); PLC = PLCFactory.GetPLC(ethernet, 1); PLC.SetExecuter(Unitronics.ComDriver.OperandsExecuterType.ExecuterPartialBinaryMix); Debug.WriteLine($"Connection successfull"); } catch (Exception ex) { throw; } } 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 192.168.1.210:20257 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 More sharing options...
MVP 2023 Joe Tauser Posted November 4, 2016 MVP 2023 Report Share Posted November 4, 2016 Set SI 101 to 10. Joe T. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now