Sign in to follow this  
Followers 0
Damica

Understanding Subroutines

5 posts in this topic

I just want to make sure I understand how Subroutines function. If I have a main program and it calls a subroutine, the main program will no longer scan the ladder until it returns back from the subroutine. OR does the main program go ahead and continue to scan the ladder even though the subroutine is scanning it's ladder. Please advise

Share this post


Link to post
Share on other sites
This was answered in your thread titled 'Subroutines'. Again, the processing goes to the subroutine, completes there, then returns to the next instruction in the calling routine ('main program').

Share this post


Link to post
Share on other sites
NO Edit: b_carlton types faster then I do. Edited by Mickey
1 person likes this

Share this post


Link to post
Share on other sites
I appreciate both reply's and I am learning, so forgive me if I ask the same question twice. Sometimes I may need to ask it several times.

Share this post


Link to post
Share on other sites
That's ok. Just try to keep questions on a subject in the same thread.

Share this post


Link to post
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
Sign in to follow this  
Followers 0