From 9b4da6c5bad249e9d14bcdfd77842546de6d938f Mon Sep 17 00:00:00 2001 From: HelgeKeck Date: Thu, 28 Nov 2024 15:53:08 +0100 Subject: [PATCH] MACRO: parking position added --- macros/util.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macros/util.cfg b/macros/util.cfg index 693729bd..64704cdb 100644 --- a/macros/util.cfg +++ b/macros/util.cfg @@ -409,7 +409,7 @@ gcode: {% set idex_xcontrolpoint = svv.idex_xcontrolpoint|float %} {% set idex_ycontrolpoint = svv.idex_ycontrolpoint|float %} - {% set bed_margin_x = printer["gcode_macro RatOS"].bed_margin_x %} + {% set bed_margin_x = printer["gcode_macro RatOS"].bed_margin_x|float %} {% set stepper_x_position_max = printer.configfile.settings.stepper_x.position_max|float %} {% set dual_carriage_position_max = printer.configfile.settings.dual_carriage.position_max|float %} {% set dual_carriage_position_endstop = printer.configfile.settings.dual_carriage.position_endstop|float %} @@ -422,6 +422,8 @@ gcode: {% set line_6 = "_N_[gcode_macro _VAOC]" %} {% set line_7 = "variable_expected_camera_x_position: %.3f" % idex_xcontrolpoint %} {% set line_8 = "variable_expected_camera_y_position: %.3f" % idex_ycontrolpoint %} - CONSOLE_ECHO TITLE="Copy and paste to your printer.cfg" TYPE="info" MSG={'"%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_ "' % (line_1, line_2, line_3, line_4, line_5, line_6, line_7, line_8)} + {% set line_9 = "_N_[gcode_macro T1]" %} + {% set line_10 = "variable_parking_position: %.3f" % (dual_carriage_position_endstop + idex_xoffset - 2) %} + CONSOLE_ECHO TITLE="Copy and paste to your printer.cfg" TYPE="info" MSG={'"%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_%s_N_ "' % (line_1, line_2, line_3, line_4, line_5, line_6, line_7, line_8, line_9, line_10)} {% endif %}