FC_InitExceptionList - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Initialization of the ST_ExceptionList data structure.

Description

All of the functions provided in the PD_Template library that access the ST_ExceptionList data structure use this function. Each user that accesses the ST_ExceptionList data structure directly (by avoiding the functions provided by the template) must ensure that the xInit flag in the structure is TRUE. If not, this function must be executed.

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_stExceptionList

ST_ExceptionList

Exception list that shall be initialized.

Return Value

Data type

Description

BOOL

TRUE - Initialization of the data structure was successful.

FALSE - Initialization of the data structure failed.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

UnexpectedProgramBehavior

SemaphoreMeCreateFailed

45

Generating a semaphore of the MutualExclution type failed.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Initialization of the exception list was successful.

SemaphoreMeCreateFailed

Enumeration name:

SemaphoreMeCreateFailed

Enumeration value:

45

Description:

Generating a semaphore of the MutualExclution type failed.

Issue

Cause

Solution

-

Generating a semaphore of the MutualExclution type failed.

Retry to initialize the iq_stExceptionList list.

Please inform the support team about this error.