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 10-26-2004, 01:38 PM
 
Join Date: Jul 2004
Location: United States
Posts: 30
InsaneEPP is on a distinguished road
Question What is the standard overshot for a servo?

I am deciding on what I want to drive and control my servos and was looking at the Rutex site and came across this page:

http://www.rutex.com/us/cart.php?tar...&category_id=4

It is showing a servo overshot of 295 steps. I don't know much about the other info on the graph and I doubt this servo is optimally tuned, but I was thinking that 295 steps would be WAY off and you wouldn't want this in normal practice. Gecko throws a fault when the servo is off 125 steps from where it should be. That also seems like a lot. If you were using a 5 tpi screw and a 2000 steps per rev encoder, 125 steps would be .0125 inches off. I guess I'm trying to find out what the typical error is. It doesn't make sense to make a machine within .001" with precision ball screws and slides if the servos aren't that accurate. Thoughts?

Andreas
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-26-2004, 03:13 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 33
Posts: 398
arvidb is on a distinguished road

That curve is a step response curve of motor speed. No motor can respond to that without lots of error (no motor can accelerate instantly).

A CNC controller would keep acceleration and speed within reasonable limits so that the motors have a chance to do what they're told. Then you won't get such a big following error.

Step response curves are useful to set the PID controller parameters, though.

I'm not sure how big following errors one can expect from a well tuned real life machine. If anyone knows, it would be interesting to know.

Arvid
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 10-26-2004, 05:34 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Arvid is right. That graph is not typical of the final tuned system. That's just an example of what you would see while fiddling with the PID settings, and Acc/Dec ranges.
__________________
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

  #4  
Old 10-26-2004, 08:03 PM
ynneb's Avatar
Moderator
 
Join Date: Feb 2004
Location: Oz
Posts: 2,571
ynneb is on a distinguished road

I guess there are two areas that you can use to tune your servos. One is by tuning the driver cards as best as you can. The second is adjusting the acceleration and deceleration of the servos (software). Obviously with a smoother acceleration and deceleration you will avoid overrun.

As stated b4, it is an impossibility for a motor to reach maximum speed in an instant, and also stop completely in an instant. I think that is what the tuning software is trying to do, and it reports on those stats.

Is this correct fellers ? This is my current newbie understanding ?
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 10-27-2004, 06:47 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,669
Mariss Freimanis is on a distinguished road

Benny,

On the money.

Mariss
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-29-2004, 04:30 PM
 
Join Date: Jul 2003
Location: north wales,u.k
Posts: 46
mmjpotter is on a distinguished road

A correctly tuned servo system should hold position to within +/- 1 encoder pulse. The following error will vary with the required velocity but an overshoot of more than 1 encoder pulse is not acceptable.
__________________
mike potter
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-29-2004, 05:11 PM
 
Join Date: Jul 2004
Location: United States
Posts: 30
InsaneEPP is on a distinguished road

Thank you for all the info guys. I think I understand it now. Basically the servo will never be at the position it is supposed to, but it should be close. There is some lag and that is ok, because all the axises are lagging the same amount of time. It's good to hear that the overshoot is 0 to 1 pulses.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 10-29-2004, 06:18 PM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

I think +-1 pulse is a bit optimistic. The PID controller uses the position error to adjust position. The output to the motor is the error multiplied with P. If the error is just 1 then P have to be large to get a current to the motor that will actually move it (and the axis). But then the output will "go through the roof" if the error is larger, and the machine becomes unstable. Think of it as the steering of a gokart having a high P, while a van with too low air pressure in the tires have a low P. So the P should not be too high, or you'll just weave about.

But, then we will have a residual error of some counts that will not be eliminated because the force is not high enough. Enter the I factor. If a small error persists over time I will increase the output to the motor and thus try to get "exactly there". But it will take some time (relatively speaking). So increasing the I factor will improve the final position. Still there must be an error for I to add it up. It's like after rounding a corner with your gocart you will not immediately go in a straight line, but your heading will very soon be fine as you correct it.

The D factor acts as the damper and can be used to bring down the overshoot and hunting back and forth until finding the correct position. It has the same purpose as the dampers on your car. If they are not working, your car will keep on going up and down after hitting a pothole or a bump.

So to make it easy, just set all of them P I and D to a high number?
Sorry, if it was only that easy. That's why you need to tune these numbers on your machine with your motors and your drives. And you'll never get to zero error because the measured error is the basis upon which all this works.

Now you see why some servos have a high number of pulses (or other discrete steps) per revolution (up to 128000). Because then the measured error is quite large even for a small error on the motor (and machine).

So based on this, the error is a result of several factors where the ability to tune in on the best P I and D is important. And the resolution of the encoders is one factor that sets the limit where it can be said no additional tuning will improve it.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-30-2004, 09:47 AM
 
Join Date: Jul 2004
Location: United States
Posts: 30
InsaneEPP is on a distinguished road

Esjaavik,

