Omron CJ - INSTRUCTIONS Reference Manual page 736

Table of Contents

Advertisement

3. Instructions
• The step instructions, STEP(008) and SNXT(009) cannot be used in subroutines.
• Place the subroutines after the main program and just before the END(001) instruction in the program
for each task. If part of the main program is placed after the subroutine region, that program section
will be ignored.
0.00
Example Programming
When CIO 0.00 is ON in the following
example, subroutine 10 is executed and
program execution returns to the next
instruction after the SBS(091) or MCRO(099)
instruction that called the subroutine.
698
Note : The input method for the subroutine number, N, is
OR
Subroutine region
This part of the
program won't be
executed.
Not allowed
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.
0.00
OR
#10
#10
CS/CJ/NSJ Series Instructions Reference Manual (W474)
#10
Subroutine 10

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF