Thank you, that makes a lot more sense than the other diagrams I had. As for the encoder count, what value do you use, I know it's a 500 count encoder, but what value is inserted for the count? Is the fudge factor an actual parameter? I'll search the forum for that one....