Device synchronization (Sync manager, distributed clocks)

The EL2521-xxxx can be synchronized via

Distributed clocks (DC)

Device synchronization (Sync manager, distributed clocks) 1:

EtherCAT and distributed clocks

You can download a basic introduction to EtherCAT and distributed clocks from the Beckhoff website (see the EtherCAT system manual, chapter “I/O Synchronization via Distributed Clocks”).

The EL2521 supports the distributed clocks functionality. In order for the EL2521 to be able to make the current process data available in time before the arrival of the querying EtherCAT datagram, a suitable signal must be generated cyclically within the terminal. This signal can be triggered in the EL2521 by two events: the SyncManager (SM) and the Distributed Clocks (DC). Under operation mode selection the following options are available (see Fig. “DC tab”):

Device synchronization (Sync manager, distributed clocks) 2:
Fig.45: DC tab (Distributed Clocks)

When “DC-Synchron” operation mode is activated TwinCAT selects settings that ensure reliable operation of the EL2521 with current data. This means that the processing of the current process data is started by the SYNC0 signal at highly constant intervals and in good time – i.e. with an adequate safety buffer – before the retrieving EtherCAT datagram.

If necessary, the SYNC0 signal can be shifted along the time axis to the right/later or left/earlier in associated dialogs by specifying a “User defined Shift Time”, see Fig. “Advanced settings distributed clocks (DC) settings, EL2521 Terminal”.

Notice

Attention! Risk of device damage!

The mentioned notes and information should be used advisedly! The SYNC0 and SYNC1 settings are automatically configured by the EtherCAT master with values that support reliable and timely process data acquisition. User intervention at this point may lead to undesired behavior! If these settings are changed in the System Manager, no plausibility checks are carried out on the software side! Correct function of the terminal with all conceivable setting options cannot be guaranteed!

EL2521 DC settings

Device synchronization (Sync manager, distributed clocks) 3:
Fig.46: Advanced settings for distributed clocks (DC), EL2521 Terminal

Default setting

The cyclic writing of the outputs is triggered by the SYNC0 pulse (interrupt) from the DC in the EL2521. The EtherCAT master sets the “Sync Unit Cycle” time value to the PLC cycle time and therefore the EtherCAT cycle time as standard. According to figure “Advanced settings distributed”: 4000 µs = 4 ms because TwinCAT is in Config mode.

DC settings for EtherCAT master

Higher-level distributed clocks parameters can be modified under advanced settings for the EtherCAT master. See also basic introduction into EtherCAT and downloading distributed clocks: “Distributed clocks system description”.

Device synchronization (Sync manager, distributed clocks) 4:
Fig.47: EtherCAT Master, EtherCAT tab, Advanced Settings
Device synchronization (Sync manager, distributed clocks) 5:
Fig.48: EtherCAT Master, Advanced Settings, Distributed Clocks