Software needed:
Hardware needed:
[include yourfilename.cfg]
,position_max
in stepper_x
section, in printer.cfg.[gcode_macro CLEAN_NOZZLE]
variable_start_x: 237.5 ;where the nozzle will start
variable_start_y: 18 ;where the bed will start
variable_start_z: 17 ;where the z axi will start
variable_wipe_dist_y: -15 ;how far will the bed move
variable_wipe_qty: 3 ;how many times will it move
variable_wipe_spd: 300 ;wipe speed
variable_raise_distance: 18 ;how much it will be raised
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
G90 ;absolute positioning
;Move nozzle to start position
G1 Z{start_z} F1500
G1 X{start_x} Y{start_y} F6000
;Wipe nozzle
{% for wipes in range(1, (wipe_qty + 1)) %}
;WIPE LEFT
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
;WIPE RIGHT
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
{% endfor %}
G1 Z 25 ;raises the z axi
G28 ;homes all axis
The author marked this model as their own original creation.