6-129
CJ,SCJ,JMP
1
2
3
4
4
6
7
8
6.5 Program Branch Instructions
6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
6.5 Program Branch Instructions
6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
CJ,SCJ,JMP
Function
CJ
(1) Executes the program specified by the pointer number within the same program file, when
the execution command is ON.
(2) When the execution command is OFF, the program at the next step is executed.
SCJ
(1) Executes the program specified by the pointer number within the same program file starting
with the scan immediately after OFF ON of the execution command.
(2) When the execution command is OFF or turned ON OFF, the program at the next step is
executed.
P** : Pointer number of jump destination (Device name)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants
Other
P
Bit Word Bit Word
P––
Basic
Process
High
performance
Redundant
Universal
Command
Command
CJ
SCJ
JMP
Command
P**
P**
Label
P**
P**
CJ
SCJ
JMP
Execution command OFF
CJ
ON
Executed at each scan
Execution command OFF
SCJ
ON
Executed at each scan
1 scan