What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

Question Voron 2.4 Runout sensor code not pausing print

IBCrazy

Member
I am having issues getting my runout sensor to be recognized by my Voron 2.4. I am running the Octopus control board and I have the sensor plugged into "PG12" (the connector below my Z-position sensor). I tried the code on this website and it didn't work, so I tried the "refill please" code and that didn't work, either. The machine keeps right on going. I waited for it to finish a layer and still keeps right on going.

I verified the sensor has power and is working. It does switch states when the filament runs out. However, the Voron will not accept this input and pause the print.

What am I missing?
Code:

##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++RUNOUT SENSOR+++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#[filament_switch_sensor my_sensor]
#pause_on_runout: True
#runout_gcode:
# PARK_MACRO
# M117 Out of Filament
#insert_gcode:
# M117 Resuming
# RESUME_MACRO
#event_delay: 3.0
#pause_delay: 0.5
#switch_pin: PG12

#####################################################################
# RefillPlease - Filament Runout Sensor
#####################################################################

[filament_switch_sensor runout]
switch_pin: PG12 # Pin Stop_6 for Octopus mcu

# Without M600 macro (uncomment the line below and comment the two lines in the "With Filament change M600 macro"
# pause_on_runout: true

# With M600 Filament change macro
pause_on_runout: false # False activates ability to use runout_gcode instead of just running PAUSE automatically
runout_gcode:
M600 # Code to run when runout is detected
insert_gcode:
{% if printer.print_stats.state|lower != "paused" and printer.print_stats.state|lower != "printing" %}
RESPOND MSG="RUNOUT: Filament inserted. Run LOAD_FILAMENT to prime nozzle."
{% else %}
RESPOND MSG="RUNOUT: Filament inserted. Filament load starting in 20 seconds."
UPDATE_DELAYED_GCODE ID=_RELOAD_RUNOUT DURATION=20
LED_PRINTING # Code to run when new filament is inserted
{% endif %}


[gcode_macro M600]
description: Helper: Called to pause when runout detected
gcode:
{% if printer.print_stats.state|lower == "printing" %} #only do this if it's actually printing
SAVE_GCODE_STATE NAME=STATE_M600
RESPOND TYPE=error MSG="RUNOUT: Filament runout!"
PAUSE
LED_FILAMENT_RUNOUT
RESTORE_GCODE_STATE NAME=STATE_M600
{% endif %}

[delayed_gcode _RELOAD_RUNOUT]
gcode:
LOAD_FILAMENT RUNOUT="true"

/code
 
Top