"Shut off delay"

So when my cnc job finishes there is a delay (not sure what it is maybe 10-30 minutes) until the stepper motors shuts off. When that happens, the Z-Axis usually drops (slowly) due to gravity of course.

Is there a way to adjust that delay via a gcode command or is that something in firmware that needs to be flashed.

I just want to extend the amount of time after the CNC is doing “nothing” before the steppers shut off.

Thanks in adavnce.

You can adjust it using an M18 g-code.

OMG, I use M18 every day. I never bothered to see if there was a delay setting. I just use it as an on/off.

Thanks

Also, if you ever want to adjust the values in firmware, see this section in configuration_adv.h:

/**
 * Idle Stepper Shutdown
 * Set DISABLE_INACTIVE_? 'true' to shut down axis steppers after an idle period.
 * The Deactive Time can be overridden with M18 and M84. Set to 0 for No Timeout.
 */
#define DEFAULT_STEPPER_DEACTIVE_TIME 1200
#define DISABLE_INACTIVE_X true
#define DISABLE_INACTIVE_Y true
#define DISABLE_INACTIVE_Z false
#define DISABLE_INACTIVE_E true