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

bacon/case/: various bits and pieces for parametrization and correct positioning

This commit is contained in:
Werner Almesberger
2012-03-19 15:22:54 -03:00
parent b54f4a52e2
commit 3e39ae0d66
4 changed files with 55 additions and 15 deletions

View File

@@ -4,12 +4,18 @@ SPOOL = $(CAE_TOOLS)/spool/spool
CNGT = $(CAE_TOOLS)/cngt/cngt
GP2RML = $(CAE_TOOLS)/gp2rml/gp2rml
X0 = 5
Y0 = 5
Z1 = -44
PIECE = -5 -5 30 55
PIECE_Z = 5.5
Z_STEP = 2
CLEARANCE = 5
SPEED_XY = 1
SPEED_Z = 1
OVERSHOOT = 0.2
PARAMS = X0=$(X0)mm Y0=$(Y0)mm Z1=$(Z1)mm PIECE_Z=$(PIECE_Z)mm
.PHONY: all plot mill pos cng clean
@@ -19,19 +25,21 @@ 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) $< >$@ || \
$(CAMEO)/fped2d2z.pl -r 0=-$(OVERSHOOT) top $^ >$@ || \
{ rm -f $@; exit 1; }
mill.rml: mill.gp
top-piece.gp: top.gp
./genpiece.pl -r $(PIECE) $< >$@ || { rm -f $@; exit 1; }
top-area.gp: top-piece.gp top.gp cam.sh Makefile
./cam.sh PART=top CAMEO=$(CAMEO)/cameo $(PARAMS) >$@ || \
{ rm -f $@; exit 1; }
mill.gp: top-area.gp Makefile
$(CAMEO)/zstack.pl $(Z1) $(Z_STEP) $< >$@ || \
{ rm -f $@; exit 1; }
mill.rml: mill.gp Makefile
$(GP2RML) $(CLEARANCE) $(SPEED_XY) $(SPEED_Z) $< >$@ || \
{ rm -f $@; exit 1; }