Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 540

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■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.
ON
OFF
(1)
SCJ
(2)
(1) Execution command
(2) One scan
(3) Executed in each scan
■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.
P8
X0
(1)
X7
X3
P9
X6
• The value in the device skipped with these instructions remains unchanged.
X0B
X0C
X0B
P19
X9
• A label (P) occupies one step.
X8
M33
M3
(1)
P9
M36
X9
• 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.
7 APPLICATION INSTRUCTIONS
538
7.2 Program Branch Instructions
(3)
Y40
CJ
P9
CJ
P8
Y42
(2)
CJ
P19
Y43
Y49
Y4C
CJ
P9
Y30
Y36
Y39
Y3B
(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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents