FC_EtCheckForProductQueuesToString

 

FC_EtCheckForProductQueuesToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Versions:

Current version

Task

Converting an enumeration element of type ET_CheckForProductQueues 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_etCheckForProductQueues

ET_CheckForProductQueues

The ET_CheckForProductQueues value 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 = GD.ET_Diag.Ok -> status message

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

Return Value

Data type

Description

STRING[80]

Name of the enumeration element that has been transferred at the i_etCheckForProductQueues input

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

CheckForProductQueuresInvalid

120

No valid product blockage detection has been selected.

CheckForProductQueuresInvalid

Enumeration name:

CheckForProductQueuresInvalid

Enumeration value:

120

Description:

No valid product blockage detection has been selected.

Issue

Cause

Solution

-

A number has been transferred at the input i_etCheckForProductQueues the value of which is not allocated to any element of ET_CheckForProductQueues.

An element of the enumeration ET_CheckForProductQueues must be transferred at the input i_etCheckForProductQueues.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The enumeration has been successfully converted into text.