FC_EtDiagExtToString

 

FC_EtDiagExtToString - General Information

Overview

Type:

Function

Available as of:

1.0.5.0

Versions:

current version

Task

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

ET_DiagExt value 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 diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> diagnostic 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

Ok

InputParameterInvalid

UnknownDiagExt

74

DiagExt is indeterminable.

UnexpectedProgramBehavior

UnexpectedDiagExt

75

DiagExt is unintended.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The enumeration has been successfully converted into text.

UnexpectedDiagExt

Enumeration name:

UnexpectedDiagExt

Enumeration value:

75

Description:

DiagExt is unintended.

Issue

Cause

Solution

-

A detected 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 detected error.

UnknownDiagExt

Enumeration name:

UnknownDiagExt

Enumeration value:

74

Description:

DiagExt is indeterminable.

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.