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

Jump Instructions and
Subroutine Programming
Chapter 11
11Ć4
Table 11.A
Jump/Subroutine Programming
Key Symbol
Instruction Name
1770ĆT3 Display
Description
ăĂSBR
T.END
SUBROUTINE AREA
SUBROUTINE AREA
Establishes the boundary between Main Program and
Subroutine Area. Subroutine Area is not scanned unless
directed to do so by a JSR instruction.
ăĂLBL
-(JMP)-
LABEL
ăăXX
-LBL-
This condition instruction is the target destination for JMP
and JSR instructions.
XX - twoĆdigit octal identification number, 00Ć07.
ăĂLBL
-(JMP)-
JUMP
ăĂăXX
-(JMP)-
When rung is TRUE, processor jumps forward to the
referenced LABEL in Main Program.
XX - twoĆdigit octal identification number. Same as LBL
with which it is used.
-(RET)-
-(JSR)-
JUMP TO SUBROUTINE
ăĂăXX
-(JSR)-
When rung is TRUE, Processor jumps to referenced
LABEL in Subroutine Area.
XX - twoĆdigit octal identification number. Same as LBL
with which it is used.
-(RET)-
-(JSR)-
RETURN
-(RET)-
No identification number. Can be used unconditionally.
Returns Processor to instruction immediately following the
JSR that initiated the jump to subroutine.
Figure 11.3
Multiple JUMPS to LABEL in User Program
Main Program
( JMP )
01
|ą|
(ą)
LBL
01
|ą|
| / |
|ą|
( JMP )
01
|ą|
|ą|
|ą|
( JMP )
01
| / |