Machining inside a part that is taller than the spindle

Hello friends!

My broad question is: how do I make a job start and stop while being certain the router won’t go outside of the area I’m machining?

The example is, I’m looking to drill precisely-spaced holes in the bottom of a plastic tub. The tub fits in the shapeoko, but if the CNC decides to rapid to the front or the bitsetter, it would crash into the wall of the tub on its way there.

Is there a way I can be super sure that it won’t rapid at the end of the job, and that it won’t bit set? I’m assuming if I only choose one bit, it won’t, but again, I want to be more certain of this.

I’m using Carbide Create and Carbide Motion.

Thanks!

Set the stock size to be the dimensions of the tub.

Create a Pocket Toolpath which mills out the interior of the tub.

Create the Toolpaths which cut out the desired feature(s)

Disable the Pocket Toolpath before exporting G-Code.

I would also disable the bit setter in the settings.

@WillAdams What’s the pocket toolpath for? If it doesn’t end up as part of the G-Code, I’d assume it wouldn’t change the operation of the machine.

I guess my broad question is, what determines when the Shapeoko decides to rapid to the top center or the bit setter? Definitely disabling the bit setter setting is something I should do. Are there other situations where Shapeoko will make movements outside of the strict instructions in the exported GCode?

Would it help to use something like UGS and GRBL instead of Carbide Motion, since it isn’t aware of the bitsetter or other things? Or are the tool change movements done by the Shapeoko itself?

You could edit the gcode with notepad, and edit out the commands for it to home, etc. Check the code without the part on your table to make sure it runs correctly.

Doesn’t it move back to home at the end of a job? (Sorry, haven’t used Motion in a long time)

This can also be mitigated by removing, by hand, the Program Stop command at the end of the gcode.

The pocket operation is just to create the appearance of the tub and to make it easier to visualize.

Where the machine lifts to is based on stock thickness and safety/retract height.

The M2 command at the end of a file has it lift to safety/retract height and move straight back.

Ah I see. The tub is taller than the bottom of the tool when fully retracted, so mainly I need to ensure the machine constrains its movement to inside the tub. Even fully retracted, it’ll crash into the wall of the tub if it tries to move outside.

Oh, here’s a different idea. Is it possible to fence the machine so it never moves outside a given rectangle?

I think a lot of my confusion is not knowing whether it’s the GCode, Carbide Motion, or the Shapeoko itself that does moves to the bit setter, or rapids to front center, for example. I haven’t found clear docs yet on what the Shapeoko or Carbide Motion do beyond what the GCode says.

  1. Disable the bitsetter (if you have one)
  2. Once you generate the GCode, hand edit it and remove “M02” at the end of the program. When CM sees a “M02” it tells the machine to retract and go to the back.

You can always create a test program, with one hole, and try it without the tub in place to make sure the machine is acting correctly. For the test you can set the Z so it’s too high to drill into anything.

Is it a lot of holes?
If not you can just do it manually with G0 moves between the holes and run the hole drilling operation as G91. Then you can be certain that it does not move i to the tub, well. if you don’t command it to do so :slight_smile:

Edit: this post by @neilferreri explains it quite well.

It’s a TON of holes. But it turns out I’m going to go with a simpler solution.

I learned that my Pro XL can machine in front of itself, so I’ll build a mount, and drill the holes with the bin upside down. Then I don’t have to worry about crashes.

Thank you all for all the help!

2 Likes

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