EasyManuals Logo

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 #135 background imageLoading...
Page #135 background image
5 Designing Tasks
5-8
NJ-series CPU Unit Software User’s Manual (W501)
Additional Information
An event task is not executed periodically. Instead, it is executed only once when the specified
execution condition is met. Therefore, execution of an event task depends on when its execution
condition is met and on its execution priority.
This section gives a few examples of the execution order for the primary periodic task and periodic
tasks. Refer to 5-2-5 Event Task Execution Timing for the order of execution of event tasks.
Projects with Only the Primary Periodic Task
The primary periodic task is executed every primary period. The system service shown in this figure
refers to non-task related processing, such as communications processing, that is performed by the
CPU Unit. System services are executed in the unused time between execution of the tasks. Refer
to Processing Performed in System Services on page 5-29 for details on the system services.
Project with the Primary Periodic Task, Priority-16 Periodic Task, and Priority-
17 Periodic Task
The primary periodic task has the highest execution priority, so it is always executed in the primary
period.
The priority-16 periodic task has a lower execution priority than the primary periodic task, so it is
executed when the primary periodic task is not being executed.
The priority-17 periodic task has an even lower execution priority, so it is executed when the above
two tasks are not under execution.
In this example, the task period for the priority-16 periodic task is set to four times the primary
period. This means that once ever four primary periods, execution of the primary periodic task and
the priority-16 periodic task will start at the same time.
System services are executed in the unused time between execution of the tasks.
Examples of Execution Order for Tasks
MC IO UPG
MC IO UPG
SS SS
Low
SS: Indicates system services.
MC: Indicates motion control.
UPG: User program execution.
IO: Indicates I/O refreshing (data outputs and then data inputs).
A dotted line represents a transition to another task.
A double line means
that all processing for
that task has been
completed.
Primary period
Primary period
System
services
Primary
periodic
task
High
Execution priority
Pausing

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
Program CapacityUp to 128 MB
SD Card SlotYes
Power Supply Voltage24 VDC
Motion ControlYes
USB Ports1
Operating Temperature0°C to 55°C
Communication InterfacesEthernet/IP, EtherCAT, USB
Safety FunctionOptional
Storage Temperature-20°C to 75°C
Communication PortsUSB
DimensionsVaries by model
WeightVaries by model

Related product manuals