Hello all,
In addition to the vertical drills, in my woodworking cnc there are horizontal drills too.
I know that there is canned cycles using the commands G8x, but none of them seems to fit in a horizontal drilling operation.
So I am wondering if there is a way to create a command to perform canned cycles by giving parameters, in the same way of G81 for example, but specifically for horizontal operations.
Thanks for any thoughts or ideas.
Sincerely,
Guilherme
Horizontal drilling program cycle
Moderators: TomKerekes, dynomotion
-
- Site Admin
- Posts: 15
- Joined: Fri Nov 24, 2017 8:22 pm
Re: Horizontal drilling program cycle
You can change the plane the canned cycle operates in with G17, G18, G19.
-
- Posts: 59
- Joined: Sun Aug 21, 2022 11:22 pm
Re: Horizontal drilling program cycle
Interesting, I'll try it. Thanks!
Extending the question. My woodworking machine has two vertical saws, one for X, and the other for Y axis. I wish to block the movements in one of the directions to prevent a mechanical colision when one of them is selected.
For example, when the vertical saw that cut in X direction is selected, the movement in Y direction is not allowed.
Which would be the best way to implement such a feature?
Sincerely,
Guilherme
Extending the question. My woodworking machine has two vertical saws, one for X, and the other for Y axis. I wish to block the movements in one of the directions to prevent a mechanical colision when one of them is selected.
For example, when the vertical saw that cut in X direction is selected, the movement in Y direction is not allowed.
Which would be the best way to implement such a feature?
Sincerely,
Guilherme
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Horizontal drilling program cycle
Hi Guilherme,
You might use a C Program running in a forever loop to monitor the X and Y saw destinations and if more than one is not at its home position then disable all axes.
You might use a C Program running in a forever loop to monitor the X and Y saw destinations and if more than one is not at its home position then disable all axes.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
- Posts: 59
- Joined: Sun Aug 21, 2022 11:22 pm
Re: Horizontal drilling program cycle
Hello Tom,You can change the plane the canned cycle operates in with G17, G18, G19.
I have finally tested this commands to change the plane.
It worked for drilling operation when the the hole pointed to the negative direction from the axis.
But, when in the opposite direction the KMotion pops a G code error stating that the parameter R from G81 is smaller than the x or y in the plane selected.
The following sketch shows a 2D square with horizontal holes in X and Y. It represents in which directions the cycles from G81 worked or not:
You can see a way to solve this problem?
Sincerely,
Guilherme
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Horizontal drilling program cycle
Hi Guilherme,
Unfortunately the Canned cycles are expecting to only drill "down" not up.
I suppose you could reconfigure (reverse) the axes for those cases. But offsets might then get complicated.
You might use a subroutine for the cycle as shown below:
Unfortunately the Canned cycles are expecting to only drill "down" not up.
I suppose you could reconfigure (reverse) the axes for those cases. But offsets might then get complicated.
You might use a subroutine for the cycle as shown below:
Code: Select all
(G90 G81 G98 X1 Y0 Z-5 R-10)
#1 = 1 (X Drill location)
#2 = 0 (Y Drill location)
#3 = -5 (Z Drill Depth)
#4 = -10 (R Retract height)
M98 P81 F100
M98 P81 #1=2 #2=2 (Drill at 2,2)
M98 P81 #1=3 #2=1 (Drill at 3,2)
M30
O81 (Canned drill cycle subroutine)
G0 Z#4 (Goto retract height)
G0 X#1 Y#2 (Goto Drill location)
G1 Z#3 (Drill)
G0 Z#4 (retract)
M99
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.