Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 1078

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Task Control Instructions
Flags
The specified task's task number
is higher than the local task's task
number (m<n).
Task m
In standby
status that
cycle.
Task n
A regular task that has been set to be executed at startup will be put in execut-
able status automatically when the PLC begins operation. All other regular
tasks will be in non-executable status.
A task in executable status can be put in standby status with TKOF(821), the
CX-Programmer, or a FINS command.
The terms executable and executing are not interchangeable. Executable
tasks are executed in order of their task numbers during cyclic program exe-
cution. An executable task will not be executed if it is put in standby status
before program execution reaches its task number.
Unlike TKON(820), this instruction can be placed in interrupt tasks as well as
in cyclic tasks.
Name
Label
Error Flag
ER
Name
Addresses
Task Flags
TK00 to TK31
The specified task's task number
is lower than the local task's task
number (m>n).
Task n
Task m
Operation
ON if N is not a constant between 00 and 31 or between
8000 and 8255.
ON if the task specified with N does not exist.
ON if TKOF(821) is executed in an interrupt task.
OFF in all other cases.
Operation
These flags are turned ON when the corresponding
cyclic task is executable and they are OFF when the
corresponding cyclic task is not executable or in
standby status.
TK00 to TK31 correspond to cyclic task numbers 00
to 31.
Section 3-32
In standby
status the
next cycle.
1045

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents