EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 703

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
670
Subroutines Section 3-18
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.
Note A subroutine can be called more than once in a program.
SBN 10
SBN 11
RET
SBN 11
SBS 12
RET
RET
SBN 12
Execution condition ON
Main program
Execution condition ON
Subroutine
program n
Two-level
nesting
Subroutine
program m
Program end

Table of Contents

Related product manuals