EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Program Capacity; Basics of Programming

Omron CP1E CPU UNIT SOFTWARE
450 pages
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...
4-3
4 Understanding Programming
CP1E CPU Unit Software User’s Manual(W480)
4-1 Programming
4
4-1-2 Program Capacity
The maximum program capacities of the CP1E CPU Units for all ladder programs (including symbol
table and comments) are given in the following table.
The total number of steps must not exceed the maximum program capacity.
It is possible to check the program size by selecting Program - Memory View in the CX-Programmer.
The size of a ladder instruction depends on the specific instruction and operands that are used.
This section describes the basics of programming for the CP1E.
Instructions are executed in the order that they are stored in memory (i.e., in the order of the mnemonic
code). Be sure you understand the concepts of ladder programming, and write the programs in the
proper order.
Basic Points in Creating Ladder Programs
Order of Ladder Program Execution
When the ladder diagram is executed by the CPU Unit, the execution condition (i.e., power flow)
flows from left to right and top to bottom.
The flow is different from that for circuits that consist of hard-wired control relays.
For example, when the diagram in figure A is executed by the CPU Unit, power flows as though the
diodes in brackets were inserted so that output R2 is not controlled by input condition D.
The actual order of execution is indicated on the right with mnemonics.
To achieve operation without these imaginary diodes, the diagram must be rewritten. Also, the power
flow in figure B cannot be programmed directly and must be rewritten.
4-1-2 Program Capacity
Unit type Model numbers Program capacity
E-type CPU Unit CP1E-E- 2K steps
N/NA-type CPU Unit CP1E-N/NA- 8K steps
4-1-3 Basics of Programming
Basic Concepts of Ladder Programming
A
B
A
C E
E
CD
B
E
()

()
()
R1
R2
R1
R2
AND B
OUT R1
LD TR0
AND E
OUT R2
LD A
LD C
OUT TR0
AND D
OR LD
Figure A (Good example)
Signal flow
Figure B (Bad example)
Order of execution (mnemonics)

Table of Contents

Related product manuals