Hide thumbs Also See for S7-1200:
Table of Contents
Parameter and type
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.
Table 10- 9
ERROR and STATUS condition codes for TCON and TDISCON
ERROR
STATUS
0
0000
0
7000
0
7001
0
7002
1
8086
1
8087
1
809B
1
80A1
1
80A2
1
80A3
1
80A4
1
80A5
1
80A7
()
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Bool
Bool
Bool
Word
Description
Connection was established successfully.
No job processing active
Start job processing; establishing connection (TCON) or terminating connection
(TDISCON)
Follow-on call (REQ irrelevant); establishing connection (TCON) or terminating
connection (TDISCON)
The ID parameter is outside the permitted address range.
TCON: Maximum number of connections reached; no additional connection possible.
TCON: The local_device_id in the connection description does not match the CPU.
TCON: Connection or port is already occupied by user.
TCON: Local or remote port is occupied by the system.
Attempt being made to re-establish an existing connection (TCON) or terminate a non-
existent connection (TDISCON).
TCON: IP address of the remote connection end point is invalid; it may match the local
IP address.
TCON: Connection ID (Page 514) is already in use.
TCON: Communications error: you executed TDISCON before TCON was complete.
TDISCON must first completely terminate the connection referenced by the ID.
Description
0: Job is not yet started or still running.
1: Job completed without error.
0: Job is completed.
1: Job is not yet completed. A new job cannot be
triggered.
Status parameters with the following values:
0: No error
1: Error occurred during processing. STATUS provides
detailed information on the type of error.
Status information including error information. (Refer to the
Error and Status condition codes in the table below.)
Communication
10.2 PROFINET
529
Table of Contents
loading

Table of Contents