<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:14px"><div id="yui_3_16_0_1_1456825165458_10113"><span>Hi,</span></div><div id="yui_3_16_0_1_1456825165458_10114"><span><br></span></div><div id="yui_3_16_0_1_1456825165458_10111" dir="ltr"><span id="yui_3_16_0_1_1456825165458_10110">I'm still unsure as to what values are given for the last four parameters of this function. I believe the sync1_cycle and sync1_shift can be ignored but how is the sync0_shift value determined? I believe the frame should reach all the slaves before this time but also the new frame should not be received before this time. In the examples given, a scan time of 1ms is used but the sync0_shift value is 4.4 ms. How can this be correct?</span></div><div id="yui_3_16_0_1_1456825165458_10111"><span><br></span></div><div id="yui_3_16_0_1_1456825165458_10111" dir="ltr"><span id="yui_3_16_0_1_1456825165458_10222">ecrt_slave_config_dc(modules[index].sc, 0x0300, scanTime, ??, ??, ??, ??);</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 14px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Monday, 29 February 2016, 15:57:30, Richard Hacker <ha@igh.de> wrote:<br></font></div>  <br><br> <div class="y_msg_container">I only configure DC on the slaves that are actually required to be <br clear="none">synchronized.<br clear="none"><br clear="none">Otherwise it seems correct what you are doing...<br clear="none"><div class="yqt7572555041" id="yqtfd59217"><br clear="none">Am 2016-02-29 um 14:45 schrieb Paul Mulligan:<br clear="none">> Hi,<br clear="none">><br clear="none">> Just a question or two about distributed clocks.<br clear="none">><br clear="none">> I have a system with an EL1008 digital input module, EL3001 analogue<br clear="none">> input module, two EL7031 stepper motor driver modules and two EL2008<br clear="none">> digital output modules in that order. I am using the EK1100 bus coupler<br clear="none">> terminal as the first module.<br clear="none">><br clear="none">> Do I need to call ecrt_slave_config_dc() for all of these modules before<br clear="none">> activating the master, or just the first module on the bus? My<br clear="none">> understanding from reading about distributed clocks is that the first<br clear="none">> module on the bus with DC capability should be used as the reference clock.<br clear="none">><br clear="none">>  From looking at the example "dc_user" supplied in the master download,<br clear="none">> it calls ecrt_slave_config_dc() only for the IDS_COUNTER module.<br clear="none">><br clear="none">> In the cyclic_task(), the functions ecrt_master_application_time(),<br clear="none">> ecrt_master_sync_reference_clock(), ecrt_master_sync_slave_clocks() are<br clear="none">> then called in that order. I notice ecrt_master_reference_clock_time()<br clear="none">> is not used at all here.<br clear="none">><br clear="none">> Is this all that is required to control the distributed clocks ? Thank<br clear="none">> you in advance.<br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> etherlab-users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:etherlab-users@etherlab.org" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br clear="none">> <a shape="rect" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br clear="none">><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>