thanhtam-h / soem-w5500-rpi

Realtime ethercat master for Raspberry pi
GNU General Public License v3.0
225 stars 88 forks source link

About the shift_time = 380000; #14

Closed frankgp closed 5 years ago

frankgp commented 5 years ago

Now I have a questiosn, about the shitft-time; in 4800-dc and motion samples, the code using following value.

int32_t shift_time=380000; //dc event shifted compared to master reference clock

How to calculate it or setting it? is it a fixed value?

thanhtam-h commented 5 years ago

It is good question, it depends on slave processing time as well as master computation time. You may use this explanation on shift time and combine with your experience with your system: https://infosys.beckhoff.com/english.php?content=../content/1033/ethercatsystem/2469122443.html&id=

frankgp commented 5 years ago

Thank you for your feedback! I will study these material!

Thanks again!