Help setting z endstop position (Voron 2.4)
-
I am trying to get my z dialed in enough to print but I am not having any luck.
The Voron 2.4 has a Z endstop switch that is off the edge of the bed and typically above the bed surface (as mine is). It is triggered by the nozzle tip hitting the endstop. My problem is that I am trying to set my offset for the z endstop in homeall.g but I have decided that won't work. Z position after ending homeall.g is always 0. What would be the proper method of setting this up so that z = 0 means the nozzle is at the bed surface, rather than at the position of the endstop? This printer is usually run by Klipper so I can't get help from others who have built/configured this printer.
I tried using baby stepping M290 to do the adjustment but that just ended up with a printer that would not go down to 0 but would stop at whatever height I put into M290.
It seems to me that I would like to run home till I trigger the z endstop, then set the height of Z to be the difference between where it triggers and where my bed surface actually is. I just don't know how to accomplish that.I am using the below for homeall.g
; homeall.g
; called to home all axes
G91 ; relative positioning
G1 Z8 F800 H2 ; lift Z relative to current position
; Homing Moves
G1 H1 X310 F6000 ; move quickly to X axis endstops and stop there (first pass)
G1 H1 Y310 F6000 ; move quickly to Y axis endstops and stop there (first pass)
;G1 Y288 F2000
G90 ; back to absolute mode
;Homing Z
G1 X204 Y310 F3600 ;position of Z swtich ;
G1 H1 Z-200 F360 ; move Z down until the switch triggers ; speed 360
; never leave nozzle on endstop in case nozzle is hot = BAD
; Z Offset
G92 Z.55 ; this does not work or change z
; Parking Position
G1 Z10 F6000 ; park it
-
I think I figured it out for myself. I added these lines after the z endstop is triggered.
; Z Offset
G1 Y300 ; move back over bed
G1 Z0 ; move to 0
G92 Z.45 ; reset to actual height -
@erice555 yes that's the correct way to account for a low-end homing switch that triggers above the axis minimum.