Endstop setting for microswitches