I am just wondering...as i seem to run into issues once in a while.
my situation is this... I will have some input, say input #30 that i am waiting on a status change to 1 before my routine progresses. To do this my code looks like this
IF #30<>1 THEN WAITUNTIL #30=1
rest of routine...
Perhaps I am following an odd line of logic, but I would expect that this code should look @ the status of input #30, and if it is not 1... the code should hold in this state, until #30 goes high, and then drop down through to the rest of the code. This does not seem to happen for me in real life however. My experience so far has been that I must put in a sleep command after the if/then, and prior to the waituntil.. otherwise, the code essentially ignores the waituntil, and goes off on it's merry way, leaving behind a wake of destruction.
I had originally written my routines using if/then loops, only to find that the control would hang upon entering the loop. So, that is out..
If anybody could shed some light/insight on this, i would really appreciate it.. as this has been bugging me for a while.
As always, Thanks in Advance!
-nate