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

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

Advertisement

Related System-defined Variables
Name
P_First_Run
P_First_RunMode
Additional Information
• Use the PrgStop instruction (page 2-873) to disable a specified program from the user program.
• Use the PrgStatus instruction (page 2-893) to read the status of a specified program from the user
program.

NY-series Instructions Reference Manual (W560)

Data
Meaning
type
First Program Period
BOOL
Flag
First RUN Period Flag
BOOL
2 Instruction Descriptions
Description
This flag is TRUE for one task period after execution
of the program starts. Otherwise it is FALSE.
However, if the value of isFirstRun is changed to
FALSE and the PrgStart instruction is executed,
P_First_Run remains FALSE even through execu-
tion of the program starts.
Use this flag to perform specific processing when
execution of a program starts.
This flag is TRUE for only one task period after the
operating mode of the CPU Unit is changed from
PROGRAM mode to RUN mode if execution of the
program is in progress.
This flag remains FALSE if execution of the program
is not in progress.
Use this flag to perform initialization when the CPU
Unit begins operation.
2
2-871

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents