A-13
Appendices
NJ-series CPU Unit Software User’s Manual (W501)
A-2 Calculating Guidelines for the Real Processing Times of Tasks
App
A-2-1 Calculating the Average Real Processing Times of Tasks
A-2 Calculating Guidelines for the Real
Processing Times of Tasks
This section describes how to calculate guidelines for the average real processing times of tasks on
paper.
You must use the physical Controller to check the real processing times of tasks and task execution
times. For details, refer to 5-3 Task Design Methods and I/O Response Times.
The execution times in the physical Controller depends on the logic operations that are per-
formed in the user program, the presence of communications commands and data links, on
whether data tracing is performed, and on other factors.
Before starting actual operation, you must test performance under all foreseeable conditions on
the actual system and make sure that the task periods are not exceeded and that suitable com-
munications performance is achieved.
Periodic tasks will be interrupted for the execution of tasks with higher execution priorities. The
real processing time of a task does not include the time for which the task is interrupted. It is the
task execution time that gives the actual time from when the task is started until it is finished,
including the interrupted time. For a detailed description of the differences between the real pro-
cessing times of tasks and the task execution times, refer to Meaning of the Task Execution Time
and the Real Processing Time of the Task on page 5-50.
The average real processing time of a task is the total of the I/O refresh processing time, user program
execution time, motion control processing time and common processing time.
Average real processing time of task = I/O refresh processing time + User program execution time +
Motion control processing time + Common processing time
The following processing is performed.
A-2-1 Calculating the Average Real Processing Times of Tasks
Processing Processing contents
Primary
periodic
task
Priority-16
periodic
task
Priority-17
and prior-
ity-18 peri-
odic tasks
I/O refresh processing I/O is refreshed for CJ-series Units
(Basic I/O Units, Special I/O Units, and
CPU Bus Units) and EtherCAT slaves.
Performed. Performed. Not per-
formed.
User program execution • Programs assigned to tasks are exe-
cuted in the order that they are
assigned.
Performed. Performed. Performed.
Motion control processing • Motion control commands from the
user program are executed.
• Motion control outputs are processed.
Performed. Not per-
formed.
Not per-
formed.