EasyManuals Logo
Home>Omron>Controller>SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 User Manual

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
Page #856 background imageLoading...
Page #856 background image
816
Subroutines Section 3-19
Example 3: Nested Subroutines
When CIO 000000 is ON in the following example, subroutine 1 is executed.
If CIO 000001 is ON, subroutine 2 is executed from within subroutine 1 and
program execution returns to the next instruction after SBS(091) 2 when sub-
routine 2 is completed. Execution of subroutine 1 continues and program exe-
cution returns to the next instruction after SBS(091) 1 when subroutine 1 is
completed.
1
3
5
2
4
A→S1→B→S2→C
A→S1→B→C
A→B→S2→C
A→B→C
CIO 000000 ON
CIO 000001 ON
Subroutines
Pro
g
ram end
Main program
Order of execution

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CJ - REFERENCE MANUAL 08-2008
CategoryController
LanguageEnglish

Related product manuals