EasyManua.ls Logo

Allen-Bradley PLC-2/30

Allen-Bradley PLC-2/30
348 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
Loading...
Jump Instructions and
Subroutine Programming
Chapter 11
119
Figure 11.8
JUMPTOSUBROUTINE
LABEL Operation
()
016
(
JSR )
06
||
15
( T
ON )
117 200
||
10
()
117 016
LBL ()
06 036
( RET )
0.1
PR 999
AC 000
13
||
10
117
| / |
11
117
01
||
13
117
06
||
16
114
Whenis true,
program execution jumps
to subroutine label 06.
-||-
13
117
||
12
116
||
14
116
||
14
012
At the end of subroutine program,
execution returns to user program
at next instruction after subroutine
jump.
()
046
12
NOTE: Do not misuse the Jump to Subroutine instruction. Misuse
generally results in a run-time error which causes the processor to fault.
Misuse will cause the following run-time errors:
Jumping over a temporary end instruction
Using the jump to subroutine instruction in the main program to jump
forward in the main program.
Jumping to an undefined label or to a label which is defined twice
Looping or nesting JSR instructions more than 8 times (Section 11.3.2)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals