############################################################################# # Nozzle Cleaner Config ############################################################################# [gcode_macro CLEAN_NOZZLE] description: Nozzle cleaning using a silicone brush gcode: G28 # Raise the nozzle to avoid contact with the model G90 G1 Z10 F3000 ; Raise the nozzle by 10 mm # Move to the starting position of the brush G1 X-3 Y35 Z4 G1 Y30 # Start cleaning the nozzle G91 {% for repeat in range(5) %} G1 Y-2 X2 F4000 ; Wipe diagonally down-right G1 Y-2 X-2 F4000 ; Wipe diagonally down-left {% endfor %} {% for repeat in range (5) %} G1 Y2 X2 F4000 ; Wipe diagonally up-right G1 Y2 X-2 F4000 ; Wipe diagonally up-left {% endfor %} {% for repeat in range(5) %} G1 Y-2 X2 F4000 ; Wipe diagonally down-right G1 Y-2 X-2 F4000 ; Wipe diagonally down-left {% endfor %} {% for repeat in range (5) %} G1 Y2 X2 F4000 ; Wipe diagonally up-right G1 Y2 X-2 F4000 ; Wipe diagonally up-left {% endfor %} {% for repeat in range(5) %} G1 Y-2 X2 F4000 ; Wipe diagonally down-right G1 Y-2 X-2 F4000 ; Wipe diagonally down-left {% endfor %} {% for repeat in range (5) %} G1 Y2 X2 F4000 ; Wipe diagonally up-right G1 Y2 X-2 F4000 ; Wipe diagonally up-left {% endfor %} G90 G1 Z10 F3000 ; Raise the nozzle after cleaning