Filament runout sensor code merged.

This commit is contained in:
Bassam Husain
2023-03-14 21:08:16 -04:00
parent 0db62e01f3
commit 95897311e6
2 changed files with 31 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ gcode:
# https://github.com/VoronDesign/Voron-Switchwire/blob/200cdae033c59ef81f67c4235469da7ca66d53a1/Firmware/skr_mini_e3_v2_config.cfg
gcode:
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G0 Y0 X0 F4000 ; go to tongue of print bed
G1 Z0.4 F500.0 ; move bed to nozzle
G92 E0.0 ; reset extruder
@@ -104,7 +104,7 @@ gcode:
{% set hotendtemp = params.HOTEND|int %}
{% set chambertemp = params.CHAMBER|default(0)|int %}
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G28 X Y
# <insert your routines here>
@@ -122,7 +122,7 @@ gcode:
[gcode_macro PRINT_END]
gcode:
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500 ; NOTE Comment out this line to stop the beeps at the end of a print
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
M400 ; wait for buffer to clear
@@ -190,7 +190,7 @@ gcode:
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=zhop VALUE={z} ; set z hop variable for reference in resume macro
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=etemp VALUE={printer['extruder'].target} ; set hotend temp variable for reference in resume macro
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
SAVE_GCODE_STATE NAME=PAUSE ; save current print position for resume
BASE_PAUSE ; pause print
@@ -217,7 +217,7 @@ gcode:
{% set e = params.E|default(2.5)|int %} ; hotend prime amount (in mm)
{% if printer['pause_resume'].is_paused|int == 1 %}
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value
{% if etemp > 0 %}