JP_TFV1 Posted December 15, 2009 Report Posted December 15, 2009 I am trying to clear any programs that are running and run a different program when a certain bit is activated. I am using Real Mode SV22, with a Q172 For instance, If I am in auto cycle and an E-stop is hit, I wish to exit all programs running and run another program for safety. I have tried using the CLR command and it seems to just stay locked in the current program it was already running. Thanks for the help
Crossbow Posted December 16, 2009 Report Posted December 16, 2009 CLR should stop the specified active program, which should return control to the SFC which called it. How is the SFC written which is performing the E-stop move? Is it a separate SFC which automatically starts and clears all other SFC programs, then performs its own motion? Or did you embed it in a main SFC routine which calls all the other routines? Because if it is in the main routine and you're at a specified step beyond where it monitors the E-stop, it's not watching it. Be careful of how SFC processes.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now