TCP socket server

Hello,

I tried to setup a tcp server for reciving message from a aplication on my pc. If I start up the server it says it’s connected but no data is comming in. See attached picture for more information.
image.pngThe pc is direct connexted with the plc AXC F 2152 with utp cable.

Thanks in advance!

Kind regards,
Gérôme De Wilde

The error message of the TLS_RECEIVE FB means, that the socket is closed. Please try to connect the ACTIVE Output of the socket FB to the EN_R input of the receice FB. This guarantees, that the receiving is started after the socket is open. This works for me very well.

Dear Mr. Brinkmann,

Thanks a lot for you quick response. Indeed this was the problem! Now I am trying to figure out how I can convert incoming data to a string.
Thanks a lot!

Kind regards,
Gérôme De Wilde