6. BASIC INSTRUCTIONS
6 − 58
MELSEC-A
6.5 Program Branch Instructions
6.5.1 Conditional jump, unconditional jump
(CJ, SCJ, JMP)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012
(M9010,
M9011)
P
O O O
Functions CJ
(1) Executes the program of specified pointer number when the jump command is
on.
(2) Executes the program of the next step when the jump command is off.
SCJ
(1) Executes the program of specified pointer number, starting at the next scan,
when the jump command changes from off to on.
(2) Executes the program of the next step when the jump command is off or
changes from off to on.
Jump commands
Applicable
CPU
All CPUs
CJ P**
SCJ
JMP
P**
P**
Jump
destination
pointer
number
(Label)
P**
* P255 indicates END and cannot
be used as a label.
Jump command
CJ
Executed per scan
Jump command
SCJ
1 scan
Executed
er scan
P**
Pointer number of jump
destination (P0 to P255)
Setting data
ON
OFF
ON
OFF