CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > Servo Motors and Drives


Servo Motors and Drives Discuss servo motors, drivers and other related topics here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-12-2005, 09:58 AM
Swede's Avatar  
Join Date: Dec 2003
Location: United States
Posts: 383
Swede is on a distinguished road
PID, brushed vs brushless

I've been experimenting with two motors, one brushed, one brushless DC, both of similar torque characteristics. The brushless is definitely quieter and smoother. But I was very surprised when I did a fairly "scientific" test using software by Logosol.

The servo amps are Logosol, and accept serial commands, outputting digital step/direction. A utility called DCN allows manipulation of the PID parameters, and further will graph position error during a sample move.

I set up the software for a 4000 tick, high speed, high accel. move. For both, I manually manipulated PID to minimize error, yet keep the servos from vibrating themselves to death.

The conclusion: The brushed motors perform significantly better than the brushless, at least in terms of position error. The graph of the brushed motor has the position error spiking upwards as the mass accelerates, then quickly correcting close to 0 for most of the move. As the mass decelerated, the error spiked in the other direction before settling down. The brushed graph was tighter and of lower magnitutde than the brushless.

This was very surprising to me. I thought the lower inertia of the brushless would tip the test in its favor. Any suggestions or comments? I cannot see switching to the brushless unless I can get comparable performance.
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 01-12-2005, 10:04 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

I don't know, Swede, I've never tuned a brushless, but they are used successfully at higher speeds than brushed, so logic dictates that there must be a way.
The graph of position error I try to keep within modest limits: it should look like a smooth exponential curve. If there is a spike, then the settings are too aggressive and hard on the machinery.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 01-12-2005, 10:16 AM
 
Join Date: Feb 2004
Location: Flagstaff,AZ
Posts: 62
kevincnc is on a distinguished road

Did you have a load on the motors? If not, you may get different results with a load.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 01-12-2005, 10:16 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,713
Al_The_Man is on a distinguished road
Buy me a Beer?

One characteristic of DC brushless is the cogging at very low speeds (resembling a stepper) because of the construction and nature of switching, you would have to go to true AC servo's to get the comparable or better low speed performance. If you require very low speed operation with a BLDC it is best to use some form of reduction. Because BLDC and true AC servos have low armature mass and no brushes, higher speed and high acceleration are the recognized plusses.
Al
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 01-12-2005, 11:55 AM
Swede's Avatar  
Join Date: Dec 2003
Location: United States
Posts: 383
Swede is on a distinguished road

The moves I programmed were pretty intense for this small machine, and under load only in the sense that the work table is the load, no cutting. In my research of PID and as much hands on play-time as I can do, I feel pretty comfortable tuning a servo with the software that I have. My understanding is to stress the machine for tests like this... high accel, decel, and high top speed. This will exaggerate errors as the mass is accelerated. Then, the PID parameters are slowly modified to minimize the error over the move. Minimizing position errors when the mill is stressed this way will result in even better performance during what might be called "normal" operation.

I'll try to get some screen shots up to show what I refer to. I think that I am going to go brushless anyhow. Ultimately, they'll probably give better performance running actual g-code than the brushed.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 01-12-2005, 12:07 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Sure, you should use high accel/decel and as high a speed as is practical.

Doesn't a "spike" in a position error graph indicate overshoot? That may not be what you are referring to (I'll wait for your pics), but that is not something you want to allow.

Do both motors have the same encoder resolution? I'm not sure of this, but I'm supposing that very high count encoders are used to give better control of the motor, not merely because we want to split hairs on positioning.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 01-12-2005, 02:17 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,713
Al_The_Man is on a distinguished road
Buy me a Beer?

Swede, This is a copy of a Tuning manual I use on the Acroloop equipment. It has a built in 'scope in the software so you can see imediatly what the effect of tuning is.
Although the parameters used here may not be exactly the same as is used in your case, it does give a pictorial view of what the effect is on changing tuning parameters and curing instability etc.
They shoot for a following error of less than +/- 5 encoder counts for the entire range of RPM.
The feedback encoder must yield at least 4000 counts/motor rev. Also the torque mode of operation is recommended.
The PDF file is too large so here is the link ftp://www.compumotor.com/bbs/acr/torque.PDF
Also see a very usefull ac servo Handbook ( you have to register with the site) by Sanyo Denki www.motiononline.com
Al
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 01-12-2005, 03:03 PM
Swede's Avatar  
Join Date: Dec 2003
Location: United States
Posts: 383
Swede is on a distinguished road

Here's a screen shot of the PID utility w/ the brushed motor. I set distance (in encoder counts, 1000 line = 4000 counts = 1 turn), velocity, and accel/decel.

Note the initial position error as the servo begins to move the table. It spikes to 25 counts as the table mass "lags" the commanded position. The system corrects and drives the error towards zero. As the table decelerates, the error occurs in the other direction, as the servo brakes the mass to a halt.

The brushless curve is similar except it doesn't drive towards 0 as aggressively as this one does. Note the constant velocity error, which is +/- 5 counts, or +/- 0.0002".

The KP, KD, KI, and IL are the primary parameters I have to mess with. It's fascinating stuff, I'm enjoying it thoroughly!
Attached Thumbnails
Click image for larger version

Name:	dcn.jpg‎
Views:	153
Size:	116.7 KB
ID:	4612  
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 01-12-2005, 03:23 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Wow, Swede, you've really got KI cranked there. Is that a typical setting? I've never had anyone to bounce these adjustments off of, but I've always kept KI pretty low, like less than 10 or so. Otherwise, I'd get the mad oscillation effect. I'm open for comments and advice, though
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 01-12-2005, 05:25 PM
Swede's Avatar  
Join Date: Dec 2003
Location: United States
Posts: 383
Swede is on a distinguished road

This software has an "auto-tune" feature which will slowly adjust the parameters and zero-in on a minimum error state. The values it generates vary with the motion parameters I enter. A set of PID for slow motion will be different than one involving faster speeds. I've probably run 4 or 5 different servos through the auto-tune function, and one servo generated values near 8,000. The auto-tune works, but the servos are always "edgy" for lack of a better term. During rapids, they vibrate slightly, resonate, and simply aren't very smooth. I often back off on select values after auto-tuning to smooth it out. As I learn what the parameters do, I am becoming more comfortable with adjusting them manually.

I'm wiring up yet another motor to see how it does. This one is a brushed NEMA34 which is overkill, but I'm curious to see if a more powerful motor will drop the overall error. Ultimately, when I get the mounting figured out, I'm going to test a pair of brushless vs. the brushed jobs that I have been using with a complex g-code.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11  
Old 01-12-2005, 07:25 PM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

Could you give us a block schematic of your setups?
I'm a bit puzzled that you can drive a BLDC or a brushed DC using the same setup except the motor? It's a very interesting test. Please let us know more as you go.

And kevincnc's comment may be a good point. Did you check that the ratio of inertia of the motor and the load is within the manufacturer's recommendations?

Also make sure your motor mounts, couplings etc. is very stiff. If not, it will throw in a lot of unknown's. Especially when doing a step function that is very demanding also on the mechanics. You are not tuning the motor(s), but a complete system of interacting masses, compliance and other factors.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 01-12-2005, 08:03 PM
 
Join Date: Jun 2003
Location: Boalsburg PA
Posts: 844
unterhaus is on a distinguished road

I assume he's using the same brand, but different drives for the brushed and brushless. Of course, a brushless drive can handle a brushed motor given the proper programming -- there just would be an extra set of output transistors. AMC, Compumotor, MTS, and Electrocraft drives I have in my basement will do that.

Integral gain will add oscillation and the derivitive gain would be all good except it adds noise.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
brushless motor as spindle? limbo DIY-CNC Router Table Machines 24 03-02-2005 02:01 AM
PID loop sample rates and resolution arvidb General Electronics Discussion 10 11-12-2004 06:09 PM
Brushed vs Brushless Swede General Electronics Discussion 7 09-07-2004 01:01 AM
AC Brushless vs DC Brushless h3ndrix General Electronics Discussion 5 03-25-2004 10:29 AM
Pid Swede General Electronics Discussion 1 01-04-2004 02:22 PM




All times are GMT -5. The time now is 11:41 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353