FC_EtExceptionSourceToString - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Converting an enumeration element of the ET_ExceptionSource type to a string.

Description

Every enumeration element has a name or value. The return value of the function is the name of the enumeration element.

Interface

Input

Data type

Description

i_etSource

ET_ExceptionSource

The ET_ExceptionSource value to be converted

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

Return Value

Data type

Description

STRING[80]

Name of the enumeration element that was transferred at the i_etSource input.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The enumeration element of the ET_ExceptionSource type has been converted to a string.