Skip to content

Commit

Permalink
Retract length (#34)
Browse files Browse the repository at this point in the history
* added custom4..9 in start_print (Frix-x#539)

* updated beeper sections (Frix-x#549)

by switching to pwm_cycle_time instead of output pin

* removed M204 in favor of SET_VELOCITY_LIMIT (Frix-x#555)

* support for LDO Picobilical (Frix-x#533)

* removed M204 for SET_VELOCITY_LIMIT (Frix-x#554)

* removed last M204 for SET_VELOCITY_LIMIT (Frix-x#553)

* removed old artifacts from TMC2240 init feature

Please use https://github.com/andrewmcgr/klipper_tmc_autotune instead!

* Message update to show "Available RAM" rather than "Used RAM" (Frix-x#579)

* fixed max_z bug in PARK macro

* Update BTT_SKR_2.cfg to fix EXP1_4 typo (Frix-x#578)

* added a fix for filament sensor activation for material as default (Frix-x#582)

* code cleanup in some templates (removed extra spaces) (Frix-x#570)

* Nozzle cleaning parameters update (Frix-x#569)

* add expander templates support (Frix-x#567)

with Klipper expander and Arduino nano templates as first expanders

* Reset layers stats on start print (Frix-x#565)

* optional setting for adaptive primeline (Frix-x#522)

* fix typo in qgl.cfg

* added AWD support (2x X, 2x Y) (Frix-x#508)

* add built in adxl sensor from nitehawk sb board (Frix-x#602)

* Update LDO_Nitehawk-SB_v1.0.cfg (Frix-x#594)

* add: mcu Fystec Cheetah v3 (Frix-x#604)

* fixed default pins for SB2209 v1.0 (Frix-x#609)

* added function for pause at (next) layer (Frix-x#606)

* Add FYSETC Nozzle-Input-Shaper accelerometer support (Frix-x#603)

---------

Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Colten Edwards <cd.edwards@sasktel.net>
Co-authored-by: Nick Danyluk <ndanyluk7@gmail.com>
Co-authored-by: Christian Johnson <cjohnson-phys@users.noreply.github.com>
Co-authored-by: tsk-2222 <111063724+tsk-2222@users.noreply.github.com>
Co-authored-by: o1hitman1o <o1hitman1o@gmail.com>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>
Co-authored-by: Benoitone <63300355+Benoitone@users.noreply.github.com>
Co-authored-by: dev-aphex <dev-aphex@users.noreply.github.com>
Co-authored-by: Minims <github@minims.fr>
  • Loading branch information
12 people authored Aug 22, 2024
1 parent 4274e34 commit 54be56c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/base/cancel_print.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gcode:
{% set light_enabled = printer["gcode_macro _USER_VARIABLES"].light_enabled %}
{% set status_leds_enabled = printer["gcode_macro _USER_VARIABLES"].status_leds_enabled %}
{% set bed_mesh_enabled = printer["gcode_macro _USER_VARIABLES"].bed_mesh_enabled %}
{% set retract_length = printer["gcode_macro _USER_VARIABLES"].retract_length|default(10)|float %}
{% set filament_sensor_enabled = printer["gcode_macro _USER_VARIABLES"].filament_sensor_enabled %}
{% set filter_default_time = printer["gcode_macro _USER_VARIABLES"].filter_default_time_on_end_print|default(600)|int %}
{% set hotend_fan_tach_enabled = printer["gcode_macro _USER_VARIABLES"].hotend_fan_tach_enabled %}
Expand All @@ -25,7 +26,7 @@ gcode:
{% endif %}
{% elif printer.extruder.can_extrude %}
G92 E0
G1 E-{retract_length} F3600
G1 E-{retract_length} F2100
{% endif %}

{% if turn_off_heaters_in_end_print %}
Expand Down
1 change: 1 addition & 0 deletions macros/base/end_print.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gcode:
{% set status_leds_enabled = printer["gcode_macro _USER_VARIABLES"].status_leds_enabled %}
{% set bed_mesh_enabled = printer["gcode_macro _USER_VARIABLES"].bed_mesh_enabled %}
{% set filter_default_time = printer["gcode_macro _USER_VARIABLES"].filter_default_time_on_end_print|default(600)|int %}
{% set retract_length = printer["gcode_macro _USER_VARIABLES"].retract_length|default(10)|float %}
{% set filament_sensor_enabled = printer["gcode_macro _USER_VARIABLES"].filament_sensor_enabled %}
{% set hotend_fan_tach_enabled = printer["gcode_macro _USER_VARIABLES"].hotend_fan_tach_enabled %}
{% set retract_length = printer["gcode_macro _USER_VARIABLES"].retract_length|default(10)|float %}
Expand Down
3 changes: 3 additions & 0 deletions user_templates/variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ variable_retract_length: 10
variable_prime_line_height: 0.6 # mm, used for actual cross section computation
variable_prime_line_margin: 5 # distance of purge line from fl_size rectangle

## Length of filament to retract to reduce oozing after end of print (in mm)
variable_retract_length: 10

## Park position used when pause, end_print, etc...
variable_park_position_xy: -1, -1
variable_park_lift_z: 50
Expand Down

0 comments on commit 54be56c

Please sign in to comment.