use G81 to cut slots instead of drill holes?
14 Aug 2016 14:14 #78739
by jferguson
use G81 to cut slots instead of drill holes? was created 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
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
14 Aug 2016 17:17 #78757
by tommylight
Replied by tommylight on topic use G81 to cut slots instead of drill holes?
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
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.
14 Aug 2016 17:33 #78758
by jferguson
Replied by jferguson on topic use G81 to cut slots instead of drill holes?
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
thanks much,
john
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
14 Aug 2016 18:35 #78760
by tommylight
Replied by tommylight on topic use G81 to cut slots instead of drill holes?
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
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.
15 Aug 2016 00:05 #78781
by jferguson
Replied by jferguson on topic use G81 to cut slots instead of drill holes?
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
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.
15 Aug 2016 07:45 #78787
by Rick G
Replied by Rick G on topic use G81 to cut slots instead of drill holes?
Please Log in or Create an account to join the conversation.
15 Aug 2016 11:22 #78791
by jferguson
Replied by jferguson on topic use G81 to cut slots instead of drill holes?
Bingo! Thank you so much. just what i needed. and not only that but I get to learn something.
john
john
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds