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 02-06-2011, 10:40 AM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road
EMC2 LATENCY RESULTS

Hi,

I have a dell optiplex 620 (actually 3 of them I got on ebay) and i have disabled hyperthreading in the bios.

On my first test, I opened glxgears, played a video file, and opened firefox all in seperate pages. then I opened the latency test. My base jitter hovered around 11,000 after a couple minutes of running. But if I close the video file and reopen it my jitter jumps to about 29,000.

This computer is going to be dedicated to my machine only. It will not be connected to internet or used for anything else. Should I still base my results on the 29,000 jitter?

Also, I have a couple gecko gx320's I was going to use when I was planning on using Mach 3, but I am considering having the PID loop run directly throught the EMC2 via external IO hardware (Mesa?) Any thoughts on this?

Thanks!!!!
Reply With Quote

  #2   Ban this user!
Old 02-06-2011, 09:39 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Try getting rid of the on board video. You have any old video cards lying around?

steppers using PID is possible and has been done with EMC. Personally i can't see the point. Or did you mean servos with PID now that would different.
using a board like Mesa will allow you to have higher step speeds regardless if you try PID or not.


Chris M
Reply With Quote

  #3   Ban this user!
Old 02-07-2011, 06:11 AM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road
Smile

Thanks Chris,

1. Yes I was planning on using servo's

2. Do you have a recomendation on a video card that would work well with my gx620?

3. How does mesa or pico hardware increase the step rate?

Thanks!

Brandon
Reply With Quote

  #4   Ban this user!
Old 02-07-2011, 09:55 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by beezerlm View Post
Thanks Chris,


3. How does mesa or pico hardware increase the step rate?

Brandon
With the Pico Systems Universal Stepper Controller, EMC tells the board what step rate to produce, and the board counts out the time between pulses from a 10 MHz clock, so the step pulses are timed with 100 ns resolution. Since this clock is different from the CPU clock, the steps are counted and the position is sent back to EMC. This allows you to go to 300,000 steps/second or more.
Also, you can use encoders on the motors so missed steps can be detected.

The Pico Universal PWM Controller has no steps at all, it sends a pulse of varying width to the servo amplifier to control motor speed. You can run brush DC or brushless motors with this system.

I think the Mesa hardware works in a very similar way.

Jon
Reply With Quote

  #5   Ban this user!
Old 02-07-2011, 10:34 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

What John said, he is Pico.
calculating the trajectory is done less often (servo period) then calculating the software stepping rate (base period). With a hardware stepper ( Mesa or Pico card) then EMC just has to calculate the trajectory and lets the card calculate the step pulses.

I don't have a recommendation for video cards though EMC doesn't need fancy ones.
If you have some, just try them. I'll see if I can dig up someone else's recommendation.

What are you going to control?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-08-2011, 06:08 AM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road

Originally Posted by chester88 View Post
What are you going to control?
Well, I have a Kearny and Trecker Milwaukee-Matic Series Eb, a Moore G18 jig grinder, a bridgeport mill, and a custom built machine for dressing shapes in grinding wheels. All of these machines are in need of a control. I have done a couple retrofits with mach 3 but I am not a big fan of the windows environment for cnc control so I thought I would give EMC2 a go!

So your saying If I use Pico hardware I don't need to pay much attention to the base thread? I think my servo thread was around 15,000. Would that be sufficient to use external stepping hardware?

-Brandon
Attached Thumbnails
Click image for larger version

Name:	K&T EB.jpg‎
Views:	86
Size:	90.5 KB
ID:	125934  
Reply With Quote

  #7   Ban this user!
Old 02-08-2011, 10:44 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

15000 is awesome for external servo/stepgen.

sam
Reply With Quote

  #8   Ban this user!
Old 02-08-2011, 10:46 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

^ 15000 is pretty damn good for software generation also.

Love your K&T here is the latest video (don't know if you saw it)


YouTube - Kearney and Trecker CNC running simple program. (tool changing and everything)
sam
Reply With Quote

  #9   Ban this user!
Old 02-08-2011, 11:58 AM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road

Samco,
I did see that video. Very nice Job. I like the rigid tapping. Do you need encoder feedback running straight into emc2 in order to sinc the spindle and Z axis? Blue and Maze......Michigan fan? How much travel does your IIIB have? I think my EB is 24 x 24 x 24.

I was taking a guess at the servo thread number I could be way off. I will check when I get home tonight and see what it really is. Feel like I have been spinning my wheels on this whole latency thing........ I can't wait to get to the fun part!

As for Pico hardware, what advantage does PWM provide over the typical step/direction signal? I am not afraid to spend some money on some good hardware if it will improve the overall integrity of the system. I have only used Mach3 with gecko or viper drives so this stuff is new to me.

-Brandon
Reply With Quote

  #10   Ban this user!
Old 02-08-2011, 12:18 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

The K&T is X38,Y36,Z24. The table indexs in 5deg increments.

we are not using step/dir - we are using analog amps with encoder feedback feedback to emc.. (I need 40a drives for the k&t.) I can 'tune' the servo loop for each axis within emc using halscope. (think of it as emc's oscilloscope)

Jon E of pico systems could probably explain why it is better. (than step/dir)

if you go with an external interface - both pico and mesa have good hardware. (I am using mesa - I know people using pico) They seem to be the best supported bang for the buck.

sam
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-08-2011, 06:04 PM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road

Yea I was way off. My servo thread number is about 40,000. Will that work ok with an external interface?
Reply With Quote

  #12   Ban this user!
Old 02-10-2011, 09:04 AM
beezerlm's Avatar  
Join Date: Oct 2005
Location: usa
Posts: 121
beezerlm is on a distinguished road

After running some numbers, I may not need external hardware for the "Wheel dressing machine" I am building. I was planning on making this machine my first EMC2 project because it is only 2 axis servo, and needs I/O for spindle,coolant, limit and e-stop only. Its almost ready for the electronics to be installed.

Ok, so with my base thread jitter landing at around 29k, I can figure my the step rate for my pc at 1/(29us x 2) = 17,241 steps per second. I have a 500cnt/rev encoder (times 4 from quadrature)=2000steps per rev. Therefore, I can feed 17,241/2000 = 8.62 revs/sec -or- 517 revs per minute. 517 times my lead of .07874" = 40 ipm. Is this calculation correct????? I can live with 40 ipm on this project. I don't really need it to be any faster. most of my feeds will be 3 to 5 ipm with an occasional rapid movement at the end of each pass. I have some .020" precision lapped diaform diamonds in a special holder i will be using to contour the 14" diameter grinding wheel.

I will definately want faster feeds on the other machines - 100ipm minimum
Reply With Quote

Reply

Tags
emc2 latency mesa mach3




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 new pc to run emc2 (latency issues) Banana Jack LinuxCNC (formerly EMC2) 7 03-08-2011 05:15 AM
What to do to get latency figures down? CaptainVee LinuxCNC (formerly EMC2) 4 07-11-2010 12:51 PM
Need Help!- Determining Latency...Which #? margni74 LinuxCNC (formerly EMC2) 4 11-25-2009 04:55 PM
Improving my latency figures greybeard LinuxCNC (formerly EMC2) 5 07-23-2009 02:30 PM
EMC2 latency from Network card randyf1965 LinuxCNC (formerly EMC2) 1 03-22-2008 10:08 PM




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