Publication 1762-RM001C-EN-P
Program Control Instructions 16-3
SBR - Subroutine Label
Instruction Type: input
The SBR instruction is a label which is not used by the processor. It is for
user subroutine identification purposes as the first rung for that
subroutine. This instruction is the first instruction on a rung and is always
evaluated as true.
RET - Return from
Subroutine
Instruction Type: output
The RET instruction marks the end of subroutine execution or the end of
the subroutine file. It causes the controller to resume execution at the
instruction following the JSR instruction, user interrupt, or user fault
routine that caused this subroutine to execute.
SBR
Subroutine
SBR
Table 16.4 Execution Time for the SBR Instruction
Controller When Rung Is:
True False
MicroLogix 1200 1.0
µ
s1.0
µ
s
MicroLogix 1500 1.0
µ
s1.0
µ
s
RET
Return
RET
Table 16.5 Execution Time for the RET Instruction
Controller When Rung Is:
True False
MicroLogix 1200 1.0
µ
s0.0
µ
s
MicroLogix 1500 1.0
µ
s0.0
µ
s