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

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

Advertisement

Operation Example When a Program in the Current Task Is Specified
An operation example is provided below for when a program is specified that is in the same task as the
task that executes the instruction.
 Enabling a Program Executed After the PrgStart Instruction
• In this example, there are three programs, P1, P2, and P3, in the same task.
• P3 is disabled from task period 1.
• The PrgStart instruction with P3 specified is executed in P2 of task period 2.
• P3 is executed after P2, so P3 is executed in task period 2.
• Thereafter, P3 remains enabled even if you do not execute the PrgStart instruction with P3 speci-
fied.
Task period 1
P1
P2
Programs
 Enabling a Program Executed Before the PrgStart Instruction
• In this example, there are three programs, P1, P2, and P3, in the same task.
• P1 is disabled from task period 1.
• The PrgStart instruction with P1 specified is executed in P2 of task period 1.
• P1 is executed before P2, so P1 is executed in task period 2.
• Thereafter, P1 remains enabled even if you do not execute the PrgStart instruction with P1 speci-
fied.
Task period 1
P2
P3
PrgStart('P1')
P1 is executed before P2, so P1
is executed in the next task
period after the one in which the
PrgStart instruction is executed.

NY-series Instructions Reference Manual (W560)

Task period 2
P1
P2
P1
P3
P3
PrgStart('P3')
P3 is executed after P2, so P3 is executed
in the same task period as the one in which
the PrgStart instruction is executed.
Task period 2
Task period 3
P1
P2
P1
P3
2 Instruction Descriptions
Task period 3
P2
P3
Time
P2
P3
Time
2
2-865

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents