I'm trying to set up sensorless homing on corexy I run into bit of trouble.
I use this macro to test:
M117 S"Start sensorless homing"
M400 ; make sure everything has stopped before we make changes
M117 S"Set endstops to S3"
M574 X1 Y1 S3 ; set endstops to use motor stall
M117 S"Reduce current"
M913 X40 Y40 ; XY motors to 40% current
M117 S"Set sensitivity"
M915 X Y S-6 R0 F0 ; set X and Y to sensitivity 0, do nothing when stall, unfiltered
M117 S"Move Z down"
G91 ; use relative positioning
G1 S2 Z5 F1200 ; lift Z
G1 S2 X-325 F5000 ; move left 325mm, stopping at the endstop
G4 P500 ; wait 500msec
;G1 X5 ; move away from home
;G4 P500 ; wait 500msec
M400 ; make sure everything has stopped before we make changes
; X is homed at this point, now home the other axis
G1 S2 Y-325 F5000 ; move beyond axis minimum
G4 P500 ; wait 500msec
;G1 Y5 ; move away from home
G1 S2 Z-5 F1200 ; lower Z
M400 ; make sure everything has stopped
M913 X100 Y100 ; XY motors to 100% current
G90 ; back to absolute positioning
M574 X1 Y1 S1 ; define active low microswitches
What's happening is that when no axes are homed carriage moves towards 0,0, moving both motors at the same time. It catches the and and then moves again. This corresponds to separeate X and Y homing parts.
Any hints how to fix that?