Alarm, error and system messages
9.1 PROFIBUS DP
ET 200pro distributed I/O system
Operating Instructions, 03/2013, A5E00335544-08
191
9.1.2
Reading out the diagnostic data
Introduction
The slave diagnostics function is compliant with IEC 61784-1:2010 Ed3 CP 3/1. Depending
on the DP master, the diagnostic data of all DP slaves which conform with this standard can
be read using STEP 7.
Options for reading out diagnostic data
The table shows the options for reading out diagnostic data using STEP 7.
Automation system
with DP master
Block or register
Application
See...
SIMATIC S7/M7
"DP slave diagnostics" tab Slave diagnostic information in plain
text on the STEP 7 user interface
"Hardware diagnostics" in
STEP 7 online help
SFC 13 "DP NRM_DG"
Reading out slave diagnostic data
(save to the data area of the user
program)
SFC, refer to the STEP 7
online help
SFC 59 "RD_REC"
Reading out S7 diagnostic data records
(save to the data area of the user
program)
See "System and Standard
Functions" Reference
Manual
SFB 52 "RDREC"
Reading data records from the DP
slave
SFB, refer to STEP 7 online
help (system functions/
function blocks)
SFB 54 "RALRM"
Receiving interrupts from interrupt OBs SFB, refer to STEP 7 online
help (system functions/
function blocks)
Example of reading S7 diagnostic data using SFC 13 "DP NRM_DG"
The following is assumed for the STEP 7 user program:
●
The diagnostics address of ET 200pro is 1022 (3FEH).
●
Slave diagnostic data should be stored in DB 82: starting at address 0.0, length 128 byte.
●
Slave diagnostic data consists of up to 128 byte (IM 154-1).
STL
CALL SFC 13
REQ :=TRUE % Read request
LADDR :=W#16#3FE % Diagnostics address of ET 200pro
RET_VAL :=MW0 % RET_VAL of SFC 13
RECORD :=P#DB82.DBX 0.0 BYTE 128 % Mailbox for diagnostics in DB 82
BUSY :=M2.0 % Read operation across several OB 1
cycles