Ethercat DC clock

More
5 years 3 months ago #215938 by wang
Ethercat DC clock was created by wang
Hi

I have a problem and need your help (thank you)

Both the Ethercat master station and the slave station have their own DC clocks that need to be synchronized. Different drives have different DC clock frequency requirements. I want to know how linuxcnc and Ethercat handle these clock requirements. How much can the clock frequency reach at the same time?

My thanks (wang)

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #215991 by rollfree
Replied by rollfree on topic Ethercat DC clock
It depends not on LinuxCNC, but on EtherCAT protocol (and master). By default first slave in the EtherCAT-chain works as DC-master.
In original version of IgH EtherCAT master module were some errors in section, responsible for initial synchronization. In patched versions on github is it mostly corrected.
Last edit: 5 years 3 months ago by rollfree.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #216004 by wang
Replied by wang on topic Ethercat DC clock
Glad to see your reply

Can you be more detailed? Or give me a website where I can learn this part.
Will IGH EtherCAT automatically and flexibly match the clocks of all slaves? Or set all slave clocks to one frequency? (Because different drives have different clock frequencies)

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #216005 by rollfree
Replied by rollfree on topic Ethercat DC clock
It's not true, I think.
Master precisely synchronize net-time on all members of EtherCAT domain. This time is the same for all nodes. So every node can use sync pulse in exact same time.

For reference clock server use HW clock from 1. slave in the chain. So after synchronization all slaves has very accurate same time, with compensated delay on other nodes and cables between nodes.

It's according to EtherCAT specification. Nothing special on LinuxCNC.

See www.ethercat.org/en/technology.html#1.5
1.5 Distributed Clocks for High-Precision Synchronization
Last edit: 5 years 3 months ago by rollfree.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289980 by Coyote
Replied by Coyote on topic Ethercat DC clock
Old question, but still it is not 100% clear to me. Let we suppose we have a system with synchronous Ethercat operation (either velocity CSV or position CSP), where trajectory is computed each 1ms (SERVO_PERIOD = TRAJ_PERIOD = 100000).
Now if I understand correctly, the Ethercat master runs realtime on RT_PREEMPT Kernel, but the synchronization is made with the help of the first Ethercat slave, which sends the SYNC over the bus. Then all slave clocks are tuned with the use of the TimeShift,...but how the master is tuned? It shall synchronize as well, adjusting the time shift of the RT clock, thus servo thread and EMCMOT. Is this accomplished in LCNC? Or I missed entire point of view?

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289987 by rodw
Replied by rodw on topic Ethercat DC clock
I might be wrong, but I don't think the ethercat bus needs to be synced with our servo-thread. It might update faster than this. Its just that very millisecond we can read or write to the bus. Remember we have an interconnecting driver so we don't control the master.

Please Log in or Create an account to join the conversation.

Time to create page: 0.273 seconds
Powered by Kunena Forum