fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
344 stars 161 forks source link

All Axes are enabled and disabled even only 1 axis is running #101

Closed jennisonpangan closed 4 years ago

jennisonpangan commented 4 years ago

Hi. I found that the enable buttons for X, Y, Z, A, and B axes are Pins 24, 30, 38, A2, and A8, respectively. However, even if only 1 axis is running, all other axes are also enabled. Is there a way to enable only drivers that is currently running?

Need help. Thank you.

fra589 commented 4 years ago

Hi @jennisonpangan,
The original hardware of grbl (Arduino Uno + CNC shield) only have one enable pin for all axis. So, the initial code have been writen for this behavior.
When the code was ported to the Arduino Mega & RAMPS shield assembly, it did not seem useful to change the enabling / disabling behavior of the motors. Changing this may be possible, but surely very complicated, for a result which I do not really see interest. @++; Gauthier.