Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generator script to make multiple toolhead touchdowns, to be used…
… with a depth indicator to determine platform levelness.
- Loading branch information
Matt Mets
authored and
Matt Mets
committed
Apr 22, 2011
1 parent
8e246cc
commit 2522f04
Showing
2 changed files
with
39 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/python | ||
|
||
from toolpathgenerator import * | ||
|
||
startCode = '''\ | ||
(*** Tool Path Generator ***) | ||
G21 (set units to mm) | ||
G90 (set positioning to absolute) | ||
M103 (Make sure extruder is off) | ||
(**** begin homing ****) | ||
G162 Z F500 (home Z axis maximum) | ||
G161 X Y F2500 (home XY axes minimum) | ||
M132 X Y Z A B (Recall stored home offsets for XYZAB axis) | ||
''' | ||
|
||
gen = ToolpathGenerator() | ||
gen.open('platform_leveler.gcode', startcode=startCode) | ||
gen.moveToXYZ(0,0,20,1500) | ||
|
||
for x in range(-40,41,40): | ||
for y in range(-50,51,50): | ||
gen.moveToXYZ(x,y,10,1500) | ||
gen.moveToXYZ(x,y,0,1500) | ||
gen.prompt("Ok.") | ||
gen.moveToXYZ(x,y,10,1500) | ||
|
||
gen.close(shutdowncode="") |
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