Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion meta-opencentauri/recipes-apps/klipper/files/macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,14 @@ gcode:
[gcode_macro CUT_FILAMENT]
variable_retract_length: 10
variable_pushback_length: 5
variable_cut_depth: 3.5
gcode:
{% set self = printer["gcode_macro CUT_FILAMENT"] %}
{% set global = printer["gcode_macro _global_var"] %}
{% set z_max = global.z_maximum_lifting_distance|int %}
{% set retract_length = self.retract_length|float %}
{% set pushback_length = self.pushback_length|float %}
{% set cut_depth = self.cut_depth|float %}

_CG28 AXIS=XY

Expand All @@ -537,7 +539,7 @@ gcode:

G0 Y30 F12000 ;preposition before cut
G0 X255 F12000 ;move to cut start position
G0 Y4 F6000 ;cut
G0 Y{cut_depth} F6000 ;cut
G0 Y20 F1200 ;retract slowly to clear housing

{% if printer.extruder.target >= 180 and printer.extruder.can_extrude %}
Expand Down
Loading