Stepper motor stopped responding when it used to work fine

Robin,

I tried your example code (the corrected version which you posted) and nothing happened when I compiled the code. Is there something I could be missing?

Thank you again for your advice and patience everyone.