Re: [Emc-users] Single Pulse Output?
How about a capacitor based delay circuit? AND-gate it with your one shot pin. When power is off, capacitor bleeds empty through a resistor to ground. On power up, the delay circuit is held low until the cap is charged. It stays charged until power is shut off again. Set the output enable threshold with a zener diode perhaps (if the AND gate doesn't give an on voltage you like) and the delay with capacitance size. Best, Jason On Dec 2, 2012 2:31 PM, N. Christopher Perry n_christopher_pe...@me.com wrote: Thank you John and Andy. I've got my machine working almost exactly the way I want: When my spindle is enabled/disabled I have a oneshot triggering a port pin connected to a modified wireless remote for my vacuum system. Now I just need to build a workaround for the ~4 s pulse I get on that port pin when the computer is turned on... I'm guessing I need to wire in a delay-on-make lockout for the vacuum remote connection that triggers on some output on the computer. N.C. On 2012-Nov-12, at 05:01, andy pugh wrote: On 12 November 2012 02:18, John Kasunich jmkasun...@fastmail.fm wrote: man oneshot from the command line should get you the documentation. Or the HTML docs: http://www.linuxcnc.org/docs/html/man/man9/oneshot.9.html Note that you can set it to produce a pulse on both the rising and falling edge, so if you net-ed it to halui.machine,is-on you would get a pulse when you turned the machine on or off (F2 key in axis) You need to enable halui to get that pin: http://www.linuxcnc.org/docs/html/gui/halui.html I don't know if you get the pulse, or how long it would be, if you exit LinuxCNC without turning the machine off. Note that oneshot has the time resolution of the thread it is in. So 1mS resolution in the typical servo thread. It can't run in the base thread. -- Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
On Dec 3, 2012 9:40 AM, andy pugh bodge...@gmail.com wrote: On 3 December 2012 15:15, Jason Burton lathebuil...@gmail.com wrote: How about a capacitor based delay circuit? AND-gate it with your one shot pin. That sounds a little over-complex. It is probably simpler to find a better-behaved parallel port pin. They will tend to change state on power-up. Some are hardware inverted. Choosing to use (or avoid) the hardware-inverted ones might be the solution. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto Good to know! I learn something new every day...thanks Andy. Best, Jason -- Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
On Mon, 2012-12-03 at 10:04 -0600, Jason Burton wrote: On Dec 3, 2012 9:40 AM, andy pugh bodge...@gmail.com wrote: On 3 December 2012 15:15, Jason Burton lathebuil...@gmail.com wrote: How about a capacitor based delay circuit? AND-gate it with your one shot pin. That sounds a little over-complex. It is probably simpler to find a better-behaved parallel port pin. They will tend to change state on power-up. Some are hardware inverted. Choosing to use (or avoid) the hardware-inverted ones might be the solution. I believe the charge pump signal is normally used to block parallel port signals until LinuxCNC is up and running. http://wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps One possible detector is this: https://www.sparkfun.com/products/9147 Or, there are break-out-boards with pump inputs. Another option is to use a hardware signal generator, such as from Pico or Mesa instead of the parallel port directly. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
I considered something like that. The complexity is that there isn't another parallel port pin I can trust to indicate when the PC comes on for use as an interlock, and the aux power supplies and drives do not power up at the same time as the PC. I've settled on having a 555 timer energize a NO relay after a ~10s delay. I'll have the power from an unused USB port power the 555 delay circuit, and the relay will provide isolation to reduce the potential for ground loops. I checked the timing and that parallel port pin and the USB port come up within a couple of ms of each other. N. Christopher Perry On Dec 3, 2012, at 10:15, Jason Burton lathebuil...@gmail.com wrote: How about a capacitor based delay circuit? AND-gate it with your one shot pin. When power is off, capacitor bleeds empty through a resistor to ground. On power up, the delay circuit is held low until the cap is charged. It stays charged until power is shut off again. Set the output enable threshold with a zener diode perhaps (if the AND gate doesn't give an on voltage you like) and the delay with capacitance size. Best, Jason On Dec 2, 2012 2:31 PM, N. Christopher Perry n_christopher_pe...@me.com wrote: Thank you John and Andy. I've got my machine working almost exactly the way I want: When my spindle is enabled/disabled I have a oneshot triggering a port pin connected to a modified wireless remote for my vacuum system. Now I just need to build a workaround for the ~4 s pulse I get on that port pin when the computer is turned on... I'm guessing I need to wire in a delay-on-make lockout for the vacuum remote connection that triggers on some output on the computer. N.C. On 2012-Nov-12, at 05:01, andy pugh wrote: On 12 November 2012 02:18, John Kasunich jmkasun...@fastmail.fm wrote: man oneshot from the command line should get you the documentation. Or the HTML docs: http://www.linuxcnc.org/docs/html/man/man9/oneshot.9.html Note that you can set it to produce a pulse on both the rising and falling edge, so if you net-ed it to halui.machine,is-on you would get a pulse when you turned the machine on or off (F2 key in axis) You need to enable halui to get that pin: http://www.linuxcnc.org/docs/html/gui/halui.html I don't know if you get the pulse, or how long it would be, if you exit LinuxCNC without turning the machine off. Note that oneshot has the time resolution of the thread it is in. So 1mS resolution in the typical servo thread. It can't run in the base thread. -- Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
I considered that, but I'm not convinced they will have consistent enough behavior. I really want a more definitive solution. N. Christopher Perry On Dec 3, 2012, at 10:35, andy pugh bodge...@gmail.com wrote: On 3 December 2012 15:15, Jason Burton lathebuil...@gmail.com wrote: How about a capacitor based delay circuit? AND-gate it with your one shot pin. That sounds a little over-complex. It is probably simpler to find a better-behaved parallel port pin. They will tend to change state on power-up. Some are hardware inverted. Choosing to use (or avoid) the hardware-inverted ones might be the solution. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
why can't we use some simple charge pump.. (I think the 555 could be used as a charge pump detector.. iirc) that then maybe powers the interface logic when linuxcnc is started. sam On 12/03/2012 04:56 PM, andy pugh wrote: On 3 December 2012 22:52, N. Christopher Perry n_christopher_pe...@me.com wrote: I considered that, but I'm not convinced they will have consistent enough behavior. Computers are really bad at doing random. I reckon each pin will do the same wierd stuff every time. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
Thank you John and Andy. I've got my machine working almost exactly the way I want: When my spindle is enabled/disabled I have a oneshot triggering a port pin connected to a modified wireless remote for my vacuum system. Now I just need to build a workaround for the ~4 s pulse I get on that port pin when the computer is turned on... I'm guessing I need to wire in a delay-on-make lockout for the vacuum remote connection that triggers on some output on the computer. N.C. On 2012-Nov-12, at 05:01, andy pugh wrote: On 12 November 2012 02:18, John Kasunich jmkasun...@fastmail.fm wrote: man oneshot from the command line should get you the documentation. Or the HTML docs: http://www.linuxcnc.org/docs/html/man/man9/oneshot.9.html Note that you can set it to produce a pulse on both the rising and falling edge, so if you net-ed it to halui.machine,is-on you would get a pulse when you turned the machine on or off (F2 key in axis) You need to enable halui to get that pin: http://www.linuxcnc.org/docs/html/gui/halui.html I don't know if you get the pulse, or how long it would be, if you exit LinuxCNC without turning the machine off. Note that oneshot has the time resolution of the thread it is in. So 1mS resolution in the typical servo thread. It can't run in the base thread. -- Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
On 12 November 2012 02:18, John Kasunich jmkasun...@fastmail.fm wrote: man oneshot from the command line should get you the documentation. Or the HTML docs: http://www.linuxcnc.org/docs/html/man/man9/oneshot.9.html Note that you can set it to produce a pulse on both the rising and falling edge, so if you net-ed it to halui.machine,is-on you would get a pulse when you turned the machine on or off (F2 key in axis) You need to enable halui to get that pin: http://www.linuxcnc.org/docs/html/gui/halui.html I don't know if you get the pulse, or how long it would be, if you exit LinuxCNC without turning the machine off. Note that oneshot has the time resolution of the thread it is in. So 1mS resolution in the typical servo thread. It can't run in the base thread. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Single Pulse Output?
Is there a way to have a parallel port output generate a single pulse on command? I have a vacuum system that requires a pulse to turn it on/off, and would like to have my machine turn the vacuum on automatically. N.C. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
On Sun, Nov 11, 2012, at 07:44 PM, N. Christopher Perry wrote: Is there a way to have a parallel port output generate a single pulse on command? I have a vacuum system that requires a pulse to turn it on/off, and would like to have my machine turn the vacuum on automatically. How long of a pulse? How precise does the length need to be? HAL has a one-shot component, that generates a pulse its input signal changes state. Might do what you need. John Kasunich jmkasun...@fastmail.fm -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
A 1 s pulse, +/-0.25 s, with +/-0.25 s timing accuracy would be adequate. N.C. On 2012-Nov-11, at 20:09, John Kasunich wrote: On Sun, Nov 11, 2012, at 07:44 PM, N. Christopher Perry wrote: Is there a way to have a parallel port output generate a single pulse on command? I have a vacuum system that requires a pulse to turn it on/off, and would like to have my machine turn the vacuum on automatically. How long of a pulse? How precise does the length need to be? HAL has a one-shot component, that generates a pulse its input signal changes state. Might do what you need. John Kasunich jmkasun...@fastmail.fm -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Single Pulse Output?
The HAL one-shot component can do that very easily. man oneshot from the command line should get you the documentation. On Sun, Nov 11, 2012, at 08:52 PM, N. Christopher Perry wrote: A 1 s pulse, +/-0.25 s, with +/-0.25 s timing accuracy would be adequate. N.C. On 2012-Nov-11, at 20:09, John Kasunich wrote: On Sun, Nov 11, 2012, at 07:44 PM, N. Christopher Perry wrote: Is there a way to have a parallel port output generate a single pulse on command? I have a vacuum system that requires a pulse to turn it on/off, and would like to have my machine turn the vacuum on automatically. How long of a pulse? How precise does the length need to be? HAL has a one-shot component, that generates a pulse its input signal changes state. Might do what you need. John Kasunich jmkasun...@fastmail.fm -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- John Kasunich jmkasun...@fastmail.fm -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users