+++ /dev/null
-#! /usr/bin/python
-# Copyright 2017 by Bdale Garbee <bdale@gag.com>. GPLv3+
-
-# drill holes in top of ammo box for TeleFireOne
-
-# Z reference plane is top surface of stock
-# X/Y origin is center of BNC connector hole
-
-import math
-
-StockDepth = 0.250 # >= thickness of steel top on the ammo box
-
-CutterOD = 0.125 # 1/8" end mill
-
-Zfree = 0.250 # height in Z to clear all obstructions
-Zspot = 0.050 # how deep to spot drill
-
-Speed = 10 # cutting speed
-PSpeed = 5 # plunge speed
-
-def spot():
- print "G01 Z",-Zspot," F",PSpeed
- print "G00 Z",Zfree
- print
-
-def retract():
- print "G00 Z",Zfree
-
-print
-print "(%s ammo box top, %s spot drill)" % (StockDepth, CutterOD)
-print
-
-print "G17 G20 G90"
-retract()
-print "M3 S5000"
-print
-
-# spot drill all holes for box top
-
-print "(J8)"
-print "G00 X0 Y0"
-spot()
-
-print "(D2)"
-print "G00 X0.065 Y1.400"
-spot()
-
-print "(D1)"
-print "G00 X0.065 Y0.925"
-spot()
-
-print "(D5)"
-print "G00 X0.065 Y-0.450"
-spot()
-
-print "(D6)"
-print "G00 X0.065 Y-0.925"
-spot()
-
-print "(D7)"
-print "G00 X0.065 Y-1.400"
-spot()
-
-print "(H1)"
-print "G00 X-1.893 Y-1.142"
-spot()
-
-print "(H2)"
-print "G00 X-1.893 Y1.142"
-spot()
-
-print "(H3)"
-print "G00 X-0.180 Y-1.142"
-spot()
-
-print "(H4)"
-print "G00 X-0.180 Y1.142"
-spot()
-
-print "(SW1)"
-print "G00 X-1.102 Y2.165"
-spot()
-
-print "(SW2)"
-print "G00 X-1.102 Y-2.165"
-spot()
-
-print "M5 M2"
-print "%"
-