Chapter 8 Logic Instructions
8-19
Sequence Control Instructions
FB/FC
FC
JMP is used for jumping to any position specified by a label in the LD
program.
DVP15MC11T-06
Function Explanation
JMP is used for jumping to any position specified by a label in the LD program.
Precautions for Correct Use
Label is any string.
A key word can not be specified as a label.
JMP can be used for an upward jump.
More than one JMP instruction can jump to the same label.
The label positions to which JMP instructions jump must be in the same POU in the LD program.
Otherwise, the jump will not take effect.
Programming Example
Variable table
Variable name Data type Current value
Program
JMP
STEP1
Out1
Out2
Start
Start1
Start2
S
S
STEP1
1
2
3
STEP1 is taken as the jump label of JMP instruction in the program above. When Start changes to
TRUE, JMP instruction will jump to the position of STEP1 label and the program of network 3 will be
executed.
When Start2 changes to TRUE, Out2 will also change to TRUE; the program of network 2 will not be
executed. When Start changes to FALSE, the programs from network 1 to network 3 will all be executed.