Omron CJ - INSTRUCTIONS Reference Manual page 729

Table of Contents

Advertisement

Nested Subroutines
0.00
0.01
When CIO 0.00 is ON in the following example, subroutine 1 is executed. If CIO 0.01 is ON, subroutine
2 is executed from within subroutine 1 and program execution returns to the next instruction after
SBS(091) 2 when subroutine 2 is completed. Execution of subroutine 1 continues and program
execution returns to the next instruction after SBS(091) 1 when subroutine 1 is completed.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
1
CIO 0.00 ON
1
5
1
2
Subroutine 1
CIO 0.01 ON
2
4
2
3
Subroutine 2
3. Instructions
0.00
0.01
0.01
Order of execution
0.00
Order of execution
A→S1-1→S2→S1-2→B
A→S1-1→S1-2→B
A→B
A→B
3
691

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF