![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489038.webp)
17
Description of Tasks
Section 1-6
Example: Each Task Controlled by Another Task
In this example, each task is controlled by another task.
Program
Task 0
Task 1
Task 2
Program for task 0
Program for task 1
Example: Task 1 is set to be executed at the start of operation
unconditionally.
Task 1 executable when a is ON.
Task 1 put on standby when b is ON.
Task 2 is executable when c is ON and task 1 has
been executed.
Task 0
Task 1
Task 2
Task 0
Task 1
Task 2
Task 0
Task 1
Task 2
Task 0
Task 1
Task 2
Put task 1
on standby
when b is
ON.
If task 1 executed
Start
task 2
when c
is ON.
Start task 1
when a is
ON.
Note TKOF(821) can be used in a task to put that
task itself on standby.
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...