831
Subroutines Section 3-19
When CIO 000000 is ON, global subroutine program 1 is executed.
When CIO 000001 is ON, global subroutine program 2 is executed.
B
GSBS
1
A
GSBS
2
END
000000
GSBN
1
GSBN
2
GRET
GRET
000001
CIO 000000 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 000001
OFF
CIO 000001 ON