Subroutines
Main program
Subroutine 1
816
Subroutine program:
S
Example 2: Sequential (Non-nested) Subroutines
When CIO 000000 is ON in the following example, subroutine 1 is executed
and program execution returns to the next instruction after SBS(091) 1. When
CIO 000001 is ON, subroutine 2 is executed and program execution returns
to the next instruction after SBS(091) 2.
1
CIO 000000 ON
3
2
Section 3-19
Order of execution
A S B
A B
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers