-
Notifications
You must be signed in to change notification settings - Fork 14
/
btt_sfs_2.0.cfg
39 lines (35 loc) · 1.42 KB
/
btt_sfs_2.0.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
[filament_switch_sensor switch_sensor]
switch_pin: ^PC15
pause_on_runout: True
runout_gcode:
M117 Filament switch runout
insert_gcode:
M117 Filament switch inserted
[filament_motion_sensor encoder_sensor]
switch_pin: ^PA15
detection_length: 2.88
extruder: extruder
pause_on_runout: True
runout_gcode:
M117 Filament encoder runout
insert_gcode:
M117 Filament encoder inserted
[delayed_gcode DISABLEFILAMENTSENSOR] ; This will disable the SFS 1 second after klipper starts
initial_duration: 1
gcode:
SET_FILAMENT_SENSOR SENSOR=switch_sensor ENABLE=0 ; Put your filament sensor's name after SENSOR=
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=0 ; Put your filament encoder's name after SENSOR=
[gcode_macro SFS_ENABLE] ; Add this to PRINT_START
description: Enable smart filament sensor
gcode:
M117 ENABLING the Smart Filament Sensor
G92 E0
SET_FILAMENT_SENSOR SENSOR=switch_sensor ENABLE=1 ; Put your filament sensor's name after SENSOR=
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=1 ; Put your filament encoder's name after SENSOR=
[gcode_macro SFS_DISABLE] ; Add this to PRINT_END and PRINT_CANCEL
description: Disable smart filament sensor
gcode:
M117 DISABLING the Smart Filament Sensor
G92 E0
SET_FILAMENT_SENSOR SENSOR=switch_sensor ENABLE=0 ; Put your filament sensor's name after SENSOR=
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=0 ; Put your filament encoder's name after SENSOR=