Date:2010-12-16 20:35:06 (13 years 3 months ago)
Author:Werner Almesberger
Commit:ba310a8ce4b33e1cf70bd2150155a907ec0a81ae
Message:atusb: updated and improved CAM script

- atusb/cam2/mkmk: updated for new board
- atusb/cam2/mkmk: further increased board to board spacing, to reduce
board deflection
- atusb/cam2/mkmk: decreased nominal mill diameter to 20 mil to compensate
for board/tool deflection
- atusb/cam2/mkmk: added target "dplot" to visualize the sequence in which
holes are drilled
Files: atusb/cam2/mkmk (3 diffs)

Change Details

atusb/cam2/mkmk
66mm
77
88gerber 35mil ../atusb-PCB_Edges.gbr
9align 1 8.1mm 11.2mm # align relative to board corner
10translate 25mm 2mm # move to PCB zone assigned to project
11translate 2mm 21mm # move a bit further
12array 19mm 36mm 3 0 # skip over previous boards
13z 0 -56.1mm # board surface
9align 1 4.6mm 9.0mm # align relative to board corner
10translate 3mm 3mm # move to PCB zone assigned to project
11array 20mm 37mm 3 0 # skip over previous boards
12z 0 -58.9mm # board surface (tool fully retracted)
13z 1.5mm # slack for extending the tool
1414z -0.8mm # board thickness
1515z -0.5mm # tool extra depth
1616clear
1717
1818excellon ../atusb.drl
1919drill 7mil 15mil # 12.5-13.5 mil drill
20optimize
2021write drill.gp
2122
2223remainder
23mill 32mil 0.01mm # 35 mil endmill; pretend it is a little smaller
24mill 20mil 0.01mm # 35 mil endmill; pretend it is a little smaller,
25            # to compensate for tool/board deflections
2426write mill.gp
2527
2628remainder
...... 
4042SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
4143CNGT=/home/qi/cae-tools/cngt/cngt
4244
43.PHONY: mill drill cng plot
45.PHONY: mill drill cng plot dplot
4446
4547mill:
4648        PORT=/dev/ttyUSB0 \$(SPOOL) mill.rml
...... 
4951        PORT=/dev/ttyUSB0 \$(SPOOL) drill.rml
5052
5153cng:
52        \$(CNGT) -56.1 20 mill.gp
54        \$(CNGT) -57.4 20 mill.gp
5355
5456plot:
5557        echo 'plot "drill.gp" with points, "mill.gp" with lines' | \
5658          gnuplot -persist
59
60dplot:
61        echo 'plot "< sed /^\$\$/d drill.gp" with linespoints' | \
62          gnuplot -persist
5763EOF

Archive Download the corresponding diff file



interactive