How to Set Z home



  • I am using a switch to home XYZ. When I home Z the nozzle is about .3mm below the bed. I have been trying figure out how to set it so it knows this. When I home XY the web interface shows X-33 Y-10 but Z still shows Z0.0.
    ; Axis Limits
    M208 X-33 Y-10 Z-0.3 S1 ; set axis minima
    M208 X220 Y220 Z240 S0 ; set axis maxima

    I also tried editing the homeZ.g and the homeall.g
    G92 Z0.3 ; set Z position to axis minimum (you may want to adjust this)

    What am I doing Wrong?


  • Moderator

    Can you post your homing files? Maybe your full config.g too.

    Do you mean that the nozzle is pushing into the bed surface? How are you measuring -0.3?

    When you trigger the endstop the position is set to either the minima or maxima from M208. So triggering the zmin endstop should set the position to -0.3 as you have that as your minima. Unless it's being reset with an G92 Z after hitting the endstop.



  • @Keith53 said in How to Set Z home:

    G92 Z0.3 ; set Z position to axis minimum (you may want to adjust this)

    Have you tride G91 Z-0.3?



  • @Phaedrux said in How to Set Z home:

    Can you post your homing files? Maybe your full config.g too.

    Do you mean that the nozzle is pushing into the bed surface? How are you measuring -0.3?

    When you trigger the endstop the position is set to either the minima or maxima from M208. So triggering the zmin endstop should set the position to -0.3 as you have that as your minima. Unless it's being reset with an G92 Z after hitting the endstop.

    The G92 Z0 was resetting it in the homeall.g and homez.g files. I commented out ;G92 Zxxx and now when it is on the Z end stop it shows what is in M208 below Thanks!

    M208 X-33 Y-10 Z-0.3 S1

    Not sure why G92 Z-.03 did not work. I use G92 on mills at work sounds like it should do the same thing on the printer.

    G92 "Change Work Coordinate System"
    G92 X0 Y0 Z=VTOFH[VTLCN]+12.7
    This would set where the spindle is now to X0 Y0 and Z would be the current tool in the spindles length+12.7


  • Moderator

    @Keith53 said in How to Set Z home:

    Not sure why G92 Z-.03 did not work.

    I'd have to see the actual file to venture a guess.

    Using G92 in the homing files is a bit of a kludge honestly. Best to refrain if possible.


Log in to reply