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

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

Advertisement

 Disabling a Program in an Event Task with a Lower Execution Priority from a
Periodic Task
• There are three programs in this example. P1 is in a periodic task (execution priority: 16), and P2
and P3 are in an event task (execution priority: 48).
• P3 is executed in the event task.
• The PrgStop instruction with P3 specified is executed in the periodic task.
• P3 in the event task is disabled from the event task that is executed after the PrgStop instruction is
executed.
• Thereafter, P3 remains disabled even if you do not execute the PrgStop instruction with P3 speci-
fied.
Periodic task
P1
(execution
priority: 16)
Event task
(execution
priority: 48)
 Disabling a Program in an Event Task with a Higher Execution Priority from a
Periodic Task
• There are three programs in this example. P1 and P2 are in an event task (execution priority: 8),
and P2 is in a periodic task (execution priority: 16).
• P2 is executed in the event task.
• The PrgStop instruction with P2 specified is executed in the periodic task.
• P2 in the event task is disabled from the event task that is executed after the PrgStop instruction is
executed.
• Thereafter, P2 remains disabled even if you do not execute the PrgStop instruction with P2 speci-
fied.
Event task
(execution
priority: 8)
Periodic task
P3
(execution
priority: 16)

NY-series Instructions Reference Manual (W560)

Task period 1
P1
PrgStop('P3')
P2P3
Event occurs.
Event occurs.
P3 is disabled from the event task that comes
after execution of the PrgStop instruction.
P1P2
P1P2
Event occurs.
Event occurs.
Task period 1
P3
Task period 2
P2P3
P2P3
Event occurs.Event occurs.
P1P2
Event occurs.
Task period 2
P3
PrgStop('P2')
P2 is disabled from the event task that comes
after execution of the PrgStop instruction.
2 Instruction Descriptions
Task period 3
P1
P2P3
P1P2
Event occurs.
Task period 3
P3
2
Time
Time
Time
Time
2-877

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents