IF_ExceptionList - SetExceptionForOneReaction (Method)

Overview

Type:

Method

Available as of:

V 1.0.0.0

Versions:

Current version

Task

Sending an exception with one reaction.

Description

Method to be able to send an exception.

Interface

Input

Data type

Description

i_xExceptionActive

BOOL

TRUE: The exception is active and shall be entered into the global exception list.

i_etDiag

GD.ET_Diag

Exception class according to GD.ET_Diag

i_udiDiagExt

UDINT

Exception number according to ET_DiagExt of the respective library.

i_sMsg

STRING[80]

Exception message in plain text.

i_udiModuleId

UDINT

ModuleID of the module that reported the exception.

i_sModuleName

STRING[80]

Name of the module that reported the exception.

i_etReaction

ET_StandardReaction

Enumeration that contains the reactions that were defined in the exception.

i_etSource

ET_Type

Type of the module that reported the exception.

Output

Data type

Description

q_etDiag

GD.ET_Diag

Output which indicates the condition of the module. It is defined in the PD_GlobalDiagnostic library.

q_etDiagExt

ET_DiagExt

Output which indicates the performance condition of the module. Here, the extended diagnostic code that was defined in ET_DiagExt of each respective library is displayed as a number.

q_sMsg

STRING[80]

Output which indicates a message to the user. Normally, a textual description of q_udiDiagExt

Return Value

Data type

Description

DINT