FC_EtCmdToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

This chapter provides information on:

Task

Convert the commands of the FB_RoboticModule to a string.

Description

The command of the RoboticModule at the i_etCmd input from the enumeration list ET_Cmd is returned as a string.

Interface

Input

Data type

Description

i_etCmd

ET_Cmd

The command that has to be converted to 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 command as a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

CmdUnknown

4

The command is indeterminable.

CmdUnknown

Enumeration name:

CmdUnknown

Enumeration value:

4

Description:

The command is indeterminable.

Issue

Cause

Solution

Reading the ET_Cmd value as text was not successful.

The value transferred at the input i_etCmd is indeterminable.

At the input i_etCmd, a value of ET_Cmd must be transferred.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Reading the ET_Cmd value as text was successful.