Technical data

Table Of Contents
Communication SFCs for Non-Configured S7 Connections
System Software for S7-300/400 System and Standard Functions - Volume 2/2
22-16
A5E00739858-01
22.7 Aborting an Existing Connection to a Communication
Partner outside the Local S7 Station with SFC 69
"X_ABORT"
Description
With SFC 69 "X_ABORT," you terminate a connection that was established by
SFCs X_SEND, X_GET or X_PUT to a communication partner that is not in the
same local S7 station. If the job belonging to X_SEND, X_GET or X_PUT is
completed (BUSY = 0), the connection resources used at both ends are released
after SFC 69 "X_ABORT" is called. If the job belonging to X_SEND, X_GET or
X_PUT is not yet completed (BUSY = 1), call the relevant SFC again with REQ = 0
and CONT = 0 after the connection has been aborted and then wait for BUSY = 0.
Only then are all the connection resources released again. You can only call SFC
69 "X_ABORT" at the end where the SFCs "X_SEND," "X_PUT" or "X_GET" are
located. The connection abort is activated by calling the SFC with REQ=1.
Parameter Declaration Data Type Memory Area Description
REQ INPUT BOOL I, Q, M, D, L,
constant
Control parameter "request to activate," see
Common Parameters of the Communication
SFCs
DEST_ID INPUT WORD I, Q, M, D, L,
constant
Address parameter "destination ID." This
contains the MPI address of the
communication partner. You configured this
with STEP 7.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is being
executed, the return value contains the
corresponding error code.
BUSY OUTPUT BOOL I, Q, M, D, L BUSY=1: The connection abort is not yet
completed.
BUSY=0: the connection abort is completed.
Changing to the STOP Mode
If the CPU changes to the STOP mode, the connection abort started with SFC 69
"X_ABORT" is completed.
Communication Partner Changes to the STOP Mode
If the CPU of the communication partner changes to the STOP mode, this does not
affect the connection abort with SFC 69 "X_ABORT." The connection is terminated.
Error Information
See Error Information of the Communication SFCs for Non-Configured S7
Connections and Evaluating Errors with Output Parameter RET_VAL