filament_sensor: gcode при окончании нити: M600

This commit is contained in:
Nikolay Kopitonenko 2024-03-20 14:16:11 +03:00
parent 720e7c6617
commit 0041e73ec5
1 changed files with 13 additions and 10 deletions

23
hw.cfg
View File

@ -75,16 +75,19 @@ pressure_advance = 0.04
[filament_switch_sensor filament_sensor] [filament_switch_sensor filament_sensor]
pause_on_runout: False pause_on_runout: False
runout_gcode: runout_gcode:
M117 Out of Filament M600
#positions here are in printer coordinates eg if you have a 300mm bed and your sensor is 7cm past the
#max y position then y_offset should be 370 #runout_gcode:
#{% set x_offset = 150 %} #approximate x location of the runout sensor # #M117 Out of Filament
#{% set y_offset = 370 %} #approximate y location of the runout sensor # #positions here are in printer coordinates eg if you have a 300mm bed and your sensor is 7cm past the
#z location not used but this can be easily extended to include a z offset if needed # #max y position then y_offset should be 370
#{% set current_x = printer.toolhead.position.x %} # #{% set x_offset = 150 %} #approximate x location of the runout sensor
#{% set current_y = printer.toolhead.position.y %} # #{% set y_offset = 370 %} #approximate y location of the runout sensor
#{% set distance = ((x_offset - current_x)**2 + (y_offset - current_y)**2)**(1/2) %} # #z location not used but this can be easily extended to include a z offset if needed
PAUSE_AFTER_D D=640 # #{% set current_x = printer.toolhead.position.x %}
# #{% set current_y = printer.toolhead.position.y %}
# #{% set distance = ((x_offset - current_x)**2 + (y_offset - current_y)**2)**(1/2) %}
# #PAUSE_AFTER_D D=640
# insert_gcode: # insert_gcode:
# M117 Resuming # M117 Resuming
# M602 # M602