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-05-2009, 03:37 PM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road
EMC2 Dependability

Hello all,

I have been lurking around cnczones forums for a while, trying to gather information about EMC2 and CamSoft.

From what I gather EMC2 closes the servo loop at the CPU processor, while CamSoft can close the loop at a PCI based motion controller. So if the CPU crashes the PCI card will finish its commands but not continue on after that.

My question is this. For those people that have used EMC2, have you ever experienced a CPU failure and what was the effects on the machine that was being ran with it?

Thanks,
Will Baden
Reply With Quote

  #2   Ban this user!
Old 01-05-2009, 03:48 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

If the computer/hadware is setup correctly.. The second the watchdog/charge pump circuit detects that the computer isn't there anymore - the machine will go into estop.

That being said. I can't think of one time that emc 'crashed' on me and or caused a bad part (that wasn't caused by me ).

sam
Reply With Quote

  #3   Ban this user!
Old 01-05-2009, 04:17 PM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road

Sam

How do you have the watchdog timer setup? Is it watching power to the pc, or actually watching a thread in the pc?

You say it is a charge pump, so I am guessing that you have the pc send an output to the charge circuit to drain the cap, but if the cap isn't discharged in time the cap will charge and possibly activate or deactivate a relay that is tied into the E-Stop circuit. Something along those lines?

Thanks for the fast response,
Will Baden
Reply With Quote

  #4   Ban this user!
Old 01-05-2009, 09:17 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

Originally Posted by baden0001 View Post
How do you have the watchdog timer setup? Is it watching power to the pc, or actually watching a thread in the pc?
The watchdog setup is dependent on the control hardware you're using.

I'm most familiar with Mesa's Anything I/O boards, which connect to the host PC via PCI or EPP. On these boards (with the hostmot2 firmware), the watchdog runs on the FPGA on the AnyIO board. The emc2 servo loop resets the watchdog each time it runs. The watchdog timeout is configurable from microseconds up to about four seconds. A watchdog timeout of a few times the servo period is normal.

With this setup, if emc2's servo loop stops communicating with the AnyIO board (due to the PC crashing, or emc2 crashing or locking up, etc), the watchdog will bite. When it bites, the watchdog safes the system by switching all the I/O pins to high-impedance mode, weakly pulled high.

The motor amplifiers "downstream" should use an active-low enable, so that the pulled-high "NotEnable" pin causes the motor to shut off.

Hope this makes sense...
Reply With Quote

  #5   Ban this user!
Old 01-05-2009, 09:49 PM
cadmonkey's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 304
cadmonkey is on a distinguished road

Originally Posted by baden0001 View Post
You say it is a charge pump, so I am guessing that you have the pc send an output to the charge circuit to drain the cap, but if the cap isn't discharged in time the cap will charge and possibly activate or deactivate a relay that is tied into the E-Stop circuit. Something along those lines?
A charge pump is really simple - it's a relay or solid state switch that is stand alone from the computer and all the other controls (ie it's its own device) and monitors a single pin on the interface for a certain pulse rate. If EMC is running properly that pin will continue to output the pulse rate you've setup in the configuration file (documentation is a bit sketchy on exactly what you get but typically the commercially available CP's aren't that tight on the frequency) and keep the relay (or SS switch) energized powering the drives. If EMC "gets lost" (which I have never had happen - my system specs P3 650MHz, 384MB, on board LPT for motion control and the CP, add on PCI LPT card for limit & homes, a sound card [hey, sometimes you want some tunes when you're doing maintenance...], and a PCI 10/100 card, driving 3 Gecko G203V drives through a DIY high speed opto isolating BOB) the CP signal will stop and the charge pump will in turn shut down the contactor which supplies power to the drives and the spindle, effectively stopping any motion. I've tested it by doing things like pulling a stick of memory, shorting the pin, disconnecting the pin, etc. and it worked each time.

It's nice to be able to boot the computer and do maintenance on the computer (updates, backups, playing some tunes, etc) and not having to worry about the mill being powered up. As soon as EMC starts, the mill is live and ready. Some people choose to have the CP also part of the E-Stop chain - such that if E-stop is pressed, then the CP shuts down also. If I were running big iron - I would too. But on my X3 I feel my sequence of operation is safe.

HTH - YMMV

Greg

