338 PROFINET IO – Communication protocol
Function blocks for sending DP-V1 messages
(Siemens S7)
In IEC 61131-3 compatible systems, function blocks are available
for accessing data non-cyclically. In Siemens S7, SFB 52
"RDREC" can be used for reading and SFB53 "WRREC" for
writing data records as follows:
• On INDEX: Connect the value 0xB02F, 0xB02E or 0x2F.
• On Write record: Set the length of the DP-V1 write request to
MLEN.
• On Read record: Set the maximum length of the DP-V1 read
response.
• Connect the DP-V1 message to RECORD.
For more information on the above function blocks, see document
Communication Function Blocks for PROFIBUS DP and
PROFINET IO v2.0 available at www.profibus.com
.
96h Internal buffer Buffer overflow
A0h Internal communication Communication error between the
module and the drive
RDREC
BOOL --- REQ VALID --- BOOL
DWORD ID BUSY --- BOOL
INT INDEX ERROR --- BOOL
INT MLEN STATUS --- DWORD
LEN --- INT
ANY RECORD-- --RECORD
WRREC
BOOL --- REQ DONE --- BOOL
DWORD --- ID BUSY --- BOOL
INT --- INDEX ERROR --- BOOL
INT --- LEN STATUS --- DWORD
ANY --- RECORD-- --RECORD
Error # Meaning Used at