FC_CheckExceptionIsInList - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Function for checking whether a certain exception is entered into the global exception list.

Description

It is checked whether the exception with the respective ET_Diag or ET_DiagExt and ModuleId is contained in the global exception list.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

Input/Output

Data type

Description

iq_stException

ST_Exception

Exception to search for.

iq_stExceptionList

ST_ExceptionList

Exception list which shall be checked for whether it contains the exception.

Return Value

Data type

Description

BOOL

TRUE - The exception applied at iq_stException is contained in iq_stExceptionList.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

UnexpectedProgramBehavior

InitExceptionListFailed

46

Initialization of the exception list failed.

InitExceptionListFailed

Enumeration name:

InitExceptionListFailed

Enumeration value:

46

Description:

Initialization of the exception list failed.

Issue

Cause

Solution

-

Initialization of the exception list failed. - An internal execution error occured.

Try to initialize the exception list using the FC_InitExceptionList function.

Please inform the support team about this error.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The check whether a certain exception is entered into the global exception list was successful.