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

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

Advertisement

ST
Internal
Variables
External
Variables
// Detect when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE) AND (_Card1Ready=TRUE) ) THEN
OperatingStart:=TRUE;
Operating
END_IF;
LastTrigger:=Trigger;
// Initialize FileReadVar instruction.
IF (OperatingStart=TRUE) THEN
FileReadVar_instance(
Execute
ReadVar
OperatingStart:=FALSE;
END_IF;
// Execute FileReadVar instruction.
IF (Operating=TRUE) THEN
FileReadVar_instance(
Execute
FileName :='File1.dat', // File name
ReadVar
IF (FileReadVar_instance.Done=TRUE) THEN
// Processing after normal end.
Operating:=FALSE;
END_IF;
IF (FileReadVar_instance.Error=TRUE) THEN
// Processing after error end.
Operating:=FALSE;
END_IF;
END_IF;

NY-series Instructions Reference Manual (W560)

Variable
Data type
Trigger
BOOL
LastTrigger
BOOL
OperatingStart
BOOL
Operating
BOOL
ARRAY[0..999]
Var1
OF INT
FileReadVar_instance
FileReadVar
Variable
_Card1Ready
:=TRUE;
:=FALSE,
:=Var1);
:=TRUE,
:=Var1);
// Variable to read
Initial
value
FALSE
Execution condition
Value of Trigger from previous task
FALSE
period
FALSE
Processing started.
FALSE
Processing
[1000(0)]
Variable to read
Data type
Comment
BOOL
SD Memory Card Ready Flag
2 Instruction Descriptions
Comment
2-1253
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents