threading - spindle encoder synchonization issues
07 Mar 2022 00:11 #236546
by carson
threading - spindle encoder synchonization issues was created by carson
Hi, I'm trying to get consistent threading working on my lathe which is a Taig lathe that I converted to CNC and is running Linuxcnc. For a while I was trying to cut threads with just one encoder output pulse per revolution. This seemed to work okay for coarse threads but the carriage was visibly jerky due to insufficient feedback rates.
So now I have a 60 pulse per revolution encoder, in addition to the single pulse index. This is a home-built encoder made by printing out 60 stripes around a circle on a transparency which is adhered to a transparent piece of plastic. This disc runs through an optical interrupter switch.
Now the carriage moves much more smoothly and seems to cut decent threads but not consistently. During a threading operation, things will be going fine and then I'll get a very ragged cut that seems to be removing a lot more material than previous cuts. Sometimes it's so bad that the tool will get clogged behind the chip and stall the spindle (these tests were mostly on aluminum, 20 tpi, 1/2" to 1" diameters).
I'm wondering if the spindle synchronization is not working perfectly, so that occasionally the tool enters the work slightly out of phase with previous cuts, resulting in a much larger depth of cut.
Does anyone know of any good ways to diagnose this issue? I've done some pulse counting with a logic analyzer to verify that I'm getting the right number of pulses per revolution. I also verified that the cross feed is advancing the correct amount each pass. But it seems tricky to measure the precise phase of the spindle at the point when the tool enters the work.
It could be a mechanical issue, like my tool isn't sharp enough, or maybe the tool gets deflected and ends up taking a heavy cut occasionally. But the resulting threads look a little strange to me: not quite v shaped trenches. More like a "u", indicating that the tool wasn't quite overlapping each pass.
Carson
So now I have a 60 pulse per revolution encoder, in addition to the single pulse index. This is a home-built encoder made by printing out 60 stripes around a circle on a transparency which is adhered to a transparent piece of plastic. This disc runs through an optical interrupter switch.
Now the carriage moves much more smoothly and seems to cut decent threads but not consistently. During a threading operation, things will be going fine and then I'll get a very ragged cut that seems to be removing a lot more material than previous cuts. Sometimes it's so bad that the tool will get clogged behind the chip and stall the spindle (these tests were mostly on aluminum, 20 tpi, 1/2" to 1" diameters).
I'm wondering if the spindle synchronization is not working perfectly, so that occasionally the tool enters the work slightly out of phase with previous cuts, resulting in a much larger depth of cut.
Does anyone know of any good ways to diagnose this issue? I've done some pulse counting with a logic analyzer to verify that I'm getting the right number of pulses per revolution. I also verified that the cross feed is advancing the correct amount each pass. But it seems tricky to measure the precise phase of the spindle at the point when the tool enters the work.
It could be a mechanical issue, like my tool isn't sharp enough, or maybe the tool gets deflected and ends up taking a heavy cut occasionally. But the resulting threads look a little strange to me: not quite v shaped trenches. More like a "u", indicating that the tool wasn't quite overlapping each pass.
Carson
Please Log in or Create an account to join the conversation.
07 Mar 2022 10:27 #236574
by andypugh
Replied by andypugh on topic threading - spindle encoder synchonization issues
I wonder if you are getting spurious index pulses, or if there is some variation in index pulse timing?
If you are using the parallel port and software encoder make sure that you are using the encoder.N.position-interpolated output, rather than the plain position one. That gives smoother results.
There is a chance that what you are seeing is Z backlash, check that the leadscrew isn't shifting position in the bearings tha control endfloat.
If you are using the parallel port and software encoder make sure that you are using the encoder.N.position-interpolated output, rather than the plain position one. That gives smoother results.
There is a chance that what you are seeing is Z backlash, check that the leadscrew isn't shifting position in the bearings tha control endfloat.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
08 Mar 2022 17:45 #236697
by Todd Zuercher
Replied by Todd Zuercher on topic threading - spindle encoder synchonization issues
Things to check; Make sure that your encoder pulse and index signals are clean and without noise that could cause bad results. Make sure there is no possibility of a lost steps in any of the axis motion. If the encoder is software counted, make sure that you are operating well away from it's counting limits.
Please Log in or Create an account to join the conversation.
08 Mar 2022 23:21 #236722
by BigJohnT
Replied by BigJohnT on topic threading - spindle encoder synchonization issues
You can actually start a thread without the spindle running and turn the spindle by hand back and forth and the Z should stay in position.
JT
JT
Please Log in or Create an account to join the conversation.
09 Mar 2022 21:26 #236786
by jpg
Replied by jpg on topic threading - spindle encoder synchonization issues
Good evening, as here:
Please Log in or Create an account to join the conversation.
14 May 2022 06:09 #242940
by frede7
Replied by frede7 on topic threading - spindle encoder synchonization issues
Is there any value for having a spindle encoder if the spindle is simply an AC motor with a VFD?
I see the value if it is a servo drive. If I understand correctly, threading operations simply use an index pulse.
I see the value if it is a servo drive. If I understand correctly, threading operations simply use an index pulse.
Please Log in or Create an account to join the conversation.
14 May 2022 06:35 - 14 May 2022 06:35 #242942
by PCW
Replied by PCW on topic threading - spindle encoder synchonization issues
Its actually the opposite, a servo motor can maintain a precise speed but a VFD cannot...
If you only have an index, accurate threading is relying on perfect speed control for a
complete spindle rotation, since the control must guess the spindle angular position between
index pulses. Having an encoder allows the control to "gear" X motion to spindle rotation
so even without precise spindle speed control, accurate threads can be cut.
If you only have an index, accurate threading is relying on perfect speed control for a
complete spindle rotation, since the control must guess the spindle angular position between
index pulses. Having an encoder allows the control to "gear" X motion to spindle rotation
so even without precise spindle speed control, accurate threads can be cut.
Last edit: 14 May 2022 06:35 by PCW.
Please Log in or Create an account to join the conversation.
- smc.collins
- Offline
- Platinum Member
Less
More
- Posts: 677
- Thank you received: 117
28 Jun 2022 02:47 #246048
by smc.collins
Replied by smc.collins on topic threading - spindle encoder synchonization issues
yes, more accuracy
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.125 seconds