unsaint32
Member
I found a ladder program that uses JSR instructions with no input or return parameters. And none of the subroutines it calls for have SBR and RET instructions.
I always thought a subroutine has to have SBR and RET for the JSR instruction. I guess I was wrong.
So, without the SBR and RET, the subroutine scan begins at the top and ends at the bottom before returning to the program that called the subroutine, for ladder and SFC?
I always thought a subroutine has to have SBR and RET for the JSR instruction. I guess I was wrong.
So, without the SBR and RET, the subroutine scan begins at the top and ends at the bottom before returning to the program that called the subroutine, for ladder and SFC?