Commissioning and Diagnostics
6-26
ET 200S Distributed I/O System
EWA-4NEB 780602402-12
Ways of reading the diagnosis
Table 6-7 Reading the diagnosis out using STEP 7 and STEP 5 on PROFIBUS DP
Programmable logic
controller with DP
master
Block o r
register in
STEP 7
Application See .
SIMATIC S7/M7 ”DP Slave
Diagnostics” tab
Slave diagnosis in plain-text form
on the STEP 7 user interface
The section on hardware
diagnostics in the STEP 7
online help system
SFC 13
”DP NRM_DG”
Read out slave diagnosis
(store in data area of the user
program)
For the structure, see
Section 6.1.6.2; for SFC,
see the STEP 7 online
help system
SFC 59
”RD_REC”
Read data records of the S7
diagnosis (store in the data area of
the user program)
See the system and
standard functions
reference manual
SFB 52
”RDREC”
Read data records from the DP
slave
For SFB, see the STEP 7
online help system
(system functions/system
function blocks)
SFB 54
”RALRM”
1)
Receive interrupts from the
interrupt OBs
For SFB, see the STEP 7
online help system
(system functions/system
function blocks)
SIMATIC S5 with
IM308-C as DP master
FB 192
”IM308C”
Read out slave diagnosis
(store in data area of the user
For the structure, see
Section 6.1.6.2; for FBs,
SIMATIC S5 with
S5-95U PLC as DP
master
FB 230
”S_DIAG”
program) see the ET 200
Distributed I/O System
manual
1)
Only with S7-400 as of V3.0 and with CPU 318 as of V3.0
Example of reading the slave diagnosis using FB 192 ”IM308C”
Here you will find an example of how to use FB 192 to read out the slave diagnosis
foraDPslaveintheSTEP 5 user program.
Assumptions
The following assumptions apply to this STEP 5 user program:
• The IM 308-C operating in DP master mode uses the page frames 0 to 15
(number 0 of IM 308-C).
• The DP slave has the PROFIBUS address 3.
• The slave diagnosis is to be stored in DB20. However , you can also use any
other data block for this.
• The slave diagnosis consists of a maximum 64 bytes (IM151-1 STANDARD).