EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 706

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
673
Subroutines Section 3-18
Example 2: Sequential (Non-nested) Subroutines
When CIO 0.00 is ON in the following example, subroutine 1 is executed and
program execution returns to the next instruction after SBS(091) 1. When
CIO 0.01 is ON, subroutine 2 is executed and program execution returns to
the next instruction after SBS(091) 2.
1
3
5
2
4
AS1BS2C
AS1BC
AB S2C
AB C
CIO 0.00 ON
CIO 0.01 ON
0.00
0.00
0.01
0.01
Subroutines
Pro
g
ram end
Main program
Order of execution

Table of Contents

Related product manuals