5 Designing Tasks
5-22
NJ-series CPU Unit Software User’s Manual (W501)
If the execution condition for an event task is met again before the execution of that event task is com-
pleted, the second match of the execution condition is ignored. “Before an event task is completed”
includes the duration of execution of the event task and the time waiting for execution. After the execu-
tion of the event task has started, it is executed to the end even if the condition expression is no longer
met.
5-2-6 Operation When Execution Condition Is Met Again before
Execution of the Event Task Is Completed
Execution of the event task has not completed yet,
so the second ActEventTask instruction is ignored.
ActEventTask
instruction is
executed.
High
Low
Execution
priority
Event task
(execution priority of 8)
Primary
periodic task
Primary period
ActEventTask
instruction is
executed.
Interrupted.
Task period
High
Low
Execution
priority
Priority-16
periodic task: T1
T2 event task
(execution priority of 48)
Primary periodic
task
Primary period
ActEventTask instruction
is executed for T2.
ActEventTask instruction
is executed for T2.
Interrupted.
Interrupted.
This event task (T2) was triggered by the first
ActEventTask instruction and is still waiting for
execution. The second ActEventTask
instruction is ignored.