FC_EtDiagExtToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

This chapter provides information on:

Task

Convert an enumeration element of type ET_DiagExt to a string.

Description

The function FC_EtDiagExtToString converts an enumeration element of type ET_DiagExt from the SchneiderElectricRobotics Toolbox library to a string.

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 unequal to GD.ET_Diag.Ok corresponds to a 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 input i_etDiagExt.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

InputParameterInvalid

UnknownDiagExt

35

The DiagExt is indeterminable.

UnexpectedProgramBehavior

UnexpectedDiagExt

34

The DiagExt is invalid.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status message: Reading the data was successful.

UnexpectedDiagExt

Enumeration name:

UnexpectedDiagExt

Enumeration value:

34

Description:

The DiagExt is invalid.

Status message: Reading the ET_DiagExt value as text was not successful.

UnknownDiagExt

Enumeration name:

UnknownDiagExt

Enumeration value:

35

Description:

The DiagExt is indeterminable.

Issue

Cause

Solution

Reading the ET_DiagExt value as text was not successful.

The value transferred at the input i_etDiagExt is indeterminable.

Verify that at the i_etDiagExt input a value of ET_DiagExt is transferred.