14.2.8 FB/SFB 13 - BRCV - Receiving data in blocks
The FB/SFB 13 BRCV can receive data from a remote partner FB/SFB of the type
BSEND (FB/SFB 12). The parameter R_ID of both FB/SFBs must be identical. After each
received data segment an acknowledgment is sent to the partner FB/SFB and the LEN
parameter is updated.
Please note that this block calls the FC or SFC 203 AG_BRCV internally.
These must not be overwritten! The direct call of an internal block leads
to errors in the corresponding instance DB!
Depending upon communication function the following behavior is present:
n Siemens S7-300 Communication (FB 13)
– The parameters R_ID, ID and RD_1 are applied with every positive edge on
EN_R. After a job has been completed, you can assign new values to the R_ID,
ID and RD_1 parameters. For the transmission of segmented data the block must
be called periodically in the user program.
n Siemens S7-400 Communication (SFB 13)
– Receipt of the data from the user memory is carried out asynchronously to the
processing of the user program.
Parameters
Parameter Declaration Data type Memory block Description
EN_R INPUT BOOL I, Q, M, D, L,
constant
control parameter enabled to receive, indicates
that the partner is ready for reception
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
NDR OUTPUT BOOL I, Q, M, D, L Status parameter NDR: new data accepted.
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 ,T, C Status parameter STATUS, returns detailed infor-
mation about the type of error.
RD_1 IN_OUT ANY I, Q, M, D ,T, C Pointer to the receive data buffer. The length
specifies the maximum length for the block that
must be received. 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 Length of the data that has already been received.
Description
VIPA SPEED7
Integrated Standard
System Function Blocks > FB/SFB 13 - BRCV - Receiving data in blocks
HB00 | OPL_SP7 | Operation list | en | 18-30 740