Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 104

Programmable controllers
Table of Contents

Advertisement

Precautions
Subroutine
Subroutine
Not possible.
IL - ILC
OK
Step ladder
Not possible.
section
FOR - NEXT
OK
loop
JMP0 - JME0
OK
Block pro-
OK
gram section
Subroutines
Instructions Not Available
in Subroutines
64
Instruction Combinations
The following table shows which of the special instructions can be used inside
other program sections.
IL - ILC
Step ladder
section
Not possible.
Not possible.
Not possible.
Not possible.
OK
Not possible.
OK
Not possible.
OK
Not possible.
OK
OK
Note Instructions that specify program areas cannot be used for programs in other
tasks. Refer to 4-2-2 Task Instruction Limitations for details.
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.
The following instructions cannot be placed in a subroutine.
Function
Process Step Control
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.
FOR - NEXT
section
loop
Not possible.
OK
Not possible.
OK
Not possible.
Not possible.
Program
Subroutine
Program
Subroutine
Mnemonic
STEP(008)
SNXT(009)
Section 2-2
JMP0 - JME0
Block program
section
section
Not possible.
Not possible.
OK
Not possible.
OK
Not possible.
OK
Not possible.
Not possible.
Not possible.
OK
Not possible.
Instruction
Define step ladder section
Step through the step lad-
der

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents