FC_EtDiagExtToString

 

FC_EtDiagExtToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Versions:

Current version

Task

Converting an enumeration element of type ET_DiagExt of the PD_SmartInfeed 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 to be converted

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnosis.

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnosis.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> error message

Return Value

Data type

Description

STRING[80]

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

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

UnknownDiagExt

10

DiagExt is unknown.

UnexpectedProgramBehavior

UnexpectedDiagExt

9

DiagExt is unexpected.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The enumeration has been successfully converted into text.

UnexpectedDiagExt

Enumeration name:

UnexpectedDiagExt

Enumeration value:

9

Description:

DiagExt is unexpected.

Issue

Cause

Solution

-

An error occurred in the internal execution.

The value applied at the i_etDiagExt input could not be correctly processed internally.

Please inform the support team about this error.

UnknownDiagExt

Enumeration name:

UnknownDiagExt

Enumeration value:

10

Description:

DiagExt is unknown.

Issue

Cause

Solution

-

At the input i_etDiagExt a number was transferred whose value cannot be related to any element of ET_DiagExt.

At the input i_etDiagExt, an element of the enumeration ET_DiagExt must be transferred.