From d53a6d822abdda06ead104567e7b15946062f731 Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Thu, 6 Apr 2023 09:31:15 -0400 Subject: [PATCH] Adjusted PRINT_START: travel speeds. --- cfgs/misc-macros.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cfgs/misc-macros.cfg b/cfgs/misc-macros.cfg index 438e2ef..87d700d 100644 --- a/cfgs/misc-macros.cfg +++ b/cfgs/misc-macros.cfg @@ -121,6 +121,10 @@ gcode: {% set hotendtemp = params.HOTEND|int %} {% set chambertemp = params.CHAMBER|default(0)|int %} + # Set safe speeds + {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} + {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} + ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1 G90 @@ -131,7 +135,7 @@ gcode: M104 S{hotendtemp} ; set & don't wait for hotend temp G28 Z ; final z homing - G1 X0 Y0 + G1 X0 Y0 F{maxVelocityAdjusted} M109 S{hotendtemp} ; set & wait for hotend temp BED_MESH_PROFILE LOAD=default