Sign in to follow this  
Followers 0
Van

Q: How do I know if a connection is lost or closed?

2 posts in this topic

Equipment: CJ1M-CPU12 with CJ1W-ENT21 I have successfully programmed the PLC to accept a TCP socket connection (Passive TCP) and write data to and from the PC. However, I noticed that when I disconnect the TCP port (simulating a closed/lost connection) the PLC keeps the port open and will not accept another connection. I want to monitor for a lost or closed connection so I can reset (close and reopen) the port. I know that I need to do this but I can't seem to trap the lost connection. There doesn't seem to be any documentation on lost connectivity. How do I trap for a lost or closed TCP socket connection?

Share this post


Link to post
Share on other sites
OK, I found it. My Bad. I was looking in the wrong manual. The Ethernet Units Construction of Applications (not Networks) section 6-6 has my answer.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0