Hallo, I would like to send TCP commandos via FB. I got the TCP_SOCKET connected but somehow I am not able to set the DATA input of the TCP_SEND FB.
In the help section it says DATA has datatype “ANY”. I have tried to set a string and an buffer as DATA input (also tried to connect it to the DATA output). But I always get the error message: “FBDP0001 Objekt ist nicht verbunden” → Object is not connected Clicking on the error highlights the DATA input port of the TCP_SEND FB. Connecting one String as input and an other String as output to the DATA parameter the following error is thrown:
“FBDP0012 VAR_IN_OUT-Parameter ist nicht korrekt verbunden” → parameter is not connected correctly How do i connect the String i want to send via TCP to the DATA parameter of TCP_SEND? Edit:
Ok. With a second FB-link to my String variable I was able to bind the String to the in- and outport of the TCP_SEND FB.
Now I´m able to compile. Greetings, Jimmy Pesto
Second AXC2152 Controller: The application sends the TCP-Telegram
Used datatypes:
Best Regards Eduard