Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 720

Table of Contents

Advertisement

3. Instructions
Sample program
Sequential (Non-nested) Subroutines
Main program
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.
682
0.00
0.01
1
CIO 0.00 ON
3
CIO 0.01 ON
5
0.00
2
4
Program end
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0.01
Order of execution
A S1
B
S2 C
A S1
B
C
A B
S2 C
A B
C

Advertisement

Table of Contents
loading

Table of Contents