Technical data

Table Of Contents
SFCs/SFBs for Transferring Data Records
System Software for S7-300/400 System and Standard Functions - Volume 1/2
7-14
A5E00709327-01
Parameter Declaration Data Type Memory Area Description
RECORD OUTPUT ANY I, Q, M, D, L Destination area for the data record read.
With asynchronous execution of SFC 59,
make sure that the actual parameters of
RECORD have the same length information
for all calls. Only data type BYTE is
permitted.
Output Parameter RET_VAL
If an error occurred while the function was being executed, the return value
contains an error code.
If no error occurred, RET_VAL contains the following:
- 0: if the entire destination area was filled with data from the selected data
record (the data record can also be incomplete).
- The length of the data record actually transferred in bytes (possible values:
+1 to + 240) if the destination area is larger than the transferred data
record.
Note
If the general error W#16#8545 occurs, this only indicates that access to at least
one byte of the I/O memory area containing the data record was blocked. The data
record was read by the module correctly and written to the I/O memory area.
Setting RECORD
Note
If you want to ensure that the entire data record is always read, select a destination
area with a length of 241 bytes. If the data transfer is error-free, RET_VAL contains
the actual data record length.