chiark / gitweb /
pauseAtZ plugin: Make 15mm in Z park height configurable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 16:18:29 +0000 (16:18 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 18:32:03 +0000 (18:32 +0000)
Just after retracting, and before parking the head, we move the Z
upwards.  Previously the minimum parking Z height was always 15mm.
The comment says:

  Change z before doing the move because the nozzle
  can hit the glass lock on the UM2

On my TAZ-5, this is not necessary.  And moving the Z axis a long
distance before parking is undesirable because Z axis moves are slow,
leading to a certain amount of ooze, etc.

So make the minimum Z parking height configurable.  We retain the
previous fixed value of 15mm as the default.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
plugins/pauseAtZ.py

index bb104b312b32c04704b04bf431ea236293b0c18d..a4118a00c677626adc6f8a7fc8227034c27d3bb8 100644 (file)
@@ -6,6 +6,7 @@
 #Param: parkX(float:150) Head park X (mm)
 #Param: parkY(float:0) Head park Y (mm)
 #Param: moveZ(float:5) Head move Z (mm)
+#Param: parkMinZ(float:15) Minimum head park Z (mm, abs)
 #Param: retractAmount(float:1) Retraction amount (mm)
 
 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
@@ -87,9 +88,9 @@ with open(filename, "w") as f:
 
                                zChanged = False
                                #Change z before doing the move because the nozzle can hit the glass lock on the UM2
-                               if z + moveZ < 15:
+                               if z + moveZ < parkMinZ:
                                        zChanged = True
-                                       f.write("G1 Z15 F300\n")
+                                       f.write("G1 Z%f F300\n" % (parkMinZ))
 
                                elif moveZ > 0:
                                        newZ = z + moveZ