diff --git a/cfgs/misc-macros.cfg b/cfgs/misc-macros.cfg index e84062b..892bc75 100644 --- a/cfgs/misc-macros.cfg +++ b/cfgs/misc-macros.cfg @@ -84,20 +84,22 @@ gcode: {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %} {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %} {% set extrudeAmount = 26.6 %} - {% set movementLength = 100 %} + {% set movementLength = 100.0 %} {% set movementSpeed = 15 * 60 %} + {% set xStart = 0.5 %} + {% set yStart = 0.5 %} # Set safe speeds {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} - {% set maxVelocityAdjusted = (0.9 * maxVelocity * 60)|int %} + {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} G92 E0.0 ; reset extruder G90 ; Absolute positioning - G0 X0 Y0 F{maxVelocityAdjusted} ; move to purge position + G0 X{xStart} Y{yStart} F{maxVelocityAdjusted} ; move to purge position G1 Z0.4 F500.0 ; move to purge height M83 ; Relative extrusion mode G1 E{PRE_PURGE_PRIME_LENGTH} F500 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT - G1 X{movementLength} E{extrudeAmount} F{movementSpeed} ; intro line 1 + G1 X{xStart + movementLength} E{extrudeAmount} F{movementSpeed} ; intro line 1 #G1 E-.5 F2100 # Retract G92 E0.0 ; reset extruder M82 ; Absolute extrusion mode