Thank you for your detailed post. There is a lot of good information there. My question after reading this is: does it matter that there is some error? Follow my logic. For example: If you had a one axis machine, your controller would tell the servo driver to go to position 100 (in encoder pulses) and it is currently at position 0. The servo would take some time to get there, but would eventually get there +/- 1 encoder position. During the movement of the servo, there is error (up to 100 pulses). The error does not matter, however because it is moving from one position to another, which is just what you want. If you move to a two axis system, it is the same except the two axises need to move in concert with the amount of movement being proportional throughout the whole of each movement command. Usually, the controller sends single step moves. For example, both axises are at 0 are are both commanded to go to 100. Each must take a step at the same time. The contoller will send a position of 1 to both drivers, and then a 2. The speed at which it does this is setup in the controller. As long as the interval is greater than the amount of time needed to accellerate, the servos will move together. One servo may accellerate faster than the other, in which case it will arrive at the position quicker, but it will have to wait for the next controller input to move again. There will always be a lag between the controller command and the servo, but as long as the two servos are moving proportionally and the accelleration is low enough, there shouldn't be a problem. Am I off here, or does this make sense?
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 10-30-2004, 08:02 PM
 
Join Date: Jul 2003
Location: north wales,u.k
Posts: 46
mmjpotter is on a distinguished road

InsaneEpp

Sounds O.K to me. As the axis approaches the target the error becomes less, providing automatic deccelleration until the error is a minimum 1 pulse. Therefore the axis should not overshoot.

Esjaavik. +/- 1 encoder pulse has to be realistic or the machine will not have any accuracy. The PID loop gain is set to provide enough current to drive the machine axis to ZERO, but I agree we have to limit the MAX error. The key to this is the servo loop time constant or error sample rate. The time constant can be set (depending on the application and resolution) from say 1 to 300 milliseconds and the max error will be the distance travelled in this time so we can limit the error. (max error x loop gain= max velocity). This is a very basic example but I hope it explains why the velocity will not go through the roof.
__________________
mike potter
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11  
Old 10-30-2004, 09:12 PM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

@insaneEPP: It makes sense. But what you describe with the 2 axis is a diagonal line. If they don't move synchronously the line will not be a diagonal while you meant it to be. If one axis arrives there before the other, it will be a diagonal with a "knee".

And Arvid touched the clue: you don't ask a machine axis to go to the endpoint abruptly except for tuning purposes. You feed the path into it nice and including the acceleration and retardation ramps. So it should ideally all the way be a small enough change that the error does not become large at any time during the travel. In a real machine (say a mill) it may not necessarily stop when "getting to the endpoint". It will continue into the next movement with only as much speed change as necessary. If I stick to my analogy with the car, you don't stop at each turn of a country road, you just change direction. And the speed at which you move north/south will only become zero when heading straight east or west.

Regarding your original question, I don't think an answer can be given. Yes, I also found that frustrating, but there are so many variables. For what it's worth, in a test setup I did where one step from the controller was equal to one count from the encoder I could not get better than +-6 without there being unstable states where full control was lost. But this was my setup, your mileage may vary.

@mike: I don't agree with you that it will not have any accuracy if error > 1. The MAX error is a limit we set that will occur if the system is badly tuned, or the controller asks so much more of the servo system that it can deliver, that we want it to stop trying, or returning a message to the controller. The servo system can keep within 1 step of the controller if it has an internal resolution better than 1 step. But not if the step size equals the feedback (encoder) from the motor shaft.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 10-31-2004, 11:42 AM
 
Join Date: Oct 2003
Location: Sweden
Age: 33
Posts: 398
arvidb is on a distinguished road

Originally Posted by mmjpotter
*snip* Esjaavik. +/- 1 encoder pulse has to be realistic or the machine will not have any accuracy. The PID loop gain is set to provide enough current to drive the machine axis to ZERO, but I agree we have to limit the MAX error. The key to this is the servo loop time constant or error sample rate. The time constant can be set (depending on the application and resolution) from say 1 to 300 milliseconds and the max error will be the distance travelled in this time so we can limit the error. (max error x loop gain= max velocity). This is a very basic example but I hope it explains why the velocity will not go through the roof.
I agree with ESjaavik that one encoder pulse is not a realistic maximum following error. This would give the input (error) signal a very low resolution (either no error or full error) and the controller will have a very difficult time to react normally to this. My guess is you would get oscillations.

The machine will have a well defined accuracy even if the error is (for example) up to 10 pulses, it's just 10 times worse than if the error was only one pulse. My machine will have 2048 PPR encoders, giving a resolution of <1 micron. So even with 10-20 pulses off, the limiting factor will be rigidity of the machine etc.

I'm not really sure what you're saying about error sampling rate. The sample rate should be high enough to approximate a continuous controller (I read >10 times the bandwidth of the system). As long as that is fulfilled I guess it should not affect the controller?

I don't understand what you write about the max error being the distance travelled in the time constant time. Can you elaborate?

Arvid
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
Small servo systems and power supply imserv Product Announcements & Manufacturer News 4 04-03-2008 12:11 PM
Using surplus servo motors as spindle drive Swede Servo Motors and Drives 11 03-16-2008 09:05 AM
Servo Motor Running away. murphy625 CamSoft Products 38 02-27-2005 02:08 PM
2nd Generation DeskCNC servo driver released imserv Product Announcements & Manufacturer News 0 11-24-2004 07:22 PM
steppers or servo drives mmjpotter Gecko Drives 14 03-30-2004 03:56 PM




All times are GMT -5. The time now is 09:52 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