Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 856

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Subroutines
Main program
Subroutines
816
Program end
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
CIO 000000 ON
3
CIO 000001 ON
5
2
4
Section 3-19
Order of execution
A S1 B S2 C
A S1 B C
A B S2 C
A B C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents