Basic principles

Basic principles 1:

Using the sample programs

This document contains sample applications of our products for certain areas of application. The application notices provided here are based on typical features of our products and only serve as samples. The notices contained in this document explicitly do not refer to specific applications. The customer is therefore responsible for assessing and deciding whether the product is suitable for a particular application. We accept no responsibility for the completeness and correctness of the source code contained in this document. We reserve the right to modify the content of this document at any time and accept no responsibility for errors and missing information.

TwinCAT clock hierarchy

Basic principles 2:
TwinCAT 2.11 clock hierarchy (subject to change)

The CE operating system uses a different system time. Using the DC clock is therefore recommended.

Basic principles

If EtherCAT components are used for external synchronization of TwinCAT, a time is provided for the local controller that matches the higher-level time. As the fieldbus, EtherCAT makes the necessary operating resources available, in particular EtherCAT’s own synchronization mechanism, distributed clocks. In other words,

The procedure is as follows:

Basic principles 3:
Frequency synchronicity

Note the following:

Basic principles 4:
Synchronization of 2 TwinCAT IPCs with the aid of EtherCAT components
Basic principles 5:

Using the synchronized time

In the adjusted station the "other" time from the master PC is known through:

Synchronized DC time = local DC time + offset

This synchronized time can now be used for data logging. The local DC time must still be used for tasks related to the respective station hardware (EtherCAT slaves, terminals).

Cascading of synchronized TwinCAT systems

We advise against cascading of several time-synchronized TwinCAT systems. However, please note that simple cascading already occurs if a TwinCAT system is controlled by an external clock based on GPS and transfers its local time to a subordinate EtherCAT system via an EL6692 bridge terminal.

In the subordinate systems the respective DcToExt offset relative to the higher-level systems must be taken into account.

Synchronized DC time = local DC time + DcToExtOffset local + Σ DcToExtOffset higher-level


The respective higher-level DcToExtOffsets can be transported through network variables, ADS, via the EL6692 bridge terminal or any other channels. The subordinate system must take these offsets into account.

Basic principles 6:
Cascade consisting of controlled TwinCAT systems