Table 11- 21 Data types for the parameters of TCON and TDISCON
Parameter
Declaration
REQ
IN
ID
IN
CONNECT
IN_OUT
(TCON)
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
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.
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
Data type
Bool
CONN_OUC (Word)
VARIANT
Bool
Bool
Bool
Word
Description
Starts the job to establish the connection specified in the ID
upon a rising edge.
Reference to the assigned connection.
Range of values: W#16#0001 to W#16#0FFF
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).
Status parameter with the following values:
0: Job not yet started or still in progress
•
1: Job executed without errors
•
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
•
Status parameter ERROR:
0: No error
•
1: Error occurred
•
Status of the instruction
Communication
11.2 PROFINET
859
Need help?
Do you have a question about the SIMATIC S7-1200 and is the answer not in the manual?