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 > Gecko Drives


Gecko Drives Discuss all Gecko drives here and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-27-2009, 04:34 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road
Servo closed loop specifics

I'd like to better understand how the G320/320X/340 closes the feedback loop. I haven't seen this anywhere in the forum, but please point me in the right direction if it's covered somewhere else.

My primitive (maybe incorrect) understanding is that they are constantly comparing step count with encoder count and when/if there is a mismatch they will apply power to take corrective action. If the difference becomes too great (configurable) then the drive will fault and movement will cease.

So, when accelerating into a cut if the step count starts to outpace the encoder count, additional power is applied to the motor to tap into the torque reserves and keep things synchronized. If this doesn't correct the situation, the drive will eventually fault.

On the other hand, if the encoder count suddenly shot past the step count, would the drive attempt to bring the two back in line via some combination of motor braking or reverse motion?

What I am wondering about is the specific situation when using an upcut mill and having the Z axis pulled down towards the workpiece by the tool. This happens to my steppers from time to time. I'm moving too fast and there isn't adequate torque available to maintain position.

Is this something that the servo drive can catch and correct? Or will this happen so quickly that the drive merely faults and you've probably lost the workpiece anyway?

Obviously, this is something that should not happen. There is probably a problem with the feedrate being too fast, the DOC too large, etc. But I'm wondering on a practical level does a servo drive/motor avoid these types of problems or merely fault when they happen?

Also, how is the controller (Mach, EMC, etc) typically notified when this occurs?

Thanks,

Steve
Reply With Quote

  #2  
Old 11-27-2009, 04:47 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

Servo loop is based on a PID algorithm. With Mach, the loop is closed back to the drive and not Mach itself.
http://www.jashaw.com/pid/tutorial/
Also the Galil motion site has some very informative instructional video's on Servo PID and tuning and servo's in general that applies across the board, not just to Galil products.
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 11-28-2009, 01:29 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Al, thanks for the pointer. I understand the basics of PID and how the loop is closed back to the driver. I was wondering how to handle error conditions that may occur. It looks like the Gecko servo drives have an ERROR pin (output) that can be tied back to one of the port (Mach) inputs to indicate an error has occurred.

From the 320X manual:

"The voltage on this terminal is +5VDC when the G320X is functioning normally. The voltage on this terminal goes to 0VDC whenever the FAULT indicator is lit. This output can be used to signal your controller that an error has occurred. "

I was mainly wondering how people used this. I'll look around for some diagrams. Perhaps those outputs can be tied together and used in conjunction with the eStop and put on a single input to the parallel port. I thinking about a quad input AND gate like the CD74HC21. Any advice here is appreciated.

Steve

Last edited by stevespo; 11-28-2009 at 07:15 PM.
Reply With Quote

  #4   Ban this user!
Old 12-13-2009, 03:25 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

from my experience with servos, if you have the right size or bigger to drive your tool or table and they are set up properly or fully auto tuning like the mitsubishi (which i use for everything now) you dont get faults, lost steps or lost work. with ebay you can get good new/used servos for less than some stepper set ups.
__________________
so much to learn, so much to pass on.
Reply With Quote

  #5   Ban this user!
Old 12-13-2009, 06:32 AM
Torsten's Avatar  
Join Date: Nov 2004
Location: U.S.A.
Posts: 260
Torsten is on a distinguished road

>My primitive (maybe incorrect) understanding is that they are constantly >comparing step count with encoder count and when/if there is a mismatch >they will apply power to take corrective action. If the difference becomes
>too great (configurable) then the drive will fault and movement will cease.

Correct, a Error Register will keep track of the error of position this ER will count the steps received from the controller positive and negative.
If the controller issues 20 steps the ER will go up to positiv 20 if then 5 steps in the opposite direction are commanded the ER will go to positiv 15.
The Drive will constantly monitor this ER and respond by powering the motor to move the ER back to zero in the direction of the error.
The higher the error the more Power is applied to the Drive, once the maximum Power is no longer sufficent to overcome the resistence the ER will if given continueing steps in the same direction eventually exeed the size of its registers and cause the fault signal.
On the other hand errors that never exeed the size of the ER will go unnoticed.


>On the other hand, if the encoder count suddenly shot past the step count, >would the drive attempt to bring the two back in line via some combination >of motor braking or reverse motion?

Yes the motor is driven by the ER count nothing else.

>What I am wondering about is the specific situation when using an upcut >mill and having the Z axis pulled down towards the workpiece by the tool. >This happens to my steppers from time to time. I'm moving too fast and >there isn't adequate torque available to maintain position.
>Is this something that the servo drive can catch and correct? Or will this >happen so quickly that the drive merely faults and you've probably lost the >workpiece anyway?

Exessive Force is just that, you may need more powerful Motors and or Drivers.
This problem may be caused or exagerated by backlash in the system, once the cutter gets pulled into the material the forces due to the increased chipload go up exponentaly and may cause the cutter to break or the Drive Motor to become overpowerd.
This condition may apply to more then one Axes at the same time.

The first to look at is to reduce the backlash at all Axes to the minimum.
Increase the ridgidity of the Machine as far as possible.
If the problem still persists get bigger motors/drivers or slow down the Feedrate.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-13-2009, 09:08 AM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

battwell and Torsten, thanks very much for the information and advice. The description is helpful. My machine has no measurable backlash (< .001") and is reasonably rigid (8020 and plate aluminum).

When I experienced the slipping/diving, the machine was doing some pretty aggressive 3d cuts in oak with a 1/2" ball nose (upcut) end mill. Even counterbalanced, the Z is moving a heavy, water-cooled spindle up and down. So, it could be that the Z motor was just overwhelmed trying to move and hold position. It's also possible that the motor coupling on the Z axis had slipped, but after slowing down the feedrates I had perfect results on my subsequent cuts.

So, I am currently experimenting with Granite VSD-E drives and 300W brushless DC motors. They are rated at 150 oz-in continuous and 450 oz-in peak, so they will certainly outperform my 425 oz-in steppers under any circumstances I could imagine. Based on the actual specs and estimated cutting forces from my machine, we've calculated that I'll need 59 oz-in or torque to accelerate my gantry fairly briskly. The extra headroom is there as insurance.

It seems like the key to any system (servo or stepper) is sizing the motors appropriately. You want to start with the typical scenarios and then add a "safety margin". If you don't exceed their capabilities, you should not experience faults of failures.

Steve
Reply With Quote

  #7   Ban this user!
Old 12-13-2009, 10:15 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

if you havnt already bought your new motors and drives there are some very cheap 400watt mitsubishi on ebay at the moment
http://cgi.ebay.co.uk/Mitsubishi-MR-...item5ad57add39

these will run 230v single phase. massive resolution in every mode ie torque, speed / step dir or a mixture!
just have to find some hc-mfs/kfs-40 motors which there are always loads of!
i would buy them but i have over 30 here already in that size
__________________
so much to learn, so much to pass on.
Reply With Quote

  #8   Ban this user!
Old 12-13-2009, 10:27 AM
BobWarfield's Avatar  
Join Date: May 2005
Location: USA
Posts: 2,395
BobWarfield is on a distinguished road

Steve, for your situation, I would expect the servo to just fault if it can't be commanded to reduce the following error below the threshold.

People handle the faults in a variety of ways and it can be a little tricky to do something clever with it.

There is also a new Gecko servo drive coming along that has quite a few additional features, though I'm not sure they'd matter for this application.

It does seem like you have a motor sizing/drive ratio issue at work here though.

Cheers,

BW
__________________
Try G-Wizard Machinist's Calculator for free:
http://www.cnccookbook.com/CCGWizard.html
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
Newbie- Syil x4+ Closed Loop Servo retrofit ? Chipboy Syil Products 3 09-12-2009 03:01 PM
Pico systems closed loop servo boards..... pete from TN Benchtop Machines 25 08-09-2009 08:26 PM
Problem- Mach EMC Maximum Encoder Count Closed Loop Servo EMC/MACH3 bad bearings Open Source Controller Boards 11 05-28-2009 11:44 AM
question on closed loop vs open loop (servo systems) boonie Servo Motors and Drives 20 11-09-2007 12:30 PM
Closed Loop Driver vs. Closed Loop Computer ojibberish Gecko Drives 3 06-08-2004 11:30 AM




All times are GMT -5. The time now is 10:16 PM.





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