Re: [Emc-users] Multiple external Estop switches, Part Deux
On 09/22/2010 06:37 AM, Andy Pugh wrote: > On 22 September 2010 11:23, Mark Wendt wrote: > > >> That "should" be the correct logic. Neither depressed, no effect on the >> emc-enable-in. Either pressed, emc-enable-in sees a signal. >> > It's an "enable" pin, it needs to go "false" to stop the machine. > I am never entirely sure which colour is which in HAL-config screens though. Okay, misread that part. For some reason I thought I'd read emc-enable-in had to be "true." I'll give that a whirl tonight. Thanks. mark -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Multiple external Estop switches, Part Deux
On 22 September 2010 10:26, Mark Wendt wrote: > Pressing either one > of those two Estop switches shows their respective "LED" light go out, > but the state of the iocontrol.0.emc-enable-in "LED" never changes. Reading the docs: http://www.linuxcnc.org/docview/html//config_emc2hal.html It seems that emc-enable-in needs to be driven false to operate. I assume that your switches are true normally, and go false when activated. I bet that pressing both switches works as anticipated. I got the logic wrong. This is your current truth-table: in0 in1 out 0 00 0 11 1 01 1 11 Which means that the e-stop will only activate with both switches pressed. I think you need to swap the "or2" for an "and2" (or an extra "and2" if you already have one or more). in0 in1 out 0 00 0 10 1 00 1 11 -- atp -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Multiple external Estop switches, Part Deux
Following Andy's advice to use the or2 function in my hal files, I started messing around trying to get both switches to work. Here's the original configuration for the Estop switch mounted on the control box: net estop-ext parport.0.pin-10-in # Control Box Estop net estop-out iocontrol.0.user-enable-out net estop-ext iocontrol.0.emc-enable-in The Estop switch on the pendant uses pin 15 on parport 1. Nota beni, both switches work by themselves, in other words, if I substitute parport.1.pin-15-in for parport.0.pin-10-in above, the pendant estop switch will work just fine. Playing around with the or2, here's the code I was working with: loadrt or2 count=1 addf or2.0 servo-thread net estop-ext0 or2.0.in0 parport.0.pin-10-in # Control Box Estop net estop-ext1 or2.0.in1 parport.1.pin-15-in # Pendant Estop net estop-out <= iocontrol.0.user-enable-out net estop-either iocontrol.0.emc-enable-in or2.0.out On starting EMC2, with both the Estop switches out, the Estop button on the Axis display shows as normal. However, pressing either the control box or the pendant Estop switch does not activate the Estop, and the Estop button on Axis does not get "depressed." opening up the Hal configuration tool, I can see the parport.0.pin-10-in and the parport.1.pin-15-in active, and the "LED" lit up. Pressing either one of those two Estop switches shows their respective "LED" light go out, but the state of the iocontrol.0.emc-enable-in "LED" never changes. Do I have a syntax error, or am I trying to accomplish something through the or2 the wrong way? Thanks, Mark -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Multiple external Estop switches
On 21 September 2010 10:23, Mark Wendt wrote: > If I change the > estop pin in from pport 0 pin 10 to pport 1 pin 15 the pendant estop > works, and vice versa for the control box estop, so I know I have two > working switches. Use the or2 function? loadrt or2 count=1 addf or2.0 net es1 pport.0.pin-10-in => or2.0.in0 net es2 pport.1.pin-15-in => or2.0.in1 net es3 or2.0.out => iocontrol.0.estop-in (Something like that, I am guessing the pin names) However, handling E-stop in software is usually not the best of plans, you might want to consider looping the main breaker coil current through both switches in series as a hardware alternative. (Though I accept that a bamboo splitting machine might not be the most dangerous of machines, and you can afford a slightly less robust E-stop chain than on, for example, an ED-209. -- atp -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Multiple external Estop switches
I would strongly recommend that your Estops directly shut down the machine. Even if the computer crashes, Estop should still work. If the machine starts removing parts of your anatomy you want to know that Estop WILL shut it down no matter what else happens. To run multiple switches, the best bet is to use normally closed switches and run them in series. If any one switch breaks the circuit the machine stops. Les On 21/09/10 10:23, Mark Wendt wrote: > external > estop switch that I'd like to activate. The current working estop is on > the control box and is hooked in through pin 10 on parallel port 0. > Works fine, lasts a long time. The pendant estop switch is hooked in > through pin 15 on parallel port two. I've tried a number of different > things - different variable names, but it seems the > -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Multiple external Estop switches
Thanks to Andy's pointing in the right direction I was able to combine the pendant and joypad files and make the mux 4 changes so that both of them work. Thanks Andy! Next question - the pendant has an external estop switch that I'd like to activate. The current working estop is on the control box and is hooked in through pin 10 on parallel port 0. Works fine, lasts a long time. The pendant estop switch is hooked in through pin 15 on parallel port two. I've tried a number of different things - different variable names, but it seems the iocontrol.0. can only work on that 0 bit. How does one program in two different external estops, on different parallel ports and get them both recognized through the hal files? If I change the estop pin in from pport 0 pin 10 to pport 1 pin 15 the pendant estop works, and vice versa for the control box estop, so I know I have two working switches. Thanks, Mark -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users