Adjusted z lift height in print_end.

This commit is contained in:
Bassam Husain
2023-02-04 09:50:33 -05:00
parent 3be033f129
commit 59732ccb49

View File

@@ -89,14 +89,15 @@ gcode:
{% set y_safe = -20.0 %} {% set y_safe = -20.0 %}
{% endif %} {% endif %}
{% if printer.toolhead.position.z < (max_z - 2) %} {% set lift_height = 25.0 %}
{% set z_safe = 2.0 %} {% if printer.toolhead.position.z < (max_z - lift_height) %}
{% set z_safe = lift_height %}
{% else %} {% else %}
{% set z_safe = max_z - printer.toolhead.position.z %} {% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %} {% endif %}
G0 Z{z_safe} F2000 ; move nozzle up G0 Z{z_safe} F2000 ; move nozzle up
G0 X{x_safe} Y{y_safe} F7200 ; move nozzle to remove stringing G0 X{x_safe} Y{y_safe} F9000 ; move nozzle to remove stringing
TURN_OFF_HEATERS TURN_OFF_HEATERS
M107 ; turn off fan M107 ; turn off fan
G90 ; absolute positioning G90 ; absolute positioning