![Omron CJ1G-CPU series Programming Manual Download Page 178](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489178.webp)
157
Task Features
Section 4-1
ated for CJ1M CPU Units), but these tasks can be edited if they were
already created with CX-Programmer.
4-1-6
Cyclic Task Status
This section describes cyclic task status, including extra cyclic tasks (sup-
ported by CS1-H, CJ1-H, or CJ1M CPU Units only).
Cyclic tasks always have one of four statuses: Disabled, READY, RUN (exe-
cutable), and standby (WAIT).
Disabled Status (INI)
A task with Disabled status is not executed. All cyclic tasks have Disabled sta-
tus in PROGRAM mode. Any cycle task that shifted from this to another status
cannot return to this status without returning to PROGRAM mode.
READY Status
A task attribute can be set to control when the task will go to READY status.
The attribute can be set to either activate the task using the TASK ON instruc-
tion or when RUN operation is started.
Instruction-activated
Tasks
A TASK ON (TKON(820)) instruction is used to switch an instruction-activated
cyclic task from Disabled status or Standby status to READY status.
Operation-activated Tasks
An operation-activated cyclic task will switch from Disabled status to READY
status when the operating mode is changed from PROGRAM to RUN or
MONITOR mode. This applies only to normal cyclic tasks.
Note A Programming Device can be used to set one or more tasks to go to READY
status when operation is started for task numbers 0 through 31. The setting,
however, is not possible with extra cyclic tasks.
RUN Status
A cyclic task that is READY will switch to RUN status and be executed when
the task obtains the right to execute.
Standby Status
A TASK OFF (TKOF(821)) instruction can be used to change a cyclic task
from Disabled status to Standby status.
4-1-7
Status Transitions
Note
1.
A task in RUN status will be put into Standby status by the TKOF(821) in-
struction even when the TKOF(821) instruction is executed within that task.
INI (Disabled) status
Activated at the start of
operation (See note 2) or the
TKON(820) instr uction
READY status
Right to execute obtained.
RUN status
Executed
TKOF(821) instruction (See note 1.)
TKON(820) instruction
Standby status
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...