![Omron CJ1G-CPU series Programming Manual Download Page 33](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489033.webp)
12
Programs and Tasks
Section 1-5
1-5
Programs and Tasks
Tasks specify the sequence and interrupt conditions under which individual
programs will be executed. They are broadly grouped into the following types:
1,2,3...
1.
Tasks executed sequentially that are called cyclic tasks.
2.
Tasks executed by interrupt conditions that are called interrupt tasks.
Note With the CS1-H, CJ1-H, or CJ1M CPU Units, interrupt tasks can be executed
cyclically in the same way as cyclic tasks. These are called “extra cyclic
tasks.”
Programs allocated to cyclic tasks will be executed sequentially by task num-
ber and I/O will be refreshed once per cycle after all tasks (more precisely
tasks that are in executable status) are executed. If an interrupt condition
goes into effect during processing of the cyclic tasks, the cyclic task will be
interrupted and the program allocated to the interrupt task will be executed.
Refer to the section on CPU Unit operation in the CS/CJ Series Operation
Manual for information in refreshing I/O.
In the above example, programming would be executed in the following order:
start of A, B, remainder of A, C, and then D. This assumes that the interrupt
condition for interrupt task 100 was established during execution of program
A. When execution of program B is completed, the rest of program A would be
executed from the place where execution was interrupted.
With earlier OMRON PLCs, one continuous program is formed from several
continuous parts. The programs allocated to each task are single programs
that terminate with an END instruction, just like the single program in earlier
PLCs.
Cyclic
task 0
Cyclic
task 1
Interrupt condition
goes into effect
Interrupt
task 100
Allocation
Program B
Program C
Program D
Cyclic
task n
I/O refreshing
Allocation
Allocation
Allocation
Program A
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...