Technical data

Table Of Contents
DPV1 SFBs According to PNO AK 1131
System Software for S7-300/400 System and Standard Functions - Volume 1/2
8-4
A5E00709327-01
Operating principle
The SFC 53 "WRREC" operates asynchronously, that is, processing covers
multiple SFC calls. Start the job by calling SFC53 with REQ = 1.
The job status is displayed via the output parameter BUSY and bytes 2 and 3 of
output parameter STATUS. Here, the STATUS bytes 2 and 3 correspond with the
output parameter RET_VAL of the asynchronously operating SFCs (see also
Meaning of the Parameters REQ, RET_VAL and BUSY with Asynchronous SFCs).
Please note that you must assign the same value to the actual parameter of
RECORD for all SFB53 calls that belong to one and the same job. The same
applies to the LEN parameters.
Data record transmission is completed when the output parameter BUSY = FALSE.
Parameters Declaration Data type Memory Area Description
REQ INPUT BOOL I, Q, M, D, L, constant REQ = 1: Transfer data record
ID INPUT DWORD I, Q, M, D, L, constant Logical address of the DP
slave/PROFINET IO component
(module or submodule)
For an output module, bit 15 must be
set (e.g. for address 5:
ID:=DW#16#8005).
For a combination module, the smaller
of the two addresses should be
specified.
INDEX INPUT INT I, Q, M, D, L, constant Data record number.
LEN INPUT INT I, Q, M, D, L, constant maximum byte length of the data record
to be transferred
DONE OUTPUT BOOL I, Q, M, D, L Data record was transferred
BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: The write process is not yet
terminated.
ERROR OUTPUT BOOL I, Q, M, D, L ERROR = 1: A write error has occurred.
STATUS OUTPUT DWORD I, Q, M, D, L Call ID (Bytes 2 and 3) or error code
RECORD IN_OUT ANY I, Q, M, D, L Data record
Note
If you use SFB 53 to write a data record for PROFINET IO, negative values in the
INDEX, MLEN and LEN parameters are interpreted as 16-bit whole numbers with
no preceding sign.
Error Information
See Receiving an Interrupt with SFB 54 "RALRM"