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 02-05-2007, 04:06 PM
 
Join Date: Jun 2005
Location: USA
Posts: 196
Richards is on a distinguished road
Obscure bug found in G212 stepper driver

Recently, while developing a new controller interface, labeled the G4, for the Shopbot CNC Router, Ted Hall, President of Shopbot Tools, Inc. found an obscure bug in the Gecko G212 stepper driver that can cause serious problems when the stepper driver is used on a machine that makes very small moves, even when the step multiplier is set to 1:1. According to Brady Watson, who is intimately involved in testing various devices for Shopbot, the problem occurs when very small moves are made, particularly moves consisting of fewer than ten steps followed by a direction change. Some of the steps can be truncated, leading to errors that can ruin the parts being cut.

When Mariss Freimanis, President of Gecko, learned of the thread on the Shopbot Forum, he responded with an explaination of what was happening, why it was happening and how to avoid the condition that caused the error. His entire response can be found on the Shopbot Forum, but part of it is quoted here: "The G901s synthesize 10, 5, 2 or 1 internal step pulses for every pulse sent to it. This is done using a phase-locked loop circuit . . . This works OK in CNC applications provided enough time (20 milli-seconds) is allowed to elapse before the next direction change and acceleration occurs."

Since I have been extensively testing Gecko G212s and G340s for more than a year, I was interested in the possibilty of having a bug in the G212 cause problems in projects that may materialize sometime in the future. As a precaution, I removed the step multiplier cards in the G212 drivers and in the G340 driver and replaced those parts with optocouplers, part no HCPL2531-ND from Digi-Key. Those parts, which cost only $1.30 each, turn the G212 into a G202 and the G340 into a G320.

Today, after extensive testing and with several suggestions from Brady Watson, I was finally able to duplicate the error. Here is a listing of Mach 3 G-code that produced the error for me:

G01 Y0.005 F360
G01 Y-0.0075
G01 Y0.0025

Here is a listing of code that fixed the error:

G01 Y0.005 F360
G4 P20
G01 Y-0.0075
G4 P20
G01 Y0.0025
G4 P20

Mariss suggested inserting a 20mS delay before changing direction to give the step multiplier time to clear. His suggestion worked perfectly.

(For those who would like to duplicate the test for themself, I set 2000 steps per inch, 740 velocity and 40 acceleration in the Mach 3 setup. I called the section of code, listed above, as a subroutine and repeated the cycle 100 times.)

It should be noted that when these extremely small steps were doubled that NO error occurred. My suggestion is to use the G202 instead of the G212 whenever there is a possibility that you will be making extremely small moves.

I have to applaud Ted and Brady for finding this bug. Although it is obscure it is exactly the kind of bug that can drive us CNC operators insane when parts are ruined for no apparent reason. I also have to applaud Mariss for knowing exactly what could cause the bug and know exactly how to avoid it.

-Mike Richards
Reply With Quote

  #2   Ban this user!
Old 02-05-2007, 04:33 PM
braidmeister's Avatar  
Join Date: Nov 2004
Location: USA
Posts: 203
braidmeister is an unknown quantity at this point

Mike,
Thanks for the kudos. It should be noted that Dirk Hazeleger from www.botrods.com was also instrumental in observing & tracking this condition down, with his AGek ShopBot upgrade electronics package.

-B
Reply With Quote

  #3   Ban this user!
Old 02-05-2007, 04:56 PM
 
Join Date: Jun 2005
Location: USA
Posts: 196
Richards is on a distinguished road

Thanks for reminding me. Dirk is a great guy. He and I have exchanged several emails about this problem and about several other things that are of interest to him and me. My apologies to you, Dirk. You were probably the first one to alert me to the bug.

I also just received an email from Scott Worden, at Timber Lake Creations, who may have been the very first to find the bug when he was cutting a file of an Indian Headress. He reported that his Z-axis had moved out of position by about 0.125" while cutting the file.

-Mike
Reply With Quote

  #4   Ban this user!
Old 02-05-2007, 11:22 PM
 
Join Date: Mar 2003
Location: USA
Posts: 93
routerman is on a distinguished road

The same problem happens when using the step multiplier board for the G320's. The PLL looses steps when you accel too fast.

Marris thinks that resonance in a stepper is caused by the software feeding it, but this is not true. Stepper drives with out that fancy 'anti-resonace' circuit work just fine.
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
Current Set Resisitor for G212 bkkpool Gecko Drives 11 11-22-2006 09:37 PM
STEPPER DRIVER FAQ {Stepper/driver amp per phase match. huios Stepper Motors and Drives 0 08-27-2006 08:43 AM
Found a good source for small stepper driver transformers! $3 25v 2a transformers. radicooldude General Electronics Discussion 3 05-02-2006 02:15 PM
Gecko G212 installation Chivo Gecko Drives 0 08-14-2005 02:35 PM
G202/G212 Announcement Mariss Freimanis Product Announcements & Manufacturer News 0 05-25-2005 11:47 PM




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