538
7 APPLICATION INSTRUCTIONS
7.2 Program Branch Instructions
■
SCJ
• This instruction executes the program specified by the pointer number within the same program file starting with the scan
immediately after the execution command turns on.
• When the execution command is off or turned off, the program in the next step is executed.
■
JMP
• This instruction unconditionally executes the program specified by the pointer number within the same program file.
Precautions
• If the timer with its coil on is skipped by these instructions, time cannot be measured correctly.
• If the OUT instruction is skipped by these instructions, the scan time will be shortened.
• If these instructions specify and jump to the program with a bigger step number, the scan time will be shortened.
• These instructions can specify and jump to the program with a smaller step number. In this case, consider a method to exit
a loop so that the watchdog timer does not time out.
• The value in the device skipped with these instructions remains unchanged.
• A label (P
) occupies one step.
• Only the pointer numbers within the same program file can be specified.
• If the program jumps to the pointer number within the skip range, the programs of the jump destination pointer number and
later are executed.
(1) Execution command
(2) One scan
(3) Executed in each scan
(1) While X3 is on, the loop is repeated.
(2) To exit the loop, turn on X7.
When XB turns on, the program jumps to the label, P19.
Y43 and Y49 remain unchanged even if XB and XC turn on/off during the
execution of the CJ instruction.
(1) A label occupies one step.
ON
OFF
(1)
(3)
SCJ
(2)
(1)
P8
X0
X7
X3
X6
P9
CJ
P9
P8
CJ
Y42
(2)
Y40
Y4C
X9
X0B
P19
P19
CJ
Y49
X0B
Y43
X0C
(1)
Y39
Y3B
M36
X9
X8
P9
P9
CJ
Y36
M3
Y30
M33
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......