FrankArnesen
Member
Hi all.
I am trying to set up a TCP/IP connection between a AC500 PLC and a PC.
The program is going to be used to send an INT from the PC to the PLC. The PC part is done, using C++. The code for AC500 is implemented in Codesys v2.3. My problem is now that i am using SysLibSocket and are having an issue(for now). My SysSockBind() returns FALSE all the time. After testing in the simulator i think the problem is in SOCKADDRESS, because my sin_port and sin_Address turns out to allways be "0". Does anyone know how to solve this problem? If you need any more info or some of the code i'll gladly share:beer:
I am trying to set up a TCP/IP connection between a AC500 PLC and a PC.
The program is going to be used to send an INT from the PC to the PLC. The PC part is done, using C++. The code for AC500 is implemented in Codesys v2.3. My problem is now that i am using SysLibSocket and are having an issue(for now). My SysSockBind() returns FALSE all the time. After testing in the simulator i think the problem is in SOCKADDRESS, because my sin_port and sin_Address turns out to allways be "0". Does anyone know how to solve this problem? If you need any more info or some of the code i'll gladly share:beer: