MC_CommandHandle

MC_CommandHandle 1:

This function block provides a handle to a motion command, allowing to observe its execution state.

Syntax

Definition:

FUNCTION_BLOCK MC_CommandHandle
VAR_OUTPUT
    CommandType    : ECommandType;
    Queued         : BOOL;
    Done           : BOOL;
    Active         : BOOL;
    CommandAborted : BOOL;
    Error          : BOOL;
    ErrorId        : UDINT;
END_VAR

MC_CommandHandle 2: Outputs

Name

Type

Description

CommandType

ECommandType

Type of motion command associated with this handle.

Queued

BOOL

Command is queued for execution.

Done

BOOL

Command completed without error.

Active

BOOL

Function block has active control on the axis.

CommandAborted

BOOL

Command is aborted by another command.

Error

BOOL

Error occurred within function block.

ErrorId

UDINT

Error identifier

MC_CommandHandle 3: Methods

Name

Description

CopyTo

Copies this command handle state to another MC_CommandHandle instance.

Versionsinformation

  • TwinCAT Standard >= v3.1.4026.23.1
  • TF5500 MC3 Base >= v4.0.24