8.2.7 FB/SFB 8 - USEND - Uncoordinated data transmission
FB/SFB 8 USEND may be used to transmit data to a remote partner FB/SFB of the type
URCV (FB/SFB 9). You must ensure that parameter R_ID of both FB/SFBs is identical.
The transmission is started by a positive edge at control input REQ and proceeds without
coordination with the partner FB/SFB.
Depending upon communication function the following behavior is present:
n Siemens S7-300 Communication (FB 8)
– The data is sent on a rising edge at REQ. The parameters R_ID, ID and SD_1 are
transferred on each rising edge at REQ. After a job has been completed, you can
assign new values to the R_ID, ID and SD_1 parameters.
n Siemens S7-400 Communication (SFB 8)
– The data is sent on a rising edge at REQ. The data to be sent is referenced by
the parameters SD_1 ... SD_4 but not all four send parameters need to be used.
Parameters
Parameter Declaration Data type Memory
block
Description
REQ INPUT BOOL I, Q, M, D, L Control parameter request, activates the exchange of
data when a rising edge is applied (with respect to
the most recent FB/SFB-call)
ID INPUT WORD I, Q, M, D,
constant
Connection reference. The ID must be specified in
the form wxyzh.
R_ID INPUT DWORD I, Q, M, D,
constant
Addressing parameter R_ID. Format
DW#16#wxyzWXYZ.
DONE OUTPUT BOOL I, Q, M, D, L Status parameter DONE:
n 0: task has not been started or it is still being exe-
cuted.
n 1: task was executed without error.
ERROR OUTPUT BOOL I, Q, M, D, L Status parameter ERROR:
n ERROR = 0 + STATUS = 0000h
– No warnings or errors
n ERROR = 0 + STATUS unequal to 0000h
– A Warning has occurred. STATUS contains
detailed information.
n ERROR = 1
– An error has occurred.
STATUS OUTPUT WORD I, Q, M, D, L Status parameter STATUS, returns detailed informa-
tion about the type of error.
SD_i,1≤ i ≤4 IN_OUT ANY I, Q, M, D, T,
C
Pointer to transmit buffer i..
Only data type BOOL is valid (Bit field not permitted),
BYTE, CHAR, WORD, INT, DWORD, DINT, REAL,
DATE, TOD, TIME, S5TIME, DATE_AND_TIME,
COUNTER, TIMER.
Description
VIPA SPEED7
Network Communication
Ethernet Communication > FB/SFB 8 - USEND - Uncoordinated data transmission
HB00 | OPL_SP7 | Operation list | en | 18-30 154