1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-22 12:12:25 +02:00
wernermisc/vialtray/doit

29 lines
730 B
Plaintext
Raw Normal View History

#!/bin/sh
DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
RECT=$DIR/rect/rect
ALIGN=$DIR/align/align
ZMAP=$DIR/zmap/zmap
GP2RML=$DIR/gp2rml/gp2rml
CAMEO=../../../cae-tools/cameo/cameo
GEN=${1:-./pcb.pl}
# manual tool positioning !!
rdate="0 0 0 150 0 0 0 100 0"
# lower Z by 0.5 mm relative to highest point (-56.8)
Z=0
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
# cameo: we inline the tool diameter with the data
$GEN |
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
$CAMEO -d 0 |
$ALIGN 0 1 $rect |
# angle, reference (lower left corner), rect
$GP2RML 20 2 2
# clearance, xy speed, z speed
# since everything is in the same plane, z clearance must be thickness plus
# real clearance !