Omron CJ - INSTRUCTIONS Reference Manual page 1151

Table of Contents

Advertisement

Function
TKON
• TKON(820) puts the specified cyclic task or extra cyclic task in executable status. When N is 0 to 127
(specifying a cyclic task), the corresponding Task Flag (TK00 to TK127) will be turned ON at the
same time.
• This instruction can be executed only in a regular cyclic task or an extra cyclic task. An error will
occur if an attempt is made to execute it in an interrupt task.
• The cyclic task or extra cyclic task specified in TKON(820) will be also executable in later cycles as
long as it is not put in standby status by TKOF(821).
• Any task can be made executable from any cyclic task, although the specified task will not be
executed until the next cycle if its task number is lower than the task number of the local task. The
task will be executed in the same cycle if its task number is higher than the local task's task number.
• TKON(820) will be treated as NOP(000) if the specified task is already executable or the local task is
specified.
The specified task's task number
is higher than the local task's task
number (m<n).
Task m
Task n
TKOF
• TKOF(821) puts the specified cyclic task or extra cyclic into standby status and turns OFF the
corresponding Task Flag (TK00 to TK127).
WAIT status means that the status will not change to RUN (the program will not be executed) during
that cycle.
• This instruction can be executed only in a regular cyclic task or an extra cyclic task. An error will
occur if an attempt is made to execute it in an interrupt task.
• The task specified in TKOF(821) will be also in standby status in later cycles as long as it is not put
into executable status by TKON(820), a Peripheral Device running CX-Programmer, or a FINS
command.
• A task can be put into standby status from any other regular task, although the specified task will not
be put into standby status until the next cycle if its task number is lower than the task number of the
local task (it would have been executed already). The task will be in standby status in the same cycle
if its task number is higher than the local task's task number.
• If the local task is specified in TKOF(821), the task will be put into standby status immediately and
none of the subsequent instructions in the task will be executed.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
The specified task's task number
is lower than the local task's task
number (m>n).
Task n
Becomes
executable in
that cycle.
Task m
3. Instructions
Becomes
executable
in the next
cycle.
3
1113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents