Fins Tcp端口連接驗證報文,只能發(fā)送一次,發(fā)送兩次雖然也會收到反饋,但是端口很快會關閉,通訊中斷,細節(jié)如下:
10:07:28.487 :TCP client socket close! //socket關閉
10:07:28.458 :TCP socket TCPClient is being closed!error code 0. //通訊錯誤,Socket被關閉
10:07:22.449 :TCP rcv from socket TCPClient //收到反饋
10:07:22.443 :TCP socket TCPClient Send OK! //向192.168.1.15發(fā)送數(shù)據(jù)成功
10:07:09.551 :TCP rcv from socket TCPClient //收到反饋
10:07:09.550 :TCP socket TCPClient Send OK! //向192.168.1.15發(fā)送數(shù)據(jù)成功
10:07:02.205 :TCP client connected to 192.168.1.15:9600! // 調(diào)試助手連接到IP是192.168.1.15的PLC
10:07:01.193 :TCP client connectting 192.168.1.15(192.168.1.15):9600... //與192.168.1.15建立連接
10:07:01.190 :TCP client socket create OK! // socket 創(chuàng)建