Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

 Enabling a Program in a Task with a Lower Execution Priority from an Event
Task
• There are three programs in this example. P1 is in an event task (execution priority: 8), and P2
and P3 are in a periodic task (execution priority: 16).
• P3 is disabled from task period 1 of the periodic task.
• The PrgStart instruction with P3 specified is executed in the event task.
• When the event task is executed, P2 and P3 in task period 2 of the periodic task are executed
after processing of the event task is completed.
• As a result, P3 in task period 2 of the periodic task is executed because it comes after execution of
the PrgStart instruction.
• Thereafter, P3 remains enabled even if you do not execute the PrgStart instruction with P3 speci-
fied.
Event task
(execution
priority: 8)
Event occurs.
Task period 1
Periodic task
P2P3
(execution
priority: 16)
 Enabling a Program in a Task with a Higher Execution Priority from an Event
Task
• There are three programs in this example. P1 and P2 are in the primary periodic task, and P3 is in
an event task.
• P2 is disabled from task period 1 of the primary periodic task.
• The PrgStart instruction with P2 specified is executed in the event task.
• P2 is executed in task period 2 of the primary periodic task, which is executed after the PrgStart
instruction is executed.
• Thereafter, P2 remains enabled even if you do not execute the PrgStart instruction with P2 speci-
fied.
Task period 1
Primary
P1P2
periodic task
Event task
(execution
PrgStart('P2')
priority: 8)
Event occurs.

NY-series Instructions Reference Manual (W560)

P1
PrgStart('P3')
Task period 2
Task period 3
P2P3
P2P3
P2 is executed in task period 2 after processing
of the event task is completed.
P3 is executed in the task period that comes after
execution of the PrgStart instruction.
Task period 2
Task period 3
P1P2
P1P2
P3
P2 is executed in the task period that comes
after execution of the PrgStart instruction.
2 Instruction Descriptions
Task period 4
Task period 5
P2P3
P2P3
Task period 4
Task period 5
P1P2
P1P2
Time
Task period 6
P2P3
Time
Task period 6
P1P2
Time
Time
2-867
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents