Mitsubishi MELSEC-Q/L Programming Manual page 277

Table of Contents

Advertisement

JMP
(1) Unconditionally executes program of designated pointer number within the same program file.
Note the following points when using the jump instruction.
1. After the timer coil has gone ON, accurate measurements cannot be made if there is an attempt to jump the timer of a coil
that has been turned ON using the CJ, SCJ or JMP instructions.
2. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the OUT instruction.
3. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the rear.
4. The CJ, SCJ, and JMP instructions can be used to jump to a step prior to the step currently being executed. However, it is
necessary to consider methods to get out of the loop so that the watchdog timer does not time out in the process.
5. The device to which a jump has been made with the CJ, SCJ or JMP does not change.
6. The label (P*) occupies step 1.
7. The jump instructions can be used only for pointer numbers within the same program file.
8. If a jump is made to a pointer number inside the skip range during a skip operation, program execution will be taken up
following the pointer number of the jump destination.
X0
P8
When X3 is
X7
ON, the loop
is closed.
X3
P9
X6
XB
10
XC
14
XB
16
P19
X9
18
X8
10
M33
14
Occupies 1 step
M3
16
P9
M36
18
X9
21
Y40
CJ
P9
Exits the loop when
CJ
P8
X7 is turned ON.
Y42
Jumps to label P19
CJ
P19
when XB turns ON.
Y43 and Y49 remain
unchanged regardless
Y43
of whether XB and XC are
turned ON/OFF during the
Y49
execution of CJ instruction.
Y4C
CJ
P9
Y30
Y36
Y39
Y3B
CJ, SCJ, JMP
275
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents