filament_sensor: gcode при окончании нити: M600
This commit is contained in:
parent
720e7c6617
commit
0041e73ec5
23
hw.cfg
23
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
|
||||
|
|
Loading…
Reference in New Issue