G30 S-2 to max endstop

  • Hi,

    With no min endstop and a max endstop configured for Z (M574 X0 Y0 Z2 S0) and a manual probe (M558 P0 ...), if I call G30 S-2, I get the manual probe assistant. Since the documentation mentions S-2 is used with a probe and all I have is a manual probe , the current behavior is correct.

    I would like to be able to use something like G30 S-2 to determine the maximum attainable z if all I have is a z max endstop, similar to how delta printers get their tower height measured. That way, when I change the nozzle or hotend, I can zero out the bed and find out what my actual current height is.

  • You should be able to do this by changing the home Z gcode.

    Just use your probe as normal to set the Z0 position at the bed.

    Then use the G1 command with the H3 flag. When it hits the endstop it will kill the move and update the max limit to be wherever the move ended.

    Something like this: G1 H3 Z500

  • Thanks, I'll check that out.

Log in to reply