Communication
11.2 PROFINET
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
859
Table 11- 21 Data types for the parameters of TCON and TDISCON
REQ IN Bool Starts the job to establish the connection specified in the ID
ID IN CONN_OUC (Word) Reference to the assigned connection.
Range of values: W#16#0001 to W#16#0FFF
CONNECT
(TCON)
IN_OUT VARIANT Pointer to the connection description
• For TCP or UDP, use the structure TCON_IP_v4
For further information on TCON_IP_v4, refer to: "Pa-
rameters for the PROFINET connection" (Page 832).
• For ISO-on-TCP, use the structure TCON_IP_RFC
For further information on TCON_IP_RFC, refer to: "Pa-
rameters for the PROFINET connection" (Page 832).
DONE OUT Bool Status parameter with the following values:
• 0: Job not yet started or still in progress
• 1: Job executed without errors
BUSY OUT Bool Status parameter with the following values:
• 0: Job not yet started or already completed
• 1: Job not yet completed. A new job cannot be started
ERROR OUT Bool Status parameter ERROR:
• 0: No error
• 1: Error occurred
Status of the instruction
Both communication partners execute the TCON instruction to set up and establish the
communication connection. You use parameters to specify the active and passive
communication end point partners. After the connection is set up and established, it is
automatically maintained and monitored by the CPU.
If the connection is terminated due to a line break or due to the remote communications
partner, for example, the active partner attempts to re-establish the configured connection.
You do not have to execute TCON again.
An existing connection is terminated and the set-up connection is removed when the
TDISCON instruction is executed or when the CPU has gone into STOP mode. To set up
and re-establish the connection, you must execute TCON again.