Technical data

Diagnostics
23.10 System Diagnostics with 'Report System Error'
Programming with STEP 7
530 Manual, 05/2010, A5E02789666-01
23.10.2.8 Diagnostic Status DB
Interface for the Diagnostic Status DB
The generated data block (DB127) allows the system status of a configured components and any
of its subcomponents to be queried.
This data block is required to support system diagnostics via the CPU Web server. As default, it is
disabled; if, however, one CPU is configured on which the functionality is enabled, DB127 is
enabled automatically by 'Report system error'.
Note
After restarting a Web server CPU, the module information is displayed with a delay. To reduce the
waiting time, you can call the SFM diagnostics block in a cyclic interrupt OB with a short interval.
Static Variable Area
Address Name Data Type Description
+0 Directory
0 D_Version WORD Version that supports RSE
2 D_pGlobalState WORD Byte offset to start of "GlobalState" section
4 D_pQuery WORD Byte offset to start of "Query" section
6 D_pComponent WORD Byte offset to start of "Component" section
8 D_pError WORD Byte offset to start of "Error" section
10 D_pState WORD Byte offset to start of "State" section
12 D_pAlarm WORD Byte offset to start of "Alarm" section
14 D_pSubComponent WORD Byte offset to start of "Subcomponent"
section
+16 GlobalState
0 G_EventCount WORD ID of the last event (counter)
2.0 G_StartReporting BOOL Startup evaluation active
+20 Query
0 Q_ClientID_User DWORD ID of the client; here, please use a value
between 1 and 255. Make sure that different
clients use different IDs.
4 Q_ClientID_Intern DWORD ID of the client (internal)
8.0 Q_WithSubComponent BOOL With/without status of the lower-level
component (slower)
8.1 Q_SubComponentAlarm BOOL AS-i master returns AS-i slave alarms
8.2 Q_Reserved2 BOOL Reserved
8.3 Q_Reserved3 BOOL Reserved
8.4 Q_Reserved4 BOOL Reserved
8.5 Q_Reserved5 BOOL Reserved