5-25
5 Designing Tasks
NJ-series CPU Unit Software User’s Manual (W501)
5-2 Task System
5
5-2-7 Tag Data Link Service and System Services
As an example, the order of execution for the primary periodic task, priority-16 periodic task, priority-17
periodic task, tag data link service, and system services is shown below.
• Execution of the tag data link service is given priority over execution of the priority-17 periodic
task. However, execution of the primary periodic task and priority-16 periodic task is given even
higher priority.
• The system services are executed in the unused time between execution of all of the tasks and
tag data link service.
• The execution interval and the execution time for one execution depend on the model of the CPU
Unit and on the tag data link settings. Refer to 5-2-8 Processing Performed in and Execution Tim-
ing of the Tag Data Link Service for details.
Examples of the Order of Execution for the Tag Data Link Service
and System Services
Primary period
Task period
Execution period of the
tag data link service
Task period
Interrupted.
High
Low
MC
IO
UPG
MC
IO
UPG
MC
IO
UPG
MC
IO
UPG
MC
IO
UPG
IO
UPG
IO
UPG
UPG
Execution
priority
Priority-16
periodic task
Priority-17
periodic task
Primary
periodic task
System
services
Tag data link
service
Execution of the tag data link service
is given priority over execution of the
priority-17 periodic task.
The system services are executed in the
unused time between execution of the
tasks and tag data link service.