834
Subroutines Section 3-19
• The input method for the global subroutine number, N, is different for the
CX-Programmer and a Programming Console. Input #0 to #1023 on the
CX-Programmer and 0000 to 1023 on a Programming Console.
• 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.
• The step instructions, STEP(008) and SNXT(009) cannot be used in glo-
bal subroutines.
GSBS
n
END
GSBN
n
GRET
END
GSBS
n
END
GSBN
n
GRET
END
Cyclic task 1
Not allowed OK
Cyclic task 1
Cyclic task 2 Interrupt task 0
GSBN
SNXT
STEP
GRET
Not allowed