To verify the version of a TCON, TDISCON, TSEND, or TRCV instruction in a program, you
must inspect project tree properties and not the properties of a box displayed in the program
editor. Select a project tree TCON, TDISCON, TSEND, or TRCV FB or FC instance, right-
click, select "Properties", and select the "Information" page to see the TCON, TDISCON,
TSEND, or TRCV instruction version number.
TCON, TDISCON, TSEND, and TRCV (TCP communication) instructions
Ethernet communication using TCP and ISO on TCP protocols
Note
TSEND_C and TRCV_C instructions
To help simplify the programming of PROFINET/Ethernet communication, the TSEND_C
instruction and the TRCV_C instruction combine the functionality of the TCON, TDISCON.
TSEND and TRCV instructions:
• TSEND_C combines the TCON, TDISCON and TSEND instructions.
• TRCV_C combines the TCON, TDISCON and TRCV instructions.
The following instructions control the communication process:
● TCON establishes the TCP/IP connection between the client and server (CPU) PC.
● TSEND and TRCV send and receive data.
● TDISCON breaks the connection.
The minimum size of data that you can transmit (TSEND) or receive (TRCV) is one byte; the
maximum size is 8192 bytes. TSEND does not support the transmission of data from
Boolean locations, and TRCV will not receive data into Boolean locations. For information
transferring data with these instructions, see the section on data consistency (Page 198).
TCON, TDISCON, TSEND, and TRCV operate asynchronously, which means that the job
processing extends over multiple instruction executions. For example, you start a job for
setting up and establishing a connection by executing an instruction TCON with parameter
REQ = 1. Then you use additional TCON executions to monitor the job progress and test for
job completion with parameter DONE.
The following table shows the relationships between BUSY, DONE, and ERROR. Use the
table to determine the current job status:
Table 11- 19 Interactions between the BUSY, DONE, and ERROR parameters
BUSY
DONE
1
0
0
1
0
0
0
0
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
ERROR
Description
0
The job is being processed.
0
The job successfully completed.
1
The job ended with an error. The cause of the error is output at the STATUS parame-
ter.
0
No new job assigned.
Communication
11.2 PROFINET
857