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-10-2007, 08:32 AM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road
PID Tuning Problems

I have been trying to tune the PID loop on my Skyko cards for the last 3 night with no luck. I am hoping someone can shed some light on where I may be going wrong.

First Let me describe the setup

The Server Moto Is a Baldor 500 oz/in 100 Volt 1.85 amp motor.
The Encoders are also Baldor and they are 500L Encoders
(I believe my steps per rev are 12000)
The Amplifier is a Servo Dynamics SD1525
The Input to the amp is from a Skyko Pixie-100
The input toe the Pixie is from a PMDX 122 Break out board
The Break out board is drive by mach3

Now I am trying to tune the pid loop in the skyko card and this is my problem
If I increase the Kp factor to anything over 1 I can not get the motor to stop occillating. and If I leave all of the factors at 1 the motor has a huge amount of over shot (like .250). I am looking for the next step to getting this system running right.
Reply With Quote

  #2   Ban this user!
Old 01-10-2007, 08:39 AM
 
Join Date: Jul 2006
Location: india
Posts: 117
sanjiv is on a distinguished road

Dear Sir
what is the difference between servo & Stepper? Witch control is easy?
I am sorry because you are expert in this field as i feel by reading your problem. i am trying to built a CNC router from junk. can you help me in ELECTRONICS & Software?
Reply With Quote

  #3   Ban this user!
Old 01-10-2007, 09:08 AM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road

I am running the Sd1525 Amp in Torque Mode. Do you think I should run in velocity Mode? What would the advantage / disadvantage be?
Reply With Quote

  #4  
Old 01-10-2007, 10:10 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I think your steps per revolution is out of wack. In quadrature, the most it could be is 4x the resolution of the encoder, which would make 2000 ppr. Unless you made a typo, I think this is going to have an effect on your tuning

My 2 cents: leave KI at zero or 1, KP between 1 and 100 and KD between 1000 to 2000. YMMV. I have no idea how 'portable' the PID settings are between systems, but this is what I have used for several servo setups on various retrofits.
__________________
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)
Reply With Quote

  #5   Ban this user!
Old 01-10-2007, 10:21 AM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road

Hi,

You are correct on the steps. I believe the steps on the motor are 2000 however the steps I have set in Mach3 are 12000 (6 tpi ball screw). I have done some extensive experimentaion with the Kp and Kd. If I leave Kp at 1 and run Kd at around 100 it seames oscillates bad However If i put some drag on the pully of the motor it runs smooth. It seames like the system does not have enough load for the values. Also a note on the over shot. It only overshots when I try and do a go1 x 4 y0 F100 if I use a f value of say 10 it does not seame to have the over shot.

I ran the system before the upgrade and the motors ran smooth from 1 to 120 IPM rapid with no problems. So I know the motors and amplifiers are capable.

I will try the settings that you suggested at lunch and let you know.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-10-2007, 12:18 PM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road

I just tried the above settings. Started at 100 for A Kp and a Kd of 1000
kept increasing Kd to try and get the oscillation to stop. I went up in steps of 100 to 2000 with just about no change other than the motor oscillation faster. So then I made jumps of 500 all the way up to 9000 with no real change.
Reply With Quote

  #7   Ban this user!
Old 01-11-2007, 01:30 PM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road

Any other Ideas on how to get this system working right?
Reply With Quote

  #8  
Old 01-11-2007, 06:33 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I don't know. Start over?

Did you first of all eliminate all motor drift?

Are your encoders attached directly to the servomotor or are they mounted elsewhere. Is there any suspicion of backlash between the motor and encoder?

What do the documents that came with your controller suggest for a tuning procedure, and range of values?
__________________
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)
Reply With Quote

  #9   Ban this user!
Old 05-14-2007, 03:32 PM
 
Join Date: Apr 2005
Location: USA
Posts: 8
ltoy is on a distinguished road
Still having Problem tuning

Hi All,

I am still having problems tuning this system. I have verified that with no input on the Amps there is no motor drift. I also verified that with the Pixie 100 Connected and outputing 0 volts there is no drift. I am unable to tune the pixie 100 to get any near a good graph. I have even experimented with the gain to see if that helped. It did not. it seames that the machine moves too smoothly. If I add resistance to the ball scred (ie hold the pully while the motor is turning) i get much better graphs. The ball screws are tight and the servos a hooked to them via a belt with no play. Any one else ever run into this type of problem?
Reply With Quote

  #10  
Old 05-15-2007, 06:22 PM
KTP KTP is offline
Gold Member
 
Join Date: Dec 2005
Location: USA
Posts: 453
KTP is on a distinguished road

Can you post a screenshot of your graph from the Pixie com software?

Most users will end up with a Kp setting of 5 to 20, a Kd of 300 to 1000 and a KI of 1 to 40.

I haven't had any motor use a Kp of 100...if you are using that high of a value for your P term it is no wonder you are oscillating. The Kd term is the damping term, this can vary depending on how much mass your motor is moving around (ie, the Kd term might be different for a motor sitting on a bench vs a motor mounted to a 500lb table).

Have you tried working from a stable graph with values such as Kp=4, Kd =300, Ki=1 and then gradually play with the numbers (increasing Kp by 1 at a time while also increasing Kd by 50 at a time) until you get a sharp response with minimal overshoot? I haven't found a single motor/amplifier combo that I could not get a good graph and response from with the Pixie P100. The only problem I ever encountered was with some low pole count brushless motors and trapezoidal amplifiers..but this is more the fault of the amplifier not being sinusoidal and not a problem with the Pixie
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-15-2007, 04:28 PM
 
Join Date: Jan 2004
Location: SCOTLAND
Age: 63
Posts: 171
bbrreid is on a distinguished road

I cant even get near tuning my skyko card even with the drive disconnected, the encoder disconnected and only the parrallel cable from the PC connected I still get the RED flashing light on the pixi 100 as soon as I press the jog key any ideas please
__________________
BR
Reply With Quote

  #12  
Old 11-15-2007, 08:11 PM
KTP KTP is offline
Gold Member
 
Join Date: Dec 2005
Location: USA
Posts: 453
KTP is on a distinguished road

Originally Posted by bbrreid View Post
I cant even get near tuning my skyko card even with the drive disconnected, the encoder disconnected and only the parrallel cable from the PC connected I still get the RED flashing light on the pixi 100 as soon as I press the jog key any ideas please
...

You don't have the encoder connected and you are wondering why you can't tune the Pixie card?

The Pixie flashes the red light when the encoder count it is reading is off of the commanded position (from the steps input from the parallel port) by more than a certain number (this number can be set in the Pixiecom software, default value = 100 steps). If the encoder is not connected to the Pixie and/or if the motor and Pixie are not correctly hooked up to an amplifier and tuned, then of course the red light will flash on the Pixie as soon as you send 101 steps over the parallel port.
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





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