From 62bb677e3d6596119a6acbe4490d3bd2e2bc54c5 Mon Sep 17 00:00:00 2001 From: Surion79 <102791900+Surion79@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:12:36 +0100 Subject: [PATCH 1/2] optional setting for adaptive primeline --- macros/base/start_print.cfg | 2 +- user_templates/variables.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/macros/base/start_print.cfg b/macros/base/start_print.cfg index b5f05a782..b74feb1fd 100644 --- a/macros/base/start_print.cfg +++ b/macros/base/start_print.cfg @@ -30,7 +30,7 @@ gcode: {% set TOOLS_USED = params.TOOLS_USED|default("")|string %} # Check if MMU gates (used in gcode file) are availables {% set SYNC_MMU_EXTRUDER = params.SYNC_MMU_EXTRUDER|default(0)|int %} # set MMU gear motor and extruder synchronization during print TODO {% set BED_MESH_PROFILE = params.MESH|default("")|string %} # Bed mesh profile to load - {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(1)|int %} # Weither to do or not an adaptive prime line near the real print zone + {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(printer['gcode_macro _USER_VARIABLES'].use_adaptive_primeline)|default(1)|int %} # Weither to do or not an adaptive prime line near the real print zone # Set the variables to be used in all the modules based on the slicer parameters SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=bed_temp VALUE={BED_TEMP} diff --git a/user_templates/variables.cfg b/user_templates/variables.cfg index 63c9b1390..5ab248515 100644 --- a/user_templates/variables.cfg +++ b/user_templates/variables.cfg @@ -55,6 +55,7 @@ variable_probe_dock_margin_xy: 0, 0 variable_safe_extruder_temp: 150 ## Prime line parameters +variable_use_adaptive_primeline: 1 # using the adaptive primeline manages start point and direction automatically variable_prime_line_xy: 5, 2.5 # starting point variable_prime_line_direction: "X" # can also be set to "Y" variable_prime_line_length: 40 # length of the prime line on the bed (in mm) From 4e6bf7d2d383bbae72912b0bc8c6701f11e345f4 Mon Sep 17 00:00:00 2001 From: Surion79 <102791900+Surion79@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:23:31 +0100 Subject: [PATCH 2/2] changed variable as requested --- macros/base/start_print.cfg | 2 +- user_templates/variables.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/base/start_print.cfg b/macros/base/start_print.cfg index b74feb1fd..c934a0d19 100644 --- a/macros/base/start_print.cfg +++ b/macros/base/start_print.cfg @@ -30,7 +30,7 @@ gcode: {% set TOOLS_USED = params.TOOLS_USED|default("")|string %} # Check if MMU gates (used in gcode file) are availables {% set SYNC_MMU_EXTRUDER = params.SYNC_MMU_EXTRUDER|default(0)|int %} # set MMU gear motor and extruder synchronization during print TODO {% set BED_MESH_PROFILE = params.MESH|default("")|string %} # Bed mesh profile to load - {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(printer['gcode_macro _USER_VARIABLES'].use_adaptive_primeline)|default(1)|int %} # Weither to do or not an adaptive prime line near the real print zone + {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(printer['gcode_macro _USER_VARIABLES'].prime_line_adaptive_mode)|default(1)|int %} # Place an adaptive prime line near the real print zone # Set the variables to be used in all the modules based on the slicer parameters SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=bed_temp VALUE={BED_TEMP} diff --git a/user_templates/variables.cfg b/user_templates/variables.cfg index 5ab248515..9920d31f4 100644 --- a/user_templates/variables.cfg +++ b/user_templates/variables.cfg @@ -55,7 +55,7 @@ variable_probe_dock_margin_xy: 0, 0 variable_safe_extruder_temp: 150 ## Prime line parameters -variable_use_adaptive_primeline: 1 # using the adaptive primeline manages start point and direction automatically +variable_prime_line_adaptive_mode: True # using the adaptive primeline manages start point and direction automatically variable_prime_line_xy: 5, 2.5 # starting point variable_prime_line_direction: "X" # can also be set to "Y" variable_prime_line_length: 40 # length of the prime line on the bed (in mm)