Rockwell-automation 1772-LP3 PLC - 2/30 Programmable Controller Progra Instrukcja Użytkownika Strona 205

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 204
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
| / |
Przeglądanie stron 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 345 346

Komentarze do niniejszej Instrukcji

Brak uwag