Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: olf20 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
-
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
-
you need to add a feed rate on your G81 line. you could do an increment position move with a repeat using a subprogram
-
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