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
A5E00709327-01
8-3
8.2 Writing a Data Record with SFB 53 "WRREC"
Note
The SFB 52 "WRREC" interface is identical to the FB "WRREC" defined in the
standard "PROFIBUS Guideline PROFIBUS Communication and Proxy Function
Blocks according to IEC 61131-3"
Description
With the SFB 52 "WRREC" (write record) you transfer a data record with the
number INDEX to a DP slave/PROFINET IO device component (module or
submodule) that has been addressed via ID.
Specify the byte length of the data record to be transmitted. The selected length of
the source area RECORD should, therefore, have at least the length of LEN bytes.
TRUE on output parameter DONE verifies that the data record has been
successfully transferred to the DP Slave.
The output parameter ERROR indicates whether a data record transmission error
has occurred. In this case, the output parameter STATUS contains the error
information.
Note
If a DPV1 slave is configured using a GSD file (GSD as of Rev. 3) and the DP
interface of the DP master is set to "
S7 compatible
", then data records must not be
written to I/O modules in the user program with SFC 53. The reason is that in this
case the DP master addresses the incorrect slot (configured slot +3).
Remedy: Set the interface for the DP master to "DPV1".