-
Notifications
You must be signed in to change notification settings - Fork 0
/
brush.cfg
35 lines (28 loc) · 1023 Bytes
/
brush.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[gcode_macro CLEAN_NOZZLE]
variable_start_x: 280 #Start position on X axis
variable_start_y: 380 #Start position on Y axis
variable_park_x: 186 #Park position after complete
variable_park_y: 380 #Park position after complete
variable_start_z: 5 #Z hight bed will go to
variable_wipe_dist: 42 #Distance between strokes
variable_wipe_qty: 6 #how many back and forths.
variable_wipe_spd: 400 #Speed of movement
variable_raise_distance: 10 #raise position after complete
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
G90 ; absolute positioning
## Move nozzle to start position
G1 X{start_x} Y{start_y} F6000
G1 Z{start_z} F1500
## Wipe nozzle
{% for wipes in range(1, (wipe_qty + 1)) %}
G1 X{start_x + wipe_dist} F{wipe_spd * 60}
G1 X{start_x} F{wipe_spd * 60}
{% endfor %}
## Raise nozzle
G1 Z{raise_distance}
## Park
G1 X{park_x} F6000
G1 Y{park_y} F6000