Page 1 of 1

Returning a Value - from an Interupt

Posted: Tue Feb 07, 2017 2:36 pm
by Docara
Hi

I'm trying to find out if an INTerupt has been triggered (so I can reverse a motor) by returning a (boolean) value but the returned value box is greyed out when I try to create the Macro. What am I doing wrong - the help box on the windows says nothing useful?

Thanks

Re: Returning a Value - from an Interupt

Posted: Tue Feb 07, 2017 2:43 pm
by LeighM
Hi
As an interrupt can occur anywhere in your program, a return variable would be unusable.
You need to use Global variables to transfer information between an interrupt and the main/foreground program.