CFBFP Posted October 3, 2014 Report Share Posted October 3, 2014 Hi at the end of each subroutine in the ladder program you find "RET". You can't move it to the right or place it somewhere else. I want to conditionally return from a subroutine, but I can't move this object to insert a condition. Why is it? How then to conditionally return from a subroutine? f. Link to comment Share on other sites More sharing options...
cantcliff Posted October 3, 2014 Report Share Posted October 3, 2014 The one listed in the subroutine may be required by the software, but you should be able to add additional RETs to the subroutine. Have you tried adding an additional rung with your conditions and adding a second RET function to it? Reference Page 34 of the Ladder Programming PDF, or the help system in visilogic shows an example of what I mean. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted October 4, 2014 MVP 2023 Report Share Posted October 4, 2014 I'm curious as to the logic you are using that would require a conditional RET? This invites the possibility of a Watchdog Timer alarm. You might consider a variation with conditional CALL of the Subroutine instead. Link to comment Share on other sites More sharing options...
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