Technical data

Table Of Contents
SFCs for Distributed I/Os or PROFINET IO
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
16-15
16.4 Reading Diagnostic Data of a DP Slave with SFC 13
"DPNRM_DG" (Slave Diagnostics)
Slave Diagnostics
Each DP slave provides slave diagnostic data structured in accordance with EN 50
170 Volume 2, PROFIBUS. To read out this diagnostic data, you require SFC 13
"DPNRM_DG."
Refer to the following table for the basic structure of the slave diagnostic data and
to the manuals of the DP slaves for further information.
Byte Meaning
0 Station status 1
1 Station status 2
2 Station status 3
3 Master station number
4 Vendor ID (high byte)
5 Vendor ID (low byte)
6 ... Further slave-specific diagnostic information
Description
With SFC 13 "DPNRM_DG" (read diagnostic data of a DP slave), you read the
current diagnostic data of a DP slave in the format specified by EN 50 170
Volume 2, PROFIBUS. The data that has been read is entered in the destination
area indicated by RECORD following error-free data transfer.
You start the read job by assigning 1 to the input parameter REQ in the SFC 13
call.