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

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

Advertisement

2 Instruction Descriptions
 Disabling a Program in an Event 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 an event task (execution priority: 48).
• P3 in the event task (execution priority: 48) is executed.
• The PrgStop instruction with P3 specified is executed in the event task (execution priority: 8).
• P3 in the event task (execution priority: 48) is disabled from the event task (execution priority: 48)
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.
Event task
(execution
priority: 8)
Event task
(execution
priority: 48)
Event occurs.
 Disabling a Program in an Event Task with a Higher Execution Priority from
an Event Task
• There are three programs in this example. P1 and P2 are in an event task (execution priority: 8),
and P3 is in an event task (execution priority: 48).
• P2 in the event task (execution priority: 8) is executed.
• The PrgStop instruction with P2 specified is executed in the event task (execution priority: 48).
• P2 in the event task (execution priority: 8) is disabled from the event task (execution priority: 8)
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)
Event occurs.
Event task
(execution
priority: 48)
Notation Example
The following example shows the notation for specifying disabling program P1.
LD
'P1'
2-878
P1
Event occurs.
Event occurs.
P2
P3
Event occurs.
P1P2
Event occurs.
P3
Event occurs.
Event occurs.
abc
PrgStop
EN
PrgName
P1
PrgStop('P3')
P2P3
P2P3
Event occurs.
P3 is disabled from the event task that comes
after execution of the PrgStop instruction.
P1P2
P1P2
Event occurs.
P3
P3
PrgStop('P2')
P2 is disabled from the event task that comes
after execution of the PrgStop instruction.
ST
abc:=PrgStop('P1');

NY-series Instructions Reference Manual (W560)

Time
Time
P1P2
Time
Event occurs.
Time

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents