CDT_MCTOPLC_AXIS_STD

Syntax

Definition:

TYPE CDT_MCTOPLC_AXIS_STD :
STRUCT
    AxisOid         : OTCID;
    AxisState       : EAxisState;
    IsInControl     : BOOL;
    HasError        : BOOL;
    ErrorId         : UDINT;
    IsPositionValid : BOOL;
    DcTime          : LINT;
END_STRUCT
END_TYPE

Parameters

Name

Type

Description

AxisOid

OTCID

Object ID of the axis for identification.

AxisState

EAxisState

Current state of the axis state machine.

IsInControl

BOOL

TRUE if the axis controller is actively controlling the drive (control loop closed).

HasError

BOOL

TRUE if the axis is in an error state.

ErrorId

UDINT

Error code of the current axis error (0 if no error).

IsPositionValid

BOOL

TRUE if the reported position values are valid (e.g. after homing or with absolute encoder and drive/encoder signals a valid position).

DcTime

LINT

Distributed clock timestamp of the cyclic data exchange.

Versionsinformation

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