MarkNightingale
Lifetime Supporting Member + Moderator
Hi,
I think I have got this correct but I just want to make sure.
I have acquired a program which has quite a lot of JSR's and RETurn's in the program files.
This is what I believe happens.
If a JSR is used and there is no RETurn in the program file that was called, then the program will execute the next program file in the current task.
If a JSR is used and a RETurn is used the program will RETurn back to the program file where the JSR instruction was used and continue from the rung after the JSR.
I hope this makes sense.
Mark
I think I have got this correct but I just want to make sure.
I have acquired a program which has quite a lot of JSR's and RETurn's in the program files.
This is what I believe happens.
If a JSR is used and there is no RETurn in the program file that was called, then the program will execute the next program file in the current task.
If a JSR is used and a RETurn is used the program will RETurn back to the program file where the JSR instruction was used and continue from the rung after the JSR.
I hope this makes sense.
Mark