38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
[filament_switch_sensor switch_sensor]
|
|
switch_pin: ^filament_switch_sensor_pin # y_diag_pin
|
|
pause_on_runout: False
|
|
runout_gcode:
|
|
PAUSE # [pause_resume] is required in printer.cfg
|
|
M117 Filament switch runout
|
|
{% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %}
|
|
RESPOND PREFIX=tgnotify MSG="Filament switch runout!!"
|
|
{% endif %}
|
|
|
|
|
|
insert_gcode:
|
|
M117 Filament switch inserted
|
|
{% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %}
|
|
RESPOND PREFIX=tgnotify MSG="Filament switch inserted!!"
|
|
{% endif %}
|
|
|
|
|
|
[filament_motion_sensor encoder_sensor]
|
|
switch_pin: ^filament_encoder_sensor_pin
|
|
detection_length: 6
|
|
extruder: extruder
|
|
pause_on_runout: False
|
|
runout_gcode:
|
|
#PAUSE # [pause_resume] is required in printer.cfg
|
|
M117 Filament encoder runout
|
|
{% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %}
|
|
RESPOND PREFIX=tgnotify MSG="Filament encoder runout!!"
|
|
{% endif %}
|
|
|
|
|
|
insert_gcode:
|
|
M117 Filament encoder inserted
|
|
{% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %}
|
|
RESPOND PREFIX=tgnotify MSG="Filament encoder inserted!!"
|
|
{% endif %}
|
|
|