2010-08-15 04:38:47 +03:00
|
|
|
#!/bin/sh -e
|
|
|
|
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
|
2010-12-01 16:06:09 +02:00
|
|
|
CAMEO=../../../cae-tools/cameo/cameo
|
2010-08-15 04:38:47 +03:00
|
|
|
|
|
|
|
GEN=${1:-./pcb.pl}
|
|
|
|
|
2010-12-01 16:06:09 +02:00
|
|
|
rdata="8.1 11.2 -56.3 8.1 80.1 -56.1 117.2 12.8 -55.9"
|
|
|
|
|
2010-08-15 04:38:47 +03:00
|
|
|
# we need quite a large Z adjustment due to the table's vertical flexibility
|
2010-12-01 16:06:09 +02:00
|
|
|
Z=-56.6
|
2010-08-15 04:38:47 +03:00
|
|
|
|
|
|
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
|
|
|
|
|
|
|
$GEN |
|
|
|
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
2010-12-01 16:06:09 +02:00
|
|
|
$CAMEO -d 0.4445 |
|
2010-08-15 04:38:47 +03:00
|
|
|
$ALIGN 0 1 $rect |
|
|
|
|
# angle, reference (lower left corner), rect
|
2010-12-01 16:06:09 +02:00
|
|
|
$GP2RML 2 0.5 0.5
|
2010-08-15 04:38:47 +03:00
|
|
|
# clearance, xy speed, z speed
|
2010-12-01 16:06:09 +02:00
|
|
|
# since everything is in the same plane, z clearance must be thickness plus
|
|
|
|
# real clearance !
|