From: Ian Jackson Date: Sat, 6 Feb 2016 16:18:29 +0000 (+0000) Subject: pauseAtZ plugin: Make 15mm in Z park height configurable X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3093914fb43e6f8a579dcf97e188b98592cb7786;p=cura.git pauseAtZ plugin: Make 15mm in Z park height configurable 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 --- diff --git a/plugins/pauseAtZ.py b/plugins/pauseAtZ.py index bb104b31..a4118a00 100644 --- a/plugins/pauseAtZ.py +++ b/plugins/pauseAtZ.py @@ -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