13ć3 – Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 151

Advertising
background image

Jump Instructions and Subroutines

Chapter 13

13-3

Editing the Instruction
You can edit a Jump, Jump to Subroutine or Return instruction to change
an instruction type or its address by performing the following steps.

1.

Position the cursor over the Jump, Jump to Subroutine or Return
instruction you are going to edit.

2.

Press -(JMP)-, -(JSR)-, or [SHIFT]-(RET)- or any other appropriate
instruction type key.

Important: Do not perform step 3 for a Return instruction.

3.

Enter <octal identification number>.

Purpose: The Label instruction is the target for both the Jump and Jump to
Subroutine instructions. Label instructions are assigned octal identification
numbers from 00-07. The label identification number must be the same as
that of the Jump and/or Jump to Subroutine instruction with which it is
used. A Label instruction can be defined only once, meaning that a label
with a given identification number can only appear in one location.
However, a Label instruction can be the target of jumps from more than
one location.

The Label instruction is always logically true. Programmed as the first
condition instruction in the rung. If conditions precede a Label instruction,
they will be ignored by the processor during a jump operation. Do not
program with a program control instruction.

010

00

RET

01

LBL

Important: There are 8 labels available. Each label can only be defined
once (using an octal identifier), but can be the target of multiple Jump or
Jump to Subroutine instructions. Octal identifiers are labeled from 00-07.

Label Instruction

Advertising