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