EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 72

Omron CP - PROGRAMMING MANUAL 05-2007
1175 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...
39
Precautions Section 1-2
Note Instructions that specify program areas cannot be used for programs in other
tasks. Refer to 2-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.
Instructions Not Available in Step Ladder Program Sections
Subroutine
Subroutine
Program
Program
Function Mnemonic Instruction
Process Step Control STEP(008) Define step ladder section
SNXT(009) Step through the step ladder
Function Mnemonic Instruction
Sequence Control FOR(512), NEXT(513), and
BREAK(514)
FOR, NEXT, and BREAK
LOOP
END(001) END
IL(002) and ILC(003) INTERLOCK and INTER-
LOCK CLEAR
JMP(004) and JME(005) JUMP and JUMP END
CJP(510) and CJPN(511) CONDITIONAL JUMP and
CONDITIONAL JUMP NOT
JMP0(515) and JME0(516) MULTIPLE JUMP and MULTI-
PLE JUMP END
Subroutines SBN(092) and RET(093) SUBROUTINE ENTRY and
SUBROUTINE RETURN

Table of Contents

Related product manuals