Update ercf_additional.cfg

Updated macro to work with HHv2
This commit is contained in:
gennro 2023-09-11 19:12:40 -08:00 committed by GitHub
parent b00dfaf8a7
commit 9d6a96f386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,11 @@
[gcode_macro CUT_FILAMENT]
description: Cut filament by pressing the cutter on a fixed pin with a horizontal movement.
description: Cut filament by pressing the cutter on a fixed pin with a horizontal movement. Based on Thiscams macro but updated to work with HHv2
#Modify the below settings in mmu_parameters.cfg
#toolhead_sensor_to_nozzle: 62 this will need to be reduced to compensate for the extra filament letf in the nozzle so probably to 5 to 15mm shorter based on the variable_retract_length: below.
#force_form_tip_standalone: will need to be set to 1 and all tip forming settings will need to be disabled in your slicer including ramming.
#slicer_tip_park_pos: will need to be set just above the cutter slot.
# Distance to retract prior to making the cut, this reduces wasted filament but might cause clog
# if set too large and/or if there are gaps in the hotend assembly
@ -26,10 +32,10 @@ variable_pin_loc_x_compressed: 0
# Therefore, for a cut:
# - We first make a fast move to accumulate some momentum and get the cut blade to the initial contact with the filament
# - We then make a slow move for the actual cut to happen
variable_travel_spd: 18000
variable_cut_fast_move_spd: 4000
variable_cut_slow_move_spd: 800
variable_evacuate_speed: 18000
variable_travel_spd: 8000
variable_cut_fast_move_spd: 2000
variable_cut_slow_move_spd: 400
variable_evacuate_speed: 8000
variable_cut_dwell_time: 200 # time to dwell at the cut point in ms
variable_cut_fast_move_fraction: 0.5 # fraction of the move that uses fast move
@ -51,7 +57,7 @@ gcode:
{% set current_loc_x = printer.gcode_move.gcode_position.x %}
{% set current_loc_y = printer.gcode_move.gcode_position.y %}
SAVE_GCODE_STATE NAME=cut_filament_state
SET_PRESSURE_ADVANCE ADVANCE=0
{% if ("x" not in printer.toolhead.homed_axes) or ("y" not in printer.toolhead.homed_axes) %}
G28 X Y
@ -80,7 +86,7 @@ gcode:
M400
M117 Filament cut!
RESTORE_GCODE_STATE NAME=cut_filament_state
RESTORE_GCODE_STATE NAME=MMU_state MOVE=1 MOVE_SPEED={travel_spd} #restores MMU state to bring the toolhead back over the purge block after a cut so no oozing.
[gcode_macro _MOVE_TO_CUTTER_PIN]
description: helper to move the toolhead to the target pin in either safe or faster way, depending on toolhead clearance.
@ -116,6 +122,7 @@ gcode:
G4 P{cut_dwell_time}
G1 X{pin_park_x_loc} F{evacuate_speed} # evacuate
[gcode_macro _ERCF_FORM_TIP_STANDALONE]
[gcode_macro _MMU_FORM_TIP_STANDALONE]
gcode:
CUT_FILAMENT {rawparams}
CUT_FILAMENT {rawparams}