Diagnostics
7.4 Diagnostics with STEP 7 on PROFIBUS DP
M200D PROFIBUS/PROFINET
Manual, 08/2014, A5E01577426A/RS-AA/004
151
Diagnostics with STEP 7 on PROFIBUS DP
7.4.1
Reading out the diagnostic data
Length of the diagnostics frame
The maximum message frame length is 32 bytes.
Options for reading diagnostics data
Reading diagnostics data with STEP 7
Automation system with
DP master
Blocks or registers in
STEP 7
SIMATIC S7/M7 SFC 13
"DP NRM_DG"
Reading slave
diagnostic data (stored
in the data area of the
user program)
Section "Structure of
the slave diagnostics";
SFC see online help in
STEP 7
Example of reading out S7 diagnostics using SFC 13 "DP NRM_DG"
This is an example of how to use the SFC 13 to read out the slave diagnostics for a DP slave
in the STEP 7 user program.
Exceptions for this STEP 7 user program:
● Diagnostics address is 1022 (3FEH).
● Slave diagnostic data must be stored in DB82: from address 0.0, length 32 bytes.
● The slave diagnostic data has a length of 32 bytes
RECORD :=P#DB82.DBX 0.0 BYTE 32
//Mailbox for diagnostics data in DB82
//Read process runs over several OB1 cycles