FC_EtDiagExtToString

 

FC_EtDiagExtToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Task

Converting an enumeration element of type ET_DiagExt of the UnwinderModule library 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_etDiagExt

ET_DiagExt

The ET_DiagExt value that has to be converted.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic

A value not equal to ET_Diag.Ok corresponds to an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Error message

Return Value

Data type

Description

STRING[80]

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

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Proceeding normally, satisfactory or under control, or other affirmative acknowledgement.

InputParameterInvalid

DiagExtRange

25

DiagExt ist outside of the valid range.

UnexpectedProgramBehavior

StateUnexpected

28

State is unintended.

DiagExtRange

Enumeration name:

DiagExtRange

Enumeration value:

25

Description:

DiagExt ist outside of the valid range.

Issue

Cause

Solution

-

An invalid value was transferred at the input i_etDiagExt

Ensure that only elements from ET_DiagExt are transferred at the input i_etDiagExt

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Proceeding normally, satisfactory or under control, or other affirmative acknowledgement.

The enumeration has successfully been converted to a string.

StateUnexpected

Enumeration name:

StateUnexpected

Enumeration value:

28

Description:

State is unintended.

Issue

Cause

Solution

-

An error has been detected in the internal execution.

Contact your Schneider Electric support representative.