-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added panelized version of frontplate, added cupe examples, added sol…
…der helper
- Loading branch information
wesen3000
committed
Apr 2, 2009
1 parent
c69104f
commit e266800
Showing
4 changed files
with
258 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
(in-package :gcode) | ||
|
||
(defparameter *cupe-tool* | ||
(make-instance 'tool | ||
:diameter 3 ;; diameter vom tool | ||
:number 14 ;; nummer im cnc kontrollprogramm | ||
:depth 3 ;; maximale eintauchstiefe vom tool | ||
)) | ||
|
||
(defun cupe-shizzle () | ||
;; viereck von 10, 10 -> 50, 50 | ||
(with-program ("cupe-shizzle") | ||
(with-named-pass ("viereck") | ||
(goto-abs :x 0 :y 0) | ||
(spindle-on) | ||
(goto-abs :z 1.5) | ||
(goto-abs :x 10 :y 10) | ||
(let ((*current-tool* *cupe-tool*)) | ||
(with-named-pass ("befestigung") | ||
(drill :x 8 :y 8 :diameter 5 :depth 8)) | ||
(with-tool-down (2) | ||
(let ((x1 (orig-current-x)) | ||
(y1 (orig-current-y))) | ||
(with-named-pass ("bridge") | ||
(with-tool-down (1) | ||
(fly-to :x x1 :y y1) | ||
(mill-abs :x 15 :y y1)))) | ||
|
||
(fly-to :x 15) | ||
(mill-abs :x 50 :y 10) | ||
(mill-abs :x 50 :y 50) | ||
|
||
(let ((x1 (orig-current-x)) | ||
(y1 (orig-current-y))) | ||
(with-named-pass ("bridge") | ||
(with-tool-down (1) | ||
(fly-to :x x1 :y y1) | ||
(mill-abs :x 45 :y y1)))) | ||
|
||
(fly-to :x 45) | ||
(mill-abs :x 10 :y 50) | ||
(mill-abs :x 10 :y 10)))))) | ||
|
||
;; NC code genereien | ||
(program-to-file (cupe-shizzle) "/users/manuel/public/nc/test.nc" :order '("mill" "bridge")) | ||
(program-to-pdf (cupe-shizzle) "/users/manuel/public/nc/test.pdf" :order '("mill")) | ||
|
||
;; opcodes.lisp -> alles was direkt mit gcode zu tun hat - primitiven | ||
;; shapes.lisp -> (DRILL) (ARC-CW-ABS) (ARC-CCW-ABS) (MILL-ABS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(in-package :gcode) | ||
|
||
;; loet hilfen | ||
|
||
(defparameter *dick-holz-tool* | ||
(make-instance 'tool | ||
:number 16 | ||
:diameter 3 | ||
:depth 3)) | ||
|
||
(defun loethilfe () | ||
(with-program ("loethilfe") | ||
(with-named-pass ("mill") | ||
(with-tool (*dick-holz-tool*) | ||
(goto-abs :x 0 :y 0) | ||
(goto-abs :z *fly-height*) | ||
(fly-to :x 10 :y 10) | ||
(rectangle-mill 50 50 :depth 3) | ||
(fly-to :x 10 :y 70) | ||
(rectangle-mill 50 50 :depth 3) | ||
(fly-to :x 10 :y 130) | ||
(rectangle-mill 50 50 :depth 3) | ||
(fly-to :x 10 :y 190) | ||
(rectangle-mill 50 50 :depth 3) | ||
(fly-to :x 10 :y 250) | ||
(rectangle-mill 50 50 :depth 3) | ||
|
||
(drill :x 100 :y 100 :diameter 6 :depth 6) | ||
(drill :x 126.76 :y 100 :diameter 6 :depth 6) | ||
(drill :x 154.52 :y 100 :diameter 6 :depth 6) | ||
(drill :x 181.80 :y 100 :diameter 6 :depth 6))))) | ||
|