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.

SoE Drive / SoE Inputs

Enable (default)

Name

Type

Description

Data Area 1:

Drive status word

UINT

Status information

Data Area 2:

Position feedback value 1

DINT

Actual position of the I/O drive in increments.

Data Area 3:

Following distance

DINT

Position lag (position control deviation, i.e. target position minus actual position) of the I/O drive in increments.

Data Area 4:

Velocity feedback value 1

DINT

Actual velocity of the I/O drive in increments.

Data Area 5:

Torque feedback value

INT

Actual torque/force value of the I/O drive in increments.

Data Area 6:

WcState

BIT

Working counter

Data Area 7:

InputToggle

BIT

Level change upon receipt of a new telegram.

Data Area 8:

DcInputShift

DINT

Used for drive dead time compensation.

Data Area 9:

DcOutputShift

DINT

Used for drive dead time compensation.

SoE Drive / SoE Touch Probe Inputs

In the default setting, this data range is disabled.

Enable (default)

Name

Type

Description

Data Area 10:

Probe value 1 positive edge

DINT

This element returns the position value of touch probe 1 on the rising edge.

Data Area 11:

Probe value 1 negative edge

DINT

This element returns the position value of touch probe 1 on a falling edge.

Data Area 12:

Probe 1 positive latched

UINT

Event detected on a rising edge for touch probe 1.

Data Area 13:

Probe 1 negative latched

UINT

Event detected on the falling edge for touch probe 1.

Data Area 14:

Probe 1 time positive edge

UDINT

This element provides the timestamp when a rising edge event was detected at touch probe 1.

Data Area 15:

Probe 1 time negative edge

UDINT

This element provides the timestamp for when a falling-edge event was detected at touch probe 1.

SoE Drive / SoE Outputs

Enable (default)

Name

Type

Description

Data Area 16:

Master control word

WORD

Control information

Data Area 17:

Position command value

DINT

Current target position in increments

The target position of the MC3 axis in physical units, e.g. mm or degrees, is mathematically converted to an incremental value by MC3 and transferred to the drive. Overflows of the incremental value are hereby taken into account by the MC3 in the target position.

Data Area 18:

Velocity command value

DINT

Current target velocity in increments

The target velocity of the MC3 axis in physical units, e.g. mm/s or degrees/s, is mathematically converted to an incremental value by MC3 and transferred to the drive.

SoE Drive / SoE Touch Probe Outputs

In the default setting, this data range is disabled.

Enable (default)

Name

Type

Description

Data Area 19:

Probe 1 enable

UINT

Turn on touch probe 1.

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.