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 04-07-2010, 03:20 PM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road
tuning dual servos on CNC router

I'm just learning about servos, and I think I've got some of the basic concepts of servo tuning. I understand that what's usually done is to command a move and compare the commanded position to the actual position reported by the encoder, and that this is typically done with the motor installed and connected to it's intended load, so that the inertia and resonance of the whole system can be tuned.

What's puzzling me is how one goes about tuning a pair of servos that need to work in tandem, which is what I've got on the Multicam router I recently bought.

I'm getting an "excessive following error" fault occasionally on one of the drives, so I'm wondering if they need tuning.

Thanks for any help.

-Jim Hart
Reply With Quote

  #2  
Old 04-07-2010, 03:31 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

The tuned loop for servo systems is referred to as the PID loop, a search will bring you much info if you want to get more info on it, also a valuable resource is the instructional videos on the Galil Motion site if you want to learn about servo tuning.
Generally for two servo's to be used on the same axis requires the gearing feature of the controller, one axis (slave) is geared off the primary axis (master) encoder, Multicam mention they use a stand alone RISC/DSP controller which may imply they use closed loop gearing function in order to synchronize the dual axis.
Excess following error could well mean tuning, or alternatively a binding on the slave side, if this error is on the dual axis
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 04-07-2010, 04:18 PM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road

Thanks for the quick reply, Al!

It sounds like you're saying that the synchronization of the 2 motors takes place in the machine controller, and the general term for this is "gearing".

Unfortunately, the controller for this machine (made by Extratech) is kind of a Black Box, they're an OEM vendor who won't talk at all to an end user. Getting support from Multicam has been kind of an arduous process, where you leave a message and a tech gets back to you in several hours, or maybe not at all.

My Kingdom for a set of ladder diagrams! At least I have a copy of Ultramaster, so I can get detailed fault descriptions. There may be some mechanical binding, not sure how to check and adjust the pinions.

Anyway, in the dual motor setups you've worked on, is tuning done on the motors individually or simultaneously? Would you use a looping g-code program to command a long sequence of plus and minus moves, then tune one drive at a time?

thanks,
-Jim Hart
Reply With Quote

  #4  
Old 04-07-2010, 05:39 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

In a typical CNC machine, the servo loop and tuning is invisible to the part programming.
In a synchronized geared situation, both drives should be tuned for optimum, often the software is either capable of self tuning through a soft ware program, or a series of moves are performed whilst the PID is tuned for optimum performance to achieve as low as possible following error on each axis.
I would expect anyone designing a machine of this nature to have a maintenance or diagnostic tuning feature available.
If you have an axis that is difficult to achieve a reasonable result, then I would look at mechanical problems for the solution.
Although rare, I have run across proprietary designs in the past that have been averse to offering anything in the way of technical detail.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 04-08-2010, 11:30 AM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road

