3. Instructions
704
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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.
B
GSBS
1
A
GSBS
2
END
0.00
GSBN
1
GSBN
2
GRET
GRET
0.01
CIO 0.00 ON
Cyclic or interrupt task
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.
Interrupt task 0
Global subroutine
program S1
Global subroutine
program S2
Subroutine program
S
CIO 0.01
OFF
CIO 0.01 ON
When CIO 0.00 is ON, global subroutine
program 1 is executed.
When CIO 0.01 is ON, global subroutine
program 2 is executed.