Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual
Page 210

Jump Instructions and
Subroutine Programming
Chapter 11
11Ć9
Figure 11.8
JUMPĆTOĆSUBROUTINE LABEL Operation
(ą)
016
( JSR )
06
|ą|
15
( TON )
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)