Parameter Declaration Data type Memory block Description
BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: the write operation has not been
completed.
RECORD OUTPUT ANY I, Q, M, D, L Target area for the record that was read. When
SFC 59 is processed in asynchronous mode you
must ensure that the actual parameters of
RECORD have the same length information for
all calls. Only data type BYTE is permitted.
To ensure that an entire record is read you must select a target area with a length of
241bytes. In this case the value in RET_VAL indicates the actual length of the data that
was transferred successfully.
RET_VAL contains an error code when an error occurs while the function was being pro-
cessed.
When the transfer was successful RET_VAL contains:
n a value of 0 if the entire target area was filled with data from the selected record (the
record may, however, be incomplete).
n the length of the record that was transferred, in bytes (valid range: 1 ... 240), provided
that the target area is greater than the transferred record.
Error information
Two distinct cases exist for RET_VAL = 8xxxh:
n Temporary error (error codes 80A2h ... 80A4h, 80Cxh):
For this type of error it is possible that the error corrects itself without intervention. For
this reason it is recommended that you re-issue the call to the SFC (once or more
than once).
Example for temporary errors: the required resources are occupied at present
(80C3h). .
n Permanent error (error codes 809xh, 80A0h, 80A1h, 80Bxh):
These errors cannot be corrected without intervention. A repeat of the call to the SFC
is only meaningful when the error has been removed.
Example for permanent errors: incorrect length of the record that must be transferred
(80B1h).
Value Description
7000h First call with REQ = 0: data transfer not active;
BUSY is set to 0.
7001h First call with REQ = 1: data transfer initiated;
BUSY is set to 1.
7002h Intermediate call (REQ irrelevant): data transfer active;
BUSY is set to 1.
8090h The specified logical base address is invalid: no assignment available in
SDB1/SDB2x, or this is not a base address.
8092h ANY-reference contains a type definition that is not equal to BYTE.
8093h This SFC is not valid for the module selected by LADDR and IOID.
Suitable choice of
RECORD
RET_VAL (Return value)
Error information
VIPA SPEED7
Integrated Standard
System Functions > SFC 59 - RD_REC - Read record
HB00 | OPL_SP7 | Operation list | en | 18-30 701