Omron CJ - 08-2008 Operation Manual page 267

Programmable controllers
Table of Contents

Advertisement

Examples
7. DM Area Settings
8. Writing the Program
Programming
Relationship between Tasks
Device
CX-Programmer
Specify the type of task and
task number for each program.
Programming Con-
Task = program
sole
(Cyclic task 0 is the main
program)
Example: Input 8064.
8
6
0
The following table shows the parts of the DM Area are allocated to Special
I/O Units and CPU Bus Units for initial settings. The actual settings depend on
the model of Unit being used.
Unit
Special I/O Units
CPU Bus Units
After writing the initial settings to the DM Area, be sure to restart the Units by
turning the PLC OFF and then ON again or toggling the Restart Bits for the
affected Units.
Write the program with a Programming Device (CX-Programmer or Program-
ming Console).
The CJ-series PLC's program can be divided into independently executable
tasks. A single cyclic task can be written for program execution like earlier
PLCs or several cyclic tasks can be written for a more flexible and efficient
program. The following table shows the differences when programming with
CX-Programmer or a Programming Console.
and Program
Cyclic tasks
All can be writ-
ten.
(Cyclic tasks 0
to 31)
Only one can
be written.
(Cyclic task 0)
PC SETUP
+209
or
PC SETUP?
CHG
+209
4
WRITE
PC SETUP
+209
Allocated words
D20000 to D29599 (100 words × 96 Units)
D30000 to D31599 (100 words × 16 Units)
Special I/O Unit or
CPU Bus Unit
Restart
Writing a new program
Interrupt
tasks
All can be writ-
ten.
(Interrupt tasks
0 to 255)
Several can be
written.
(Interrupt tasks
1 to 3, 100 to
131) (See
note.)
Section 4-2
0000
0000 0000
8064
Editing an existing program
Cyclic tasks
Interrupt
tasks
All can be
All can be
edited.
edited.
All can be
All can be
edited.
edited.
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents