Jump to content

How to change the instruction RET (return from subroutine), can't edit


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.