25
« on: August 21, 2007, 12:11:26 AM »
This is a sub routine for making a work holding jig grid pattern 5" by 6" with 1" centers using 3/16 drill . You can easly modify this code to whatever size you need with copy and paste in MS note pad. Hope this helps someone out.
G90G01X0Y0Z1.0F50 (G90= absolute positioning command G01= linear movment)
X0.0Y0.0
G83R.125Q.125Z-1.50F50.G98 (G83= drill peck cycle R= retract value Q= amount of each peck G98 = return to intial absolute Z value G99=return to intial R value.)
M98 P12 L5 (M98=call beginning of subroutine P= subroutine name value L= number of times you want to loop the subroutine.)
G90G01Z1.0
X1.0Y0.0
G83R.125Q.125Z-1.50F50.G98
M98 P13 L5
G90G01Z1.0
X2.0Y0.0
G83R.125Q.125Z-1.50F50.G98
M98 P14 L5
G90G01Z1.0
X3.0Y0.0
G83R.125Q.125Z-1.50F50.G98
M98 P15 L5
G90G01Z1.0
X4.0Y0.0
G83R.125Q.125Z-1.50F50.G98
M98 P16 L5
G90G01Z1.0
X5.0Y0.0
G83R.125Q.125Z-1.50F50.G98
M98 P17 L5
G90G01Z1.0
M30 (end of program and rewind of program)
%
O12 (Letter O= call to subroutine name value defined)
G91X0.0Y-1.0F50 (G91= Incremental movement point to point only.)
M99(M99=end of subroutine)
%
O13
G91X0.0Y-1.0F50
M99
%
O14
G91X0.0Y-1.0F50
M99
%
O15
G91X0.0Y-1.0F50
M99
%
O16
G91X0.0Y-1.0F50
M99
%
O17
G91X0.0Y-1.0F50
M99
%