EasyManua.ls Logo

Siemens SIMATIC S7 - JMP (Jump to Label)

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.13 Program control
S7-200 SMART
344 System Manual, V2.3, 07/2017, A5E03822230-AF
7.13.2
JMP (jump to label)
You can use the JMP (Jump) instruction in the main program, in subroutines, or in interrupt
routines. The JMP and its corresponding LBL (Label) instruction must be located within the
same program segment either in the main program, a subroutine, or an interrupt routine.
Note
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 program segment, but the corresponding
Label instruction must be located within the same SCR program segment.
LAD / FBD
STL
Description
JMP N
The JMP (Jump) instruction performs a branch to the label N within the program.
LBL N
The LBL (Label) instruction marks the location of the jump destination n.
Input / output
Data type
Operand
n
WORD
Constant (0 to 255)
Example: Jump to Label
LAD
STL
If the retentive data has not been
lost, jump to label 4.
Network 1
LDN SM0.2
JMP 4
Label 4
Network 2
LBL 4

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals