Subroutines
690
• Always place the global subroutines in interrupt task 0. An error will occur
if a global subroutine is called and the subroutine is not in interrupt task 0.
Not allowed
Cyclic task 1
GSBS
n
END
Cyclic task 2
GSBN
n
GRET
END
• The step instructions, STEP(008) and SNXT(009) cannot be used in glo-
bal subroutines.
GSBN
SNXT
STEP
GRET
OK
Cyclic task 1
GSBS
n
END
Interrupt task 0
GSBN
n
GRET
END
Not allowed
Section 3-18
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers