- It is useless doing two pass for homing with sensorless because this type not accurate.
- You must using StealthChop mode for drivers TMC2209.
- You must calculate and set special M915 Hnn for your speed. Hnn working like a filter.
Set big value Hnn and drivers will determine noise.
Set low value Hnn and drivers will not determine stall. - If motor 1.8 degree, try H90 and speed F1200.
My file homeall.g
; homeall.g
; called to home all axes
M17 ; Enable all stepper motors
G4 S1 ; Wait 1 second
;HOMING Z
M150 X2 R200 U0 B0 S3 ; Change LedLight of the screen to blue
G91 ; relative positioning
M913 Z60 ; set 60% motor current for safety before move
G1 H2 Z-1 F300 ; lift Z relative to current position
G1 H1 Z160 F600 ; move Z up until the endstop is triggered
G1 H2 Z-3 F300 ; lift Z relative to current position
G1 H1 Z3.5 F75 ; move Z up until the endstop is triggered
M400 ; Wait for current moves to finish
M913 Z100 ; set 100% motor current for motor Z
;PREPARING HOMING X and Y
G4 S1 ; Wait 1 second
M569 P0 D3 V40 ; Change from SpreadCycle to StealthChop at low speed for X axis
M569 P1 D3 V40 ; Change from SpreadCycle to StealthChop at low speed for Y axis
M913 X30 Y30 ; Decrease motors current to 30%
M566 X1 Y1 ; Decrease Jerk mm/min
M201 X300 Y300 ; Decrease Accelerations mm/sec^2
G91 ; Relative positioning
M915 X Y H90 S45 F0 R0 ; Configure motor stall detection for 20 mm/sec
;HOMING X
G1 H1 X5 F600 ; Move X axis from left stop
G4 P100 ; Wait 100 msec
G1 H1 X-154 F1200 ; Move X axis to left stop at 20 mm/sec
G4 P100 ; Wait 100 msec
G1 X10 F600 ; Move X axis from left stop
M400
;HOMING Y
G1 H1 Y5 F600 ; Move Y axis from left stop
G4 P100 ; Wait 100 msec
G1 H1 Y-159 F1200 ; Move Y axis to left stop at 20 mm/sec
G4 P100 ; Wait 100 msec
G1 Y10 F600 ; Move Y axis from left stop
M400 ; Wait for current moves to finish
M913 X100 Y100 ; Return motors current to 100%
M566 X900 Y900 ; Return Jerk to 15 mm/min
M201 X1500 Y1500 ; Return Accelerations 1500 mm/sec^2
G90 ; Absolute positioning
M400 ; Wait for current moves to finish
;HOMING X and Y manual without limit switches
;M150 X2 R0 U0 B200 S3 ; Change LedLight of the screen to blue
;M18 X Y ; Switch off motor X and Y
;M300 P500 ; Beep
;M291 P"Move head X0 Y0" R"HOMING X Y" S2 ; Show message on the screen
;M17 ; Switch on all motors
;G92 X0 Y0 ; Set current position X=0 Y=0