Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 738

Table of Contents

Advertisement

3. Instructions
Two or more global subroutine programs can be programmed in interrupt task 0. In this case, interrupt
task 0 can be divided and used as the subroutine function's task.
Cyclic or interrupt task
A
0.00
GSBS
B
0.01
GSBS
Subroutine program
S
END
Interrupt task 0
GSBN
Global subroutine
program S1
GRET
GSBN
Global subroutine
program S2
GRET
702
CIO 0.00 ON
1
CIO 0.01
CIO 0.01 ON
OFF
2
1
2
When CIO 0.00 is ON, global subroutine
program 1 is executed.
When CIO 0.01 is ON, global subroutine
program 2 is executed.
It is possible to debug problems
within particular tasks by using
regular subroutines in the local task
only as well as global subroutines
that are shared with other tasks.
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents