Mitsubishi MELSEC QCPU Programming Manual page 248

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
(2) Executes next step in program when jump command is OFF or when it goes from ON to OFF.
Jump command OFF
SCJ
JMP
(1) Unconditionally executes program of designated pointer number within the same program file.
POINTS
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 CJ, SCJ or JMP does not change.
P19
(6) The label (P ) occupies step 1.
(7) 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.
6 - 97
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1 scan
X0
P8
Closed
X7
loop when
X3 is ON
X3
P9
X6
XB
10
CJ
XC
14
XB
16
X9
18
10
14
Occupies step 1
16
P9
18
21
ON
Executed each
scan
Y40
CJ
P9
CJ
P8
Y42
Jumps to label P19 when XB goes ON.
P19
Y43
Y43 and Y49 do not change regardless
of whether XC is ON or OFF during
execution of CJ instruction.
Y49
Y4C
X8
CJ
M33
M3
M36
X9
MELSEC-Q/QnA
Escape from loop
when X7 is ON
P9
Y30
Y36
Y39
Y3B
6 - 97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents