Moving X axis 20mm after homing

I have a filament cutter at the front of my printer I want to avoid when homing.

As my printer homes X first then Y I’m trying to find a way that after X homes is there a way for me to move X 20mm before it starts to home Y?

See Configuration reference - Klipper documentation

I did try that and and X would move 20mm and then move back to home when Y homes

What exactly did you try?
With [homing_override] you can influence the behavior of the whole homing process!

For example you can differentiate the axes and then control each as necessary - here it homes X and moves to your desired 20 mm:

[homing_override]
axes: xyz
gcode:
  {% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}

  # Homing of X
  {% if home_all or 'X' in params %}
    G28 X
    G90
    G0 X20
  {% endif %}

  # Homing of Y  
  {% if home_all or 'Y' in params %}
    G28 Y
  {% endif %}

  # Homing of Z  
  {% if home_all or 'Z' in params %}
    G28 Z
  {% endif %}

You can of course outsource the actual homing commands into separate macros and call those within the [homing_override] section.

2 Likes

Thank you, That worked profectly

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.