On 6/2/2015 10:50 AM, andy pugh wrote: > 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. This is what I was trying to achieve, yes I remapped the M27 to turn the thru spindle coolant on, that is the same code on all the other vmc's in our shop that have this. > 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. > I will have to go talk to the guys to see if they will ever use the mist option, the machine does have all three, mist, flood, and thru spindle.
-- Thanks Rick Lair Superior Roll & Turning LLC 399 East Center Street Petersburg MI, 49270 PH: 734-279-1831 FAX: 734-279-1166 www.superiorroll.com ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
