FC_EtStateToString

 

FC_EtStateToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

This chapter provides information on:

oTask

oDescription

oInterface

oReturn Value

oDiagnostic Messages

Task

Convert the status messages of the FB_RoboticModule to a string.

Description

The i_etState status message of the RoboticModule from the ET_State enumeration list is converted to a string.

Interface

Input

Data type

Description

i_etState

ET_State

The state that has to be issued in a string.

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]

The state converted to a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

StateUnknown

8

The state is indeterminable.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Reading the ET_State value as text was successful.

StateUnknown

Enumeration name:

StateUnknown

Enumeration value:

8

Description:

The state is indeterminable.

Issue

Cause

Solution

Reading the ET_State value as text was not successful.

The value transferred at the input i_etState is indeterminable.

At the input i_etState, a value of ET_State must be transferred.