Kieran B Posted May 24, 2016 Report Share Posted May 24, 2016 Hi I am using this software for a company to keep tabs on a remote PLC we have just had the issue where someone has left there computer connected on remote operator and so no one else can check on it, also used a bit of data, Is it possible to have a maximum connection time either in the Remote program or something I could add at the PLC end? Any ideas would be appreciated Kieran Link to comment Share on other sites More sharing options...
Saragani Posted May 25, 2016 Report Share Posted May 25, 2016 There isn't such a feature in remote operator. My best idea of doing it with ladder would be: On each scan check the status of the socket that is used for connecting to the PLC. Also have another operand that saves the status on the previous scan. If old status was not "Connected" and new status is "Connected", then save the current time (UTC) in another operand. If old status and new status are both "Connected" and current time - saved connection time is equals or greater than, for example 30 minutes, then close the connection. On the end of each cycle, set old status = new status When closing the connection, you should close it for enough time for remote operator to fail (It has retries and timeout) Link to comment Share on other sites More sharing options...
Kieran B Posted May 25, 2016 Author Report Share Posted May 25, 2016 There isn't such a feature in remote operator. My best idea of doing it with ladder would be: On each scan check the status of the socket that is used for connecting to the PLC. Also have another operand that saves the status on the previous scan. If old status was not "Connected" and new status is "Connected", then save the current time (UTC) in another operand. If old status and new status are both "Connected" and current time - saved connection time is equals or greater than, for example 30 minutes, then close the connection. On the end of each cycle, set old status = new status When closing the connection, you should close it for enough time for remote operator to fail (It has retries and timeout) Thanks for the reply. I was thinking down the same path so used the TCP close port option, after a delay had been reached using condition of SB148 socket connected status bit, then kept it closed for 30 seconds I could see in the ladder the socket was closed but remote operator was still working. Maybe I need to wait longer for the time out? I have attached the file I was testing with remote operator test file.vlp Link to comment Share on other sites More sharing options...
Kieran B Posted May 25, 2016 Author Report Share Posted May 25, 2016 Well I don't know what was happening yesterday but today it works perfectly with a 1 min 'keep port closed timer' thanks Link to comment Share on other sites More sharing options...
Saragani Posted May 26, 2016 Report Share Posted May 26, 2016 You can email our support and also ask for this feature to be implemented in Remote Operator 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