Page 1 of 1
How do i use interrupts
Posted: Thu Apr 30, 2026 9:41 pm
by mineblocker08
Hello im doing an exam that involves flowcode and was wondering how i could make a system that can use an emergency stop to stop the process no matter where it is, is that possible or not if it is can anyone help me make it im not that good so a step by step would be appreciated.
Re: How do i use interrupts
Posted: Thu Apr 30, 2026 11:28 pm
by BenR
Hello
Yes using an interrupt icon you can enable an interrupt to call a macro on a particular event for example on a raising or falling edge of an input pin.
Once the interrupt fires you have some options on what to do. Here are some potential options. You could disable the outputs and set a variable that can be acted upon in the main loop. You could disable the outputs and then enter an infinite loop that forces you to hard reset to bring operation back. You could do a soft reset.