Selective QGL

This commit is contained in:
Siwat Sirichai 2024-01-22 19:50:08 +07:00
parent e35b543ee9
commit 2311395fe8
1 changed files with 13 additions and 5 deletions

View File

@ -487,11 +487,11 @@ gcode:
{% set ACTUAL_TEMP = printer.extruder.temperature %} {% set ACTUAL_TEMP = printer.extruder.temperature %}
{% if ACTUAL_TEMP > PROBE_TEMP %} {% if ACTUAL_TEMP > PROBE_TEMP %}
M106 S255 M106 S255
M109 S{ PROBE_TEMP } M109 S{ PROBE_TEMP }
M106 S0 M106 S0
{% else %} {% else %}
M109 S{ PROBE_TEMP } M109 S{ PROBE_TEMP }
{% endif %} {% endif %}
; get nozzle to probing temperture ; get nozzle to probing temperture
M190 S{ params.BED | float } ; wait for bed to reach temperture M190 S{ params.BED | float } ; wait for bed to reach temperture
@ -501,7 +501,15 @@ gcode:
{% if params.QGL is defined and params.QGL == "NO" %} {% if params.QGL is defined and params.QGL == "NO" %}
G28 G28
{% else %} {% else %}
G32 ; Is QGL applied already?
{% if printer.quad_gantry_level.applied %}
; QGL is applied, so just home the axis
G28
PARK_NOZZLE_REAR
{% else %}
; QGL is not applied, so home the axis and apply QGL and calibrate the mesh
G32
{% endif %}
{% endif %} {% endif %}
G1 Z20 F3000 ; move nozzle away from bed G1 Z20 F3000 ; move nozzle away from bed
M109 S{ params.EXTRUDER | float } ; wait for nozzle to reach temperture M109 S{ params.EXTRUDER | float } ; wait for nozzle to reach temperture