14.2.8 FB/SFB 13 - BRCV - Receiving data in blocksThe FB/SFB 13 BRCV can receive data from a remote partner FB/SFB of the typeBSEND (FB/SFB 12). The parameter R_ID of both FB/SFBs must be identical. After eachreceived data segment an acknowledgment is sent to the partner FB/SFB and the LENparameter 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 leadsto 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 onEN_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 mustbe 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 theprocessing of the user program.ParametersParameter Declaration Data type Memory block DescriptionEN_R INPUT BOOL I, Q, M, D, L,constantcontrol parameter enabled to receive, indicatesthat the partner is ready for receptionID INPUT WORD I, Q, M, D,constantA reference for the connection.Format: W#16#xxxxR_ID INPUT DWORD I, Q ,M, D, L,constantAddress parameter R_ID.Format: DW#16#wxyzWXYZNDR 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 lengthspecifies the maximum length for the block thatmust 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.DescriptionVIPA SPEED7Integrated StandardSystem Function Blocks > FB/SFB 13 - BRCV - Receiving data in blocksHB00 | OPL_SP7 | Operation list | en | 18-30740