Hi, I am a member of makerspace in Colorado and I have completed an AllIn1DC upgrade to our old Mitek 3-axis bed mill. I re-used the existing Glentek DC servomotors. It has all gone really well except for one issue. I am getting some oscillation/jerkiness during the homing of all 3 axes. I have attached my report.zip file and a link to a video showing the oscillation.
Here is the debug I've done so far. The issue seems to be related to having backlash compensation turned on. There is around 0.006" of backlash in all 3 axes. It is an old machine, and I know the backlash is more than what Centroid recommends, but being a non profit we barely scraped enough money together to do the upgrade. Upgrading the ballscrews isn't in the budget at this time. I am aware of the limitation of fixing backlash in software vs mechanics, but the limitations are good enough for occasional hobbyist use. Anyway, if I turn backlash compensation to zero, the oscillation goes away. If I turn down backlash compensation to 0.001", the oscillation is still there but a lot less noticeable. Also, if I detune the PID loops back to their "defaults" the oscillation amplitude is also reduced. This oscillation is not observed during normal operations running G-code, ONLY during he homing sequence. It seems to me that with backlash compensation turned on, the commanded position is somehow getting an instantaneous step change, sending an impulse into the servo loop causing the oscillation. Basically, a very high acceleration. For now, I've detuned the PID loops to minimize the homing oscillation, but leaving backlash compensation set to the appropriate 0.006"-ish value. Can Centroid verify my findings?
Video link: https://youtu.be/fQA1K_uk4t4
AllIn1DC Homing Oscillation
Moderator: cnckeith
-
- Posts: 6
- Joined: Mon Aug 09, 2021 10:42 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: No
- CPU10 or CPU7: No
AllIn1DC Homing Oscillation
- Attachments
-
- report_0008DC111213-1005222813_2023-01-19_14-50-48.zip
- Report file
- (6.38 MiB) Downloaded 7 times
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 7843
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: AllIn1DC Homing Oscillation
hello.
how did you determine the pid values to use with these motors?
other observations.
2000 counts per rev on x and y but 4000 on Z?
x and y motors look belted to the ballscrew, what is the ratio? (what size are the pulleys on the ballscrew and what size on the axis motor? how many teeth?)
.006 is a lot of backlash for a machine like this. most backlash will come from the ballscrew support bearings, (people tend to blame the ballscrew itself but its actually the support bearings that are installed wrong or are the wrong type that introduce this amount of backlash into the system. so i would take a look there.
how did you determine the pid values to use with these motors?
other observations.
2000 counts per rev on x and y but 4000 on Z?
x and y motors look belted to the ballscrew, what is the ratio? (what size are the pulleys on the ballscrew and what size on the axis motor? how many teeth?)
.006 is a lot of backlash for a machine like this. most backlash will come from the ballscrew support bearings, (people tend to blame the ballscrew itself but its actually the support bearings that are installed wrong or are the wrong type that introduce this amount of backlash into the system. so i would take a look there.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: AllIn1DC Homing Oscillation
Cut Ki in half (to 0.002).
Maybe also cut Kp in half.
Most important: remove the aluminum handwheels. They act as a flywheel on the end of the ballscrew, and cause multiple controllability problems. If you want to keep manual operation, buy or make some plastic handwheels, or small-diameter (3" to 4") knurled aluminum wheels.
Higher-resolution encoders would be a good investment as well.
Maybe also cut Kp in half.
Most important: remove the aluminum handwheels. They act as a flywheel on the end of the ballscrew, and cause multiple controllability problems. If you want to keep manual operation, buy or make some plastic handwheels, or small-diameter (3" to 4") knurled aluminum wheels.
Higher-resolution encoders would be a good investment as well.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 6
- Joined: Mon Aug 09, 2021 10:42 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: No
- CPU10 or CPU7: No
Re: AllIn1DC Homing Oscillation
Thanks for the reply Keith. For the PID values, I went through the manual tuning process as outlined in the manual and TB, also drawing upon my 15 yr experience as a servo engineer.
Yes, good catch on the 2000 vs 4000 counts. Saying that I reused the existing motor wasn't entirely true, but not totally relevant to this situation.The original y-axis motor had a low impedance ground fault between the armature to chassis (varied between 600-3kohms) likely due to machine oil ingress into the motor internals. We purchased a new motor, moved the original z-axis motor to the y-axis and installed the new motor on the z-axis. The new motor encoder has a higher line count. All 3-axes have the homing only oscillation. The z-axis is out frame in the video but you can hear the oscillation in z in the first few secs of the video.
All 3 axes have 5:1 ballscrews and timing belt pulley ratio is 2:1 so 10:1 final ratio. So, we just barely meet the minimum 20,000 cnts per in requirement. I checked with sales before purchase and they said your are fine, but higher is always better.
Good point about the aluminum handwheels. I didn't think about that. You are probably right about the source of backlash being the thrust/angular contact bearings, if that's even what they are. On the y-axis the handwheel actually acts as a spacer and the mounting nut is what sets the bearing preload. Not thrilled with that design, but it's what we have.
I can play with the PID parameters as you suggest, but then I will be back to an underdamped situation during normal operations. My hunch is that when the limit switch is hit the controller immediately commands a reverse by the backlash amount, without any consideration for a reasonable acceleration value. With larger backlash, this will input a bigger impulse into the servo loop causing larger oscillations.
Yes, good catch on the 2000 vs 4000 counts. Saying that I reused the existing motor wasn't entirely true, but not totally relevant to this situation.The original y-axis motor had a low impedance ground fault between the armature to chassis (varied between 600-3kohms) likely due to machine oil ingress into the motor internals. We purchased a new motor, moved the original z-axis motor to the y-axis and installed the new motor on the z-axis. The new motor encoder has a higher line count. All 3-axes have the homing only oscillation. The z-axis is out frame in the video but you can hear the oscillation in z in the first few secs of the video.
All 3 axes have 5:1 ballscrews and timing belt pulley ratio is 2:1 so 10:1 final ratio. So, we just barely meet the minimum 20,000 cnts per in requirement. I checked with sales before purchase and they said your are fine, but higher is always better.
Good point about the aluminum handwheels. I didn't think about that. You are probably right about the source of backlash being the thrust/angular contact bearings, if that's even what they are. On the y-axis the handwheel actually acts as a spacer and the mounting nut is what sets the bearing preload. Not thrilled with that design, but it's what we have.
I can play with the PID parameters as you suggest, but then I will be back to an underdamped situation during normal operations. My hunch is that when the limit switch is hit the controller immediately commands a reverse by the backlash amount, without any consideration for a reasonable acceleration value. With larger backlash, this will input a bigger impulse into the servo loop causing larger oscillations.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 7843
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: AllIn1DC Homing Oscillation
i second that!cncsnw wrote: ↑Tue Jan 24, 2023 3:54 pm Cut Ki in half (to 0.002).
Maybe also cut Kp in half.
Most important: remove the aluminum handwheels. They act as a flywheel on the end of the ballscrew, and cause multiple controllability problems. If you want to keep manual operation, buy or make some plastic handwheels, or small-diameter (3" to 4") knurled aluminum wheels.
Higher-resolution encoders would be a good investment as well.
i've heavily drilled out large handwheels to lighten the handwheel/flywheel and reduce inertia to eliminate this problem when customers wanted to keep them. but marc's suggestions are best.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 3237
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: AllIn1DC Homing Oscillation
I actually have these Kipp handwheels with fold-away handles on my machines and I love them. Light weight reinforced plastic for low inertia with rims that are easy to grip with the handles folded for small adjustments or very easy to use with the rotating handles extended for long moves. With the handles folded, they are well balanced for rapid power moves.
https://www.mscdirect.com/browse/tn?sea ... way+Handle Be sure and fold the handle when in automatic mode, especially on the Y axis. You'll only make that mistake one time![Surprised :o](./images/smilies/icon_e_surprised.gif)
https://www.mscdirect.com/browse/tn?sea ... way+Handle Be sure and fold the handle when in automatic mode, especially on the Y axis. You'll only make that mistake one time
![Surprised :o](./images/smilies/icon_e_surprised.gif)
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 7843
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: AllIn1DC Homing Oscillation
thanks Tom, good info!
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)