Shot in the dark here...
When I switched my spindle encoder to a fairly high resolution version I ran in to intermittent problems with the signal. Turns out Mesa cards have a filter on the dedicated encoder inputs that can be adjusted:
Code:
filter (bit r/w)If set to True (the default), the quadrature counter needs 15 sample clocks to register a change on any of the three input lines (any pulse shorter than this is rejected as noise). If set to False, the quadrature counter needs only 3 clocks to register a change. The default encoder sample clock runs at approximately 25 to 33 MHz but can be changed globally with the sample-frequency or muxed-sample-frequency pin.
Setting it to False sorted things out in my case.
I've no idea if this is causing you a problem, but it's a easy & free thing to test.
After that, next suggestion would be to remove all the PID loops and other stuff from the spindle motor control loop. Run the VFD open loop, variator set to one position. Take everything that changes spindle speed out of the equation and do another series of G33 tests.
I don't know that the spindle speed variations are affecting the threading, but it cant be helping things. Listening to that
WAAAHH-uuhhhh-
WAAAHH-uuhhhh in the video was driving me nutsimage missing /media/kunena/emoticons/wink.png