This allows the program to return from a subroutine quicker, if certain conditions are met skipping the remainder of the subroutine.
Subroutine. Computer programming functions wikiversity
In this example the subroutine contains a counter. Each time the JSR inputs are activated in the main program by either the I:1/0 or I:1/5 the counter ...
10 : Subroutine Flow chart for thermodynamics simulation
A nested subroutine-call analogy.
Subroutine call and return in LADDER program workflow
When returning from subroutine 2, the address 601 is taken from the stack. When returning from the subroutine 1, the address 101 is taken from the stack.
Figure 8: Schematic Diagram of a Subroutine
Subroutine or subroutine in sensamblador