Value Description
80C5h Decentralized periphery not available.
80C6h The transfer of records was aborted due to a priority class abort.
A general error 8544h only indicates that access to at least one byte of
I/O memory containing the record was disabled. However, the data
transfer was continued.
14.1.47 SFC 59 - RD_REC - Read record
The SFC 59 RD_REC (read record) reads the record with the number RECNUM from the
selected module.
These SFC can be used for digital-, analog modules, FMs, CPs and via PROFIBUS DP-
V1.
The read operation is started when input parameter REQ is set to 1 when the call to SFC
59 is issued. Output parameter BUSY returns a value of 0 if the read operation was exe-
cuted immediately. BUSY is set to 1 if the read operation could not be completed. Param-
eter RECORDdetermines the target area where the record is saved when it has been
transferred successfully.
System dependent this block cannot be interrupted!
Parameter Declaration Data type Memory block Description
REQ INPUT BOOL I, Q, M, D, L,
constant
REQ = 1: read request
IOID INPUT BYTE I, Q, M, D, L,
constant
Identifier for the address space:
54h = peripheral input (PI)
55h = peripheral output (PQ)
For hybrid modules the SFC returns the area
identifier of the lower address. When the
addresses are equal the SFC returns identifier
54h.
LADDR INPUT WORD I, Q, M, D, L,
constant
Logical base address of the module. For hybrid
modules the lower of the two addresses must be
specified.
RECNUM INPUT BYTE I, Q, M, D, L,
constant
Record number
(valid range: 0 ... 240)
RET_VAL OUTPUT INT I, Q, M, D, L The return value contains an error code if an
error is detected when the function is being pro-
cessed.
Additionally: the length of the actual record that
was read, in bytes (range: +1 ... +240), provided
that the target area is greater than the trans-
ferred record and that no communication errors
have occurred.
Description
Parameters
VIPA SPEED7
Integrated Standard
System Functions > SFC 59 - RD_REC - Read record
HB00 | OPL_SP7 | Operation list | en | 18-30 700