Technical data
Diagnostics
23.10 System Diagnostics with 'Report System Error'
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 533
23.10.2.9 Example of a Diagnostic Status DB Query
You want to see the errors of the central module with I/O address QB 50 on the OP. This module
has two channels, channel 1 has signaled wire break.
You have selected the value "5" as the client ID.
Query
1. As long as Q_ClientID_Intern is not equal to DW#16#00000005,
Q_ClientID_User := DW#16#00000005
2. If Q_ClientID_Intern is equal to DW#16#00000005
Q_WithSubComponent := FALSE
C_AddressMode := B#16#1
C_ComponentID := W#16#8032
E_ErrorNo := 1
Q_Start := TRUE
3. Wait until Q_Start is set to FALSE
4. If Q_ClientID_Intern is not equal to DW#16#00000005,
return to step 1
5. Read out the data:
S_SupFault FALSE
S_NotAvailable FALSE
S_Faulty TRUE
S_MoreErrors FALSE
S_Maintenance1 FALSE
S_Maintenance2 FALSE
S_SubFault FALSE
S_SubMainenance1 FALSE
S_SubMaintenance2 FALSE
S_TIAMS DW#16#00000007
S_TIAMSChannelExist DW#16#00000003
S_TIAMSChannelOK DW#16#FFFFFFFD
S_ChannelCount W#16#2
A_ComponentID W#16#8002
A_TextID1 W#16#8C06
A_TextLexikonID1 W#16#1
A_AlarmID DW#32#60200032
A_ValueCount W#16#C