![Omron CJ1G-CPU series Programming Manual Download Page 81](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489081.webp)
60
Precautions
Section 2-2
Note Instructions that specify program areas cannot be used for programs in other
tasks. Refer to
4-2-2 Task Instruction Limitations for details.
Subroutines
Place all the subroutines together just before the END(001) instruction in all
programs but after programming other than subroutines. (Therefore, a subrou-
tine cannot be placed in a step ladder, block program, FOR - NEXT, or JMP0 -
JME0 section.) If a program other than a subroutine program is placed after a
subroutine program (SBN to RET), that program will not be executed.
Instructions Not Available
in Subroutines
The following instructions cannot be placed in a subroutine.
Note Block Program Sections
A subroutine can include a block program section. If, however, the block pro-
gram is in WAIT status when execution returns from the subroutine to the
main program, the block program section will remain in WAIT status the next
time it is called.
Program
Subroutine
Program
Subroutine
Function
Mnemonic
Instruction
Process Step Control
STEP(008)
Define step ladder section
SNXT(009)
Step through the step lad-
der
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...