Communication
11.2 PROFINET
S7-1200 Programmable controller
878 System Manual, V4.2, 09/2016, A5E02486680-AK
T_RESET (Terminate and re-establish an existing connection) instruction
The "T_RESET" instruction terminates and then re-establishes an existing connection:
Table 11- 34 T_RESET instruction
req:=_bool_in_,
id:=_word_in_,
done=>_bool_out_,
error=>_bool_out_,
sta-
tus=>_word_out_);
Use the T_RESET instruction to terminate and
then re-establish an existing connection.
The local end points of the connection are retained. They are generated automatically:
● If a connection has been configured and loaded to the CPU.
● If a connection has been generated by the user program, for example, by calling the
instruction "TCON (Page 857)".
The "T_RESET" instruction can be executed for all connection types regardless of whether
the local interface of the CPU or the interface of a CM/CP was used for the connection. An
exception to this is connections for data transfer in ad-hoc mode with TCP, as such
connections cannot be referenced with a connection ID.
Once the instruction "T_RESET" has been called using the REQ parameter, the connection
specified with the ID parameter is terminated and, if necessary, the data send and receive
buffer cleared. Canceling the connection also cancels any data transfer in progress. There is
therefore a risk of losing data if data transfer is in progress. The CPU defined as the active
connection partner will then automatically attempt to restore the interrupted communication
connection. You therefore do not need to call the "TCON (Page 857)" instruction to re-
establish the communication connection.
The output parameters DONE, BUSY, and STATUS indicate the status of the job.