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
Operation Example When a Program in a Different Task Is Specified
An operation example is provided below for when a program is specified that is in a different task from
the task that executes the instruction.
 Enabling a Program in a Task with a Lower Execution Priority Than the
Current Task
• There are three programs in this example. P1 is in the primary periodic task, and P2 and P3 are in
a periodic task.
• P3 is disabled from task period A of the periodic task.
• The PrgStart instruction with P3 specified is executed in P1 of task period 2 of the primary peri-
odic task.
• P3 is executed in task period B of the periodic task, which is executed after the PrgStart instruc-
tion is executed.
• Thereafter, P3 remains enabled even if you do not execute the PrgStart instruction with P3 speci-
fied.
Task period 1
Primary
P1
periodic task
Periodic task
(execution
priority: 16)
 Enabling a Program in a Task with a Higher Execution Priority Than the
Current Task
• There are three programs in this example. P1 and P2 are in the primary periodic task, and P3 is in
a periodic task.
• P2 is disabled from task period 1 of the primary periodic task.
• The PrgStart instruction with P2 specified is executed in P3 of task period A of the periodic 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.
• The primary periodic task has a higher execution priority than a periodic task, so P3 in task period
B and later is executed after processing of P2 is completed.
Task period 1
Primary
P1P2
periodic task
Periodic task
(execution
PrgStart('P2')
priority: 16)
P2 is executed in the task period
that comes after execution of the
PrgStart instruction.
2-866
Task period 2
Task period 3
P1
PrgStart('P3')
Task period A
P2P3
P3 is executed in the task period
that comes after execution of the
PrgStart instruction.
Task period 2
Task period 3
P1P2
P1P2
Task period A
P3
Task period 4
P1
P1
Task period B
P2P3
Task period 4
P1P2
P1P2
Task period B
P3
P3 in task period B and later is
executed after processing of P2
is completed.

NY-series Instructions Reference Manual (W560)

Task period 5
Task period 6
P1
P1
Task period C
P2P3
Task period 5
Task period 6
P1P2
Task period C
P3
Time
Time
Time
Time

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents