11.04.2018 Views

manual_ect_clu_e

The EtherCAT realtime library system of SYBERA enables a custom ethernet adapter under Windows as an EtherCAT Master

The EtherCAT realtime library system of SYBERA enables a custom ethernet adapter under Windows as an EtherCAT Master

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EtherCAT<br />

Realtime Master Library<br />

Documentation<br />

SYBERA Copyright © 2014<br />

6.6 EtherCAT LowLevel Distributed Clock Functions<br />

The EtherCAT realtime library provides functions for propagation delay compensation,<br />

sytem time offset compensation and drift compensation. Additionaly DC sync control can<br />

be managed. Therefore several functions are exported as low level functions.<br />

The distributed clock functions are to be used dir<strong>ect</strong>ly after change ti PRE-OPERATIONAL<br />

state.<br />

6.6.1 DC Local Time<br />

This function latches out the local time of all stations.<br />

ULONG Result = Ecat(32/64)ReadDcLocalTime(VOID);<br />

6.6.2 DC Propagation Delay Compensation<br />

This function compensates the propagation delay for the stations relations<br />

ULONG Result = Ecat(32/64)CompDcPropDelay(VOID);<br />

6.6.3 DC Offset Compensation<br />

This function compensates the offset of station local time and the reference local time (first<br />

DC slave)<br />

ULONG Result = Ecat(32/64)CompDcOffset(VOID);<br />

6.6.4 DC Drift Compensation<br />

This function compensates the drift of the DC station clock by writing ARMW commands at<br />

least 3 seconds.<br />

ULONG Result = Ecat(32/64)CompDcDrift(ULONG InitTime);<br />

6.6.5 DC Quality Check<br />

This function checks the quality of DC synchronisation. It returns the max. system time<br />

difference in [nsec] among all stations. Additionally the individual system time difference is<br />

written to DC_LOCAL_TIME structure of each station.<br />

ULONG Result = Ecat(32/64)CheckDcQuality(PULONG pMaxSysTimeDiff);<br />

SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: +49-7031-411-781 Page 54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!