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 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.
 Disabling a Program Executed After the PrgStop Instruction
• In this example, there are three programs, P1, P2, and P3, in the same task.
• P3 is executed in task period 1.
• The PrgStop instruction with P3 specified is executed in P2 of task period 2.
• P3 is executed after P2, so P3 is disabled from task period 2.
• Thereafter, P3 remains disabled even if you do not execute the PrgStop instruction with P3 speci-
fied.
Task period 1
P1
P2
Programs
 Disabling a Program Executed Before the PrgStop Instruction
• In this example, there are three programs, P1, P2, and P3, in the same task.
• P1 is executed in task period 1.
• The PrgStop instruction with P2 specified is executed in P2 of task period 1.
• P1 is executed before P2, so P1 is disabled from task period 2.
• Thereafter, P1 remains disabled even if you do not execute the PrgStop instruction with P1 speci-
fied.
Task period 1
P1
P2
PrgStop('P1')
P1 is executed before P2, so P1 is disabled
from the next task period after the one in
which the PrgStop instruction is executed.
 Disabling the Program That Includes the PrgStop Instruction
• In this example, there are two programs, P1 and P2, in the same task.
• P2 is executed in task period 1.
• The PrgStop instruction with P2 specified is executed in P2 of task period 1.
• P2 is executed to the end of the program in task period 1.
• P2 is disabled from task period 2.
• Thereafter, P2 remains disabled even if you do not execute the PrgStop instruction with P2 speci-
fied.
P1
The program is executed to the
end in the task period in which the
PrgStop instruction is executed.
2-874
Task period 2
P1
P2
P3
P3
PrgStop('P3')
P3 is executed after P2, so P3 is disabled
from the same task period as the one in
which the PrgStop instruction is executed.
Task period 2
P2
P3
P3
Task period 1
Task period 2
P2
P1
P2
PrgStop('P2')
The program is disabled from the next
task period after the one in which the
PrgStop instruction is executed.
Task period 3
P1
P2
P3
Time
Task period 3
P2
P3
Time
Task period 3
P1
P2

NY-series Instructions Reference Manual (W560)

Time

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents