Socket Communication Between S7 PLC and another PC Running Visual Basic Application

J

Thread Starter

jeet

According to the information I downloaded from the siemens website and S7 help (Please refer to attached file "HELP Socket.doc").

I create my own VB program to open port 8101 and I successfully get connection from PLC (connection status 'established' display in NETPRO when I online). Then I tried using AG_LSEND and AG_LRECV from PLC. To send / received data from my VB application. It's never successful , even though both of the party display socket status "connection established" (Please refer to attached file "Socket Communication between VB and S7315.doc")

What I want to achieve is direct socket communication between PLC and Computer, please advise. I don't know whether I'm on the right track?

thanks

best regards jeet
 
Top