Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 455
Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT) Chapter 11
The operands are the same as those for the relay ladder SBR instruction.
RET Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder RET instruction.
Function Block
The operands are the same as those for the relay ladder RET instruction.
Description: The JSR instruction initiates the execution of the specified routine, which is
referred to as a subroutine.
• The subroutine executes one time.
• After the subroutine executes, logic execution returns to the routine that
contains the JSR instruction.
Operand Type Format Description
Return
parameter
BOOL
SINT
INT
DINT
REAL
structure
Immediate
Tag
Array tag
Data from this routine that you want to copy to the
corresponding return parameter in the JSR
instruction