variable_unloadbusy: 0
variable_filamentpresent: 0
gcode:
#{% if unloadbusy == 0 and filamentpresent == 1 %} # requires [virtual_sdcard]
{% if unloadbusy == 0 %} # requires [virtual_sdcard]
SET_GCODE_VARIABLE MACRO=filament_unload VARIABLE=unloadbusy VALUE=1
SET_GCODE_VARIABLE MACRO=filament_load VARIABLE=loadbusy VALUE=1
# PANEL_BEEP # only for panel due
M118 Filament unloading!
M117 Filament unloading!
M82 #set extruder to absolute mode
G92 E0
{% if printer.extruder.can_extrude|lower != 'true' %} # checing for minimum extrusion temperature
# check if temperature is over the minimum extrusion temp. min_extrude_temp must be defined in the extruder config (to about 185)
M118 Hotend heating!
M109 S235 T0 # set temperature and wait
{% endif %}
G0 E-5 F3600 #extract filament to cold end
G0 E-100 F300 # continue extraction slow allow filament to be cooled enough before reaches the gears
#G0 E-20 F300 # for fast testing only
M104 S0 T0
M400
M118 Filament unload complete!
M117 Filament unload complete!
#SET_GCODE_VARIABLE MACRO=filament_load VARIABLE=loadbusy VALUE=0
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
{% else %}
M118 Nothing to unload!
{% endif %}```
#How do I modify this to prevent automatic unloading?
10 messages · Page 1 of 1 (latest)
what do you mean?
My printer will be idle and randomly decide that it has been asked to unload. I don't push anything, and I'll try starting a new print some time later only to realize the printer had spit out my filament enough that it'll fail the priming steps, but not enough to set off the filament runout so it'll still start a print.
the doesn't sound like a problem with the macro, that sounds like a problem with some button or something you have wired up to trigger the macro
I've never really cared for the macro, so I was considering just removing both the load and unload macros. They're all optional anyway so I think that'll be my course of action.
I suppose on a related note, I should mention that a lot of the newer toolheads/toolhead mods meant for use with filament changers have a sensor AFTER the drive gears, which should avoid that problem