FC_EtOpModeToString

 

FC_EtOpModeToString - 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 operation modes of the FB_RoboticModule to a string.

Description

The operation mode of the RoboticModule at the i_etOpMode input from the ET_OpMode enumeration list is returned as a string.

Interface

Input

Data type

Description

i_etOpMode

ET_OpMode

The manual operation mode 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 operation mode is issued as a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

OpModeUnknown

97

The operation mode is indeterminable.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Reading the ET_OpMode value as text was successful.

OpModeUnknown

Enumeration name:

OpModeUnknown

Enumeration value:

97

Description:

The operation mode is indeterminable.

Issue

Cause

Solution

Reading the ET_OpMode value as text was not successful.

The value transferred at the input i_etOpMode is indeterminable.

At the input i_etOpMode, a value of ET_OpMode must be transferred.