Hello Guest it is March 29, 2024, 04:18:44 AM

Author Topic: Hold button for enable?  (Read 739 times)

0 Members and 1 Guest are viewing this topic.

Offline HoY

*
  •  18 18
    • View Profile
Hold button for enable?
« 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?

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Hold button for enable?
« Reply #1 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,
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline HoY

*
  •  18 18
    • View Profile
Re: Hold button for enable?
« Reply #2 on: March 12, 2019, 09:35:45 PM »
Awesome! Thank you