2-837
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FilePuts
Create a text string for one line.
Write a text string for one line to the file.
Execute the FileClose instruction after 100 lines are written.
Inline ST
1 // Processing after error end.
2 ;
Inline ST
1 // Processing after normal end.
2 ;
Inline ST
1 // Processing after error end.
2 ;
Inline ST
Increment the line index.
Operating
FileOpen_instance.Done
FilePuts_instance.Busy
Fid
StrDat
Operating
FileClose_instance.Error
// Concatenate text strings 0 to 8.
// Concatenate text string 9 and add CR+LF.
// CR+LF
1 StrDat:=’‘;
2
3
4 FOR Index0:=INT#0 TO INT#8 BY INT#1 DO
5 Temp :=INT_TO_STRING(Dat[Index1, Index0]);
6 Temp :=CONCAT(In1:=Temp, In2:=’,’);
7 StrDat:=CONCAT(IN1:=StrDat, In2:=Temp);
8 END_FOR;
9
10
11 Temp :=INT_TO_STRING(Dat[Index1, Index0]);
12 Temp :=CONCAT(In1:=Temp, In2:=’$r$l’);
13 StrDat:=CONCAT(In1:=StrDat, In2:=Temp);
Operating
FileOpen_instance.Done
FilePuts_instance.Busy
Operating
FilePuts_instance.Done
Operating
FileClose_instance.Done
FilePuts_instance.Error
Index1
Index1
INT#99
Fid
FileClose_instance.Busy
FileClose_instance.Busy
FilePuts
Execute Done
FileID Busy
In Error
ErrorID
FilePuts_instance
Inc
EN ENO
InOut
>
EN
In1
In2
FileClose
Execute Done
FileID Busy
Error
ErrorID
FileClose_instance
1
1