FB_ExceptionList - General Information
Type: |
Function block |
Available as of: |
V 1.0.0.0 |
Inherits from: |
o |
Implements: |
|
Versions: |
Current version |
The FB_ExceptionList manages the global exception list.
The FB_ExceptionList manages the global exception list that manages all the currently pending exceptions of a machine. It is globally instanced (G_fbExceptionList) and the body is called up in FB_MainMachine. Per interface methods are available for all the modules to assign and verify errors. The FB provides the complete error detection list to the online view global error detection list in via the outputs.
The interface IF_ExceptionList is distributed via the default interface ST_StandardItf to all modules of a machine. The interface provides all the information, as well as all the methods that a module requires for the exception handling.
Input |
Data type |
Description |
---|---|---|
i_xDiagQuit |
BOOL |
Input to acknowledge a detected error |
Output |
Data type |
Description |
---|---|---|
q_axActiveReactions |
ARRAY [1..Gc_uiNumberOfReactions] OF BOOL |
Contains a bit array with the active reactions. |
q_xHasException |
BOOL |
Output which indicates if the module triggered an exception that was not acknowledged yet. |
q_xHasWarning |
BOOL |
Output which indicates if the module triggered an advisory that was not acknowledged yet. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
8 |
This message is triggered if an exception is being deleted from the list. |
|
OK |
7 |
An exception is currently being entered into the exception list. |
|
DiagActive |
33 |
A Diagnostic class 3 error has been detected on the controller. |
|
DiagActive |
32 |
A Diagnostic class 4 error has been detected on the controller. |
|
DiagActive |
34 |
A Diagnostic class 2 or 1 error has been detected on the controller. |
|
UnexpectedProgramBehavior |
6 |
Overflow of the exception list |
Enumeration name: |
DeleteExceptionFromList |
Enumeration value: |
8 |
Description: |
This message is triggered if an exception is being deleted from the list. |
Enumeration name: |
ExceptionListOverflow |
Enumeration value: |
6 |
Description: |
Overflow of the exception list |
Issue |
Cause |
Solution |
---|---|---|
- |
The maximum number of exceptions has been reached. |
Clear the exception list by means of DiagQuit. |
Enumeration name: |
InsertExceptionInList |
Enumeration value: |
7 |
Description: |
An exception is currently being entered into the exception list. |
Enumeration name: |
SystemException |
Enumeration value: |
33 |
Description: |
A Diagnostic class 3 error has been detected on the controller. |
Issue |
Cause |
Solution |
---|---|---|
- |
A problem occurred on the controller. The cause can be found in the diagnostic message. |
Use the specified Diagnostic code from the message to find a solution for the problem. |
Enumeration name: |
SystemFatalException |
Enumeration value: |
32 |
Description: |
A Diagnostic class 4 error has been detected on the controller. |
Issue |
Cause |
Solution |
---|---|---|
- |
A problem occurred on the controller. The cause can be found in the diagnostic message. |
Use the specified Diagnostic code from the message to find a solution for the problem. |
Enumeration name: |
SystemWarning |
Enumeration value: |
34 |
Description: |
A Diagnostic class 2 or 1 error has been detected on the controller. |
Issue |
Cause |
Solution |
---|---|---|
- |
A problem occurred on the controller. The cause can be found in the diagnostic message. |
Use the specified Diagnostic code from the message to find a solution for the problem. |
Name |
Description |
---|---|
Clearing the exception list |
|
For inserting an exception into the exception list |
|
Send exception |
|
Send an exception with one reaction |
Name |
Data type |
Accessing |
Description |
---|---|---|---|
astExceptionList |
ARRAY[1..Gc_diMaxNumberOfActExceptions] OF ST_Exception |
Read |
Returns the exception list |
axActiveReactions |
ARRAY[1..Gc_uiNumberOfReactions] OF BOOL |
Read |
Returns the active reactions. |
diNumberOfActExceptions |
DINT |
Read |
Returns the number of the pending exceptions. |
uiSearchException |
UINT |
Read |
Returns the ID of the searched exception. |
xHasException |
BOOL |
Read |
Indicates an exception. |
xHasWarning |
BOOL |
Read |
Indicates an advisory. |