Sign in to follow this  
Followers 0
kyyim

CJ1W-ETN21 Socket Service TCP port cannot reconnect after disconnection

2 posts in this topic

Encounter 2 problems with CJ1W-ETN21 Socket Service. 1) CJ1W-ETN21 works as a Server, and communicate with a remote device (Client). Normal open port, sending/receiving data is ok. But once there is a disconnection detected (such as cable disconnect). TCP Connection Open Flag still show Connected. But my program will get to detect and I will close the TCP port, then Connection Status show 00000006 (FIN Wait1). I could only re-open the port after 8 minute. 2) CJ1W-ETN21 works as a Client, and communicate with 2 remote devices (Linux and Vision Controller). I could only re-open the port to both devices one after 1 minute, and another one after 15 minutes. Does anyone know how to reduce the reconnection waiting time? Thanks. Edited by kyyim

Share this post


Link to post
Share on other sites
Hi, you have to put ON the "linger" bit in the Keep alive definition during TCP open. FBs do not accept the linger bit, you have to modify the FBs. Harald P.S. nobody likes resetting the whole unit.

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