diff --git a/macros/main.cfg b/macros/main.cfg index 96716ab..b6f9887 100644 --- a/macros/main.cfg +++ b/macros/main.cfg @@ -359,6 +359,7 @@ gcode: SAVE_GCODE_STATE NAME=load_state G91 G92 E0 + G1 E{16} F300 # fast-load G1 E{load_distance} F{max_velocity} # fast-load G1 E{purge_distance} F{speed} # purge RESTORE_GCODE_STATE NAME=load_state diff --git a/toolhead_sb.cfg b/toolhead_sb.cfg index b12ea23..c5c99d7 100644 --- a/toolhead_sb.cfg +++ b/toolhead_sb.cfg @@ -101,6 +101,43 @@ run_current: 0.65 #0.6 [autotune_tmc extruder] motor: ldo-36sth20-1004ahg-9T + + +[filament_switch_sensor g2e_in] +pause_on_runout: True +# When set to True, a PAUSE will execute immediately after a runout +# is detected. Note that if pause_on_runout is False and the +# runout_gcode is omitted then runout detection is disabled. Default +# is True. +runout_gcode: +# A list of G-Code commands to execute after a filament runout is +# detected. See docs/Command_Templates.md for G-Code format. If +# pause_on_runout is set to True this G-Code will run after the +# PAUSE is complete. The default is not to run any G-Code commands. + UNLOAD_FILAMENT +insert_gcode: +# A list of G-Code commands to execute after a filament insert is +# detected. See docs/Command_Templates.md for G-Code format. The +# default is not to run any G-Code commands, which disables insert +# detection. + LOAD_FILAMENT +#event_delay: 3.0 +# The minimum amount of time in seconds to delay between events. +# Events triggered during this time period will be silently +# ignored. The default is 3 seconds. +#pause_delay: 0.5 +# The amount of time to delay, in seconds, between the pause command +# dispatch and execution of the runout_gcode. It may be useful to +# increase this delay if OctoPrint exhibits strange pause behavior. +# Default is 0.5 seconds. +#debounce_delay: 1 +# A period of time in seconds to debounce events prior to running the +# switch gcode. The switch must he held in a single state for at least +# this long to activate. If the switch is toggled on/off during this delay, +# the event is ignored. Default is 0. +switch_pin: ^!EBBCan:gpio22 + + ##################################################################### # Probe #####################################################################