Fins Tcp端口连接验证报文,只能发送一次,发送两次虽然也会收到反馈,但是端口很快会关闭,通讯中断,细节如下:
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发送数据成功
10:07:09.551 :TCP rcv from socket TCPClient //收到反馈
10:07:09.550 :TCP socket TCPClient Send OK! //向192.168.1.15发送数据成功
10:07:02.205 :TCP client connected to 192.168.1.15:9600! // 调试助手连接到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 创建