motor code error

I have no idea.
What are you trying to do?
What does your code look like?
What does it do that you don't want it to, and what doesn't do that you do want it to?