Pointer Branch Instructions: Cj - Mitsubishi Electric MELSEC Q Series Programming Manual

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

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.15 Pointer branch instructions: CJ

Setting
data
X
Y
M
(S)
[Setting data]
[Function]
[Point]
Bit device
SM
F
T
C
D
[Instruction]
Command
CJ
Setting data
P**
(1) Executes the program specified by the pointer number within the same program
file or the other program file, when the execution command is ON.
(2) When the execution command is OFF, the program at the next step is executed.
(1) Note the following points when using the jump instruction.
• 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 instructions.
• Scan time is shortened if the CJ instruction is used to force a jump to the rear.
• The CJ 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 scan time error in the process.
X9
P8
30
M3
1001
X10
1004
Usable device
Word device
W
T
C
SD
Z
Pointer number of jump destination (P0 to P249)
5 - 48
Constant
Pointer
Level
K
H
P
N
CJ
P**
Description
Y80
When M3 turns ON, the program will
CJ P8
jump to the P8 label.
Y91
Executed when M3 is OFF.
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents