EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #125 background imageLoading...
Page #125 background image
5-33
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-2 Tasks
5
5-2-4 Designing Tasks
z 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.
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.
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).
Flags Related to Tasks
Cycle
Cycle
Task Flag TK003 for task 3
Tas k 3
DISABLED
READY
STANDBY
Cycle
READY
(A200.15)
A200.15
DISABLED
status
READY status
READY status
STANDBY
status
Start of operation
Initial Task
Execution Flag
Task n
Initial Task Execution Flag
Initializing
processing

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals