Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: HoY on March 12, 2019, 06:18:28 PM

Title: Hold button for enable?
Post by: HoY on March 12, 2019, 06:18:28 PM
I’m wondering if that’s an option with Mach 4? The way the haas controller let’s you use the start button as a hold to run button, pausing when you let go of it.
Basically I want to read an input from the BOB, that while is closed it runs, but pauses when the input goes open. Is that an option?
Title: Re: Hold button for enable?
Post by: Chaoticone on March 12, 2019, 08:27:45 PM
Absolutely. Most of the default screens have this in their sigLib in the screen load script already, it's just commented out.

Code: [Select]
[mc.ISIG_INPUT1] = function (state)
   -- if (state == 1) then   
--        CycleStart()
--    --else
--        --mc.mcCntlFeedHold (0)
--    end

end,
Title: Re: Hold button for enable?
Post by: HoY on March 12, 2019, 09:35:45 PM
Awesome! Thank you