Adding Optional Stop M1 into Fusion 360 Post Processor

Hey everyone, I thought I’d share something that might help others.

I wanted to pause the program at a certain point and either resume, or cancel it. TLDR I found this was possible in Fusion 360 if I added a Manual NC command of OPTIONAL_STOP. I also had to edit the post processor to output an M1 g code which the shapeoko understands, but which is not in the default carbide 3D grbl post processor. It only took two extra lines of code:

With this in place, the machine will pause when it encounters that Optional Stop command, and can be resumed again using the green “Start” button in Carbide Motion.

Why? There are numerous use cases but I was surfacing an epoxy inlay and had 10 step downs of 0.1mm each with a pause in between. This mean I could quickly inspect after each step down, and resume if I wanted to go one further. Epoxy inlays are very sensitive to height so this give me full control without having to reset my zero each time and probe the tool.

Thought I’d share :slight_smile: Would love to know if anyone has a better way or other tricks of a similar nature.

6 Likes

What event in the toolpath triggers the OPSTOP? i.e. where are you calling onCommand(COMMAND_OPTIONAL_STOP)

I added an M0 to the spindle ON event in my CC post to let the spindle get up to speed.
But I found I had to add it before the spindle command (M3S___) to get it to work right.

1 Like

@Tod1d Fusion 360 allows you to add a “Manual NC” command and choose Optional Stop as one of the options. You can just add it into a Setup like you would any other contour toolpath, adaptive toolpath etc.

6 Likes

Ah, ok. Cool. So you program your step-downs as separate paths with a opstop between them?

1 Like

@Tod1d Yes, that’s right :slight_smile: It can mean a bit of copy and pasting in CAM, but when you get to running the machine it is a much smoother workflow.

2 Likes

Thank you, Thank you , Thank you !!!

2 Likes

This topic was automatically closed after 10 days. New replies are no longer allowed.