Consider wiring the ESTOP button to ground the reset pin on the Arduino Mega. This should (I believe) kill the enable lines on the stepper drivers as well as stop all step signals to the stepper drivers. resetting the ESTOP would then reboot grbl, forcing the initial configuration code to run.
Consider wiring the ESTOP button to ground the reset pin on the Arduino Mega. This should (I believe) kill the enable lines on the stepper drivers as well as stop all step signals to the stepper drivers. resetting the ESTOP would then reboot grbl, forcing the initial configuration code to run.