EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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...
812
Subroutines Section 3-19
subroutine is completed, program execution continues with the next instruc-
tion after SBS(091).
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.
Subroutine
program
(SBN(092) to
RET(093))
Main program
Execution condition ON
Program end
SBN 10
SBN 11
RET
SBN 11
SBS 12
RET
RET
SBN 12

Table of Contents

Related product manuals