FC_EtStateToString

 

FC_EtStateToString - General Information

Overview

Type:

Function

Available as of:

V1.0.2.0

Inherits from:

-

Implements:

-

Versions:

Current version

Task

Convert the status messages of the FB_AxisModule to a string.

Description

The i_etState status message of the axis module from the ET_State enum list is converted to a string.

Interface

Input

Data type

Description

i_etState

ET_State

The state to be translated

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]

The state converted to a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

StateRange

61

Unknown State.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The state has successfully been converted to a string.

StateRange

Enumeration name:

StateRange

Enumeration value:

61

Description:

Unknown State.

Issue

Cause

Solution

-

An unknown state was transferred at the i_etState input.

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