Etherlab IGH DC问题

同步时钟有两种方式:
1.使用主站时钟作为整个从机时钟的DC同步方式(同步时间长,误差大)
2.使用第一个带DC的从站作为参考时钟,然后将主站时钟锁定至参考时钟(同步时间短,误差小)以下来自[etherlab-users] DC questions:

Igh-EthercatMaster的dc_user例子里给的是使用主站时钟作为整个从机时钟的DC同步方式a) EtherCAT

master is the master clock:

  • The computer is used as the DC master for the entire system.
    ecrt_master_application_time() must be called every cycle to tell the EtherLab master what the current PC time is.
  • Call ecrt_master_sync_reference_clock() to tell the slave DC master to sync to the EtherLab masters time.
  • Call ecrt_master_sync_slave_clocks() to tell all other DC slaves to sync to the slave DC master

b) Slave DC master is the master clock. What I do is:

  • Get the slave DC masters time using ecrt_master_reference_clock_time() and sync the EtherLab masters cycle and time to it
  • Call ecrt_master_sync_slave_clocks() to tell all other DC slaves to sync to the slave DC master
  • Call ecrt_master_application_time() with the next cycles master timelink 1:http://lists.etherlab.org/pipermail/etherlab-users/2016/003012.htmllink 2:http://lists.etherlab.org/pipermail/etherlab-users/2016/003013.html
  • Note: EtherCAT master should have maximum jitter shall be concentrated in the range < 50us, or at the most < 100us, Otherwise DC will not work properly
  • 3
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

PI_sunyang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值