7/20/2016 8:44 AM | |
Posts: 14 Rating: (0) |
Hi!
The condition for the FC1 call is simply a switch being operated. The FC2 program utilizes SR blocks to run a sequence. The problem is to shut down this sequence when the FC2 call condition dissapear. At current state the program simply freezes when the condition disappear, and it returns from freezing when the condition is set again. For obvious safety reasons, this is not desireable. I want my program to make a shut down procedure whenever the call condition disappears. Earlier I've tried to reset all memory cells within FC2 when the condition disappears, but it seems not possible to do so. I do have a stop procedure within the FC2 block which causes a controlled shutdown. However, trying to use the same SR block when the call condition disappears does not give the desired behaviour as the call needs to be re-activated to complete the shutdown(which I suspect is due to OB1 not being able to set the "Stop flag" SR block). This features is implemented in OB1 after the FC call. Attached figure depicts OB1 and FC2 using FBD. Any tips is very welcome! Attachmentob1_1 (3 files merged).pdf (61 Downloads) |
Follow us on