help:code for bipolar Stepper motor with limit switch

@unsupported, why have you posted, without any explanation, a program in Reply #2 that seems to have nothing in common with the code in your Original Post or your question or my Reply #1.

...R