Programming stepper motors to move until limit switches

Are your switches wired like any above?