2 Instruction Descriptions
2-74
NJ-series Instructions Reference Manual (W502)
JMP
The JMP instruction moves processing to the specified jump destination.
None
When the execution condition is TRUE, the JMP instruction moves processing to the jump destination
specified by a Label in a ladder diagram. The label can be any text string.
The following figure shows a programming example. This example uses the text string STEP1 as the
label. When the JMP instruction is executed, processing moves to the location marked STEP1. In this
example, the Out instruction between the JMP instruction and the Label is not executed, and the value
of variable B is retained.
• You can also jump to a Label instruction above the JMP instruction in the section.
• You can use the same Label instruction as the jump destination for more than one JMP instruction.
• You cannot omit labels. If you omit a label, a building error will occur.
• Place the JMP and Label instructions in the same POU and in the same section.
• Do not set the same Label instruction more than once in the same section.
• You cannot jump into a FOR-NEXT loop from outside the loop.
Instruction Name FB/FUN Graphic expression ST expression
JMP Jump FUN None
Variables
Function
Additional Information
Precautions for Correct Use
Label
LD
A
B
STEP1
Not executed and value of variable B retained.
STEP1
D
C