Coupling distributed clocks – EtherCAT master

This chapter shows how two or more EtherCAT masters can be coupled and synchronized. Thereby the first EtherCAT master is changed to master mode in the DC settings. The first DC-capable EtherCAT slave connected to this EtherCAT master continues to set the reference clock. The TwinCAT real-time of this clock is synchronized based on frequency.

Coupling distributed clocks – EtherCAT master 1:
Settings for EtherCAT master in master or slave mode.

The other EtherCAT masters are synchronized with the first master and are switched to slave mode for this. These EtherCAT masters still keep their local reference clock for synchronization of the subsequent devices. During the EtherCAT startup and continuously afterwards, this reference clock is itself synchronized based on the TwinCAT time and is referred to as "tracking reference clock".

Coupling distributed clocks – EtherCAT master 2:
Example configuration with coupled EtherCAT masters.

For more information, please visit: https://download.beckhoff.com/download/Document/io/ethercat-terminals/ethercatsystem_en.pdf

Proceed as follows:

1. Activate the distributed clocks for all EtherCAT masters that you want to synchronize with each other (see: Enabling Distributed Clocks).
2. Activate a reference clock for each of these EtherCAT masters.
3. Click at the first EtherCAT master on the left side in the tree view on the EtherCAT master and then under the EtherCAT tab on the button Advanced Settings.
Coupling distributed clocks – EtherCAT master 3:
4. Deactivate the Automatic DC Mode Selection option.
5. Activate the option DC in use in Distributed Clocks and additionally the option DC Time controlled by CCAT Time (Master Mode)
Coupling distributed clocks – EtherCAT master 4:
All following EtherCAT masters are synchronized with this EtherCAT master.
6. For all following EtherCAT masters, which you want to synchronize with the first master, activate the option DC in use in Distributed Clocks and then the option DC Time controlled by CCAT Time (Slave Mode).
Coupling distributed clocks – EtherCAT master 5:
7. Repeat this setting for all further EtherCAT masters.
Synchronization is successful when the distributed clocks devices in the lower-level systems change to OP state. In addition, the variable DevState shows the state of the distributed clock communication.
Coupling distributed clocks – EtherCAT master 6: