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! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-11-2012, 01:44 PM
kazoochips's Avatar  
Join Date: Nov 2011
Location: usa
Posts: 8
kazoochips is on a distinguished road
Help with EMC2 timing for CW230 drivers?

Hi all, new guy here in sunny Kalamazoo, Michigan. Dad bought the book from buildyourcnc.com and we've finished building a modified version of that machine with a 3x3' x/y table and about 8" of z.

Setting up the electronics now and I've got the wiring figured out all right, but I'm not sure about what numbers to feed EMC2.

As part of the software setup, the stepconf wizard wants to know the following timing values for the driver board: Step time, Step space, Direction hold, Direction Setup, and whether it steps on the rising or falling edge of the pulse.

See, for example, the table at the EMC2 wiki:

http://wiki.linuxcnc.org/cgi-bin/emc...r_Drive_Timing

and this page from the EMC2 docs:

Configuration Wizard for Stepper-Based Machines

We have CW230 drivers (like this one here: Step Motor Driver, 3A Max, CW230-MPJA, Inc. ) Manufacturers like Gecko and Xylotex apparently have all of the timing values published in their datasheets, but I can't find the similar numbers for the CW230. I've been googling for like two days now and I'm starting to get frustrated. Also I don't have handy access to a oscilliscope, so unless somebody close by has one I can borrow, I'm running out of ideas.

Can anyone help me out with the right values so I can feed them to EMC2? Or, alternately, if someone else has EMC2 working with the CW230 drivers, could you tell me what numbers you decided to use?

I'm cross-posting this in the stepper motor / driver forum in case someone there can help.

Thanks in advance, and can't wait to start making chips!

Last edited by kazoochips; 01-11-2012 at 01:45 PM. Reason: broken link in original
Reply With Quote

  #2   Ban this user!
Old 01-11-2012, 06:48 PM
doorknob's Avatar  
Join Date: Jan 2010
Location: USA
Posts: 1,240
doorknob is on a distinguished road
Buy me a Beer?

This is only a guess, because I don't have a CW230 and also because while I have installed EMC2 on a test machine, I haven't actually used it, so keep that in mind as I think out loud here:

If you want to be able to tune your system to get the best mix of ultimate performance and reliability, then you will want to get those numbers right on target.

However, if your immediate goal is to get your system up and running, then you can use some guesswork to get started. You should be conservative in choosing the numbers (meaning, use "larger" numbers instead of "smaller" numbers, which translates into specifying "slower" signals rather than "faster" signals).

In fact, the link that you provided advises as much:

If your unsure about your drive timing start high like 10000 for each and test. remember that signal conditioning and opto-isolation can increase timing requirements.

My best guess is that the CW230 uses optoisolated inputs, which are typically "slow" devices. So, I would approach this task by taking one of the "slower" configurations shown in the list, and either use that for your starting values or else slow them down even further (by increasing the numbers), just to see if you can get your system to work. Afterwards you can work on better tuning.
Reply With Quote

  #3   Ban this user!
Old 01-11-2012, 09:20 PM
kazoochips's Avatar  
Join Date: Nov 2011
Location: usa
Posts: 8
kazoochips is on a distinguished road
on being a guinea pig

Hey doorknob, thanks for your thoughts.

I'm pretty sure I can set the numbers high just to get things working initially. I guess I was just thinking that since there seem to be a lot of folks selling (and presumably buying) those CW230 driver units, someone might know what the timing values should be. I hate guessing, you know? Especially when the information must be out there somewhere.

Anyhow- it looks like Friday is going to be the day that we finally power it up and see what happens. So if I don't find an answer before then, I'll probably just set everything way up high like 10k or 20k and see if the machine loses any steps...
Reply With Quote

  #4   Ban this user!
Old 01-12-2012, 03:22 AM
 
Join Date: Jan 2007
Location: UK
Posts: 97
cncbasher is on a distinguished road

their quite standard in the timings you should find that
3.0us step and 5.0us direction will be fine
Reply With Quote

  #5   Ban this user!
