Omron SYSMAC CS/CJ Series Programming Manual page 181

Table of Contents

Advertisement

Using Tasks
Tasks and the Execution Cycle
TKON(820)
TKOF(821)
Cyclic Task Numbers and the Execution Cycle (Including Extra Cyclic Tasks)
160
A cyclic task (including an extra cyclic task) that is in READY status will main-
tain that status in subsequent cycles.
Cyclic task 1
Cyclic task 2
A cyclic task that is in Standby status will maintain that status in subsequent
cycles. The task will have to be activated using the TKON(820) instruction in
order to switch from Standby to READY status.
Cyclic task 1
TKON (820)
Cyclic task 2
If a TKOF(821) instruction is executed for the task it is in, the task will stop
being executed where the instruction is executed, and the task will shift to
Standby status.
If task m turns ON task n and m > n, task n will go to READY status the next
cycle.
Example:If task 5 turns ON task 2, task 2 will go to READY status the next
cycle.
If task m turns ON task n and m < n, task n will go to READY status the same
cycle.
Example:If task 2 turns ON task 5, task 5 will go to READY status in the same
cycle.
READY sta-
tus at the
Cyclic task 1
start of op-
eration
Cyclic task 2
READY
status
Standby status
Cyclic task 1
Cyclic task 2
RUN status
Task 2
Task execution will
stop here and the task
will shift to Standby
status.
Section 4-2
READY status
READY status
Standby status
RUN status

Advertisement

Table of Contents
loading

Table of Contents