Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)
RET Operands:
RET(ReturnPar);
Description:
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
The operands are the same as those for the relay ladder SBR instruction.
Relay Ladder
Operand
Type
Return
BOOL
parameter
SINT
INT
DINT
REAL
structure
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.
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.
Format
Description
Immediate
Data from this routine that you want to copy to the
corresponding return parameter in the JSR
Tag
instruction
Array tag
Parameters
Chapter 11
455