Adjusted purge_line.

This commit is contained in:
Bassam Husain
2023-01-27 19:10:02 -05:00
parent 6f0f2f9579
commit b0a80c204d

View File

@@ -15,18 +15,19 @@ gcode:
[gcode_macro PURGE_LINE]
# https://github.com/JoeCat1207/V0.1-Purge-line-SuperSlicer/blob/main/Purgeline.txt
# https://github.com/VoronDesign/Voron-Switchwire/blob/200cdae033c59ef81f67c4235469da7ca66d53a1/Firmware/skr_mini_e3_v2_config.cfg
gcode:
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length %}
CHECK_PRE_PURGE_PRIME_LENGTH
G0 Y0 X40 F4000 ; go to tongue of print bed
G1 Z0.2 F500.0 ; move bed to nozzle
G0 Y0 X0 F4000 ; go to tongue of print bed
G1 Z0.4 F500.0 ; move bed to nozzle
G92 E0.0 ; reset extruder
G1 E{PRE_PURGE_PRIME_LENGTH} F500 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT
G1 X80 E8.0 F500.0 ; intro line 1
G1 Y0.3 ; move in a little
G1 X40 E8.0 F500.0 ; second line
G1 Y120 E30.0 F1200.0 ; intro line 1
G1 X1
G1 Y-120 E30.0 F1200.0 ; intro line 2
G92 E0.0 ; reset extruder
G1 Z2.0 ; move nozzle to prevent scratch
G1 Z3.0 ; move nozzle to prevent scratch
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT