5-27
5 Designing Tasks
NJ-series CPU Unit Software User’s Manual (W501)
5-2 Task System
5
5-2-8 Processing Performed in and Execution Timing of the Tag Data Link Service
Differences in the Timing of Processing Tag Data Links Depending on Whether a Refresh-
ing Task Is Set
The process to write values to and read values from variables is different depending on whether
a refreshing task is set. If a refreshing task is set, the values are read and written in that task. If a
refreshing task is not set, the values are read and written in a system service. This means there
is a difference in the execution timing of processing tag data links.
The difference in the execution timing when data is received for tag data links is shown below.
• When a Refreshing Task Is Specified
In this example, the primary periodic task is set as the refreshing task. Values are written to
the variables in the next primary periodic task after the tag data links service.
• When a Refreshing Task Is Not Specified
The values are written to the variables in a system service.
Primary period
Task period
Tag data is read
from the tag set.
Values are written to the variables in the next primary
periodic task after the tag data links 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
service
Tag data link
service