Publication 1766-RM001A-EN-P - October 2008
298
Program Control Instructions
LBL - Label
Instruction Type: input
The LBL instruction is used in conjunction with a jump (JMP) instruction
to change the order of ladder execution. Jumps cause program execution
to go to the rung marked LBL
label number
.
The immediate data range for the label is from 0…999. The label is local
to a program file.
JSR - Jump to
Subroutine
Instruction Type: output
The JSR instruction causes the controller to start executing a separate
subroutine file within a ladder program. JSR moves program execution to
the designated subroutine (SBR
file number
). After executing the SBR,
control proceeds to the instruction following the JSR instruction.
The immediate data range for the JSR file is from 3…255.
SBR - Subroutine Label
Instruction Type: input
The SBR instruction is a label which is not used by the processor. It is for
user subroutine identification purposes as the first rung for that
subroutine. This instruction is the first instruction on a rung and is always
evaluated as true.
LBL
Q2:0
Execution Time for the LBL Instruction
Controller
When Rung Is:
True
False
MicroLogix 1400
0.2633 µs
JSR
Jump To Subroutine
SBR File Number
U:255
JSR
Execution Time for the JSR Instruction
Controller
When Rung Is:
True
False
MicroLogix 1400
0.4615 µs
0.2325 µs
SBR
Subroutine
SBR
Execution Time for the SBR Instruction
Controller
When Rung Is:
True
False
MicroLogix 1400
0.2510 µs
0.2510 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive