-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunout.cfg
47 lines (42 loc) · 1.39 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[filament_switch_sensor switch_sensor]
switch_pin: PG10
pause_on_runout: False
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament switch runout
insert_gcode:
M117 Filament switch inserted
[filament_motion_sensor encoder_sensor]
switch_pin: PG11
detection_length: 2.88
extruder: extruder
pause_on_runout: False
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament encoder runout
insert_gcode:
M117 Filament encoder 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
M109 S50
[gcode_macro SWAP_RESUME]
description: M600 Resume Use this command resume during a mid print filament swap
gcode:
M109 S{hotendtemp}
RESTORE_GCODE_STATE NAME=M600_state
SET_FILAMENT_SENSOR SENSOR=switch_sensor ENABLE=1
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=1
RESUME