FB_ExceptionList - General Information

Overview

Type:

Function block

Available as of:

V 1.0.0.0

Inherits from:

o

Implements:

oIF_ExceptionList

Versions:

Current version

Task

The FB_ExceptionList manages the global exception list.

Description

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.

Interface

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.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

DeleteExceptionFromList

8

This message is triggered if an exception is being deleted from the list.

OK

InsertExceptionInList

7

An exception is currently being entered into the exception list.

DiagActive

SystemException

33

A Diagnostic class 3 error has been detected on the controller.

DiagActive

SystemFatalException

32

A Diagnostic class 4 error has been detected on the controller.

DiagActive

SystemWarning

34

A Diagnostic class 2 or 1 error has been detected on the controller.

UnexpectedProgramBehavior

ExceptionListOverflow

6

Overflow of the exception list

DeleteExceptionFromList

Enumeration name:

DeleteExceptionFromList

Enumeration value:

8

Description:

This message is triggered if an exception is being deleted from the list.

ExceptionListOverflow

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.

InsertExceptionInList

Enumeration name:

InsertExceptionInList

Enumeration value:

7

Description:

An exception is currently being entered into the exception list.

SystemException

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.

SystemFatalException

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.

SystemWarning

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.

Methods

Name

Description

ClearExceptionList

Clearing the exception list

InsertException

For inserting an exception into the exception list

SetException

Send exception

SetExceptionForOneReaction

Send an exception with one reaction

Properties

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.