Skip to content

Runout filament sensor #127

Answered by jschuh
juanvelo asked this question in Q&A
Jun 9, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I keep my runout sensors positioned several inches before the extruder gears, so that when they trigger there's still enough filament available that the current layer will complete and the pause will run during the layer change:

[filament_switch_sensor runout]
pause_on_runout: False
switch_pin: <put your pin config here>
runout_gcode:
  # Pause immediately if we're in PRINT_START
  {% if printer.print_stats.info.current_layer < 1 %}
    PAUSE
  # Pause at the end of the layer if we're anywhere else
  {% elif printer.print_stats.info.current_layer <=
            printer.print_stats.info.total_layer and
          not printer.pause_resume.is_paused %}
    PAUSE_NEXT_LAYER
  {% endif %}

If y…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juanvelo
Comment options

Answer selected by juanvelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants