Optimizing Speed and Acceleration for Nema34 Motor Control with DM680E Driver
Hi 👋🏻
My friend and I wrote this code to control a Nema34 motor with a DM680E driver for a drilling cycle. We want to dynamically adjust the speed between fast movement (for chip removal and advancing) and slow movement (for drilling into the material), while maintaining smooth acceleration transitions between these speeds.
We’ve mentioned needing two speed parameters—fast and slow—but we’re unsure about the exact values that would be optimal for this application. If anyone has advice on how to calculate or determine the best speed and acceleration values for this setup, it would be greatly appreciated.
We have tried to implement speed adjustments, but the results were not as expected. Either there were unexpected jerks or no noticeable change in speed. If anyone has experience with this, what might we be missing in terms of smooth acceleration management?
3 Replies
Update your source code with this , i used comments to well explain the code better
I defined two speeds (FAST_SPEED and SLOW_SPEED) to differentiate between fast movements ie chip removal or advancing and slow movements, drilling.
So bfore each movement, setMaxSpeed() is called to dynamically change the speed based on the task. The slow speed is applied for drilling operations, while the fast speed is used for moving between positions