Omron CJ2 - 02-2010 User Manual page 199

Cj2 cpu unit software
Table of Contents

Advertisement

Subroutines
Place all the subroutines together just before the END(001) instruction in all programs but after pro-
gramming other than subroutines. (Therefore, a subroutine cannot be placed in a step ladder, block pro-
gram, 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.
Program
Subroutine
Program
Subroutine
Instructions Not Available in Subroutines
The following instructions cannot be placed in a subroutine.
Function
Process Step Control
Note A subroutine can include a block program section. If, however, the block program 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.
CJ2 CPU Unit Software User's Manual
Mnemonic
STEP(008)
SNXT(009)
5 Understanding Programming
Instruction
Define step ladder section
Step through the step ladder
5
5-109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents