I'm writing a user-space program to manage spindle speed on a machine 
with a VFD for the motor, and drive ratios set by belt and gear changes.

 From available HAL signals I would like to determine whether a spindle 
speed change is due to the speed override slider in axis, or due to a 
gcode Snnn speed change. I don't want to initiate a belt or gear change 
if it is from override.

The only way I've come up with is to monitor the ratio of 
motion.spindle-speed-out to halui.spindle-override.value. The ratio 
doesn't seem to change when the override is changed, but does with 
programmed speed changes.

Should this be evaluated over more than one program cycle to accommodate 
differences in timing between the two signals.

Does anyone know a better way to do this?

Thanks.

Karl Cunningham

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to