Using Tasks; Task On And Task Off - Omron SYSMAC CS/CJ Series Programming Manual

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

158
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.
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, or CJ1M CPU Units.
Standby status
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.
N: Task No.
A task will go to Standby status when
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
Jump
Reduced cycle time

Advertisement

Table of Contents
loading

Table of Contents