2010-11-28 01:17:25 +02:00
|
|
|
#!/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
|
|
|
|
|
2010-11-28 03:41:45 +02:00
|
|
|
GEN=${1:-./tray.pl}
|
2010-11-28 01:17:25 +02:00
|
|
|
|
2010-11-28 03:41:45 +02:00
|
|
|
rdata="0 0 0 150 0 0 0 100 0"
|
|
|
|
Z=-27.6
|
2010-11-28 01:17:25 +02:00
|
|
|
|
|
|
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
|
|
|
|
|
|
|
# cameo: we inline the tool diameter with the data
|
|
|
|
|
|
|
|
$GEN |
|
|
|
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
|
|
|
$ALIGN 0 1 $rect |
|
|
|
|
# angle, reference (lower left corner), rect
|
2010-11-28 03:41:45 +02:00
|
|
|
tee check |
|
|
|
|
$GP2RML 5 4 4
|
2010-11-28 01:17:25 +02:00
|
|
|
# clearance, xy speed, z speed
|