![Omron CJ1G-CPUxx Instructions Manual Download Page 742](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491742.webp)
721
Subroutines
Section 3-19
Subroutines can be nested up to 16 levels. Nesting is when another subrou-
tine is called from within a subroutine program, such as shown in the following
example, which is nested to 3 levels.
Main program
Subroutine
program
(SBN(092) to
RET(093))
Execution condition ON
Program end
SBN 10
SBN 11
RET
SBN 11
SBS 12
RET
RET
SBN 12
Main program
Subroutine
program n
Execution condition ON
Subroutine
program m
Execution condition ON
Program end
Two-level
nesting
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...