Control Builder F Programmatically Stop Task
Hi Everyone,
I try to stop one of task using ST. In project tree I have 2 task:
PS1USRTaskC and PS1USTask2. How to stop one of them using ST when comperation is TRUE?
Voted best answer
Hello Marczak!
I'm not aware of a possibility to stop a task programmatically, but maybe there is another way to do what you want.
Instead of creating 2 tasks you could run a SFC with 2 parallell branches symbolizing the 2 tasks you currently have.
The actions Part_1-1...Part_1-N contain the programs of Task 1 and the actions Part_2-1...Part_2-N contain the programs of Task 2. One action can contain 0 to multiple programs. A transistion must have a program, but it only needs the assignment of .Result to TRUE in order to fire.
The alternate branches after Dummy1 and Dummy2 decide in the first transition whether the "task" is running or not.
Hope that helps.
Answers
Hello,
Freelance task cannot be controller programmatically, can be controlled manually.
Some of the plc can do that and in machine automation it serves purpose to control task programmatically. Where as in process automation we have reach solution for bactch and pharmaceutical industries where not only start/start stop but target process can be resumed/held/aborted/restarted. Incase you are looking solution for batch process check PLI,FPX blocks if that can serve the purpose. Or as replied sequence can be programmed in SFC as you want.
Hope that helps.
Add new comment