EasyManuals Logo

Omron CJ1M-CPU series Programming Manual

Omron CJ1M-CPU series
383 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
Page #37 background imageLoading...
Page #37 background image
16
Description of Tasks Section 1-6
Executable and Standby
Status
The TASK ON and TASK OFF instructions (TKON(820) and TKOF(821)) can
be executed in one task to place another task in executable or standby status.
Instructions in tasks that are on standby will not be executed, but their I/O sta-
tus will be maintained. When a task is returned to executable status, instruc-
tions will be executed with the I/O status that was maintained.
Example: Programming with a Control Task
In this example, task 0 is a control task that is executed first at the start of
operation. Other tasks can be set from the CX-Programmer (but not a Pro-
gramming Console) to start or not to start at the beginning of operation.
Once program execution has been started, tasks can be controlled with
TKON(820) and TKOF(821).
Task 0 (control task)
Ta s k 1
Ta s k 2
Ta s k 3
Ta s k 0
Example: T
(set in the program properties from the CX-Programmer).
ask 0 is set to be executed at the start of operation
Task 1 is executable when a is ON.
Task 1 is put on standby when b is ON.
Tasks 2 and 3 are executable when c is ON.
Tasks 2 and 3 are
p
ut on standb
y
when d is ON.
Program
Ta s k 0
Ta s k 1
Ta s k 2
Ta s k 3
Task 0
Task 1
Task 2
Task 3
Ta s k 0
Ta s k 1
Ta s k 2
Ta s k 3
Ta s k 0
Task 1
Task 2
Task 3
Ta s k 0
Ta s k 1
Ta s k 2
Ta s k 3
Ta s k 0
Ta s k 1
Ta s k 2
Ta s k 3
Start task 1
when a is
ON.
Start tasks 2
and 3 when
c is ON.
Put task 1 on
standby when
b is ON.
Put tasks 2
and 3 on
standby
when d is
ON.

Table of Contents

Other manuals for Omron CJ1M-CPU series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ1M-CPU series and is the answer not in the manual?

Omron CJ1M-CPU series Specifications

General IconGeneral
BrandOmron
ModelCJ1M-CPU series
CategoryController
LanguageEnglish

Related product manuals