CDT_MCTOPLC_ENCODER_AXIS_STD

Standard cyclic data from MC encoder axis to PLC.

Syntax

Definition:

TYPE CDT_MCTOPLC_ENCODER_AXIS_STD :
STRUCT
    EncoderAxisOid  : OTCID;
    HasError        : BOOL;
    IsPositionValid : BOOL;
    ErrorId         : UDINT;
    DcTime          : LINT;
END_STRUCT
END_TYPE

Parameters

Name

Type

Description

EncoderAxisOid

OTCID

Object ID of the encoder axis for identification.

HasError

BOOL

TRUE if the encoder axis is in an error state.

IsPositionValid

BOOL

TRUE if the reported position values are valid.

ErrorId

UDINT

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

DcTime

LINT

Distributed clock timestamp of the cyclic data exchange.

Versionsinformation

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