-
Notifications
You must be signed in to change notification settings - Fork 0
/
purge line.cfg
23 lines (23 loc) · 1.7 KB
/
purge line.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[gcode_macro PURGE_LINE]
gcode:
SAVE_GCODE_STATE NAME=PURGE_LINE_STATE
M117 Priming
G90 ; Absolute coordinates.
M82 ; absolute extruder
G92 E0 ; initialize extruder value to 0
G1 X-125 Y0 Z0.4 F3000 ; set nozzle to start position (5mm towards center of bed at 9 o'clock)
G3 X0 Y-125 I125 J0 Z0.3 E50 F2700 ; move from current position counterclockwise (G3) to X=0,Y=-125 along a 125mm radius arc oriented about X+125,Y+0 (0,0, where I=X-offset,J=Y-offset) ~196mm
G91 ; Relative coordinates.
G1 Y0.4 F1000 ; Move 0.4mm towards center of bed (X=0,Y=-124.6)
G90 ; Absolute coordinates.
G92 E0 ; initialize extruder value to 0
G2 X-124.6 Y0 I0 J124.6 Z0.3 E50 F2700 ; move from current position clockwise (G2) to X=-124.6,Y=0 along a 124.6mm radius arc oriented about X+0,Y+124.6 (0,0, where I=X-offset,J=Y-offset) ~196mm
G92 E0 ; initialize extruder value to 0
G1 E-0.5 F3000 ; Retract to avoid stringing.
G91 ; Relative coordinates.
G1 X-2 F1000 ; Wipe left to break string.
G1 X6 F3000 ; Wipe right to break string.
G90 ; absolute coordinates
M82 ; absolute extruder
G92 E0 ; initialize extruder value to 0
RESTORE_GCODE_STATE NAME=PURGE_LINE_STATE