Jump to Label and Label Program Control

Operands Data Types
n: Constant (0 to 255) WORD

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
The Jump to Label (JMP) instruction performs a branch to the specified label (n) within the program. When a jump is taken, the top of stack value is always a logical 1.

The Label (LBL) instruction marks the location of the jump destination (n).

Both the Jump and corresponding Label must be in 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.