FC_EtDiagExtToString

 

FC_EtDiagExtToString - General Information

Overview

Type:

Function

Available as of:

V1.0.2.0

Inherits from:

-

Implements:

-

Versions:

current version

Task

An enumeration of type ET_DiagExt is to be converted to a string.

Description

The DiagExt at the i_etDiagExt input is converted to a string that represents the name of the enumeration.

Interface

Input

Data type

Description

i_etDiagExt

ET_DiagExt

The enumeration to be converted to a string.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic 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]

The enumeration that was converted to a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

DiagExtRange

65

DiagExt is outside the valid range

DiagExtRange

Enumeration name:

DiagExtRange

Enumeration value:

65

Description:

DiagExt is outside the valid range

Issue

Cause

Solution

-

An invalid value was transferred at the i_etDiagExt input.

Ensure that only elements of ET_DiagExt are transferred to the i_etDiagExt input.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The enumeration has successfully been converted to a string.