Mitsubishi MELSEC-Q Series Programming Manual page 300

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

CJ, SCJ, JMP
SCJ
(1) Executes the program of the specified network label within the same POU from the next
scan after the execution command turns from OFF to ON.
(2) Executes the program in the next step when the execution command is OFF or turns from
ON to OFF.
JMP
(1) Unconditionally executes the program of the specified network label within the same POU.
6.5 Program Branch Instructions
6-138
6.5.1 Pointer branch instructions
Execution command OFF
SCJ
Note the following points when using the jump instruction.
1. After the timer coil has turned 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 instruction.
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.
When X3 is
ON, the loop
is closed.
5. The device to which a jump has been made with the CJ, SCJ or JMP instruction
does not change.
6. The jump instruction can be used only for network labels within the same POU.
ON
1 scan
Executed at each scan
Jumps to label P19
when XB turns ON.
Y43 and Y49 remain
unchanged regardless
of whether XB and XC are
turned ON/OFF during the
execution of CJ instruction.
Exits the loop when
X7 is turned ON.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents