Hi,
how about using:
LUA Syntax:
cycle, rc = mc.mcCntlIsInCycle(
number mInst)
Description:
Used to see if a G code file is running.
in the PLC script. If the machine is 'InCycle' then leave the Mist/Flood output as is and if its not 'InCycle' then turn Mist/Flood off.
Craig