08-27-2015 11:57 AM
I currently use the real-time module to control the on/off of the pump at certain time. The screen shot of the code is attached. I want to add an additional condition in the case structure. When the working water level is lower than certain level, the pump should not turn on. How can I exit the case struture when the comparision has been done when the timer just start to count down?
Thanks,
08-27-2015 03:59 PM
Not sure what you wnat to do,
but a flow exits a case structure when everything in the selected case has run.
08-27-2015 04:02 PM
I want to exit the selected case before everying finish running when certain condition is met.
08-27-2015 04:09 PM
@pikaqiu wrote:
I want to exit the selected case before everying finish running when certain condition is met.
That cannot be done.
You CAN however, design a producer consumer loop where the consummer state machine is properly designed Look at this link where another poster had a simillar issue with a long uninteruptable process. then refactor your code.
08-27-2015 04:11 PM
Everything directly in the selected case will run exactly once.
Everything in the selected case must finish running in order to exit the case.