Date:2015-10-04 23:40:30 (7 years 11 months ago)
Author:Werner Almesberger
Commit:48c5cd0e7358fde99861168e58265032b58f7767
Message:cameo/templates/mkmk-simple: introduce Z0 parameter; clean up Z calculation

This allows the setting of the "tool down" position, e.g., when varying
the thickness of the support or of victim material under the PCB.
Files: cameo/templates/mkmk-simple (4 diffs)

Change Details

cameo/templates/mkmk-simple
99# X0, Y0 lower left corner of raw board, default: 0mm 0mm
1010# X, Y position in array, default: 0 0
1111# XN, YN number of boards in X/Y direction, default: 1 1
12# Z0 tool height when in contact with the surface
1213# ROT board rotation, default: 0 degrees
1314# DRILL drill diameter range, default: 13mil,14mil
1415# MILL_IN diameter of mill for work inside the board, default: 35mil
...... 
3132: ${X0:=0} ${Y0:=0}
3233: ${X:=0} ${Y:=0}
3334: ${XN:=1} ${YN:=1}
35: ${Z0:=-57.4}
3436: ${DRILL:="13mil 14mil"}
3537: ${MILL_IN:=35mil}
3638: ${MILL_OUT:=35mil}
...... 
7072align 1 $X0 $Y0 # align relative to board corner
7173translate 4mm 4mm # move to PCB zone assigned to project
7274array +3mm +3mm `expr $X + $xi` `expr $Y + $yi`
73z 0 -58.9mm # board surface (tool fully retracted)
74z 1.5mm # slack for extending the tool
75z 0 ${Z0}mm # board surface (tool extended)
7576z -$BOARD_Z # board thickness
7677z -0.5mm # tool extra depth
7778clear
...... 
118119        PORT=/dev/ttyUSB0 \$(SPOOL) drill.rml
119120
120121cng:
121        \$(CNGT) -57.4 20 mill.gp
122        \$(CNGT) $Z0 20 mill.gp
122123
123124plot:
124125        echo 'set size ratio -1; \

Archive Download the corresponding diff file

Branches:
master



interactive