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 03-08-2011, 09:56 PM
 
Join Date: Feb 2009
Location: USA
Posts: 20
mediaconvert is on a distinguished road
trying to use emc2 for 2x3 router control

Is anyone willing to share their emc2 setup parameters for a system
similar to the plans published by Fine Line Automation and CNC Router
parts for their 2x3 router?
see Home : Fine Line Automation
I'm using their electronics package, a G540 stepper and their 380 ozin
motors. the details of my build are on my web pages.
see CNC Machining
I thought I had things working well but then I tried to drill the top
plate for a vacuum hold down and I realized I was loosing steps.
I've been running the diagnostic Gcode from the emc2 manual and
no matter how slow I go I'm still loosing steps...

Frank Pirz
Media Conversions
Reply With Quote

  #2   Ban this user!
Old 03-09-2011, 01:42 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

did you use stepconf to build the config?
What timing and acceleration settings did you use?
can you post your HAL and INI files?
are you sure you are losing steps or is it just not scaled right?
Are you losing steps in all axis or just one?
Is there any tightness mechanically?
Reply With Quote

  #3   Ban this user!
Old 03-09-2011, 09:00 PM
 
Join Date: Feb 2009
Location: USA
Posts: 20
mediaconvert is on a distinguished road
configuration info

Chester88. Lots of questions...
Yes I used Stepconf. I'm running emc2 v2.4.6 on Ubuntu 10.04.
Jitter tests give me latency of around 20,000. I'm using 25,000 to be
conservative. that gives me a max step rate of 30,303 hz.
[I've also tried 30,000]. the stepper motors are 200 step/rev.
the feed screws are 2TPI. the gecko g540 is fixed at 10 microsteps.
translates into 4000 step/inch. theoretical speeds are 7.7 ips or 454 ipm.
reality matches in that objects cut come out symmetrical, square (or
round), and the correct size. but cuts are restricted to feed rates
limited by spindle speed, cutter size and material. I've used cutting
feed rates of 10 to 20 ipm. in other words, slow.

what i'm trying to figure out is what the acceleration and velocity
numbers should be. I keep hearing that systems like this should be
able to do 150 ipm rapids. so far I can't go above 20 ipm without
loosing my way. and yes, it occurs on all axis tested so far (z and x).

thanks for the suggestion about binding. I tore down the X axis today
but didn't find any problems. same things showed up before and after
the tear down.

for testing, I'm using an edited version of the gcode that's in the
emc2 user's manual, section 23.3.1 testing step timing.
basically, I start at x=5.5, pause to setup/read a dial indicator.
then move between x=5 and x=3.5 [change the numbers to suit]
say 20 times. then go back to x=5.5 to see if I get the same reading.
first test runs with a .1 sec pause between g00 moves. second
part of test runs more iterations (100) but without the pause.
results are that i'm off anywhere between 1 to 5 thousands.
[at 4000 steps/inch, 1 step is .25 thousands, so I'm missing between
4 and 20 steps]

if you still want to look, the stepconf, hal and ini files are in a zip
file on my website at
emc2
and attached here.

thanks
Frank Pirz
Media Conversions
Attached Files
File Type: zip cnc.config.zip‎ (3.2 KB, 21 views)
Reply With Quote

  #4   Ban this user!
Old 03-12-2011, 01:58 PM
 
Join Date: May 2007
Location: USA
Posts: 717
sansbury is on a distinguished road

Things to try:

1. Crank each axis back and forth over its full travel by hand, just to make sure nothing is binding anywhere (esp. on a new machine)

2. Cut your acceleration values in half and run each axis back and forth at various speeds and see what happens. Try both G1 and G0 to make sure your max isn't set too high.

3. Disconnect one motor and do #2 again to see if your power supply is insufficient.

4. Double-check the current settings to make sure motors are being fully-powered.

Basically, what you need to do is simplify so you can isolate the problem. You should be able to send all three axes from one point to another and back at rapid speed without any problems. If you can't do that then start with one axis and work out from there.
Reply With Quote

  #5   Ban this user!
Old 03-12-2011, 04:45 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

your stepper timing numbers are horribly wrong.
step time should be around 1000 not 1
step space should be around 2000 not 0
dir hold should be around 200 not 30200
dir setup around 200 not 30200

Actually these are numbers that you can automatically select in stepconf.
These are minimum timing numbers they may need to be larger.
Try fixing these numbers.

Chris M
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-16-2011, 01:56 PM
 
Join Date: Feb 2009
Location: USA
Posts: 20
mediaconvert is on a distinguished road

Chester88
I'm selecting the G540 option when I run stepconf.
the values for variables you mentioned are
step time - 1000
step space - 2000
dir hold - 200
dir setup - 200
but they are grey'ed out so I can't change them anyway.

what else should I do - it seems like the defaults are
what they should be...

Frank Pirz
Media Conversions
Reply With Quote

  #7   Ban this user!
Old 03-16-2011, 10:16 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

hmm must be something going on.
in stepconf manually add the right timings or manually edit them in the HAL file.
If you manually edit them in the HAL next time you use stepconf they will be overwritten again.

look for lines like this for each axis:
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 15200
setp stepgen.0.dirsetup 15200

This is a bug in stepconf.
Reply With Quote

  #8   Ban this user!
Old 03-16-2011, 10:23 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

I may have spoke too soon .... I forgot about the double stepping feature of stepconf.

Try the manual settings in stepconf and see if there is a difference.
Reply With Quote

  #9   Ban this user!
Old 03-16-2011, 10:27 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Yes sorry I was on wrong track. After looking at the source code the timing is as it should be.

What voltage power supply are you using?
Reply With Quote

  #10   Ban this user!
Old 04-23-2011, 12:01 PM
 
Join Date: Feb 2009
Location: USA
Posts: 20
mediaconvert is on a distinguished road
loosing steps - G540 current set resistor

The problem I was originally talking about in this thread has been
traced to the G540 current set resistor location.
Not documented by Gecko, that resistor needs to be at the G540
end of the motor cable. FLA, who supplied my electronics, was putting
it at the motor end, and using a 9pin 'extension' cable to connect
to the G540. The result was that motors got too much current and
after about 1/2 hr of use started to loose steps. The resistor may
also need a 100 nf bypass capacitor. Gecko has not confirmed that
but they did say that future versions of the G540 will have the bypass
cap built in.

I'm now running reliably at with vmax settings of 5 ips (300 ipm)
and acceleration settings of 15 ip(s*s) using EMC2.

Frank Pirz
Media-Conversions
R2D2
Reply With Quote

Sponsored Links
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
Hacking a Keyboard for EMC2 / Axis Control scotta LinuxCNC (formerly EMC2) 16 06-13-2010 11:45 PM
Build Thread- My Control panel for EMC2 jbcj LinuxCNC (formerly EMC2) 7 04-25-2010 10:20 AM
Need Advice on EMC2 & Control Boards billbells LinuxCNC (formerly EMC2) 9 08-01-2009 08:33 PM
Feedrate control in EMC2? pauldkeeton LinuxCNC (formerly EMC2) 4 11-06-2007 12:14 AM
EMC2 (Open Source) Plasma Control w. THC rugludallur CNC Plasma and Waterjet Machines 0 07-19-2006 03:25 PM




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