Jump to content

Recommended Posts

Posted

When I call a sub routine in ladder it appears it only scans it once. is this correct?  Is there a way to call a sub routine and have it scan till it sees its return?

 

 

 

Thanks Paul

Posted

I see my issue I had it tied to a button so it called the routine only while the button was held down.  Changed it to a bit that gets turned on and off when the routine is done.  Still figuring this stuff out but I'm getting there.

  • MVP 2023
Posted

I strongly recommend that you do not do conditional subroutine calls. Write your logic so that the subroutine will always be called continuously. Coils in an uncalled subroutine are in limbo and can give you unexpected results. Under normal circumstances, a well-written program avoids conditional subroutine calls.

  • Like 1

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.