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
car
eful not to jump backwar
ds an excessive number of times. The watchdog
timer could time out and fault the contr
oller
. Use a counter, timer
, or the “pr
ogram
scan” r
egister (system status r
egister
, wor
d 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. Y
ou 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.99LBL
Execution Times
(µsec) when:
(JMP)
]LBL[
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive