diff options
author | wizard23 <wizard23> | 2009-05-07 17:58:16 +0000 |
---|---|---|
committer | wizard23 <wizard23@cb376a5e-1013-0410-a455-b6b1f9ac8223> | 2009-05-07 17:58:16 +0000 |
commit | 4e76b0b0e513d14b8ce94412ab50b051bd2c8628 (patch) | |
tree | 0c6c751fd3bd47a6ed40d76c7f5dce21e1b8c1cd | |
parent | 6dad1f86752c8e7266b845f49a8b136ce3a97aa5 (diff) | |
download | reprap-4e76b0b0e513d14b8ce94412ab50b051bd2c8628.tar.gz reprap-4e76b0b0e513d14b8ce94412ab50b051bd2c8628.zip |
git-svn-id: https://reprap.svn.sourceforge.net/svnroot/reprap@2897 cb376a5e-1013-0410-a455-b6b1f9ac8223
-rw-r--r-- | trunk/users/metalab/python/gCalibrator/generate_oozetester_decel.py | 17 | ||||
-rw-r--r-- | trunk/users/metalab/python/gCalibrator/generate_spiketest.py | 63 |
2 files changed, 80 insertions, 0 deletions
diff --git a/trunk/users/metalab/python/gCalibrator/generate_oozetester_decel.py b/trunk/users/metalab/python/gCalibrator/generate_oozetester_decel.py index 61040804..23f4bd55 100644 --- a/trunk/users/metalab/python/gCalibrator/generate_oozetester_decel.py +++ b/trunk/users/metalab/python/gCalibrator/generate_oozetester_decel.py @@ -22,6 +22,23 @@ raftHeight = (testRuns+2)*testHeight raftWidth = 5.0 raftParts = int(math.ceil((2*(preRun+run)+offLength)/raftWidth)) +print """ +(homing routing) +G21 +G90 +G92 X0 Y0 Z0 +G0 Z10 +M104 S220 T0 +M108 S255 +M6 T0 +G04 P5000 +M101 +G04 P5000 +M103 +M01 (Ready to print?) +G0 Z0 +(end of start.) +""" print "G21" print "G90" diff --git a/trunk/users/metalab/python/gCalibrator/generate_spiketest.py b/trunk/users/metalab/python/gCalibrator/generate_spiketest.py new file mode 100644 index 00000000..3e1fe104 --- /dev/null +++ b/trunk/users/metalab/python/gCalibrator/generate_spiketest.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python + +from gcodegen import * +import math + +feedrate = 1500.0 +layerHeight = 0.372 + +testRuns = 10 +testHeight = 4.0 +testLength = 40.0 + +rafts = 5 # should be an odd number :) +raftHeight = (testRuns+2)*testHeight +raftWidth = 5.0 +raftParts = int(math.ceil((testLength)/raftWidth)) + + +print "G21" +print "G90" +print "G28" +print "M103" +print "M108 S255.0" + + +startExtruder() + + +(x,y,z)=(0,0,layerHeight/2.0) + +moveTo(x,y,z,feedrate); + +for j in range(0, rafts): + if (j%2==0): + for i in range(0, raftParts): + (x, y) = raftPartX(x, y, raftWidth, raftHeight) + else: + for i in range(0, raftParts): + (x, y) = raftPartX(x, y, -raftWidth, raftHeight) + z += layerHeight + moveTo(x,y,z,feedrate); + + +(x,y) = moveToXY(x,y+raftHeight-testHeight) + + +z += layerHeight +layerStart(z); +moveTo(x,y,z,feedrate); + +testStartX = x + +for i in range(0, testRuns): + (x,y) = moveToXY(0,y) + (x,y) = sCurveYAbs(x,y,testStartX,y-testHeight) + +z += 10 +moveTo(x,y,z,feedrate) +print "M103" + + + + |