Skip to content

Commit

Permalink
MACRO: temporary bugfix for _MOVE_TO_LOADING_POSITION
Browse files Browse the repository at this point in the history
we skip this part if the current toolhead is not the demanded toolhead. needs developing on a actual IDEX machine
  • Loading branch information
HelgeKeck committed Nov 3, 2024
1 parent 4ddc69f commit e59d61c
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions macros/load_filament.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -393,17 +393,29 @@ gcode:
{% if "xyz" in printer.toolhead.homed_axes %}
{% if printer["gcode_macro T%s" % toolhead].has_oozeguard|default(false)|lower == 'true' %}
{% if printer["gcode_macro T%s" % toolhead].loading_position is defined %}

# config
{% set loading_position = printer["gcode_macro T%s" % toolhead].loading_position|float %}
{% set speed = printer["gcode_macro RatOS"].toolchange_travel_speed|float * 60 %}

# move to loading position outside the oozegaurd
G1 X{loading_position} F{speed}

# wait for moves to finish
M400

# ---------------------------------------------
# temporary bugfix
# needs developing on a IDEX machine
# ---------------------------------------------
{% set idex_mode = '' %}
{% if printer["dual_carriage"] is defined %}
{% set idex_mode = printer["dual_carriage"].carriage_1|lower %}
{% endif %}
{% set act_t = 1 if idex_mode == 'primary' else 0 %}
{% if act_t == toolhead %}
# ---------------------------------------------
# config
{% set loading_position = printer["gcode_macro T%s" % toolhead].loading_position|float %}
{% set speed = printer["gcode_macro RatOS"].toolchange_travel_speed|float * 60 %}

# move to loading position outside the oozegaurd
G1 X{loading_position} F{speed}

# wait for moves to finish
M400
# ---------------------------------------------
{% endif %}
# ---------------------------------------------
{% endif %}
{% endif %}
{% endif %}
Expand Down

0 comments on commit e59d61c

Please sign in to comment.