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

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
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
Sample program
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.
690
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

Advertisement

Table of Contents
loading

Table of Contents