FC_EtStateToString - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Versions:

Current version

Task

Convert the ET_State enumeration type of the FB_MultiBeltModule to a string.

Description

The i_etState input from ET_State is converted to a string.

Interface

Input

Data type

Description

i_etState

ET_State

State of the FB_MultiBeltModule

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 [25]

Status message of the FB_MultiBeltModule as a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

StateUnknown

32

Indeterminable state.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The state has been converted successfully to a string.

StateUnknown

Enumeration name:

StateUnknown

Enumeration value:

32

Description:

Indeterminable state.

Issue/Cause

Solution

An indeterminable state was transferred at the i_etState input.

Ensure that only elements from the ET_State list are transferred at the i_etState input.