FC_CmdToString

 

FC_CmdToString - General Information

Overview

Type:

Function Block

Available as of:

V1.1.0.0

Support for:

PacDrive pilot template architecture

Task

Function for processing with axis commands for axes controlled by the function block AXM.FB_AxisModule.

Description

 The value of this function equates the name of the axis command that was selected via the i_diCmd input. The axis commands have the following titles:

Command Table

Title

AXM.ET_Cmd.Homing 

Homing

AXM.ET_Cmd.Manual 

Manual

AXM.ET_Cmd.CamCs 

Cam cold start

AXM.ET_Cmd.CamWs 

Cam warm start

AXM.ET_Cmd.Endless 

Endless

AXM.ET_Cmd.EndlessIls 

EndlessIls

AXM.ET_Cmd.Positioning 

Positioning

AXM.ET_Cmd.BrakeRelease 

Release holding brake

AXM.ET_Cmd.AdditionalCs

Coldstart of mode: Additional

AXM.ET_Cmd.AdditionalWs

Warmstart of mode: Additional

AXM.ET_Cmd.Start 

Start

AXM.ET_Cmd.StartTrig 

Starttrig

AXM.ET_Cmd.StartTrigWaitInPos 

Starttrig wait in pos

AXM.ET_Cmd.Stop 

Stop

AXM.ET_Cmd.Hold 

Hold

AXM.ET_Cmd.DriveEnableOn

Position Control on

AXM.ET_Cmd.DriveEnableOff

Position control off

AXM.ET_Cmd.WsStart 

WarmStart start

Interface

Input

Data type

Description

i_diCmd

DINT

Specifies the axis command

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

 

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok