On 11 February 2013 06:52, John Murphy <[email protected]> wrote:

> I have the way lube tied to the spindle on signal, so I figured there ought
> to be a hal component that I can wedge between the 'spindle on' and the
> digital output that drives the pump relay to say, power it every other
> minute or three to reduce the volume of oil I'm getting.

Software PWMGen can do this easily.
http://www.linuxcnc.org/docs/html/man/man9/pwmgen.9.html
You could put it in the servo thread for the sort of duty cycle you want.
It seems that every pwmgen has its own frequency parameter, so this
shouldn't interfere with any other pwmgens.
It does need both a make-pulses function and an update function to be
linked to a thread, and I am not entirely sure how happy it is to have
both in the same thread. But for a lube-pump that isn't necessarily a
problem.

It might be useful to only lube when the axes are moving.

There is a pin called iocontrol.0.lube but I don't know what activates it.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to