@Phaedrux said in Need help with stopend switch.:

It's not possible to slow down before the endstop, because it doesn't know where the endstop is before being homed. Typically homing would be done in two passes. A fast movement to the endstop, followed by a short movement back, and then a slower movement towards the endstop again for better accuracy.

Thanks.