How do i make a programme to run till the end even when stop is pushed

J

Thread Starter

James

Hello guys, please I need help. I am writing a program in Step7 and I need to make the program run till the end before stopping even if the stop button is pushed in the middle of the cycle. How do I make insert the stop to the networks.

[email protected]
 
J

James Ingraham

I'm afraid that's not enough information to really help you out. Still, I have some possible suggestions.

1) When starting, latch a bit called "Running."

2) When "Stop Cycle" button is pressed, latch a bit. Let's call it "Stop Request"

3) Presumably, there is something that indicates "End of Cycle." When this "End of Cycle" is reached, examine the "Stop Request" bit. If it is set, unlatch both "Running" and "Stop Request."

4) Either put you cycle steps into an FC, and have "Running" be a precondition to calling that FC, or on every rung of your cycle include the "Running" bit.

Hope that helps. With more details, more help could be offered.

-James Ingraham
Sage Automation, Inc.
 
Top