How do you program the TSEND_C and TRCV_C instructions for open user communication over the integrated PROFINET interface of the S7-1200/S7-1500 CPU?
In STEP 7 (TIA Portal) you will find the TSEND_C and TRECV_C instructions in the "Instructions" task card in the "Communication > Open User Communication" palette.
|TSEND_C||The TSEND_C instruction is executed asynchronously and has the functions below:
|TRCV_C||The TRCV_C instruction is executed asynchronously and has the functions below:
The following protocols are supported for this:
Description of the sample program
The S7 program contains the call of the "TSEND_C" and "TRCV_C" instructions and the parameterization of two ISO-on-TCP connections for data exchange between an S7-1200 CPU and an S7-1500 CPU. The connection parameters for establishing the ISO-on-TCP connection are saved in the "General Data" data block.
The document below describes the program example for the S7-1200 CPU.
The download includes the project "Ouc_S7-1200_S7-1500.zip".
Copy the "Ouc_S7-1200_S7-1500.zip" file into a separate directory and then start the file with a double-click. You then use STEP 7 to open and process the unpacked project data.
Detailed information about the TSEND_C and TRCV_C instructions and about the parameterization of the communication connection for open user communication is available in the manuals below.
|STEP 7 Basic/Professional V15.1 and SIMATIC WinCC V15.1||109755202|
|SIMATIC S7 S7-1200 Automation System||109741593|
Creation EnvironmentThe screens and downloads in this FAQ response were created with STEP 7 (TIA Portal) V15.