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
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.
831
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers