Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Wallerawang on April 08, 2017, 12:12:30 AM

Title: Lua code for coolant buttons?
Post by: Wallerawang on April 08, 2017, 12:12:30 AM
Hi Guys

I have almost finished getting my control panel up and running I have all the buttons working except for my Coolant Control ones.

What I need to know is what Lua command do I need to run in my signal table for:

Mist On

Flood On

Coolant Off

I can call mc.mcCntlGcodeExecute for M7, M8 and M9 but is this the right way to do this?

Thanks for any advice

Steve
Title: Re: Lua code for coolant buttons?
Post by: Cbyrdtopper on April 10, 2017, 10:31:38 AM
Wallerawang,
I have momentary buttons to toggle on and off my coolant and spindle.  Is this what you're looking for?
Title: Re: Lua code for coolant buttons?
Post by: Cbyrdtopper on April 10, 2017, 10:35:26 AM

http://www.machsupport.com/forum/index.php/topic,33897.msg235073.html#msg235073
Title: Re: Lua code for coolant buttons?
Post by: Wallerawang on April 10, 2017, 04:34:02 PM
Thanks - I'll give that a try next weekend.
Steve