Technical data

Diagnostics
23.10 System Diagnostics with 'Report System Error'
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 519
You can use OB122, for example, for the following purposes:
To evaluate the start information of OB122
To call the system function SFC 44 and supply a substitute value for an input module so that
program execution can continue with a meaningful, process-dependent value.
If you do not program OB122, the CPU changes to STOP mode when an I/O access error is
detected.
You can find detailed information on OBs, SFBs, and SFCs in the corresponding Help on Blocks.
23.10 System Diagnostics with 'Report System Error'
23.10.1 Graphical Output of Diagnostic Events
To graphically output diagnostic events to an HMI device, you can create a PROFIBUS DP DB (DB
125 by default) or a PROFINET IO DB (DB 126 by default).
23.10.2 Diagnostic Status
23.10.2.1 Overview of the Diagnostic Status
You can configure the generation of blocks with 'Report system error', so that the generated data
blocks can be supplied with the current status of PROFIBUS master systems or PROFINET IO
systems.
The PROFIBUS DP DB (DB125) supports the status of PROFIBUS slaves on DP master
systems (1), ..., (32).
The PROFINET IO DB (DB126) supports the status of IO device on IO systems (100), ..., (115)
and the status of DP slaves on DP master systems (2980ff) downstream from an IE/PB Link.
The diagnostic status DB (DB127) supports the status of racks, central modules, PROFIBUS
slaves and IO devices.
23.10.2.2 PROFIBUS Diagnostic Status
Interface for the PROFIBUS DP DB
The generated data block depicts the current status of all configured stations in the current DP
master system. If desired, it can describe the status of all DP slaves more exactly. The data block
is dynamically created and depends on the HW configuration. The DB uses the RSE diagnostics
FB (by default, FB49) to access the diagnostics data. This FB enters the current status of the DP
slaves directly in the PROFIBUS DB.
During processing of the PROFIBUS DB, all interrupts are delayed.