Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: RecceDG on April 13, 2022, 12:12:41 PM

Title: What conditions set the ALARM signal
Post by: RecceDG on April 13, 2022, 12:12:41 PM
I have a light tied to the ALARM signal, but nowhere in the docs can I find what conditions set that signal.

So - what sounds the ALARM?
Title: Re: What conditions set the ALARM signal
Post by: SwiftyJ on April 14, 2022, 11:49:22 AM
Using mc.mcCntlMacroAlarm activates the Alarm output. I believe writing to #3000 should also produce an alarm but I can't get it to work
Title: Re: What conditions set the ALARM signal
Post by: RecceDG on April 19, 2022, 09:03:38 AM
So nothing native to Mach sets that signal? Limit switches? Loss of position info? EStop?

Shouldn't that signal be set by anything that takes Mach out of the ENABLED state?
Title: Re: What conditions set the ALARM signal
Post by: SwiftyJ on April 19, 2022, 03:53:14 PM
Not that I am aware of. If you want it to function like that just set the alarm signal in the signal library when the output for machine enable signal turns off. That’s the great thing about Mach, you can pretty much make it do what you want
Title: Re: What conditions set the ALARM signal
Post by: KatzYaakov on April 21, 2022, 08:42:55 AM
i add register for such
and some event that raise up the register
then in any M function before any action( special force output)i Check this registry value
and if...
then return