Interrupt, error and system messages
9.1 PROFIBUS DP
ET 200M
Operating Instructions, 04/2022, EWA-4NEB7806006-09
185
Note
For more information on reading out diagnostics information, refer to the "SIMATIC software,
programming with STEP
7 V5.x.
(http://support.automation.siemens.com/WW/view/en/18652056)" manual.
Example for reading the S7 diagnosis with SFC 13 "DPNRM_DG"
Here you will find an example of how to use the SFC 13 to read the slave diagnosis for a DP
slave in the STEP 7 user program.
Assumptions
The following assumptions apply to this STEP 7 user program:
• The diagnosis address of the ET 200M is 1022 (3FE
H).
• The slave diagnosis should be stored in the DB 82:
as of address 0.0, length 64 bytes.
• The slave diagnosis consists of 64 bytes.
STEP 7 user program
Diagnosis address of the ET 200M
Data record for the diagnosis in the DB 82
BUSY :=M2.0 Reading process runs through several OB 1
Example for reading the slave diagnosis with FB 192 "IM308C"
Here you will find an example of how to use the FB 192 to read the slave diagnosis for a DP
slave in the STEP 5 user program.
Assumptions
The following assumptions apply to this STEP 5 user program:
• The IM 308-C connection as a DP master occupies the frames 0 ... 15 (number 0 of the IM
308-C).
• The DP slave has the PROFIBUS address 3.
• The slave diagnosis should be stored in the DB 20. You can also use any other data block
for this.
• The slave diagnosis consists of 29 bytes.