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
A5E00739858-01
22-7
22.3 Sending Data to a Communication Partner outside the
Local S7 Station with SFC 65 "X_SEND"
Description
With SFC 65 "X_SEND," you send data to a communication partner outside the
local S7 station.
The data are received on the communication partner using SFC 66 "X_RCV."
The data is sent after calling the SFC with REQ=1.
Make sure that the send area defined by the parameter SD (on the sending CPU)
is smaller than or the same size as the receive area defined by the parameter RD
(on the communication partner). If SD is of the BOOL data type, RD must also be
BOOL.
Parameter Declaration Data Type Memory Area Description
REQ INPUT BOOL I, Q, M, D, L,
constant
Control parameter "request to activate",
refer to Common Parameters of the
Communication SFCs
CONT INPUT BOOL I, Q, M, D, L,
constant
Control parameter "continue", refer to
Common 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.
REQ_ID INPUT DWORD I, Q, M, D, L,
constant
Job identifier. This is used to identify
the data on the communication partner.
SD INPUT ANY I, Q, M, D Reference to the send area. The
following data types are allowed:
BOOL, BYTE, CHAR, WORD, INT,
DWORD, DINT, REAL, DATE, TOD,
TIME, S5TIME, DATE_AND_TIMEand
arrays of these
data types except for BOOL.
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: Sending is not yet completed.
BUSY=0: Sending is completed or no
send function active.
Data Consistency
The data are sent in a consistent state.
Error Information
See Error Information of the Communication SFCs for Non-Configured S7
Connections and Evaluating Errors with Output Parameter RET_VAL