Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 736

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

• The step instructions, STEP(008) and
SNXT(009) cannot be used in global
subroutines.
• Place the global subroutine region (GSBN(751) to GRET(752)) in interrupt task 0 just before the
END(001) instruction. When two or more global subroutines are being used, group them together in
interrupt task 0 after the end of the main program. If part of the main program is placed after the
global subroutine region, that program section will be ignored.
Interrupt task 0
Sample program
When CIO 0.00 is ON in the following
example, global subroutine 10 is executed
and program execution returns to the next
instruction after the GSBS(750) instruction
that called the subroutine.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
GSBN
n
Global
subroutine
region
GRET
This part of the
program will not
be executed.
END
GSBN
SNXT
STEP
GRET
Note : 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 0 to 1023 on a Programming
Console.
Cyclic or interrupt task
0.00
GSBS
#10
Interrupt task 0
GSBN
#10
GRET
END
3. Instructions
Not allowed
Global subroutine
region
699
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents