Issues homing homes x and y separately, but not when I click home all

When I select home all, x homes as normal, but then Y will act as if it's already homed and move forward 150mm. Though when homeing each axis individually, this works as expected. I'm using sensorless homing on the octopus board with tmc 2209 drivers. Current Homing override code is below [homing_override] set_position_z: 5 gcode: M400 # Wait for moves to finish G90 # Absolute positioning G0 Z10 F600 # Hop Z-Axis M204 S1000 # Set homing acceleration (important!) {% set x_homed = 'x' in printer.toolhead.homed_axes %} {% set y_homed = 'y' in printer.toolhead.homed_axes %} # Set homeing current SET_TMC_CURRENT STEPPER=stepper_x CURRENT=0.6 SET_TMC_CURRENT STEPPER=stepper_y CURRENT=0.6 # Home X #{% if params.X is defined or params.Y is not defined and params.Z is not defined %} G28 X G0 X 150 F9000 {% set x_homed = True %} #{% endif %} # Home Y {% if params.Y is defined or params.X is not defined and params.Z is not defined %} G28 Y G0 Y 150 F9000 {% set y_homed = True %} {% endif %} Deploy_Probe # Restore current SET_TMC_CURRENT STEPPER=stepper_x CURRENT={printer.configfile.config["tmc2209 stepper_x"].run_current} SET_TMC_CURRENT STEPPER=stepper_y CURRENT={printer.configfile.config["tmc2209 stepper_y"].run_current} # Home Z {% if params.Z is defined or params.Y is not defined and params.X is not defined %} {% if x_homed == False or y_homed == False %} M118 X and Y must be homed before homeing Z {% else %} G0 X 150 Y 150 F9000 G28 Z {% endif %} {% endif %} # Safe Z G0 Z10 F600 Stow_probe # Restore acceleration M204 S{printer.configfile.config.printer.max_accel}
6 Replies
blacksmithforlife
Is this a vcore3 or Minion?
ugly-tan
ugly-tan2y ago
vcore 3
blacksmithforlife
both motors are used to move in X and Y. So you need to adjust the sensitivity because when it homes X it is also triggering Y. This is a very delicate balance for a coreXY machine, and it is why I went with physical endstops
ugly-tan
ugly-tan2y ago
That's done it. I've set the sensitivity on both to 50. Though now having trouble with the Z tilt adjust. Would you know where I would go to change the macro for this to add a line for deploying the probe?
blacksmithforlife
All changes should be in your printer.cfg (see the USER OVERRIDES section)
ugly-tan
ugly-tan2y ago
Thanks