Quote:
Originally Posted by billanygard
I have read a little in an "sidethread" about another solution but for now that is to heavy for me.
//Olsson

The problem is that no matter what you do you end up with a required division that includes a fraction of a step under some circumstances and stepper motors can only move whole steps. You will get errors if your script simply calculates a fixed number of steps per division.
Imagine a rotary table doing 36 divisions around the complete circle and the required number of divisions is 100.333333333 steps per division. So if you just round this to 100 steps, by the time you get right round the circle, you have missed 36 x 0.3333 = 12 steps.
The only way to fix this is to work out a way of distributing those missing steps around the circle. In our imaginary example, if you moved 101 steps every third division, your problem is solved.
Work out how to code that and your problem will go away.