Make my own EtherCAT device 6. Stepper motor driver
Vložit
- čas přidán 26. 08. 2024
- The stepper driver generator shows up and makes some stepper motor sounds. The two big things this time have been setup of the timer for the stepper pulses and synchronizing the EtherCAT cycle with the linuxcnc servo-thread cycle. Thankfully I don't show much of that.
github.com/Met...
Looking good! Note that "volatile" does not mean atomic access. For your variable, make use of atomic access instead - Use atomic_int for the type of variable and use the corresponding atomic primitives to set/modify the variable!
One has todo atomic_load/store/add/sub
Thanks for showing your progress!
nice! looking forward to updates
Du gör framsteg