-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunout.cfg
30 lines (27 loc) · 965 Bytes
/
runout.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
[filament_switch_sensor runout]
switch_pin: PC15
pause_on_runout: False
runout_gcode: M600
insert_gcode:
M117 Filament inserted
[gcode_macro M600]
description: Filament Change. This macro will pause the printer, move the tool to the change position, and retract the filament 130mm
gcode:
{% set X = params.X|default(printer.configfile.config["stepper_x"]["position_endstop"]|string)|int %}
{% set Y = params.Y|default(printer.configfile.config["stepper_y"]["position_endstop"]|string)|int %}
{% set Z = params.Z|default(10)|int %}
{% set E = params.E|default(-20)|int %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G1 X0 Y0 F3000
G91
G1 E-50 F1000
[gcode_macro SWAP_RESUME]
description: M600 Resume Use this command resume during a mid print filament swap
gcode:
RESTORE_GCODE_STATE NAME=M600_state
SET_FILAMENT_SENSOR SENSOR=runout ENABLE=1
RESUME