Root/f10/mkmk

Source at commit 62aa854036d70e4033c6d155c7b0e0715f8e3c81 created 6 years 11 months ago.
By Werner Almesberger, ircstat/stat: add 2013
1PATH=$PATH:/home/qi/cae-tools/cameo
2PATH=$PATH:/home/moko/svn.openmoko.org/developers/werner/cncmap/gp2rml
3
4cameo <<EOF
5mm
6
7gerber 35mil f10-PCB_Edges.gbr
8align 1 31.6mm 13.3mm # align relative to board corner
9z 0 -56.8mm # board surface (tool fully extended)
10z -1.6mm # board thickness
11z -0.5mm # tool extra depth
12clear
13
14excellon f10.drl
15drill 0.7mm 0.89mm # 0.8-0.89 mm fill
16optimize
17write mill.gp
18
19remainder
20mill 20mil 0.01mm # 35 mil endmill; pretend it is a little smaller,
21                        # to compensate for tool/board deflections
22append mill.gp
23
24remainder
25empty
26EOF
27
28gp2rml 3 0.2 0.2 mill.gp >mill.rml
29
30cat <<EOF >Makefile.mkmk
31SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
32CNGT=/home/qi/cae-tools/cngt/cngt
33
34.PHONY: mill drill cng plot
35
36mill:
37        PORT=/dev/ttyUSB0 \$(SPOOL) mill.rml
38
39cng:
40        \$(CNGT) -56.8 20 mill.gp
41
42plot:
43        echo 'plot "mill.gp" with linespoints' | \
44          gnuplot -persist
45EOF
46

Archive Download this file

Branches:
master



interactive