Data Area

In general, TcCOM objects can contain data areas that can be used by the environment (e.g., by a PLC instance or by the TwinCAT I/O area). For TwinCAT MC3 TcCOM objects, you have a choice of data structures to use via the Data Area tab.

PulseTrain Drive / PulseTrain Inputs

Enable (default)

Name

Type

Description

Data Area 1:

WcState

BIT

Working counter

Data Area 2:

InputToggle

BIT

Level change upon receipt of a new telegram

Data Area 3:

Counter value

UDINT

Meter reading

Data Area 4:

ENC Sync error

BIT

The Sync error bit is required only for distributed clocks mode and indicates whether a synchronization error occurred during the previous cycle.

Data Area 5:

ENC TxPDO State

BIT

Validity of the data in the associated TxPDO (0=valid, 1=invalid).

Data Area 6:

ENC TxPDO Toggle

BIT

The TxPDO toggle is set by the slave when the data in the corresponding TxPDO has been updated.

Data Area 7:

DcInputShift

DINT

Used for dead-time compensation of the drive.

Data Area 8:

DcOutputShift

DINT

Used for dead-time compensation of the drive.

PulseTrain Drive / PulseTrain Outputs

Enable (default)

Name

Type

Description

Data Area 9:

PTO Automatic direction

BIT

The terminal selects the direction of travel based on the position difference (actual and target values) in such a way that the shorter distance is preferred.

Data Area 10:

Target counter value

UDINT

Target meter reading

Notice

Warning in the error log window caused by selected entries that are not linked to an I/O device

Entries in the data areas of drive and encoder objects that are enabled (Enable = True) but are not linked to the I/O drive object result in a warning in the error log window. If the link for a function used at runtime is missing, this results in a runtime error. For example, an axis cannot be started if the status word from the I/O drive object is not linked.

  • Link the required entries for the interface between the axis and the I/O device
  • Deselect the entry that is not required to avoid generating a warning.