FluidNC icon indicating copy to clipboard operation
FluidNC copied to clipboard

Feature: Disable Motor/Stepper automatically after fault/estop/hard stop

Open Gerporgl opened this issue 3 months ago • 2 comments

Machine Context

I could not find an way to disable steppers / motors after a fault_pin/estop_pin or reset_pin. I am trying to reproduce the same behavior I currently have on my existing machine with a mach3 board but it seems that fluidnc keep motors enabled all the time even after a fault.

Feature Description

I think there should be an option to disable motors after a fault. I also want to keep idle_ms to 255 (disabled) for normal usage (that is also generally recommended and my current behavior in my existing machine).

Other Approaches

I tried briefly to create a macro that would send an alert to do a hardstop, then disable the motors, but you can't send disable motor unless you soft reset, and I could not find a way to soft reset easily in a macro and do all of that, plus it started to look messy and the wrong approach.

How I Can Help

I bought a corgi board and a 6x, I hope this helps the project. I am not familiar with the project, but I'll see if I can help.

I am also not sure if that feature is totally needed, I am new to CNC and only saw that it was the current behavior of my machine. It does makes sense that steppers get disabled I think. One example I can think of is if you pinch your finger when jogging... (that would be bad) and then do an estop, you may want to be able to move the stepper by hand, but if motors are still not disabled this would complicate things further.

Gerporgl avatar Sep 04 '25 16:09 Gerporgl

Have you tried http://wiki.fluidnc.com/en/features/commands_and_settings#motordisable-or-md

MitchBradley avatar Sep 04 '25 18:09 MitchBradley

I tried, but whenever I try to do it after a hardstop of estop or failsafe, it can't do it, it says "Grbl '$' command cannot be used unless Grbl is IDLE. Ensures smooth operation during a job." Then I need to do a softreset, but I am not sure how that can be done in a macro (is there a way to send 0x18 (CTRL+X) in a macro?)

Basically, what I'm trying to do is a failsafe that disables motors right after it stopped and disabled the spindle.

Gerporgl avatar Sep 04 '25 20:09 Gerporgl