About the program flow control instructions, Jump (jmp) and label (lbl) – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual
Page 180
Preface
MicroLogix 1000 Programmable Controllers User Manual
10–2
About the Program Flow Control Instructions
Use these instructions to control the sequence in which your program is executed.
Jump (JMP) and Label (LBL)
Use these instructions in pairs to skip portions of the ladder program.
If the Rung Containing the
Jump Instruction is:
Then the Program:
True
Skips from the rung containing the JMP instruction to the rung
containing the designated LBL instruction and continues
executing. You can jump forward or backward.
False
Does not execute the JMP instruction.
Jumping forward to a label saves program scan time by omitting a program segment
until needed. Jumping backward lets the controller execute program segments
repeatedly.
Note
Be careful not to jump backwards an excessive number of times. The watchdog
timer could time out and fault the controller. Use a counter, timer, or the “program
scan” register (system status register, word S:3, bits 0–7) to limit the amount of time
you spend looping inside of JMP/LBL instructions.
Entering Parameters
Enter a decimal label number from 0 to 999. You can place up to 1,000 labels in
each subroutine file.
Using JMP
The JMP instruction causes the controller to skip rungs. You can jump to the same
label from one or more JMP instruction.
False
9.04
True
6.78
JMP
1.45
0.99
LBL
Execution Times
(
µ
sec) when
:
(JMP)
]LBL[