edit - forgot I have onboard video too (typically a no-no but the bios on this machine won't let me turn it off so even if I put in a different card it still runs the onboard video.

And in case you got overloaded with my windy explanation I'll answer the thread question - EMC has NEVER died on me during a run or at idle, as long as the computer boots, it runs. Never had to hard reset or pull the plug - this is steppers not servos, but EMC is still counting pulses like an encoder, just instead of an encoder being used, the stepper configurations tie the step pulse generator to the counter so as far as the internal code goes, it's not a big difference.
/edit
__________________
Every day is a learning process, whether you remember yesterday or not is the hard part.
www.distinctperspectives.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-06-2009, 08:28 AM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road

Thanks seb and cadmonkey, you guys answered my question about the watchdog timer. Both ways seem logical to me.

Also, cadmonkey, knowing that you havent had the operating system crash is what I was looking for in this thread. Thanks.

Right now the company I am working for is looking to retrofit an old Okuma LS-N possibly. We are looking for any and all options and trying to weigh them against safety, ease of use and how fixable in case of cpu failure.

Thanks,
Will Baden
Reply With Quote

  #7   Ban this user!
Old 01-06-2009, 09:08 AM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road

Originally Posted by Seb View Post
I'm most familiar with Mesa's Anything I/O boards, which connect to the host PC via PCI or EPP. On these boards (with the hostmot2 firmware), the watchdog runs on the FPGA on the AnyIO board. The emc2 servo loop resets the watchdog each time it runs. The watchdog timeout is configurable from microseconds up to about four seconds. A watchdog timeout of a few times the servo period is normal.
Seb,
I have been looking into this setup a little more and wonder what all drivers are needed for these cards (particularly 5i20) to run with EMC2?

Thanks,
Will Baden
Reply With Quote

  #8   Ban this user!
Old 01-06-2009, 11:07 AM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

There are two things called "drivers". One is software that runs on the PC and talks to the motion control hardware, and the other is electronics that provides power to the motors.

There are currently two software drivers in emc2 for talking to the 5i20. The older, more stable one is called m5i20. This one has been widely used for a long time, but it's somewhat limited in its capabilities. The other one is called hostmot2. This one is pretty new, but working well for lots of people.

These two drivers let emc2 talk to the 5i20 (hostmot2 supports all the other AnyIO boards as well). But the AnyIO boards by themselves can't drive motors, you need the other kind of driver for that: a power amplifier.

There are tons of options here, and your needs will dictate which you choose. Mesa sells amps for both steppers (7i32) and servos (7i33, 7i29, etc). Lots of other hardware manufacturers sell power amps, Gecko being perhaps the most well-known.
Reply With Quote

  #9   Ban this user!
Old 01-06-2009, 11:59 AM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road

Originally Posted by Seb View Post
There are two things called "drivers". One is software that runs on the PC and talks to the motion control hardware, and the other is electronics that provides power to the motors.
Sorry for being loose with my terms. I was looking for software drivers.

But since you did bring up Amplifier drivers for the servos, which did you end up using?

We are looking to use possibly the OKUMA drivers but that is looking like it wont work out. May end up using Advanced Motion Control Servo Drives.

Thanks,
Will Baden
Reply With Quote

  #10   Ban this user!
Old 01-06-2009, 12:05 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

Originally Posted by baden0001 View Post
But since you did bring up Amplifier drivers for the servos, which did you end up using?
My machine is still a work in progress... I haven't selected a servo amp yet.

I'm leaning towards the Mesa 7i29.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-06-2009, 12:23 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

the mesa hardware can do pwm+dir or +/-10v depending on the interface. That really covers the bulk of drives that are out there.

The new mesa driver (hostmot2) will also do hardware step/direction. (I would not use this though for servos as encoder feedback to emc is a much better solution)
Reply With Quote

  #12   Ban this user!
Old 01-06-2009, 12:39 PM
 
Join Date: Jun 2007
Location: USA
Posts: 17
baden0001 is on a distinguished road

Originally Posted by Seb View Post
My machine is still a work in progress... I haven't selected a servo amp yet.

I'm leaning towards the Mesa 7i29.
Good luck on the build! The 7i29 looks like a good way to go.

Will Baden
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!- EMC2 Jamy LinuxCNC (formerly EMC2) 32 08-17-2009 11:03 PM
EMC2 Jamy General CAD Discussion 2 12-11-2008 12:02 AM
Need Help!- M8 still not being red by EMC2 SpeedsCustom LinuxCNC (formerly EMC2) 27 04-13-2008 03:36 PM
EMC2 to diy CNC dakiller322 LinuxCNC (formerly EMC2) 11 10-05-2007 12:16 AM
emc2 -hal*? essa LinuxCNC (formerly EMC2) 3 05-27-2006 12:06 PM




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