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
2 :
FileSeek_instance(
IF (FileSeek_instance.Done=TRUE) THEN
END_IF;
IF (FileSeek_instance.Error=TRUE) THEN
END_IF;
3 :
FileRead_instance(
IF (FileRead_instance.Done=TRUE) THEN
END_IF;
IF (FileRead_instance.Error=TRUE) THEN
END_IF;
4 :
FileClose_instance(
IF (FileClose_instance.Done=TRUE) THEN
END_IF;
IF (FileClose_instance.Error=TRUE) THEN
END_IF;
99 :
Operating:=FALSE;
END_CASE;
END_IF;
2-1272
// Seek file.
Execute:=TRUE,
FileID :=Fid,
// File ID
Offset :=DINT#2,
// File position indicator goes to second byte from the beginning.
Origin :=_SEEK_SET);
Stage:=INT#3;
// Normal end
Stage:=INT#99; // Error end
// Read file.
Execute :=TRUE,
FileID :=Fid,
// File ID
ReadBuf :=InDat[0],// Read buffer
Size
:=UINT#4); // Number of elements to read: 4 bytes
Stage:=INT#4;
// Normal end
Stage:=INT#99;
// Error end
// Close file.
Execute:=TRUE,
FileID :=Fid);
// File ID
Operating:=FALSE; // Normal end
Stage:=INT#99;
// Error end
// Processing after error end.

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents