See this thread https://forum.duet3d.com/topic/16201/endstop-on-2nd-y-motor/2.