Ultramaster has an autotune option, although the help file recommends using the autotune as a jumping off point for manual tuning (at least that's the way I read it).

I've sucessfully used the manual tune option to set up a continuous oscillation on the y-axis. The software has a built-in o-scope, and I've been able to compare commanded speed and position with what the encoder says. Haven't been bold enough to change any PID or K-values, but I'm starting to get a bit of a grip on it conceptually.

Still can't grasp how one is supposed to tune the pair of x-axis motors. I can look at the scope while a program is running and compare commanded and encoder values, but then the program has to be stopped and the drive disabled to adjust the PID and K's.

Interestingly, the problem only happens during an extended slew move at full rapid, such as when parking the gantry high or low. Short slew moves, all normal cutting speeds, and rapid jog (about 75% of full rapid) all work just fine.
Reply With Quote

Sponsored Links
  #6  
Old 04-08-2010, 03:59 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

It could be that on extended moves the following error gradually increases and this could cause the slave side to skew or yaw and this will aggravate the problem due to friction.
On the cards I use (Galil) they have an option to look at the following error as during a move and the ability to change the PID in between moves.
Record the PID and experiment, you could always plug the original back in.
If you look at one of the Galil manuals, near the front of each manual is tuning the PID loop, the general sequence applies to other systems also, not just to Galil.
Al.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7   Ban this user!
Old 01-26-2011, 10:06 AM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road
still working on this

It looks like I'm getting some overshoot on the X axis, an shown by the ripples in the corner. Kd is set at zero. I'm wondering if setting a positive value for Kd would increase damping and reduce overshoot. The screen shot is from Ultramaster.

-Jim Hart
Attached Thumbnails
Click image for larger version

Name:	x axis overshoot.jpg‎
Views:	43
Size:	135.7 KB
ID:	124916   Click image for larger version

Name:	XA tuning normal operation position.png‎
Views:	48
Size:	26.5 KB
ID:	124917  
__________________
My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!
Reply With Quote

  #8   Ban this user!
Old 01-26-2011, 03:14 PM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road
weird wave

I wrote a little g-code program which moves the X-axis back and forth over a 3 inch span, then looked at the built in oscilloscope in Ultramaster and saw this rather weird waveform. Things would be so much easier if I could just send the same square wave to both motors.

-Jim Hart
Attached Thumbnails
Click image for larger version

Name:	X POS CMND.png‎
Views:	28
Size:	22.4 KB
ID:	124936  
__________________
My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!
Reply With Quote

  #9   Ban this user!
Old 01-26-2011, 05:47 PM
 
Join Date: Nov 2004
Location: USA
Posts: 435
spoiledbrat is on a distinguished road

KD=0 is wrong, unless you are in velocity mode. What does the other gantry servo drive tuning set to?

Rob
Reply With Quote

  #10   Ban this user!
Old 01-26-2011, 06:15 PM
 
Join Date: Jun 2010
Location: United States
Posts: 133
MCPservice is on a distinguished road
Tuning dual servos on CNC router

Jim,
I thing you guys might be over thinking this:

Have you looked at all of the mechanics of the servo assemblies
1. Pinions do they look like mountain peaks or devils tower. I should look like Devils Tower.
2. How does your rack look. It should have the same look
3. If you drop your servo and spin the pinion by hand, back and forth are you feeling any backlash.
4. If you feel backlash, pull apart the motor from the transmission, I think you have a small pinion is connected to the servo shaft, but then again Multicam had various versions, check that little pinion it could be worn out.
5. If you still haven't found anything:
1.Move to the front of the table and set a home point and drop one of the motors.
2. Press Enter to get into the Menu and move cursor until you get to Move, Enter
3. Put a X value of say 36" and don't work about Y or Z.
4. Measure from the front of the rail to say the front of the bearing car and repeat the same process for the other side. Check those measurements.
5. At that point switch the motors side, XA for XB and XB for XA.

If one side is short and once your switch side, that shortness shows up on the other side, then it is something with the motor or gearbox. If you get the same measurement, have you squared the gantry.

Try this and let me know...

Chris..
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-27-2011, 08:42 AM
Boltz's Avatar  
Join Date: Mar 2010
Location: US
Posts: 218
Boltz is on a distinguished road

MCP, yes I've been through the mechanicals. The pinions and couplings are tight, gearboxes are like new, and the rack doesn't look anything like that machine in South Africa that's been used to run composites all day! The X-axis overshoot is quite observable while cutting, it's consistent, and it happens in both directions.

Spoiledbrat, the other option is the position loop. The servo tunung docs at Kollmorgen say to tune the fastest loops first, which is why I'm starting with the velocity loop. I've now completed a full set of screenshots of all the original settings, so now I'm set to start tweaking things.

I agree, it's odd that D is greyed out. Evidently the velocity loop is PI, but the position loop is PID.

Here's a shot of the position tuning screen, I haven't changed Kd, it was set at zero.

I've been following your struggle with your Galil controller.

-Jim Hart

-Jim Hart

Originally Posted by spoiledbrat View Post
KD=0 is wrong, unless you are in velocity mode. What does the other gantry servo drive tuning set to?

Rob
Attached Thumbnails
Click image for larger version

Name:	XA tuning normal operation position.png‎
Views:	33
Size:	26.5 KB
ID:	124972  
__________________
My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!
Reply With Quote

  #12   Ban this user!
Old 01-27-2011, 02:30 PM
 
Join Date: Jun 2010
Location: United States
Posts: 133
MCPservice is on a distinguished road
Tuning dual servos on CNC router

Can you give me a pic of your servo and the amp..... might have the old programs for that drive....
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
Advice on Dual Plasma Router Table Mini-MillX2 CNC Plasma and Waterjet Machines 2 01-27-2007 05:04 AM
servos to control dual axis solar tracker BullCreek Servo Motors and Drives 17 08-15-2006 08:04 AM
Tuning Servos with out an O-scope? Bird_E Gecko Drives 2 02-23-2005 12:16 PM
Servos on Cad-Cut Router CAM_MAN Servo Motors and Drives 3 02-10-2005 07:44 PM
dual purpose cnc router junkmail DIY-CNC Router Table Machines 2 03-10-2004 12:01 PM




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