EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 104

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
64
Precautions Section 2-2
Instruction Combinations
The following table shows which of the special instructions can be used inside
other program sections.
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.
Subroutine IL - ILC
section
Step ladder
section
FOR - NEXT
loop
JMP0 - JME0
section
Block program
section
Subroutine Not possible. Not possible. Not possible. Not possible. Not possible. Not possible.
IL - ILC OK Not possible. Not possible. OK OK Not possible.
Step ladder
section
Not possible. OK Not possible. Not possible. OK Not possible.
FOR - NEXT
loop
OK OK Not possible. OK OK Not possible.
JMP0 - JME0 OK OK Not possible. Not possible. Not possible. Not possible.
Block pro-
gram section
OK OK OK Not possible. OK Not possible.
Subroutine
Subroutine
Program
Program
Function Mnemonic Instruction
Process Step Control STEP(008) Define step ladder section
SNXT(009) Step through the step lad-
der

Table of Contents

Related product manuals