-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Rotary: add a way to avoid long unwinds #3902
Description
This is a feature request.
I would like to have a way in the INI file to specify a "maximum expected rotations before it's an unwind" and if you see a G0 move that moves the rotary, and the effective move is more than the specified maximum, the move is truncated to 1-2 rotations and both the machine and relative coordinates are "MOD 360"'d. The default would remain how it operates today.
I.e.:
[AXIS_A]
MAX_UNWIND = 10
Then if A is currently at 3650, "G0 A0" would instead of rotating 10 times plus 50 degrees, only move 50 degrees, but the machine coordinates would still be set to 0.
I.e. the final state is exactly as if the rotations happened, but most of the useless whole-rotations are elided.
Reason: When doing a helical spiral carving, the A axis could get up to the hundreds of thousands of degrees, and ends with "G0 A0" or the next part of the job starts with A0. This takes many minutes to unwind on my machines.