9 hours ago9 hr I'm trying to use a short event pulse to trigger a program and self-latch it so that the Then condition will keep running for several seconds (the Then events have a series of Wait statements that cause it to take this long). I assume the IF condition needs to remain true for this entire duration to allow all of the Then commands to run, so I'm looking for a simple and elegant way to have the IF remain true until all the Then events have completed.I tried adding an "OR Program is True" to the IF and a "Stop program" as the last Then command, but I think the IF program condition remains true forever. I need the IF conditions to go false at the end so the program can be re-triggered in the future.I'm sure I'm not the only one to come across this scenario, any ideas?
9 hours ago9 hr Use a variable and two programs. Like this:If event trigger is TrueThen Variable = 1If Variable = 1Then first thingWait xThen second thingWait x....Then Variable = 0
Create an account or sign in to comment