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
// Start sequence when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE) AND (_Card1Ready=TRUE) ) THEN
OperatingStart:=TRUE;
Operating
END_IF;
LastTrigger:=Trigger;
// Initialize instance.
IF (OperatingStart=TRUE) THEN
FileOpen_instance(Execute:=FALSE);
FileSeek_instance(Execute:=FALSE);
FileRead_instance(
Execute:=FALSE,
ReadBuf:=InDat[0]);
FileClose_instance(Execute:=FALSE); // Initialize instance.
Stage
OperatingStart:=FALSE;
END_IF;
// Execute instructions.
IF (Operating=TRUE) THEN
CASE Stage OF
1 :
FileOpen_instance(
IF (FileOpen_instance.Done=TRUE) THEN
END_IF;
IF (FileOpen_instance.Error=TRUE) THEN
END_IF;

NY-series Instructions Reference Manual (W560)

Variable
Trigger
BOOL
LastTrigger
BOOL
OperatingStart
BOOL
Operating
BOOL
ARRAY[0..999]
InDat
OF BYTE
Stage
INT
Fid
DWORD
FileOpen_instance
FileOpen
FileSeek_instance
FileSeek
FileRead_instance
FileRead
FileClose_instance
FileClose
Variable
_Card1Ready
:=TRUE;
:=INT#1;
// Open file.
Execute:=TRUE,
FileName:='ABC.bin',
// File name
Mode
:=_READ_EXIST, // Read file.
FileID
=>Fid);
// File ID
Stage:=INT#2;
// Normal end
Stage:=INT#99;
// Error end
Data type
Initial value
FALSE
FALSE
FALSE
FALSE
[1000(16#0)]
0
16#0
Data type
BOOL
SD Memory Card Ready Flag
// Initialize instance.
// Initialize instance.
// Initialize instance.
// Dummy
2 Instruction Descriptions
Comment
Execution condition
Value of Trigger from previous task
period
Processing started.
Processing
Read data
Stage change
File ID
Comment
2
2-1271

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents