On Fri, Jul 30, 2010 at 09:47:43AM -0500, Igor Chudov wrote: > Great. Would anyone suggest how to do it with HALUI? Just trying to > get started with Halui. > > Here are the requirements again: > > Here are my requirements: > > 1) If flood is set to ON on the maintained switch, then maintain flood > coolant whenever spindle runs. > 2) If flood is set to OFF, then just do as G code says or according to > a GUI input. > > thanks
I don't think you need halui for this. You have HAL pins for spindle on, and emc requesting coolant. You will also have an input pin of some kind that represents the state of your switch. So the logic you need in HAL is emc coolant request OR (spindle on AND switch on) -> coolant pump There are lots of ways to do this in HAL. You could use or2 and and2 components, or the logic component, or classic ladder. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
