I have fitted homing switches to my machine but it triggers the switch but does not reverse far enough to disconnect the switch. How do I increase the reverse distance? The button script just says "do button 24" etc

TIA

John