2 # Copyright 2017 by Bdale Garbee <bdale@gag.com>. GPLv3+
4 # drill holes in top of ammo box for TeleFireOne
6 # Z reference plane is top surface of stock
7 # X/Y origin is center of BNC connector hole
11 StockDepth = 0.250 # >= thickness of steel top on the ammo box
13 CutterOD = 0.125 # 1/8" end mill
15 Zfree = 0.250 # height in Z to clear all obstructions
16 Zspot = 0.050 # how deep to spot drill
18 Speed = 10 # cutting speed
19 PSpeed = 5 # plunge speed
22 print "G01 Z",-Zspot," F",PSpeed
30 print "(%s ammo box top, %s spot drill)" % (StockDepth, CutterOD)
38 # spot drill all holes for box top
45 print "G00 X0.065 Y1.400"
49 print "G00 X0.065 Y0.925"
53 print "G00 X0.065 Y-0.450"
57 print "G00 X0.065 Y-0.925"
61 print "G00 X0.065 Y-1.400"
65 print "G00 X-1.893 Y-1.142"
69 print "G00 X-1.893 Y1.142"
73 print "G00 X-0.180 Y-1.142"
77 print "G00 X-0.180 Y1.142"
81 print "G00 X-1.102 Y2.165"
85 print "G00 X-1.102 Y-2.165"