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-2010, 10:01 AM
Tks Tks is offline
 
Join Date: Apr 2006
Location: Spain
Posts: 4
Tks is on a distinguished road
PID Loop (again)

Hi,

I have the following situation.
Doing a retrofit with panasonic MHDA 1Kw drives.
They are in velocity control mode.

The driver i use is de dspmc (from vital systems) using the plugin for Mach 3.

Now i'm in the situatie that i have the system up and running.
But the double PID loop is giveing some pain...

how would one attack this problem?
The panasonic drives have a auto-tune wizzard.
Which sets some couple of gains.

But then i have also the mach 3 plugin in which i need to setup the PID vars.
Also i miss a goal to what i need to tune for. Because maybe is 0.1mm @ 1250mm/sec/2 and 2000mm/min to much asking from the machine??

also i get some high frequency whineing sound... is this bad??
When autotune runs you only can hear the spindle (axle) a bit...

Hope someone can point me in the right direction of how to tune such double loop system.

For example what is an acceptable following error?By which speed and acc?
Reply With Quote

  #2   Ban this user!
Old 10-26-2010, 05:25 PM
 
Join Date: Jun 2005
Location: USA
Posts: 167
CNCMAN172 is on a distinguished road
Smile PANASONIC PID LOOP

TKS,

I have been using Panasonic 750W drivers with MACH3 for years and have been very successful. The internal tuning wizard works great and you can control the stiffness and the wizard will tune the driver to each given situation. I have always used the parallel port to provide step and direction inputs into the driver. I recently purchased a USB pulse engine made my Dynomotion called KFLOP, however have not had a chance to install the unit. I also did a good deal of investigation into Vital Systems unit as well as unit from AJAX.

I spent a good deal of time asking some key questions which might help point you in the right direction. Normally these higher end units want to interface with the Panasonic driver using +- 10V signals and have the driver be in velocity or torque mode. The MACH3 plugin is the linkage from MACH3 to the driver and MACH3 does all the calculations on where to go next and these Vital System type units become the pulse engine that execute the moves.

Normally when you use one of these you do not use the tuning provided by the Panasonic driver, however you can use these values as a starting position. Normally it is not a double loop you have a closed loop where the Panasonic driver is being feed +- 10 v signals to tell it where to move the motor. The Vital System is providing this information and it must be tuned to provide the right kind of response for your given system.

If you are getting a great deal of whining from the motors this indicates the gain is probably too high, the noise is normally the high speed oscillation where the motor is attempting to find the requested position. You can also tune it so high the unit will go into oscillations and jerk the machine around. It is always best to slowly increase the gain until it provides the right performance. Most servos will have a slight hum when tuned correctly but not a loud like what your describing.

The following error should be very small, but not so small that it can never be achieved. If you look at all these parameters on the Panasonic driver after it tunes the motor you will have a very good starting point. Make suttle changes slowing one at a time and log each one on a paper so you can keep track. You can also use a oscope if you have one available to examine the gain visually and this can help get it to the correct level. You can google tuning a motor with an oscope or look in the panasonic manuals and find examples of how this is done.

Another question that might be useful is where are your encoders being feed into? The encoders should be going back to the Panasonic driver some system allow you to drive the encoders into the control system. The AJAX system always has the encoders handled by the motor driver. They do have an option where you can take the encoder outputs from the driver and feed them back into the AJAX unit to actually make use of something close to double ended control.

Hope this helps some.

Russ
Reply With Quote

  #3   Ban this user!
Old 10-27-2010, 03:27 AM
Tks Tks is offline
 
Join Date: Apr 2006
Location: Spain
Posts: 4
Tks is on a distinguished road

Hi Russ,

Thank you for your response.

I indeed have the encoders fed into the drives and then into the motion controller (DSPmc) it works quite good. Its just that the system is now in double loop. THat means that the panasonic drive needs to tune out the throttle versus speed. And the dspmc uses the throttle response versus distance error (infact speed!) so the clue is. Do i just need to auto-tune and do the rest with the dspmc? The DSPmc lets you tune the complete PID settings...

the high tone is visible in the tuning plugin from dspmc its the speed which goes rapidly up and down...

if you might get a new idea/sight hope you remember to post it over here.
Reply With Quote

  #4   Ban this user!
Old 10-27-2010, 07:09 AM
 
Join Date: Jun 2005
Location: USA
Posts: 167
CNCMAN172 is on a distinguished road
Smile TKS - panasonic servos

THS,

Well your breaking some new ground maybe someone who is running the DSPMC can comment.

The Mach3 plugin is taking the step and direction information and sending it to the DSPMC controller. THe DSPMC controller inturn commands the Panasonic drive by issues +-10V signals, where zero volts or very close is stopped.

It sounds like your getting the sound when you tune the motor using the DSPMC plugin? Does the plugin have a built in tuning wizard? Many times they have you plug in the controller to a serial link on a PC and run some tuning software to tune the unit.

I think I would use the autotune from Panasonic to collect all the right information on PID curves and write it all down. Then I would attempt to tune everything using the DSPMC. You also might want to go to the AJAX CNC site Ajax CNC - CNC Control Retrofit Kits for Mills, Lathes, Routers & ATCs - Mach3 Ready and look under their support forum as many people are asking similar questions with their unit and my guess is the approach would be very similar to what you need to do on your unit.

The high whinning clearly sounds like the gain is set to high. I think they had a tuning pdf on their site which you might find useful. Hopefully, I will get a chance to start playing with my KFLOP in the next couple weeks.

Good Luck

Russ
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
Open Loop to Closed Loop Stepper Conversion beamhome Stepper Motors and Drives 9 05-24-2012 02:46 AM
Newbie- CNC conversion typically open loop or closed loop? foobar42 Benchtop Machines 8 10-29-2009 07:21 PM
question on closed loop vs open loop (servo systems) boonie Servo Motors and Drives 20 11-09-2007 12:30 PM
Closed loop vs. open loop pelesl Benchtop Machines 10 04-06-2007 04:56 PM
Lathe conversion - open loop vs closed loop bhowden General Metal Working Machines 7 03-21-2006 03:56 PM




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