EasyManuals Logo
Home>Allen-Bradley>Controller>MicroLogix 1000

Allen-Bradley MicroLogix 1000 User Manual

Allen-Bradley MicroLogix 1000
422 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 #182 background imageLoading...
Page #182 background image
Preface
MicroLogix 1000 Programmable Controllers User Manual
10–4
Jump to Subroutine (JSR), Subroutine (SBR), and
Return (RET)
The JSR, SBR, and RET instructions are used to direct the controller to execute a
separate subroutine file within the ladder program and return to the instruction
following the JSR instruction.
Note If
you use the SBR instruction, the SBR instruction must be the first instruction on
the first rung in the pr
ogram file that contains the subr
outine.
Use a subroutine to store recurring sections of program logic that must be executed
from several points within your application program. A subroutine saves memory
because you program it only once.
Update critical I/O within subroutines using immediate input and/or output
instructions (IIM, IOM), especially if your application calls for nested or relatively
long subroutines. Otherwise, the controller does not update I/O until it reaches the
end of the main program (after executing all subroutines).
Outputs controlled within a subroutine remain in their last state until the
subroutine is executed again.
False
22.24
True
4.25
JSR
1.45 0.99SBR
Execution Times (µsec) when:
31.11 3.16RET
JSR
JUMP TO SUBROUTINE
SBR file number
SBR
SUBROUTINE
RET
RETURN
.
.
.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley MicroLogix 1000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1000
CategoryController
LanguageEnglish

Related product manuals