118 Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
• Every bit of the socket becomes "0" when the TCP close request is completed.
• The internal completion wait time limit of the S controller for this request is 15 seconds. 
If the EN311 was not able to reply the completion within this time limit, the following 
error is returned.
Error status:  Send completion timeout ••• 5002(16#EC76)
In this case, first verify that the module is not in the down state by checking the station 
status, and then verify the open/closed state of the socket with the socket status.
When ending the connection from the EN311
• The EN311 which has received the close request of the S controller waits 10 seconds 
after sending the end request to the remote station waits for the end request (TCP 
level) of the remote station side. 
• If there is the end request of the remote station side during the wait time, the EN311 
performs the own-station close processing.
• If the wait time is up, the EN311 performs the own-station close processing.
• The open request should be issued after waiting at least 20 seconds to open again 
with the same port number even the S controller completed the close request. If the 
open request is issued within 20 seconds using the same port number, the following 
error is returned.
Error status:   Already open •••2944(16#B80) or
Error status:   LAN controller driver error ••• 2960(16#B90)/2962(16#B92)
• When the remote station sends the end request after more than 10 seconds have 
elapsed since the EN311 sent the end request to the remote station, the EN311 
responds with "Reset packet (the TCP packet with it's reset bit is set to ON): Used to 
force the disconnection".
When ending the connection from the remote
• When ending the connection form the remote station, the local station should also 
close the socket. User programs should monitor the RCLOSE and CONN bits in the 
socket status (see section 6.3, "Socket Interface Information"). RCLOSE is set to 1 
and CONN is set to 0 when a close request is received from the remote station.
•  When ending the connection form the remote station, the open request should be 
issued after waiting at least 10 seconds to open again with the same port number even 
the S controller completed the close request. 
If the open request is issued within 10 seconds using the same port number, the 
following error is returned.
Error status:   LAN controller driver error ••• 2960(16#B90)/2962(16#B92)