klipper_z_calibration icon indicating copy to clipboard operation
klipper_z_calibration copied to clipboard

is it possible to add the z_offset in the purge line?

Open Gil80 opened this issue 1 year ago • 11 comments

my current macro for purge line is like this:

   G90 E0        ; reset extruder distance
    G1 E20 F60    ; purge 20mm
# Purge sequence
    M117 Purge line...
    G1 X1 Y20 Z0.3 F5000.0           ; Move to start position
    G1 E5 F300                       ; Prime the nozzle
    G1 X1 Y200 F1500.0 E15           ; Draw the first line
    G1 X1.5 Y200 F5000.0             ; Move to side a little 
    G1 X1.5 Y30 F1500.0 E30          ; Draw the second line
    G1 Z4 F3000                      ; Move Z Axis up
    M83                              ; Relative E
    G92 E0                           ; Reset extruder distance
    STATUS_PRINTING

the problem is that it doesn't take into account the calculated z_offset. is it possible to add a variable there instead of an absolute value?

Gil80 avatar Aug 20 '23 20:08 Gil80