use G81 to cut slots instead of drill holes?

More
14 Aug 2016 14:14 #78739 by jferguson
Is it possible to use g81 to cut a series of slots? slots are identical and spacing is constant. obviously i could just repeat slot code 16 times, but that seems a little clunky.

I just need to know if this is not impossible using canned cycle. knowing it is possible will enable me to stick with it until it works.

thx.

john

Please Log in or Create an account to join the conversation.

More
14 Aug 2016 17:17 #78757 by tommylight
I think you can use offsets, but i have used that once a few years ago.
Basically, you make 1 slot and edit it to add the offsets as you need them. So it makes 1 slot at 0.0, second at 50.0, third at 50.50 etc.
Just do a search for offsets, it is easy.
Tom

Please Log in or Create an account to join the conversation.

More
14 Aug 2016 17:33 #78758 by jferguson
thanks much. it is so easy to just copy the routine and paste 16 times to get the 17 slots, but I was sure there must be a better way.

thanks much,

john

Please Log in or Create an account to join the conversation.

More
14 Aug 2016 18:35 #78760 by tommylight
Well, that will not work as you end up having 17 slots at the same position.
You need this:
linuxcnc.org/docs/html/gcode/coordinates.html
And maybe a loop with parametric gcode, so you can just change the number of slots and distances between them in X and Y plane.
linuxcnc.org/docs/html/gcode/o-code.html
Regards,
Tom

Please Log in or Create an account to join the conversation.

More
15 Aug 2016 00:05 #78781 by jferguson
I wimped out. it was so easy to copy and paste the code which mills the slot lifts the tool and moves it over an inch to cut the next one, that i just did that. This is for cutting grooves in the bottom of mdf which will become a vacuum table for cutting balsa parts for r/c airplanes.

I wanted the code to be tidy because I'm likely to want to make more of these things and having it use sub-routines or macros would make it easier to edit.

when I get done with this, i'll come back to making more compact code.

thanks for the ideas.

john

Please Log in or Create an account to join the conversation.

More
15 Aug 2016 07:45 #78787 by Rick G

Please Log in or Create an account to join the conversation.

More
15 Aug 2016 11:22 #78791 by jferguson
Bingo! Thank you so much. just what i needed. and not only that but I get to learn something.

john

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum