Page 1 of 1

Stopping and restarting the spindle when pausing or feed holding

Posted: Wed Jun 30, 2021 11:05 pm
by RogerFroud
I'd like to mimic the Mach4 function where the Spindle automatically stops when you pause or use the feed hold. It starts up again with a delay when the machine resumes or the feed hold is released.
What's the easiest way to go about this? Is the default behaviour hard coded into KMotionCNC or is this something that can be dealt with using 'C' files attached to functions in the machine setup?
I feel sure this is something that's been done already, so it seems pointless to reinvent the wheel.

Re: Stopping and restarting the spindle when pausing or feed holding

Posted: Thu Jul 01, 2021 1:24 am
by TomKerekes
Hi Roger,

You can add an Action to Halt to do whatever you wish. You might see the SafeZ_SpindleOff.c example.

Re: Stopping and restarting the spindle when pausing or feed holding

Posted: Thu Jul 01, 2021 11:57 am
by RogerFroud
Thanks, that's great, I'll take a look.