EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 540

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
X6P9
CJ P9
P8CJ
Y42
(2)
Y40
Y4C
X9
X0B
P19
P19CJ
Y49
X0B
Y43
X0C
(1)
Y39
Y3B
M36
X9
X8
P9
P9CJ
Y36
M3
Y30
M33

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals