I'm wondering if any of you had used a tcp connection with a printer & TSEND_C and TRCV_C blocks in TIA Portal. I need some advices to print a custom label with a logo, a barcode and some text.
You are not giving much away here. One thing to consider is that you only need to use one of the _C blocks depending on whether you are running a client or a server. To create a client you use TSEND_C to connect to the client and TRCV to service incoming data.
For a server configure TRCV_C to incoming accept connections and TSEND to reply.
For a printer you are connecting to a server so you use a TSEND_C to connect and TRCV to get responses.