Using Tasks; Task On And Task Off - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Using Tasks

Conventional program
Executes under
set conditions
Executes under
set conditions
4-2

Using Tasks

4-2-1

TASK ON and TASK OFF

the time can be made into tasks and assigned Standby status to reduce cycle
time.
All instructions will
be executed un-
less jumps or other
functions are used.
Note Standby status simply means that a task will be skipped during task execu-
tion. Changing to Standby status will not end the program.
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, CJ1M, or CS1D CPU
Units.
The TASK ON and TASK OFF instructions can be used to change any cyclic
task between READY or Standby status at any time. A cyclic task that is in
READY status will maintain that status in subsequent cycles, and a cyclic task
that is in Standby status will maintain that status in subsequent cycles.
The TASK ON and TASK OFF instructions can be used only with cyclic tasks
and not with interrupt tasks.
Note At least one cyclic task must be in READY status in each cycle. If there is not
cyclic task in READY status, the Task Error Flag (A29512) will turn ON, and
the CPU Unit will stop running.
Task
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
N: Task No.
the execution condition is ON, and the
corresponding Task Flag will turn OFF.
Note: Task Flags do not work for extra cyclic tasks.
Section 4-2
Reduced cycle time
171

Advertisement

Table of Contents
loading

Table of Contents