A segment in a compiled program has to be longer than a system update rate (2ms). Therefore, the minimum distance for a segment must be calculated. The equation is as follows:
Revs/second * second/milliseconds * milliseconds/update rate * counts/rev
The following example uses a stepper motor with a resolution of 25000 steps/rev, and a velocity of 50 revs/second.
50 revs/1 second * 1 second/1000 millisecond * 2 millisecond/1 system update rate * 25000 counts/rev
= 2500 counts
Therefore, a segment with a distance less than 2500 will not compile.