n The FB/SFB 13 is ready for reception when control input EN_R is set to 1. Parameter
RD_1 specifies the start address of the receive data buffer. An acknowledgment is
returned to the partner FB/SFB after reception of each data segment and parameter
LEN of the FB/SFB 13 is updated accordingly. If the block is called during the asyn-
chronous reception process a warning is issued via the status parameter STATUS.
n Should this call be received with control input EN_R set to 0 then the receive process
is terminated and the FB/SFB is reset to its initial state. When all data segments have
been received without error parameter NDR is set to 1. The received data remains
unaltered until FB/SFB 13 is called again with parameter EN_R = 1.
ERROR STATUS
(decimal)
Description
0 11 Warning: the new task is not active since the previous task
has not completed.
0 17 Warning: block is receiving asynchronous data.
0 25 Communications has been initiated. The task is being pro-
cessed.
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 Function cannot be executed.
1 4 Error in the receive data block pointer RD_1 with respect to
the length or the data type
(the send data block is larger than the receive data block).
1 5 Reset request received, incomplete data transfer.
1 8 Access to the remote object in application memory was
rejected.
1 10 Access to local application memory not possible
(e.g. access to deleted DB).
1 12 The call to the FB/SFB
n contains an instance DB that does not belong to the
FB/SFB 13
n contains a global DB instead of an instance DB
n could not locate an instance DB
(load a new instance DB from the PG)
1 18 R_ID already exists in the connection ID.
1 20 Not enough memory.
To guarantee data consistency during reception the following points must be met:
n When copying has been completed (parameter NDR is set to 1) FB/SFB 13 must
again be called with parameter EN_R set to 0 in order to ensure that the receive data
block is not overwritten before it has bee evaluated.
n The most recently used receive data block RD_1 must have been evaluated com-
pletely before the block is denoted as being ready to receive (calls with parameter
EN_R set to 1).
Function
Error information
Data consistency
VIPA SPEED7
Integrated Standard
System Function Blocks > FB/SFB 13 - BRCV - Receiving data in blocks
HB00 | OPL_SP7 | Operation list | en | 18-30 741