Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: rhtuttle on January 11, 2022, 11:00:00 AM

Title: Turn off mist/flood on stop/estop
Post by: rhtuttle on January 11, 2022, 11:00:00 AM
Is there a setting in Mach4 that will turn off Mist/Flood (m9) whenever a Stop or EStop is issued or do I need to modify something in the screenload script?

TIA

RT
Title: Re: Turn off mist/flood on stop/estop
Post by: DazTheGas on January 11, 2022, 02:33:08 PM
You could just add it to the siglib to look out for the estop and then turn off what you want off and same add the code to the stop signal or button if easier.

DazTheGas
Title: Re: Turn off mist/flood on stop/estop
Post by: joeaverage on January 11, 2022, 08:31:45 PM
Hi,
how about using:

Code: [Select]
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
Title: Re: Turn off mist/flood on stop/estop
Post by: rhtuttle on January 13, 2022, 02:01:50 PM
Thanks guys I'll give it a try later.

RT
Title: Re: Turn off mist/flood on stop/estop
Post by: KatzYaakov on January 14, 2022, 02:41:30 AM
pmc its easy place