158
Using Tasks Section 4-2
2. Activation at the start of operation is possible for normal cyclic tasks only.
It is not possible for extra cyclic tasks.
Standby status functions exactly the same way as a jump (JMP-JME). Output
status for the Standby task will be maintained.
Instructions will not be executed in Standby status, so instruction execution
time will not be increased. Programming that does not need to be executed all
the time can be made into tasks and assigned Standby status to reduce cycle
time.
Note Standby status simply means that a task will be skipped during task execu-
tion. Changing to Standby status will not end the program.
4-2 Using Tasks
4-2-1 TASK ON and TASK OFF
The TASK ON (TKON(820)) and TASK OFF (TKOF(821)) instructions switch a
cyclic task (including extra cyclic tasks) between READY and Standby status
from a program.
Note Extra cyclic tasks are supported only by CS1-H, CJ1-H, or CJ1M CPU Units.
Standby status
Jump
Conventional program
Executes under
set conditions
All instructions will
be executed un-
less jumps or other
functions are used.
Task
Reduced cycle time
Executes under
set conditions
N: Task No. A task will go to READY status when the
execution condition is ON, and the corre-
sponding Task Flag will turn ON.
A task will go to Standby status when
the execution condition is ON, and the
corresponding Task Flag will turn OFF.
N: Task No.
Note: Task Flags do not work for extra cyclic tasks.