Example for Outputting a File List
IM 04L51B01-17EN
Appendix 3 Output Flow Chart of External Storage Medium Files and File Lists
The flow chart for outputting the list of files in the DATA0 directory on the external storage
medium is shown below.
START
Send command
FMedia,DIR,/DRV0/DATA0/,0,-1
Receive response
Are there more
file lists?
(1)
Obtain the number
of received files
(2)
Compute
the unread position.
(3)
Send command
FMedia,DIR,/DRV0/DATA0/,[unread position],-1
Receive response
(1)
If there are no more files,
EA[crlf]EN[crlf] is output.
(2)
Count the number of lines in the
output file list.
(3)
Sum the number of lines in the file lists
to compute the unread position.
End
1
2
App
App-5