Jump Instructions and
Subroutine Programming
Chapter 11
119
Figure 11.8
JUMPTOSUBROUTINE 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
Whenis 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