Stepper motors changing direction during homing function?

The horizontal bar will have sensors across it, and yes, I'm implementing tilt sensors that will sit in the middle of the bar to interrupt it if they misalign.