lathe g76 feed jerky

More
17 Apr 2012 04:36 #19286 by jmelson
Replied by jmelson on topic Re:lathe g76 feed jerky
genec wrote:

Thank you Jon
I was able to run halscope and view spindle velocity but was surprised to see the correct dc velocity (rpm) with superimposed large random pulses. These were removed when I switched off the Stepper power supply.
I now know the source of the problem and will now work on it.
My thanks to everybody for your help
Gene

Well, I am NOT surprised. The large pulses were exactly what I was expecting
due to your symptoms. And, good to hear that you know what is causing it.
It may be easy or difficult to get rid of the noise pickup, but at least you now
have a simple way to detect the noise issue.

If you have any stepper motor cables that run near the encoder wires, that
would be the first thing to change.

Jon

Please Log in or Create an account to join the conversation.

More
17 Apr 2012 13:48 #19316 by BigJohnT
Replied by BigJohnT on topic Re:lathe g76 feed jerky
And if your encoder wires are in a shielded cable make sure you only ground one end otherwise you create a ground loop...

John

Please Log in or Create an account to join the conversation.

More
17 Apr 2012 14:11 #19318 by andypugh
Replied by andypugh on topic Re:lathe g76 feed jerky
genec wrote:

Thank you Jon
I was able to run halscope and view spindle velocity but was surprised to see the correct dc velocity (rpm) with superimposed large random pulses.


G76 doesn't use spindle velocity, just spindle position. However these spikes seem to indicate that the encoder is seeing extra pulses. These will give position errors, and inaccurate screw pitch, so need to be removed.

If you did have a B channel then the encoder would be a lot more resilient to noise, as only valid quadrature transitions would be detected. (if there is a spike in A without a B transition, then the encoder will count up by 1 then down by one, not up by two.)

Please Log in or Create an account to join the conversation.

More
17 Apr 2012 15:31 #19319 by PCW
Replied by PCW on topic Re:lathe g76 feed jerky
As a quick (speed limited) fix how about trying the debounce component?
That is, is feed the raw A and index signals to the debounce inputs and feed the debounce outputs to the encoder counter and then run the debounce comp at the base thread (with a debounce delay of 2 or 3 thread times)

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 01:25 #19536 by genec
Replied by genec on topic Re:lathe g76 feed jerky
Thanks for your suggestions re electrical noise. I have rerouted the signal cables away from the stepper cables and added the debounce component with 3 base period delay. The g76 code now cuts perfect pitch threads but I start the thread from 10 mm before the start of the cut. This gives the machine time to stabilise
first. Would a higher resolution encoder allow the program to lock sooner.
Thanks for your help.
Gene

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 03:36 #19538 by jmelson
Replied by jmelson on topic Re:lathe g76 feed jerky
genec wrote:

Thanks for your suggestions re electrical noise. I have rerouted the signal cables away from the stepper cables and added the debounce component with 3 base period delay. The g76 code now cuts perfect pitch threads but I start the thread from 10 mm before the start of the cut. This gives the machine time to stabilise
first. Would a higher resolution encoder allow the program to lock sooner.
Thanks for your help.
Gene

Probably not. It is a matter of the acceleration specified for the Z
axis and the velocity needed to follow the thread pitch.
You probably do not need 10 mm unless the acceleration
has been set really low. You might want to test by reducing
the length for acceleration, or maybe graphing the velocity of the Z axis
with Halscope to see how long it really takes to accelerate.

Jon

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 13:30 #19555 by andypugh
Replied by andypugh on topic Re:lathe g76 feed jerky
genec wrote:

net spindle-position encoder.0.position => motion.spindle-revs

Try:
net spindle-position encoder.0.position-interpolated => motion.spindle-revs

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds
Powered by Kunena Forum