<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I've attached an hg changeset of the patches I use. You can get the DC related ones from it. If you look in the etherlab-dev forum you will also find Gavin's patchsets which will be more up to date.</p>
<p><br>
</p>
<p>Do a search for "etherlab-users dc" (or similar) to find posts related to how to set up distributed clocks. eg:</p>
<p><a href="http://lists.etherlab.org/pipermail/etherlab-users/2016/003014.html" class="OWAAutoLink" id="LPlnk349485" previewremoved="true">http://lists.etherlab.org/pipermail/etherlab-users/2016/003014.html</a><br>
</p>
<p><br>
</p>
<p>But to answer you question:</p>
<p><br>
</p>
<p>A system requires one master clock that all other clocks in the system sync to. That clock can either be the clock in the EtherCAT master or it can be a clock on one of the slaves (the dc reference slave). Separate to that, all dc slaves on the bus need
to be synced to a reference slave clock. This should be the first slave on the bus that supports dc. The EtherLAB master will automatically select this for you, or with the patch you can select it yourself.</p>
<div><br>
</div>
Generally the EtherCAT master clock has too much jitter to provide a nice stable system, so instead I use option two where my dc reference slave is the master clock and I adjust the EtherCAT master clock to it (this is the default option used by TwinCAT).
<div><br>
</div>
<div>Also note (as described in the post I linked to above), there are two levels of dc support in slaves. DC clock level support (alot of simple IO slaves have this) and the ability to sync the IO to the dc clock (generally only more advanced slaves support
this). The DC reference slave only requires the DC clock level of support.</div>
<div><br>
</div>
<div>In your case, if your AX5206 slave is the first slave it can be both the reference slave and the DC clock master.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Graeme.</div>
<div><br>
</div>
<div>PS: Our system uses various IO modules and amps. Our dc reference slave is often our first IO module (an EL1008). </div>
<div><br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jiarui Lian <jerry@bertec.com><br>
<b>Sent:</b> Thursday, 12 January 2017 06:39<br>
<b>To:</b> Graeme Foot<br>
<b>Subject:</b> Patch for Distributed Clock?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi, Dear Mr. Graeme Foot:<br>
<br>
I am studying IgH-EtherCAT-Master to control AX5206, and I saw your post in 2012:<br>
<a href="http://lists.etherlab.org/pipermail/etherlab-users/2012/001642.html" id="LPlnk529161" previewremoved="true">
http://lists.etherlab.org/pipermail/etherlab-users/2012/001642.html</a><br>
<br>
* Would you mind to send a copy of the patch to me? <br>
* And a question, when you said: "pick a ref slave and update my master time based on the ref slave time."<br>
Does your system consist of at least two slaves with DC capability?<br>
Master(Jitter) ---- Slave.1 (DC, Ref-to-Master) ---- Slave.2(DC, Ref-to-Slaves) ---- MoreSlaves
<br>
In my case, I have only one slave with DC:<br>
Master(Jitter) ---- Slave.1(AX5206, DC) --- MoreSlaves<br>
Any suggestion to me?<br>
<br>
<br>
Thanks, your help is appreciated!<br>
<br>
Sincerely,<br>
Jerry<br>
Bertec Corp.<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>