Flags Related To Tasks - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Flags Related to Tasks

Flags Related to Cyclic Tasks
The following flag work only for normal cyclic tasks. They do not work for extra cyclic tasks.
Task Flags (TK000 to TK127)
Use this flag to check if the task is being presently being executed. A Task Flag is turned ON when a
cyclic task is in READY status and is turned OFF when the task is in DISABLED (INI) or in
STANDBY (WAIT) status. Task numbers 00 to 127 correspond to TK000 to TK127.
Task 3 DISABLED
Task Flag TK003 for task 3
Note Task Flags are used only with cyclic tasks and not with interrupt tasks. For interrupt tasks, use flags related
to the interrupt tasks, such as word A440 (Maximum Interrupt Task Processing Time) or word A441 (Interrupt
Task with Maximum Processing Time). Refer below for information on flags related to interrupt tasks.
Initial Task Execution Flag (A200.15)
Use this flag to perform initial processing only once during operation. It will turn ON the first time a
task is executed and will turn OFF when execution of the task has been completed.
Task n
Initial Task
Execution Flag
(A200.15)
Start of operation
The Initial Task Execution Flag will turn ON when a task is executed the first time. Use this flag to
trigger initializing processing.
Note Even though a STANDBY cyclic task is changed back to READY status using the TKON(820) instruction, this
is not considered an initial execution, and the Initial Task Execution Flag (20015) will not turn ON again. Use
the Task Start Flag (A200.14).
CJ2 CPU Unit Software User's Manual
Cycle
READY
READY status
DISABLED
STANDBY
status
status
Initial Task Execution Flag
A200.15
5 Understanding Programming
Cycle
READY
READY status
Initializing
processing
Cycle
STANDBY
5-33
5

Advertisement

Table of Contents
loading

Table of Contents