Controling Stepper motor with TB6560 and limit switch

How is this code like what I suggested?

digitalWrite(stepPin,HIGH);
    delayMicroseconds(5000); // short step pulse
    digitalWrite(stepPin,LOW);
    delayMicroseconds(5000);

Maybe there is a good reason why you have not followed my suggestion and if so please explain why.

...R