Re: [Emc-developers] time delay hal component for lube pump

2022-11-24 Thread Hans Unzner
Good idea to make the lubrication based on the travelled distance.
Here you find a solution in Python you could adapt. It saves the
accumulated distance in a file and shows some statistics:
https://forum.linuxcnc.org/gmoccapy/40709-gmocappy-clock?start=50#203809


Am Do., 24. Nov. 2022 um 10:19 Uhr schrieb Stefan Freisei Muehlbacher <
frei...@freisei.de>:

> Some time ago, I have written a small component which pulses at
> machine-start if last lubrication was a configurable time away. Next
> pulse is done if the way the machine has made in sum of moving of the
> three axis hits a configurable limit (or even if the last lubrication is
> too long ago again).
>
> I guess two little components written in my poor c (one for saving the
> way-values on exit, the other for calculating/shooting next lubrication
> by time)   the rest (way-calculation) is done in simple HAL.
>
> If interested i can search for it.
>
> Greets.
>
>
> Am 21.11.2022 um 22:14 schrieb Jon Elson:
> > Hello, all,
> > I need a hal component for a lube pump.  What I am looking for is more
> > like a one-shot than the existing timedelay component.
> > timedelay seems to be able to delay the start or the end of a signal,
> > but output will follow the input after the delays occur. I wanted a
> > component that would trigger for a set time after a trigger (or
> > LinuxCNC starting) and then, I could or it with the spindle enables.
> > This would ensure the lube pump starts immediately when LCNC starts,
> > and then run whenever the spindle is on.  Anybody know a better way to
> > do this?
> > Thanks,
> > Jon
> >
> >
> > ___
> > Emc-developers mailing list
> > Emc-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-developers
> >
>
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-24 Thread Steffen Möller

How close is http://linuxcnc.org/docs/html/man/man9/oneshot.9.html to what you 
need? Should we possibly extend it for whatever is missing? And/or should the 
description of oneshot improve?

> Von: "Feral Engineer" 

> Classicladder is awesome for this 

That is what I also thought. Conceptually, just need to develop my respective 
skills a bit more.

> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer

I have subscribed :)

Best,
Steffen

> On Mon, Nov 21, 2022, 4:17 PM Jon Elson  wrote:
> 
> > Hello, all,
> > I need a hal component for a lube pump.  What I am looking
> > for is more like a one-shot than the existing timedelay
> > component.
> > timedelay seems to be able to delay the start or the end of
> > a signal, but output will follow the input after the delays
> > occur.  I wanted a component that would trigger for a set
> > time after a trigger (or LinuxCNC starting) and then, I
> > could or it with the spindle enables.  This would ensure the
> > lube pump starts immediately when LCNC starts, and then run
> > whenever the spindle is on.  Anybody know a better way to do
> > this?
> > Thanks,
> > Jon
> >
> >
> > ___
> > Emc-developers mailing list
> > Emc-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-developers
> >
> 
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-24 Thread Stefan Freisei Muehlbacher
Some time ago, I have written a small component which pulses at 
machine-start if last lubrication was a configurable time away. Next 
pulse is done if the way the machine has made in sum of moving of the 
three axis hits a configurable limit (or even if the last lubrication is 
too long ago again).


I guess two little components written in my poor c (one for saving the 
way-values on exit, the other for calculating/shooting next lubrication 
by time)   the rest (way-calculation) is done in simple HAL.


If interested i can search for it.

Greets.


Am 21.11.2022 um 22:14 schrieb Jon Elson:

Hello, all,
I need a hal component for a lube pump.  What I am looking for is more 
like a one-shot than the existing timedelay component.
timedelay seems to be able to delay the start or the end of a signal, 
but output will follow the input after the delays occur. I wanted a 
component that would trigger for a set time after a trigger (or 
LinuxCNC starting) and then, I could or it with the spindle enables.  
This would ensure the lube pump starts immediately when LCNC starts, 
and then run whenever the spindle is on.  Anybody know a better way to 
do this?

Thanks,
Jon


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers




