View Single Post
  #12  
Old 03-29-2004, 12:26 AM
ynneb's Avatar
ynneb ynneb is offline
Moderator
 
Join Date: Feb 2004
Location: Oz
Posts: 2,580
ynneb is on a distinguished road
Tuning the Rutex Drive

This is an email that Vlad forwarded me that he originally sent to another Rutex user.
I'm not quite sure who build the machine for you originally. You might try to contact them and ask them about the tuning. The tuning is very much motor/machine/encoder depended. There is not a universal procedure.

When you going to tune the R990H (R990H/R991H/R992H/R90H) drive you will have to run program such as:

http://www.rutex.com/zip/RT990H.zip
or latest version of Mach2

The older R990 (R90/R990/R995/R996/R997) drive can be tuned with the:

http://www.rutex.com/zip/R90.EXE

The reason for that is that the older version do the calculations in 16-bit and the 'H drives in 32-bit.

Before you start to tune drive you should mechanically disconnect motor from the machine and you should have the E-stop switch very close to your hand. Incorrectly tuned drive can violently oscillate which can do mechanical damage to the machine/motor or overheat the drive. As well, it is good idea to start the tuning at lower voltage (if you can drop down the voltage) to families yourself with tuning. There is much less mechanical/electrical energy.

Secondly, you should know if your system needs the Ki or not.

The difference is that without Ki the system is bit faster - sort of 'snappier' when traveling, but there is a inherent error of few encoder counts - somewhere around 5-50 encoder counts. With Ki the system might be slightly less dynamic but it will correct the steady error down to +/-1 encoder count. Most of the application is tuned with Ki.

Typical setup for DC PM running at DC30V with 500-line encoder could be somewhere Kp=1000, Ki=0, Kd=2000. If you apply Ki, then the Kp and Kd has to be dramatically increased. As well, the Ki has to be adjusted over certain value to work correctly. Usually very low Ki does no do good job at all. So the setting could be somewhere Kp=5000, Ki=150, Kd=3000. If you double the Voltage and double the encoder resolution, then the Kx values should be about the half. The above values are very bulk figures and you might end up with completely different.

When you look at the step response graph output, then it should be tuned for fastest setting time to acceptable error and not the zero overshoot. The step response does not have preprogrammed acceleration/deceleration so it can or it should overshoot.

Cheers

vh
As you can see below, I used the RD990h.exe program.
If you select the Regs button for a servo you will see that the current KP, KI, KD settings are on display.
This is a real time viewer, so as you adjust the settings you will see the numbers change. I tried out using the suggested setting that Vlad mentioned in his email. Much to my amazement the servos were very tight and very snappy. It was just a matter of then pressing the tune button to see the results displayed on the graph.

I took note of what Vlad said about not been too concerned about the overshoot. I got mine down to about 60 steps overshoot. That may sound bad but when you think about it I was driving the servos at full speed and expecting them to snap to a halt, and that is on a 2000 pulse encoder.
If you make the speed slower then you get no overrun. When you think about it, It is rare for a machine to be running at full speed anyway. Usually the driving software decelerates the servos anyway. Oh for those who think overshoot means you lose steps, what it means is when it comes to an instant stop it temporarily overshoots by that margin before it corrects itself to where it should be. Its a bit like putting the brakes on in a car and expecting it to stop in an instant with no travel. MY settings are at Kp=4992, Ki=150, Kd=3024. Why dont you try that as a starting piont and work from there.

At first I followed the original method of moving the settings and waiting until the sevos vibrated, the problem was they suddenly vibrated so violently I was sure they were going to cook.

As for the I limit, well to tell you the truth I havn't adjusted it. My servos have heaps of torque just as they are, and I havnt even geared them down yet. I recon they would move a car as they are. I guess you just tune one board on the heat sink and then add another when you have finished the last one. It is a strage design to have that I limit where it is.

This is just my experience and not to be an absolute guide. I am happy for anyone to make corrections to anything I have said.

EDIT: If you are using XP just reboot the computer with a startup disk and then run the mouse file and then run the rd990h file. It may pay to have all the files on your bootup disk. Less DOSing around the place. When you boot with the floppy you will eventually see a:\ just type the word mouse and press enter.
then type the word rd990h and press enter. No need to type in the .exe part.

I hope all this helps. Could you please post back with your results.
Thanks
Attached Thumbnails
Click image for larger version

Name:	1.gif‎
Views:	491
Size:	54.8 KB
ID:	1861  

Last edited by ynneb; 03-29-2004 at 07:43 AM.
Reply With Quote

 

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