6 BASIC INSTRUCTIONS
6.5 Program Branch Instructions
321
6
6.5 Program Branch Instructions
Pointer branch
CJ, SCJ, JMP
■CJ
• Executes the program specified by the pointer number within the same program file, when the execution command is ON.
• When the execution command is OFF, the program at the next step is executed.
■SCJ
• Executes the program specified by the pointer number within the same program file starting with the scan immediately after
OFFON of the execution command.
• When the execution command is OFF or turned ONOFF, the program at the next step is executed.
■JMP
• Unconditionally executes program of designated pointer number within the same program file.
P**: Pointer number of jump destination (Device name)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
P
Bit Word Bit Word
P
Basic
Process
High
performance
Redundant
Universal
LCPU
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