Newbie question, simple step motor control

Thanks to all of you for you prompting and help. I've managed to pull everything together and get the job done.

All the best to you!