Hello Guest it is April 19, 2024, 09:02:07 AM

Author Topic: Drilling Lots of Holes  (Read 3142 times)

0 Members and 1 Guest are viewing this topic.

Offline olf20

*
  •  325 325
    • View Profile
Drilling Lots of Holes
« on: October 13, 2007, 02:58:05 PM »
Can some one help me with drilling lots of holes. Here is some basic code.

N5 G90 G80 G20 (CANNED CYCLE CANCEL)
N10 M06 T5 
N15 M03 S1450 
N20 G00 X1 Y1 
N25 G81 Z-0.5 R0.125 
N30 X2 
N35 X3 
N40 G80 G00 Z1 (CANNED CYCLE CANCEL)
N45 X0 Y0 
N50 M05 
N55 M30

I know I can add to X and get more holes. Is there someway of just telling it to drill N(umber) of holes D(istance) apart with a few lines of code?
Thanks olf20
Mach3, Atlas Knee Mill, 4th Axis, VcarvePro, ESS, Super PID.
Been Heating with corn since 1998

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Drilling Lots of Holes
« Reply #1 on: October 13, 2007, 04:56:01 PM »
Use the Row Bolt Pattern  wizard, enter a few numbers and  it will do it for you, that is as long as all your holes have the same spacing.
 There may well be a way of doing this the way you want but I am not too hot on code so maybe Graham or Brian or someone else will jump in.
Hood
Re: Drilling Lots of Holes
« Reply #2 on: October 13, 2007, 05:01:00 PM »
you need to add a feed rate on your G81 line. you could do an  increment position move with a repeat using a subprogram

Offline olf20

*
  •  325 325
    • View Profile
Re: Drilling Lots of Holes
« Reply #3 on: October 13, 2007, 08:09:07 PM »
Thanks Guys for the help! Between your help and Mach3 its unlimited what one can do with just a few lines of code.
With just a quick cut and paste I was able to drill 96 holes (2 Ft) come back and move y .250 and drill another 96.
WOW!
Thanks again!!!
olf20
Mach3, Atlas Knee Mill, 4th Axis, VcarvePro, ESS, Super PID.
Been Heating with corn since 1998