EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #453 background imageLoading...
Page #453 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 453
Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT) Chapter 11
Jump to Subroutine (JSR)
Subroutine (SBR) Return
(RET)
The JSR instruction jumps execution to a different routine. The SBR and RET
instructions are optional instructions that exchange data with the JSR
instruction.
JSR Operands:
Relay Ladder
JSR Operands Continued:
Structured Text
Operand Type Format Description
Routine name ROUTINE Name Routine to execute (that is, subroutine)
Input
parameter
BOOL
SINT
INT
DINT
REAL
Structure
Immediate
Tag
Array tag
Data from this routine that you want to copy to a
tag in the subroutine
· Input parameters are optional.
· Enter multiple input parameters, if needed.
Return
parameter
BOOL
SINT
INT
DINT
REAL
Structure
Tag
Array tag
Tag in this routine to which you want to copy a
result of the subroutine
· Return parameters are optional.
· Enter multiple return parameters, if needed.
Operand Type Format Description
Routine name ROUTINE Name Routine to execute (that is, subroutine)
Input count SINT
INT
DINT
REAL
Immediate Number of input parameters
Input
parameter
BOOL
SINT
INT
DINT
REAL
Structure
Immediate
Tag
Array tag
Data from this routine that you want to copy to a
tag in the subroutine
· Input parameters are optional.
· Enter multiple input parameters, if needed.
Return
parameter
BOOL
SINT
INT
DINT
REAL
Structure
Tag
Array tag
Tag in this routine to which you want to copy a
result of the subroutine
· Return parameters are optional.
· Enter multiple return parameters, if needed.
JSR(RoutineName,InputCount,
InputPar,ReturnPar);

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals