FC_EtOpModeToString

 

FC_EtOpModeToString - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Versions:

Current version

Task

Convert the operating modes of the FB_SmartInfeedModule to a string.

Description

The operation mode of the SmartInfeed module 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 operation mode 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 GD.ET_Diag.Ok equates an error 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 -> error message

Return Value

Data type

Description

STRING[20]

The operating mode converted to a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

OpModeUnknown

30

Indeterminable operation mode.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The operation mode has successfully been converted to a string.

OpModeUnknown

Enumeration name:

OpModeUnknown

Enumeration value:

30

Description:

Indeterminable operation mode.

Issue

Cause

Solution

-

An indeterminable operation mode was applied at the i_etOpMode input.

Ensure that only elements from the ET_OpMode list are transferred at the i_etOpMode input.