FC_EtMotionActiveVelTypeToString

 

FC_EtMotionActiveVelTypeToString - General Information

Overview

Type:

Function

Available as of:

V1.0.2.0

Inherits from:

-

Implements:

-

Versions:

Current version

Task

Convert the velocity sources of the FB_AxisModule to string

Description

Convert the velocity source at the i_etMotionActiveVelType input from the ET_MotionAc­tiveVelType enum list to a string.

Interface

Input

Data type

Description

i_etMotionActiveVelType

ET_MotionActiveVelType

The velocity source to be converted to a string.

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[20]

The velocity source converted to a string

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

MotionActiveVelTypeUnknown

145

MotionActiveVelType is unknown.

MotionActiveVelTypeUnknown

Enumeration name:

MotionActiveVelTypeUnknown

Enumeration value:

145

Description:

MotionActiveVelType is unknown.

Issue

Cause

Solution

-

Unknown MotionActiveVelType at the i_etMotionActiveVelType input.

Ensure that only elements from the ET_MotionActiveVelType list are transferred at the i_etMotionActiveVelType input.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The MotionActiveVelType was successfully converted to a string.