Synchronisation with "distributed clocks" (DC)
The Distributed Clocks (DC) functionality enables an exact time leveling for applications, in which several axes execute simultaneous, coordinated movements. The data is accepted synchronously with the PLC program. For DC synchronization, all slaves are synchronized with a reference clock, the so-called "DC master".
Fig. 1: EtherCAT bus system with c550 controller and i700 servo inverter
The DC synchronization is set using the »PLC Designer«.
DC synchronization is absolutely essential for motion applications!
DC synchronization can be used as an option for logic applications.
DC synchronization only takes place in the "Operational" state.
After a "Out-of-sync", the EtherCAT master synchronizes the slaves. Successful synchronization is indicated by the message "In-Sync".
Not all slaves support the DC functionality. DC-capable and non-DC-capable devices can be mixed when arranging the other slaves. The first EtherCAT slave after the Lenze Controller must be the DC master, which supplies the other EtherCAT devices and the controller with the exact time.
Manual configuration of the slave DC properties requires detailed knowledge of EtherCAT and the field device. DC settings should therefore only be made by experts!
We recommend you to keep the basic DC settings to ensure correct DC synchronization.
Set DC synchronization
The DC synchronization is set using the »PLC Designer«. It ensures that the master and slaves run in phase synchronization: Within a bus cycle, the transfer of the setpoint values and the recording of the actual values in the field devices always take place at exactly the same time. If the Lenze Controller (master) is synchronized with the distributed clocks, the actual values recorded by the slave are sent to the master at the end of the bus cycle and setpoints are sent from the master to the slaves for processing. The data is transferred at the next DC synchronization event.
The controller is the EtherCAT master. The cycle time of the bus system is determined by the cycle time of the task, which is assigned to the drives (slaves) integrated in the "PLC Designer". It is between 1 ... 10 ms (according to the technical data). The DC cycle time to be set must match this task cycle time.
Notes:
–
The DC cycle time set below is valid for all logic and motion devices synchronized by Distributed Clocks.
–
The settings of some slaves must be parameterized locally.
–
If the DC setting and the selection of the sync source are contradictory, the devices cannot be set to the "Operational" status.
–
The settings for the parameters "Sync cycle time", "Sync phase position", "Sync tolerance" and "Sync PLL increment" cannot be made with EtherCAT. These values are calculated automatically by the EtherCAT communication module and set internally in the device.
How to set the DC synchronization:
1.
Determine task cycle time under "MainTask":
2.
Set the DC cycle time in the master ("EtherCAT_Master") on the "Master" tab according to the determined task cycle time:
3.
Select the bus cycle task for the master on the "EtherCAT I/O image" tab:
If "Cycle settings of the higher-level bus" is selected, the bus cycle task set on the "PLC settings" tab of the Lenze Controller (Device) is used.
4.
In the device tree on the first slave (DC master), select the DC functionality "DC for synchronization" under the master:
Note: If a slave does not support distributed clocks, only "DC unused" can be selected here.
5.
Also select the DC functionality "DC for synchronization" on all other slaves that are to use DC synchronization.
DC synchronization is set.
Test of DC synchronicity
DC synchronicity is only available in the Operational state.
DC synchronicity check in the »PLC Designer«
–
EtherCAT master (Diagnostic master tab):
DC In-Sync is set to TRUE if the DC master and all DC slaves have been synchronized.
DC In-Sync is set to TRUE if the DC master and all DC slaves have been synchronized.
–
L_ETC_GetMasterDiagnostic function block (FB)/visualization of the
L_ETC_GetMasterDiagnostic function block:
DC In-Sync is set to TRUE at the oDiagnostic.xDC_InSync output if the DC master and all DC slaves are synchronized.
L_ETC_GetMasterDiagnostic function block:
DC In-Sync is set to TRUE at the oDiagnostic.xDC_InSync output if the DC master and all DC slaves are synchronized.
–
L_IODrvEtherCAT function block (FB):
DC In-Sync is set to TRUE at the xDistributedClockInSync output if all DC slaves are synchronized.
DC In-Sync is set to TRUE at the xDistributedClockInSync output if all DC slaves are synchronized.




