Homing CoreXY with Makerbot Mechanical Endstop v1.2
-
Hello, I'm trying to move away from sensorless homing to Makerbot mechanical endstops on low end X and Y and Piezo on Z.
The issue is that when I home X and Y, as per the CoreXY setup guide, the endstops are ignored.
M574 yields "Endstop configuration: X: low end active low switch, Y: low end active low switch, Z: none," which matches what I'm after. M119 correctly reports when each respective homing device is triggered.
This are the relevant config and homeall:
config
; Endstops
M574 X1 Y1 Z0 S0
; Z-Probe
M558 P8 H10 I1 R1 F420 X0 Y0 Z1
G31 X0 Y0 Z-0.3 P600homeall
;Home X and Y
G91 ; relative positioning
G1 Z5 F420 S2 ; lift Z relative to current position
G1 X-355 Y-355 F420 S2 ; move quickly to X or Y endstop and stop there (first pass)
G1 X-355 S2 ; home X axis
G1 Y-355 S2 ; home Y axis
G1 X5 Y5 F420 S2 ; go back a few mm
G1 X-355 F360 S2 ; move slowly to X axis endstop once more (second pass)
G1 Y-355 S2 ; then move slowly to Y axis endstop
;Home Z
G91 ; relative positioning
G1 Z5 F420 S2 ; lift Z relative to current position
G90 ; absolute positioning
G1 X30 Y30 F420 ; go to first probe point
G30 ; home Z by probing the bed
G91 ; relative positioning
G1 Z5 F420 ; lift Z relative to current position
G90 ; absolute positioning
G1 X0 Y0 F420 ; go to originBest
-
I think you have too many S2s in your home files.
Here's mine.
; Home XY for Z homing ; G91 ; relative positioning G1 Z5 F200 S2 ; Lower bed 5mm to ensure it is below the switch trigger height M913 X50 Y50 ; set X Y motors to 50% of their normal current for homing G1 S1 X-375 Y305 F4000 ; course home X or Y G1 S1 X-375 F4000 ; course home X G1 S1 Y305 F4000 ; course home Y G1 X2 Y-2 F1000 ; move away from the endstops G1 S1 X-10 F200 ; fine home X G1 S1 Y10 F200 ; fine home Y M913 X100 Y100 ; set X Y motors to 100% of their normal current
G1 S1 checks endstop status.
-
Works a treat, thanks a lot!
Your comment is so true, S2 is needed for the first G1 move command and after that S1 is needed in order to look for endstops being triggered.
May many beers and hours of sublime printing come your way!