Program instructions   
7.3 Communication 
  S7-200 SMART 
220  System Manual, V2.3, 07/2017, A5E03822230-AF 
 
The following tables contain the format and definitions for the TCON instruction. Refer to 
"OUC instruction error codes" (Page 228) for the error code listing. Refer to "Ports and 
TSAPs" (Page 419) for port number restrictions and further information: 
●  Status: The first byte of the table returns the status of the operation to the user. The OUC 
instructions ignore the value of the status byte as an input. The status byte is valid on the 
return of the instruction. These are the status bit definitions: 
–  D = Done (Complete) 
–  A = Active (In progress, in other words, Busy) 
–  E = Error (Complete with error) 
–  Error Code 
If there is an error, the Done and Error bits are both set. The error codes are listed in 
"OUC instruction error codes" (Page 228). 
●  REQ: You use the REQ bit to initiate a new operation. The REQ bit is a level-triggered 
value. Your program code must provide the one shot operation if required (a positive 
edge contact). If the operation is not busy, a REQ value of TRUE initiates a new 
operation. For example, if there is not currently a TSEND instruction in progress, a TRUE 
value in the REQ bit causes the program to initiate a new TSEND instruction operation. 
●  Connection ID: The Connection ID is a 16-bit value that you select to pass into the 
function. The range is 0 to 65534 (65535 is reserved). The Connection ID parameter is an 
input to the OUC instructions. The TSEND, TRECV, and TDCON instructions use the 
Connection ID that you select for the TCON instruction as a reference.