FC_EtPowerStateToString - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Versions:

Current version

Task

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

Description

The i_etPowerState input from ET_PowerState is converted to a string.

Interface

Input

Data type

Description

i_etPowerState

ET_PowerState

-

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]

State of the position control of the multibelt axis.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

PowerStateUnknown

31

The PowerState is indeterminable.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The power state has been converted successfully to a string.

PowerStateUnknown

Enumeration name:

PowerStateUnknown

Enumeration value:

31

Description:

The PowerState is indeterminable.

Issue/Cause

Solution

An indeterminable state was transferred at the i_etPowerState input.

Ensure that only elements of the ET_PowerState list are transferred at the i_etPowerState input.