
Where you have stacked subroutines as in the last version 27062013, it is difficult to avoid reusing an output, for example your elevator alarm output. Otherwise it could get left ON, wrecking havoc in your program and causing it not to work correctly. That worked okay IF you put in interlocks to insure that each of those outputs had done its job then was turned OFF again before exiting that subroutine. For example, in your case when you only had 2 subroutines, Going Up and Going Down, the Open Door and Close Door outputs had to be used 2 times each. I remember as well the double-coil syndrome.įrom reading your responses, possibly you do not realize that (unlike double coils in the Main ladder) it is okay to reuse the same coil or output in a subroutine IF you set up your logic to prevent unwanted consequences.
