[etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()
fp at igh-essen.com
Tue Feb 5 14:08:27 CET 2013
I read your newer post already, just a quick comment on this.
Am 23.01.2013 17:36, schrieb Jun Yuan:
> 1. I must call ecrt_master_application_time() once somewhere before my run
> loop, otherwise I'll get error "No app_time received up to now", and
> ec_fsm_master_state_dc_read_offset will not be executed. The app time given
> to the ecrt_master_application_time() at this point is not important, it
> will not be used anywhere. Calling the function
> ecrt_master_application_time(master, dummy_time) can avoid
> master->has_app_time = 0 in ec_fsm_master_enter_write_system_times().
you should not call ecrt_master_application_time() at an arbitrary time
before cyclic operation, because the initial value is used to calculate
the phase offset of the sync0 start times. You should call it in cyclic
More information about the Etherlab-users