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

Reply via email to