Industry Online Support
Technical Forum
7/22/2009 8:57 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating:
|
Hello, A TCP connection can normally be used bidirectional. You tell us that you are able to send data fromthe PLC to the PC. It seems that you don't reuse the same socket as the one is already opened by the PLCto send something back to the PLC. In your code you should add some code to find out over which socket you got the data from the PLC. You may of course opena new connection from PC to PLC. The PLC must open a port in listening mode(on agiven port). Be sure the PC tries to connect to the right port. To see what happens, install the freeware "wireshark" on the PC (see www.wireshark.org) and trace the traffic. |
Best regards |
|
Follow us on