6 - 97 6 - 97
MELSEC-Q/QnA
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
ON
Executed each
scan
1 scan
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.
P8
P9
Y42
X6
X3
P8
CJ
X7
P9
CJ
Y40
X0
Closed
loop when
X3 is ON
Escape from loop
when X7 is ON
(5) The device to which a jump has been made with CJ, SCJ or JMP does not change.
18
Y4C
X9
XB
Jumps to label P19 when XB goes ON.
Y43 and Y49 do not change regardless
of whether XC is ON or OFF during
execution of CJ instruction.
16
14
10
P19
P19CJ
Y49
XB
Y43
XC
(6) The label (P ) occupies step 1.
18 Y39
M36
X8
16
14
10
P9
P9CJ
Y36
M3
Y30
M33
21 Y3B
X9
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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com