Your logic is turning Cleaning.Complete off immediately when it's on. You'll never see it in the on state. The computer screen updates much more slowly than the actual PLC logic.
I'd add a Reset to the Cleaning.Complete rung to also reset the State.Abort bit to prove that it's working.
While you're browsing around on the forum, search up my posts on the State Machine programming style in the Visilogic forum. It applies equally to UniStream. It will do what you're trying to do in a much cleaner fashion.
Joe T.
I am trying to implement an abort button for my ladder program and am unable to get it to work. I have a program that runs a sequence of steps, and the last step sets a "Complete" bit, which resets a bunch of stuff and reverts the HMI to the home screen.
I would like to implement an "Abort" mechanism, which would directly set the "Complete" bit, skipping to the end of the sequence, however if I do this the "Complete" bit never actually gets set, despite being wired directly from the abort contact.
Would anyone be able to suggest why this is happening? Thanks in advance for your help!
Here is the first rung in the program showing the abort bit activated failing to set the complete bit:
And here is the rung that is normally activated at the end of the sequence which I would like to activate via the abort bit
Thanks for your reply!
Correct, it is a UniStream program. Thanks for explaining - I understand better now. Using a bit for each run and then OR'ing them works well.
Peter
It looks like this is a UniStream program. True?
You can only use a regular coil once in a program. In ladder logic all rungs are scanned and solved and the last one wins. In your program example above use different bits for each rung, and then OR them all together below your logic for the actual controlled bit.
Joe T.