@Algadz said in Setup Z-probe and endstop:
I would like to be able to move the Z axis toward Zmax until the probe is triggered.
I think what's is confused here is that you are referring to it as a probe, however the application you're talking about using it in is using it as a endstop switch. In which case you won't use M558 and G31 and G30 anymore, as those moves are used for a probe that is able to move around in X and Y to map the bed surface.
What you're describing sounds like the inductive sensor is fixed at the Z max position and you want it to stop bed movement when homing to zmax, which I believe should be possible. How is your inductive sensor wired currently? You'd need to use M574 to configure a Z max endstop before you want to use it. You can leave the current Z min endstop configuration active in config.g. Then you can reconfigure to zmax in your macro before homing.
Something like described here: https://duet3d.dozuki.com/Guide/Ender+3+Pro+and+Duet+Maestro+Guide+Part+5:+Upgrades/54#s213