Motor control

Thanks for the responses, they have been very helpful. I've got things working like a charm now.