Chapter 6 Applied Instructions 8. If a UDP socket is closed, and no error occurs after the instruction is executed, the flag for started connection is OFF. If an error occurs, the error flag is ON. 9. In general, the pulse SCLOSEP instruction is used. Example Refer to the example for the SOPEN instruction (API 2200). Additional remarks 1. The following table lists the TCP connection errors. 2. The following table explains UDP connection errors.
6-701 TCP Socket Number Connection Closed Error Flag 3 SM1290 SM1293 4 SM1298 SM1301 UDP Socket Number Error Flag 1 SM1338 2 SM1343 3 SM1348 4 SM1353 6 6 _ Error Code Error Flag Description 16#2003 SM0 S1 or S2 exceeds the range 16#600D SM1100 Ethernet network not connected 16#6212 TCP Socket error flag TCP Socket communication timeout 16#6214 TCP Socket error flag TCP Socket connection rejected by remote device 16#621A TCP Socket error flag Disabling TCP Socket connection triggered Error Code Error Flag Description 16#2003 SM0 S1 or S2 exceeds the range 16#600D SM1100 Ethernet network not connected 16#621A UDP Socket error flag Disabling UDP Socket connection triggered