That's not the problem. The problem, if you look at the screenshot, is that it's overshooting the compensation, but the hal variables in the screenshot show that it's still below. Screenshot shows the spindle already at 1293 RPM, but the setting is set for 1000 RPM. This is with P=0.4. It should have attempted to decrease the spindle speed, but, if you look at the halshow output, it shows that spindle-vel-fb-rps is 13.94723, and spindle-vel-cmd-rps is 16.6667, so, it's behaving correctly if you look at the rps variables. BUT, the spindle-fb-rpm is 1315.024, and that is CLEARLY above the G code spindle speed of 1000 RPM.
I need someone to tell me what hal variables to look for to further debug this problem.
Thanks.
Paul Tan.