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
The relation between isFirstRun and P_First_Run is shown in the following table. The behavior of
P_First_Run depends on whether the specified program is disabled or already enabled.
Value of isFirstRun
TRUE
FALSE
The following figures show examples of the relation between isFirstRun and P_First_Run.
 When the Value of isFirstRun Is TRUE and the Program Is Disabled
The value of P_First_Run changes to TRUE for one task period when execution of the program
starts. Then, the value of P_First_Run changes to FALSE.
P2.P_First_Run
 When the Value of isFirstRun Is TRUE and the Program Is Already Enabled
The value of P_First_Run remains FALSE even if the PrgStart instruction is executed.
P2.P_First_Run
 When the Value of isFirstRun Is FALSE
The value of P_First_Run remains FALSE even when execution of the program starts.
P2.P_First_Run
Notation Example
The following example shows the notation for specifying enabling program P1.
LD
2-870
Status of the program
Disabled.
Already enabled.
---
Task period 1
P1
P2
TRUE
FALSE
Changes to TRUE for the task period in which P2 execution starts.
P2 is already enabled before execution of the PrgStart instruction.
Task period 1
P1
P2
TRUE
FALSE
Remains FALSE.
Task period 1
P1
P2
TRUE
FALSE
Remains FALSE even if P2 execution starts.
abc
PrgStart
EN
'P1'
PrgName
TRUE
isFirstRun
Value of P_First_Run
Changes to TRUE for one task period when the program is
executed. Changes to FALSE in the following task period.
Remains FALSE.
Remains FALSE.
Task period 2
Task period 3
P1
P2
P1
PrgStart('P2')
Task period 2
Task period 3
P1
P2
P1
PrgStart('P2')
Task period 2
Task period 3
P1
P2
P1
PrgStart('P2')
ST
abc:=PrgStart('P1', TRUE);

NY-series Instructions Reference Manual (W560)

P2
Time
P2
Time
P2
Time

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents