Subroutines
Cyclic or interrupt task
A
000000
GSBS
B
000001
GSBS
Subroutine program
S
END
Interrupt task 0
GSBN
Global subroutine
program S1
GRET
GSBN
Global subroutine
program S2
GRET
832
When CIO 000000 is ON, global subroutine program 1 is executed.
When CIO 000001 is ON, global subroutine program 2 is executed.
CIO 000000 ON
1
CIO 000001
CIO 000001 ON
OFF
2
1
2
Section 3-19
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.