Using Tasks
Example: Cyclic Task
1) Task 0 will be
in READY
Cyclic task 0
status at the
start of opera-
tion.
Cyclic task 1
Other tasks will re-
main in Disabled
status.
Cyclic task 2
Cyclic task 3
Tasks and the Execution Cycle
TKON(820)
168
2) Task 1 will go to
READY status if A is
Cyclic task 0
ON, and tasks 2 and
3 will remain on
Disabled status.
Cyclic task 1
Cyclic task 2
Cyclic task 3
A cyclic task (including an extra cyclic task) that is in READY status will main-
tain that status in subsequent cycles.
READY sta-
tus at the
Cyclic task 1
start of op-
eration
Cyclic task 2
READY
status
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 0
(READY status
at the start of
operation)
Cyclic task 1
Cyclic task 2
Cyclic task 3
3) Task 0 will go to
Standby status if D
is ON.
Other tasks will remain in
their current status.
READY status
Standby status/Disabled status
Cyclic task 1
READY status
READY status
Cyclic task 2
Section 4-2
Cyclic task 0
Cyclic task 1
Cyclic task 2
Cyclic task 3