On 2 June 2015 at 15:23, Rick Lair <[email protected]> wrote: > I am trying to figure out how to shut off my thru spindle coolant, with > the M09 command,
Is your requirement to only enable through-spindle coolant when either mist or flood is on? If that is the case, then you could use HAL logic (I think I would use LUT5) If the requirement is that M27 (presumably a remapped command of your own?) turns through-spindle on, and M9 turns it off, regardless of mist/flood state then things get a bit more interesting. M09 sends separate mist-off and flood-off commands: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/rs274ngc/interp_convert.cc;h=c375cd5f0532e2434696bbbc1aa62d6726c72ebd;hb=HEAD#l3136 Which are "fielded" by iocontrol: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/iotask/ioControl.cc;h=9c6a9832d79fc4c0be70fd1d73d1619c16148776;hb=HEAD#l977 But if the pins are already off they will just stay off. Do you actually use both mist and flood? (ie, could you re-purpose mist to be through-spindle?) Is there any penalty to always turning on one of mist or flood when through-spindle is turned on? If not, then perhaps you can use HAL logic _and_ have your M27 command turn on both through-spindle and flood. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
