From 756fa55fd2dec9a0c6d1169f40fe323663c9ace9 Mon Sep 17 00:00:00 2001 From: kliment Date: Sat, 11 Jun 2011 19:32:11 +0200 Subject: [PATCH] Zero extruder after homing --- pronsole.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pronsole.py b/pronsole.py index 6610c95..bf98970 100644 --- a/pronsole.py +++ b/pronsole.py @@ -835,15 +835,20 @@ class pronsole(cmd.Cmd): self.do_move("Z 2") self.do_move("Z -3") self.p.send_now("G92 Z0") + if "e" in l.lower(): + self.p.send_now("G92 E0") if not len(l): self.p.send_now("G28") + self.p.send_now("G92 E0") def help_home(self): print "Homes the printer" - print "home - homes all axes (Using G28)" + print "home - homes all axes and zeroes the extruder(Using G28)" print "home xy - homes x and y axes (Using G1 and G92)" print "home z - homes z axis only (Using G1 and G92)" + print "home e - set extruder position to zero (Using G92)" print "home xyz - homes all axes (Using G1 and G92)" + print "home xyze - homes all axes and zeroes the extruder (Using G1 and G92)" if __name__=="__main__":