I was told that all subroutines should have a RET in them, even if the subroutine runs til the end of the ladder, then the last rung should be a RET.
I have many PLC in the shop, all use subroutines (For organization) and only about half of them use RET at the end of each new ladder (the most recent ones, after I was told about using RET).
Is there any side effect to not using RET at the end of a ladder that was entered with a JSR command?
I have many PLC in the shop, all use subroutines (For organization) and only about half of them use RET at the end of each new ladder (the most recent ones, after I was told about using RET).
Is there any side effect to not using RET at the end of a ladder that was entered with a JSR command?