studentplc1
Member
Hey guys,
I have a PLC program in RSlogix500 for one of the machines in my plant area. I was looking through the program for it and saw that many of the subroutines (ex. LAD 3, LAD 4 etc.) do not have the "SBR" (Subroutine indicator in the beginning) and "RET" (Return indicator at the end). I was wondering are these not necessary? Of course the machine runs fine so it seems like it isn't really needed.
(I am just a student and from what I learned, the SBR and RET commands should be used with the JSR command in the "main" routine).
Any comments? Thanks...
I have a PLC program in RSlogix500 for one of the machines in my plant area. I was looking through the program for it and saw that many of the subroutines (ex. LAD 3, LAD 4 etc.) do not have the "SBR" (Subroutine indicator in the beginning) and "RET" (Return indicator at the end). I was wondering are these not necessary? Of course the machine runs fine so it seems like it isn't really needed.
(I am just a student and from what I learned, the SBR and RET commands should be used with the JSR command in the "main" routine).
Any comments? Thanks...