Skip to main content

DC — distributed clocks

DC (Distributed Clocks) provides high-precision clock synchronization between slaves and is essential for coordinated multi-axis motion.

Feature overview​

CapabilityDescription
DcSyncMode drop-downFour synchronization modes to choose from: FreeRun / SmSynchron / DcSynchron / DcSynchron01
ESI detectionThe tool detects DC capability from the ESI description automatically; slaves that support it have DC enabled by default
SYNC0/SYNC1 configurationSet the cycle of each of the two synchronization signals separately
Phase shiftSet it manually, or let it be resolved automatically by precedence
Master clock drift compensationWhen enabled, the master continuously compensates the drift between the master and slave clocks
Master clock time displayA 64-bit nanosecond count, refreshed in real time
Reference clock slave indexThe slave currently chosen as the reference clock, shown in real time
Sync window monitoringWatch the synchronization deviation statistics in real time
Propagation delayInspect the receive time of each port

DC is standard: slaves with DC enabled automatically include the synchronization configuration in the generated code, with no box to tick.

Quick start​

  1. Open the DC tab in the configuration tool
  2. Choose a mode from the DcSyncMode drop-down (the common choice is DcSynchron, SYNC0 single pulse)
  3. Set the SYNC0 cycle (for example 1 ms = 1000000 ns) and leave the phase shift empty so the tool computes it
  4. Enable DriftCompensation (master clock drift compensation) in the right-hand panel
  5. Check the Reference clock slave index and the Master clock time in the top status bar to confirm that a reference clock has been selected
  6. Switch to the SYNC monitoring panel and check that the synchronization deviation stays inside the allowed window

Synchronization modes​

ModeMeaning
FreeRunFree running; DC is not used
SmSynchronTriggered by SyncManager; DC is not used
DcSynchronDC SYNC0 synchronization
DcSynchron01DC SYNC0 + SYNC1 dual-signal synchronization

Phase and propagation delay​

The phase (shift) is the displacement of SYNC0 relative to the local cycle; it is resolved in a fixed order of precedence:

  1. The ShiftTimeSync0 declared in the ESI (used as-is when it is other than 0)
  2. A phase entered explicitly by the user (0 and negative values both take effect as given)
  3. The default: 1 × SYNC0 cycle + 70%

Propagation delay is not folded into the phase: the master measures it slave by slave and writes it to 0x0928 in the ESC, which applies the correction in hardware when it generates SYNC0.

Leaving the phase empty in the tool means not specified, and it is resolved by the three steps above; entering 0 is the literal 0 phase (SYNC0 falls on the cycle boundary) and does not fall back to 70%.

Sync window monitoring​

The right-hand panel of the DC tab shows each slave's synchronization status in real time:

  • InSync — whether the slave is inside the sync window (true/false)
  • DiffNs — current deviation (ns)
  • MinDiffNs / MaxDiffNs — smallest / largest deviation seen
  • OutOfSyncCount — cumulative out-of-sync count

With DC enabled, switch to the Diagnostics tab → DC subpage to see the sync window summary across slaves.