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