Old 01-12-2012, 10:43 AM
kazoochips's Avatar  
Join Date: Nov 2011
Location: usa
Posts: 8
kazoochips is on a distinguished road

OK, cool, I'll try 3 and 5 and see if the motors complain...
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-12-2012, 01:39 PM
 
Join Date: Jan 2012
Location: USA
Posts: 1
ryckebusch is on a distinguished road
Buy me a Beer?

How did your timing work out? I have a similar setup and am having troubles getting it all working. When testing the axis while in the setup I get really jerky motion and sometimes it reverses direction.

Thanks,

Jules
Reply With Quote

  #7   Ban this user!
Old 05-23-2012, 01:38 PM
 
Join Date: Mar 2012
Location: USA
Posts: 1
jbmcc is on a distinguished road
Some success

I am helping a friend with an opto-isolated breakout board and the opto-isolated CW230 (too much protection?). It seems reliable setting all values to 20,000 (20 uS). We will try adjusting down and I'll report back.
EMC-2 10-04, Dell D810 laptop
Reply With Quote

  #8   Ban this user!
Old 05-23-2012, 02:42 PM
doorknob's Avatar  
Join Date: Jan 2010
Location: USA
Posts: 1,240
doorknob is on a distinguished road
Buy me a Beer?

Originally Posted by jbmcc View Post
I am helping a friend with an opto-isolated breakout board and the opto-isolated CW230 (too much protection?). It seems reliable setting all values to 20,000 (20 uS). We will try adjusting down and I'll report back.
EMC-2 10-04, Dell D810 laptop
Using an optoisolated output from the breakout board to drive the optoisolated input of the motor driver may not be the best approach - you run the risk of degrading your signals, which at the extreme could possibly lead to problems such as missed steps or incorrect timing of some step pulses with respect to the direction pulse (although EMC2 does give you some flexibility in adjusting those parameters, so if it occurs you may be able to overcome it).
Reply With Quote

  #9   Ban this user!
Old 05-23-2012, 09:11 PM
kazoochips's Avatar  
Join Date: Nov 2011
Location: usa
Posts: 8
kazoochips is on a distinguished road

sorry for the lag in my response, things have been busy here. New baby in the house and all that means less time to play in the shop.

I've been running at 5000 step and 20000 dir for a few months now without issue, at least not any that I know about. I picked those numbers somewhat arbitrarily and I don't have any reason to suspect that they are "good" or "bad." I do know the machine works with those values. I have not tried the 3 and 5 values that were suggested above.

The most significant performance tweak we made was to stick a couple of hockey pucks onto the non-driven ends of the stepper motors. google "hockey puck dampers" or "stepper motor damper hockey puck" and you'll find lots of stuff about it. The upshot is you find the center of the flat face of an actual $2.00 hockey puck, and you drill a hole in it that is just slightly smaller than the axle sticking out the back end of your stepper. Then you slip that puppy on and re-test your max speeds and accelerations.

Before the pucks, I got stuck in nasty resonance around 30 IPM on both X and Y axis and couldn't run the machine any faster without freezing up the stepper and/or dropping lots of steps. After adding the pucks I can comfortably cut at 70+ IPM on both axes which is plenty fast enough for my purposes.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Keling KL-6050 drivers on EMC2 not responding EduardKieser Controller & Computer Solutions 0 11-22-2010 04:37 PM
IMS drivers vs. Gecko drivers cnczoner Stepper Motors and Drives 0 04-04-2010 10:50 PM
Need Help!- MicroStep CW230 achavarria Controller & Computer Solutions 0 11-01-2009 08:36 AM
Having trouble running keling 4030 drivers with emc2 OneAndy LinuxCNC (formerly EMC2) 11 01-25-2009 07:03 PM
Need Help!- Emc2 and Gecko Drivers, will it work? SpeedsCustom LinuxCNC (formerly EMC2) 43 09-29-2008 01:08 PM




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