S7-200 Programmable Controller System Manual
Jump Instructions
The Jump to Label instruction (JMP) performs a branch to the
specified label N within the program.
The Label instruction (LBL) marks the location of the jump
destination N.
You can use the Jump instruction in the main program, in
subroutines, or in interrupt routines. The Jump and its corresponding
Label instruction must always be located within the same segment
of code (either the main program, a subroutine, or an interrupt
routine).
You cannot jump from the main program to a label in either a
subroutine or an interrupt routine. Likewise, you cannot jump from a
subroutine or interrupt routine to a label outside that subroutine or
interrupt routine.
You can use a Jump instruction within an SCR segment, but the
6
corresponding Label instruction must be located within the same
SCR segment.
Table 6-56
Inputs/Outputs Data Types
N
Example: Jump to Label Instruction
172
Valid Operands for the Jump Instructions
Operands
WORD
Constant (0 to 255)
Network 1
LDN
JMP
Network 2
LBL
//If the retentive data has not been lost, Jump to LBL4
SM0.2
4
4