Hi,

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.


Do a search for "etherlab-users dc" (or similar) to find posts related to how 
to set up distributed clocks.  eg:

http://lists.etherlab.org/pipermail/etherlab-users/2016/003014.html


But to answer you question:


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.

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).

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.

In your case, if your AX5206 slave is the first slave it can be both the 
reference slave and the DC clock master.

Regards,
Graeme.

PS: Our system uses various IO modules and amps.  Our dc reference slave is 
often our first IO module (an EL1008).


________________________________
From: Jiarui Lian <je...@bertec.com>
Sent: Thursday, 12 January 2017 06:39
To: Graeme Foot
Subject: Patch for Distributed Clock?

Hi, Dear Mr. Graeme Foot:

I am studying IgH-EtherCAT-Master to control AX5206, and I saw your post in 
2012:
        http://lists.etherlab.org/pipermail/etherlab-users/2012/001642.html

* Would you mind to send a copy of the patch to me?
* And a question, when you said: "pick a ref slave and update my master time 
based on the ref slave time."
  Does your system consist of at least two slaves with DC capability?
     Master(Jitter) ---- Slave.1 (DC, Ref-to-Master) ---- Slave.2(DC, 
Ref-to-Slaves) ---- MoreSlaves
  In my case, I have only one slave with DC:
     Master(Jitter) ---- Slave.1(AX5206, DC) --- MoreSlaves
  Any suggestion to me?


Thanks, your help is appreciated!

Sincerely,
Jerry
Bertec Corp.

Attachment: etherlabmaster-1.5.2-changesets.hg
Description: etherlabmaster-1.5.2-changesets.hg

_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to