EasyManuals Logo
Home>Omron>Controller>NJ Series

Omron NJ Series User Manual

Omron NJ Series
668 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 #134 background imageLoading...
Page #134 background image
5-7
5 Designing Tasks
NJ-series CPU Unit Software User’s Manual (W501)
5-2 Task System
5
5-2-3 Basic Operation of Tasks
The CPU Unit cannot execute more than one task at the same time. The order in which tasks are exe-
cuted depends on the execution priority that is set for each task.
The type of the task determines its execution priority. If the execution condition is met for another task,
Tb, that has a higher execution priority while task Ta execution is in progress, execution of Ta will be
interrupted to allow execution of Tb. Processing for Ta will resume when processing for Tb is completed.
The execution priority for each task type is given in the following table. The smaller the value of the exe-
cution priority, the higher the priority.
The CPU Unit repeatedly and cyclically executes the primary periodic task and periodic tasks. The task
periods for periodic tasks must be assigned as integer multiples of the task period of the primary peri-
odic task (called the primary period). Therefore, execution of both tasks will be start at the same time
every few cycles.
For example, if the primary period is set to 1 ms and the task period of the priority-16 periodic task is set
to 4 ms, the execution timing of the primary periodic task and the priority-16 periodic task is
synchronized after each four executions of the primary periodic task.
5-2-3 Basic Operation of Tasks
Task Execution Priority
Task
Execution pri-
ority
Tasks with the same execution priority
Primary periodic task 4 ---
Periodic task 16, 17, or 18 You cannot set the same execution priority for more than one task.
Event task 8 or 48 You can set the same execution priority for more than one event
task. Refer to 5-2-5 Event Task Execution Timing for the order of
execution.
Task Periods for the Primary Periodic Task and Periodic Tasks
Execution priority
(0 to 63)
High
Low
1
0 or 1
0 to 32
0 or 1
Numbers of tasks
4
8
16
17
18
0 or 1
Primary
periodic task
Periodic task
A total of up to 32
tasks for both
priority levels.
Periodic task
Periodic task
Event tasks
0 to 32
48
Event tasks

Table of Contents

Other manuals for Omron NJ Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ Series and is the answer not in the manual?

Omron NJ Series Specifications

General IconGeneral
BrandOmron
ModelNJ Series
CategoryController
LanguageEnglish

Related product manuals