From 0041e73ec563c7357dfad63270a55833895cf5b6 Mon Sep 17 00:00:00 2001 From: Nikolay Kopitonenko Date: Wed, 20 Mar 2024 14:16:11 +0300 Subject: [PATCH] =?UTF-8?q?filament=5Fsensor:=20gcode=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=BE=D0=BA=D0=BE=D0=BD=D1=87=D0=B0=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B8=D1=82=D0=B8:=20M600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw.cfg | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/hw.cfg b/hw.cfg index ff0813a..898de0e 100644 --- a/hw.cfg +++ b/hw.cfg @@ -75,16 +75,19 @@ pressure_advance = 0.04 [filament_switch_sensor filament_sensor] pause_on_runout: False runout_gcode: - M117 Out of Filament - #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 - #{% set x_offset = 150 %} #approximate x location of the runout sensor - #{% set y_offset = 370 %} #approximate y location of the runout sensor - #z location not used but this can be easily extended to include a z offset if needed - #{% 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 + M600 + +#runout_gcode: +# #M117 Out of Filament +# #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 +# #{% set x_offset = 150 %} #approximate x location of the runout sensor +# #{% set y_offset = 370 %} #approximate y location of the runout sensor +# #z location not used but this can be easily extended to include a z offset if needed +# #{% 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: # M117 Resuming # M602