1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2025-04-21 12:27:27 +03:00

bacon/case/: top case part (almost machineable fped model)

The only thing missing is the coordinate setup.
This commit is contained in:
Werner Almesberger
2012-03-19 01:21:51 -03:00
parent ae7b6e1a22
commit b54f4a52e2
4 changed files with 218 additions and 0 deletions

51
bacon/case/Makefile Normal file
View File

@@ -0,0 +1,51 @@
CAE_TOOLS = /home/qi/cae-tools
CAMEO = $(CAE_TOOLS)/cameo
SPOOL = $(CAE_TOOLS)/spool/spool
CNGT = $(CAE_TOOLS)/cngt/cngt
GP2RML = $(CAE_TOOLS)/gp2rml/gp2rml
PIECE = -5 -5 30 55
PIECE_Z = 5.5
Z_STEP = 2
CLEARANCE = 5
SPEED_XY = 1
SPEED_Z = 1
.PHONY: all plot mill pos cng clean
all: mill.rml
case.gp:
fped -g case.fpd || { rm -f $@; exit 1; }
top.gp: case.gp
$(CAMEO)/fped2d2z.pl top $^ >$@ || { rm -f $@; exit 1; }
top-piece.gp: top.gp
./genpiece.pl $(PIECE) $< >$@ || { rm -f $@; exit 1; }
top-area.gp: top-piece.gp top.gp
$(CAMEO)/cameo top.cam || { rm -f $@; exit 1; }
mill.gp: top-area.gp
$(CAMEO)/zstack.pl -r $(PIECE_Z) $(Z_STEP) $< >$@ || \
{ rm -f $@; exit 1; }
mill.rml: mill.gp
$(GP2RML) $(CLEARANCE) $(SPEED_XY) $(SPEED_Z) $< >$@ || \
{ rm -f $@; exit 1; }
plot: mill.gp
echo 'splot "mill.gp" with lines' | gnuplot -persist
mill: mill.rml
PORT=/dev/ttyUSB0 $(SPOOL) $<
pos:
$(CNGT) 0
cng: mill.gp
$(CNGT) $(Z1) 10 $<
clean:
rm -f case.gp top-piece.gp top.gp top-area.gp mill.gp mill.rml