Parameter Declaration Data type Memory block Description
ID INPUT WORD I, Q, M, D,
constant
A reference for the connection.
Format W#16#xxxx
R_ID INPUT DWORD I, Q, M, D, L,
constant
Address parameter R_ID.
Format DW#16#wxyzWXYZ.
DONE OUTPUT BOOL I, Q, M, D, L Status parameter DONE:
0: task has not been started or is still being exe-
cuted.
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 con-
tains detailed information.
n ERROR = 1
– An error has occurred.
STATUS OUTPUT WORD I, Q, M, D, L Status parameter STATUS, returns detailed infor-
mation about the type of error.
SD_1 IN_OUT ANY I, Q, M, D, T, C Pointer to the send data buffer. The length param-
eter is only utilized when the block is called for the
first time after a start. It specifies the maximum
length of the send buffer. 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.
LEN IN_OUT WORD I, Q, M, D, L The length of the send data block in bytes.
Error information
ERROR STATUS (dec-
imal)
Description
0 11 Warning: the new task is not active since the previous task has not completed.
0 25 The communication process was initiated. The task is being processed.
1 1 Communication failures, e.g.:
n Connection parameters not loaded (local or remote)
n Connection interrupted (e.g. cable, CPU turned off, CP in STOP)
1 2 Negative acknowledgment received from the partner FB/SFB. The function cannot be
executed.
1 3 R_ID is not available to the communication link specified by ID or the receive block
has never been called.
1 4 Error in send buffer pointer SD_1 with respect to the length or the data type, or
parameter LEN was set to 0
or an error has occurred in the receive data buffer pointer RD_1 of the respective
FB/SFB 13 BRCV
VIPA SPEED7
Network Communication
Ethernet Communication > FB/SFB 12 - BSEND - Sending data in blocks
HB00 | OPL_SP7 | Operation list | en | 18-30 159