___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-22 Thread andy pugh
On Tue, 22 Nov 2022 at 15:36, Chad Woitas  wrote:
>
>
> Could just use iocontrol by the sounds of it
> http://linuxcnc.org/docs/devel/html/config/iov2.html

I don't believe that the oicontrol.0.lube-on signal pulses, which I
think was required.

I can think of at least three ways to generate a suitable signal in HAL.

low duty-cycle pwmgen
stepgen
siggen clock pulse driving a oneshot.
timedelay with the output connected to the input. (might not "boot")

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-22 Thread Chad Woitas


Could just use iocontrol by the sounds of it
http://linuxcnc.org/docs/devel/html/config/iov2.html

  *   Chad
From: Jon Elson
Sent: November 21, 2022 3:15 PM
To: 
emc-developers@lists.sourceforge.net
Subject: [Emc-developers] time delay hal component for lube pump

Hello, all,
I need a hal component for a lube pump.  What I am looking
for is more like a one-shot than the existing timedelay
component.
timedelay seems to be able to delay the start or the end of
a signal, but output will follow the input after the delays
occur.  I wanted a component that would trigger for a set
time after a trigger (or LinuxCNC starting) and then, I
could or it with the spindle enables.  This would ensure the
lube pump starts immediately when LCNC starts, and then run
whenever the spindle is on.  Anybody know a better way to do
this?
Thanks,
Jon


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-21 Thread gene heskett

On 11/21/22 18:23, Andy Pugh wrote:




On 21 Nov 2022, at 21:17, Jon Elson  wrote:

  Anybody know a better way to do this?


How about a really slow, low duty-cycle pwmgen



I have no idea how long the silicon tube in a $10 (ebay when I bought a 
4 pack expecting short life, but 3 years later I'm still on the first 
one) peristaltic pump would last pumping vactra 68. But I have such a 
beast on my 6040 driving the mist atomizer. Its a 12 volt pump, and I 
rigged up a two timer circuit that pulses the 12 volts to it about 5% of 
the time, quite a few times a second. I've rigged up pyvcp sliders to 
control it, and I had an 8 oz coke bottle  with diluted koolmist in it, 
last as long as 8 hours while doing an awfully clean job of carving 1/2" 
alu into er20 wrenches.


If interested, I'll put some pix and config tarballs up on my web page. 
You can cherry pick whats useful.  With my setup, finding a mist spray 
head you can point at the tool that actually works is the biggest 
problem. Much less of a problem if the oil plumbing is already present.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers
.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-21 Thread Phill Carter


> On 22 Nov 2022, at 12:35 pm, Jon Elson  wrote:
> 
> On 11/21/22 17:13, Feral Engineer wrote:
>> Classicladder is awesome for this 
> But, way overkill for just one function.
> Maybe I should use timedelay as a template and write my own one-shot 
> component.

There is an existing oneshot component:
>

> Jon
> 
> 
> 
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-21 Thread Jon Elson

On 11/21/22 17:13, Feral Engineer wrote:

Classicladder is awesome for this 


But, way overkill for just one function.
Maybe I should use timedelay as a template and write my own 
one-shot component.

Jon



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-21 Thread Andy Pugh



> On 21 Nov 2022, at 21:17, Jon Elson  wrote:
> 
>  Anybody know a better way to do this?

How about a really slow, low duty-cycle pwmgen



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] time delay hal component for lube pump

2022-11-21 Thread Feral Engineer
Classicladder is awesome for this 

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

Order one of the coolest label makers on the market at
http://labelworks.epson.com, use coupon code "theferalengineer" and receive
20% off of your order 

On Mon, Nov 21, 2022, 4:17 PM Jon Elson  wrote:

> Hello, all,
> I need a hal component for a lube pump.  What I am looking
> for is more like a one-shot than the existing timedelay
> component.
> timedelay seems to be able to delay the start or the end of
> a signal, but output will follow the input after the delays
> occur.  I wanted a component that would trigger for a set
> time after a trigger (or LinuxCNC starting) and then, I
> could or it with the spindle enables.  This would ensure the
> lube pump starts immediately when LCNC starts, and then run
> whenever the spindle is on.  Anybody know a better way to do
> this?
> Thanks,
> Jon
>
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers