TCP_Client

FrankArnesen

Member
Join Date
Feb 2017
Location
Norway
Posts
2
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:
 
Thank you for replying.
I am waiting to get acceptance to use the CoDeSys forum. While I waited I posted it here. I have already read the link you posted, wich got me nowhere. My first attempt to apply the program to the PLC failed like firework. It could not even create the socket. I was wondering if anyone knows if AC500 supports SysSockets or not ?

Thanks
 

Similar Topics

Hi Friends, I have an upcoming project were I need 20 pcs of ModBus TCP Clients / AOI. to control 10 devices I use 20 transactions to control 10...
Replies
4
Views
735
I'm trying to talk Modbus TCP/IP from a redundant system using Lan 2 inthe CPE330's to a CPU310 using ETM001. I've had the system talking before...
Replies
17
Views
2,368
So I am working on a project and I am having problems trying to get this all to work. I had it working but lately I have been getting a fault on...
Replies
13
Views
4,828
Good Afternoon , I have a project coming up for a labeler and a CompactLogix PLC . The communication for this labeler is Modbus / TCP ...
Replies
1
Views
2,319
ASCII TCP Client I need to put a mark on devices with ASCII TCP communication to recognize that the command has been completed. The device I...
Replies
1
Views
976
Back
Top Bottom