Stopping and restarting the spindle when pausing or feed holding

Moderators: TomKerekes, dynomotion

Post Reply
RogerFroud
Posts: 78
Joined: Tue Mar 30, 2021 8:07 am

Stopping and restarting the spindle when pausing or feed holding

Post by RogerFroud » Wed Jun 30, 2021 11:05 pm

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.

User avatar
TomKerekes
Posts: 1535
Joined: Mon Dec 04, 2017 1:49 am

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

Post by TomKerekes » Thu Jul 01, 2021 1:24 am

Hi Roger,

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

Tom Kerekes
Dynomotion, Inc.

RogerFroud
Posts: 78
Joined: Tue Mar 30, 2021 8:07 am

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

Post by RogerFroud » Thu Jul 01, 2021 11:57 am

Thanks, that's great, I'll take a look.

Post Reply