Appendix 3 Output Flow Chart of External Storage
Example for Outputting File aaaa.dtd
App-4
Medium Files and File Lists
The flow chart for outputting file aaaa.dtd in the DATA0 directory on the external storage
medium is shown below.
START
Send command
FMedia,GET,/DRV0/DATA0/aaaa.dtd,0,-1
Receive response
Is there more data?
(1)
Obtain the number
of received bytes.
(2)
Compute
the unread position.
(3)
Send command
FMedia,GET,/DRV0/DATA0/aaaa.dtd,[unread position],-1
Receive response
(1) If the binary header flag (bit 0) is 0,
there is more data. If it is 1, data
transmission is complete.
(2) From the data length of the binary
output common header,
obtain the number of received bytes.
(3) Sum the number of received bytes,
End
compute the unread position.
IM 04L51B01-17EN