Ladder Programming Precautions; Special Program Sections - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

4 Understanding Programming
4-6

Ladder Programming Precautions

4-6-1

Special Program Sections

For CP1E CPU Units, programs have special program sections that will control instruction conditions.
The following special program sections are available.
Program sections
Subroutine sections
IL-ILC sections
Step ladder sections
FOR-NEXT sections
Instruction Combinations
The following table shows which of the special instructions can be used inside other program sections.
Subroutine sections
IL-ILC sections
MILH and MILR-MILC sections
Step ladder sections
FOR-NEXT sections
Subroutines
Place all the subroutines together just after all of the main program and before the END instruction.
A subroutine cannot be placed in a step ladder, block program, or FOR-NEXT section.
If instructions other than those in a subroutine are placed after a subroutine (SBN to RET), those
instructions will not be executed.
Program
Subroutines
4-22
Instructions
SBS, SBN, and RET instruc-
tions
IL and ILC instructions
STEP instructions
FOR and NEXT instructions
Subroutine
IL-ILC
sections
sections
No
No
Yes
No
Yes
No
No
Yes
Yes
Yes
Instruction
conditions
Subroutine program
The subroutine program
is executed.
section between SBN and
RET instructions is exe-
cuted.
During IL
The output bits are turned
OFF and timers are reset.
Other instructions will not be
executed and previous sta-
tus will be maintained.
Break in progress.
Looping
MILH and
Step ladder
MILR-MILC
sections
sections
No
No
No
No
Yes
No
Yes
No
Yes
No
CP1E CPU Unit Software User's Manual(W480)
Status
FOR-NEXT
sections
No
Yes
Yes
No
Yes

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Table of Contents

Save PDF