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>
#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"
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