Originally Posted by
awerby
check again to make sure there's no binding at the top of the stroke. Check to see if any wires are stressed in these upward moves, or if they could be losing their ground connections. There could also be some kind of noise coming from your spindle. To check that, try running the problematic part of your program with the spindle turned off.