In the tail end of getting a new computer (D510MO) ready to install in the Bridgeport.
The Bijur pump was bad, and the repair cost was way too high, so bought a Taiwan made clone. It's a clockwork type lube pump, very similar to the Bijur, which fires off a single shot of oil once every 30 minutes. So basically, it needs to be powered anytime the table is in motion.
Ran into Matt Shaver at the recent cnc seminar, and he showed me one method of powering the pump whenever the table is in motion. After much searching through the EMC2 docs, he found a "velocity" signal, which is probably the float variable which is sent to the DRO in AXIS. He compared that to zero, and added a small hysteresis, then sent it to an output pin. I'm using an ac relay to power the pump, so had to invert the output line. Your needs may vary.
Here's the code:
# Let's pick up a signal to turn on the lube pump
# Original code work by Matt Shaver
# Add a comparator component
loadrt comp count=1
# set the hysteresis to a small value to
# allow for very slow movements before turning on the pump
setp comp.0.hyst .01
# The first input to the comparator is zero.
setp comp.0.in0 0.0
# The other input to the comparator is the
# current axis movement velocity
net moving comp.0.in1
# This signal is the output, but is inverted for my puposes YMMV
setp parport.1.pin-16-out-invert 1
# It needs to be connected
# to an output bit
net pump comp.0.equal => parport.1.pin-16-out
# We need to run the comparator periodically
addf comp.0 servo-thread
Enjoy, and hope this helps someone.