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 > Rutex Products > Servo Drives


Servo Drives Discuss all Rutex servo drives and get direct support!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-12-2009, 05:04 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road
Could it be so that my servo doesn't need Ki and Kd?

I'm tuning a bunch of R990H cards I never used with a bunch of Yaskawa/Nidec minertia servo's (cute a powerful small things, by the way). They are rated to 65 V but now when tuning I'm only using 12 V.

When test running the setup with R990H.exe's tune command, I get a really steap and steady curve up to top of the graph and only a overshoot of 14 steps. That is with following config:
Kp: 6016
Ki: 0
Kd: 0


But when I read the suggestions in the nice howto at http://www.eaglemotion.com/home/R9xHbdi/pg5.htm it seems that a servo config should have a Ki-dampening and pretty much Kd. If I test with values closer to the suggestion:
Kp: 6016
Ki: 150
Kd: 4000

The curve becomes a lot more bouncy and I have an overshoot at 80-120 steps.

To me, the first config and graph looks a lot better, but is it normal or okay to run with no Ki/Kd?

Regards,
Sven
Reply With Quote

  #2   Ban this user!
Old 04-12-2009, 07:15 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Sven,
No Ki or Kd sounds a bit strange. Are you tuning without any load on the motors? Without Ki and Kd the "stiffness" of the motor will be fairly low, I think.

/Henrik.
Reply With Quote

  #3  
Old 04-12-2009, 09:28 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

Yes, no load. They are on my desk. The servos are really compact and I know some says they are a little odd to run, but no Ki/Kd at all and a perfect tune is strange to me too.
Reply With Quote

  #4   Ban this user!
Old 04-12-2009, 09:42 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Try loading them just a bit with your fingers or whatever, without any Ki they probably won't reach the target position. Also, when the motor is stationary at try deflecting the shaft, without Ki and Kd it will probably feel "soft and sluggish". But if it works to your satisfaction without Ki and Kd then what the heck...if it ain't broken..... ;-)

/Henrik.
Reply With Quote

  #5  
Old 04-12-2009, 09:50 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

Check it out.

EDIT: Hmm... Will the characteristic be different when I'm feeding with max voltage? I used 12 V only now, and they're supposed to get 65.
Attached Thumbnails
Click image for larger version

Name:	img_4779 (Modified in GIMP Image Editor).jpg‎
Views:	76
Size:	32.2 KB
ID:	79587   Click image for larger version

Name:	img_4780 (Modified in GIMP Image Editor).jpg‎
Views:	78
Size:	63.6 KB
ID:	79588   Click image for larger version

Name:	img_4781 (Modified in GIMP Image Editor).jpg‎
Views:	85
Size:	68.1 KB
ID:	79589  
Reply With Quote

Sponsored Links
  #6  
Old 04-12-2009, 10:07 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

Well, everything seems fine so... <swedish>...vad tusan. Jag kör på det. </swedish>
Reply With Quote

  #7   Ban this user!
Old 04-12-2009, 10:08 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
That sure looks like a near perfect step-response! You will definetly need to retune after raising the voltage since that is basically the same as raising the gain (Kp). If it changes the impact on the "no Ki or Kd issue" is hard to say, I guess the only way to know for sure is to try it.

Nice compact motors there, what are you going to use them for?

/Henrik.
Reply With Quote

  #8  
Old 04-12-2009, 10:12 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

On a steel monster.
Attached Thumbnails
Click image for larger version

Name:	img_4769 (gimped).jpg‎
Views:	83
Size:	69.7 KB
ID:	79597  
Reply With Quote

  #9  
Old 04-13-2009, 05:01 PM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

I ended up with Kp at 4000 and still no Ki and Kd. Got a sampling rate less than 0.3 seconds. Pretty awsome acceleration on a servo that small. A lot more overshoot though, but I believe it's a minor issue.
Reply With Quote

  #10   Ban this user!
Old 04-14-2009, 12:39 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Sven,
Try adding som differential gain (Kd) then, it should decrease that overshoot. When you add Kd you may need to add even more Kp though.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-14-2009, 06:16 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Originally Posted by svenakela View Post
...

But when I read the suggestions in the nice howto at http://www.eaglemotion.com/home/R9xHbdi/pg5.htm it seems that a servo config should have a Ki-dampening and pretty much Kd. If I test with ...
I went to this page. Nicest explanation of P, I, and D I ever seen.

5.1.1. Kp – proportional gain. Proportional gain is directly proportional to the torque. It is the main force in the whole PID loop. The kp provides a multiplier for the position error between the commanded position (from the CNC control) and the counter which tracks the feedback from the encoder.

5.1.2. Kd – differential gain. It is like oil in a shock absorber. It makes the servo settle in the desired velocity.

5.1.3. Ki – integral gain. It is like a flywheel in a toy car. You have to push it harder (more Kp) to move it, but it runs smoother then a toy car without a flywheel. The I part of the PID filter integrates the following error and this integral is directly added to the P term and keeps the following error small during the motion or in steady condition. In fact, correctly tuned Ki can keep the following error within +/- 1 encoder count during constant velocity motion (or in steady condition) while the motor can deliver full torque. The other great advantage of Ki is that it can make from a simple trapezoid velocity profile a profile very similar to a typical “S” profile. A trapezoid velocity profile is when the motor acceleration is constant (an increment of velocity) until it reaches the desired velocity. In S profile, the acceleration at the start is rather low, then it exponentially goes up till it reaches the maximum possible acceleration. Then, just before reaching the desired velocity the acceleration gradually decreases. You can see the typical S velocity profile on the faces of the astronauts in the space rocket while taking of.




BTW, I have some servos in a Hardinge HNC that liked almost no I and D
Reply With Quote

  #12  
Old 04-14-2009, 07:30 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

Originally Posted by H.O View Post
Hi Sven,
Try adding som differential gain (Kd) then, it should decrease that overshoot. When you add Kd you may need to add even more Kp though.
Nope, it didn't help (I tried that). The overshoot was still the same but with a lot more oscillation before the servo settled. With no Kd the curve is still the best.

Maybe I'll try with more Ki later, but for now I think I'll leave it as it is.

--S
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- 'Jumpy' servo motion; NUM servo and drive. ralph@nes Servo Motors and Drives 8 08-24-2010 10:34 AM
Matching a servo drive to a servo 69owb Servo Motors and Drives 1 02-03-2009 09:00 PM
Sell Servo Motor, Servo Drive by GSKcnc.com from China salecnc@hotmail Product Announcements & Manufacturer News 0 06-03-2008 02:55 PM
Pluto Servo - Motors won't servo correctly???? TZak LinuxCNC (formerly EMC2) 2 01-10-2008 02:34 PM
Servo drive / Servo Amplifier Ken_Shea Servo Motors and Drives 9 07-10-2007 05:12 PM




All times are GMT -5. The time now is 09:13 AM.





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 354 355 356 357 358 359 360 361