Omron NY532-5400 Reference Manual page 1347

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

Advertisement

Create a text string for one line.
Operating FileOpen_instance.Done
FileClose_instance.Busy
1
Write a text string for one line to the file.
Operating FileOpen_instance.Done
Increment the line index.
Operating FilePuts_instance.Done
Execute the FileClose instruction after 100 lines are written.
Operating
>
EN
Index1
In1
In2
INT#99
Operating FileClose_instance.Done
Contents of Inline ST
StrDat:='';
// Concatenate text strings 0 to 8.
FOR Index0:=INT#0 TO INT#8 BY INT#1 DO
Temp
Temp
StrDat:=CONCAT(In1:=StrDat, In2:=Temp);
END_FOR;
// Concatenate text string 9 and add CR+LF.
Temp
:=INT_TO_STRING(Dat[Index1, Index0]);
Temp
:=CONCAT(In1:=Temp, In2:='$r$l');
StrDat:=CONCAT(In1:=StrDat, In2:=Temp);
NY-series Instructions Reference Manual (W560)
FilePuts_instance.Busy
Inline ST
Note: The contents of the inline ST are given below.
FilePuts_instance.Busy
Inc
EN
ENO
InOut
Index1
Fid
FileClose_instance.Error
Inline ST
1 // Processing after normal end.
2 ;
:=INT_TO_STRING(Dat[Index1, Index0]);
:=CONCAT(In1:=Temp, In2:=',');
1
FilePuts_instance
FileClose_instance.Busy
Execute
Fid
FileID
StrDat
In
FilePuts_instance.Error
FileClose_instance
FileClose
Execute
Done
FileID
Busy
Error
ErrorID
Inline ST
1 // Processing after error end.
2 ;
// CR+LF
2 Instruction Descriptions
FilePuts
Done
Busy
Error
ErrorID
Inline ST
1 // Processing after error end.
2 ;
2-1295
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents