EasyManua.ls Logo

Svantek SVAN 971 - Function #D - Read; Write Data Files from External Memory (SD-CARD)

Svantek SVAN 971
220 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SVAN 971 User Manual Appendixes
106
A.6 FUNCTION #D READ / WRITE THE DATA FILES FROM THE EXTERNAL MEMORY (SD-CARD)
<disk> logical disk number:
0 SD-card,
1 USB Disk (not implemented),
2 Internal Memory (not implemented)
<address> directory address (cluster numer) for internal memory 0
<offsetB> offset the first byte to read (an even number).
<nB> number of bytes to read (an even number)
<data> binary data.
<count> directory size in bytes
<name> file name in format XXXXXXXX.YYY (XXXXXXXX file name, YYY- file name
extension)
<dirName> directory name
<nBwr> number of bytes to write
1) #D,c,?; this function returns the list of available disks in format:
#D,c,<disk1>[,<disk2>[,<disk3>]];
2) #D,d,?; this function returns the parameters of the working directory in format:
#D,d,<disk>,<address>,<count>;
3) #D,d,<disk>,<address>; this function enables to change the working directory
Response:
#D,d; - command was executed
#D,d,?; - command cannot be executed
4) #D,r,<disk>,<address>,<offsetB>,<nB>; function enables the user to read the file (except of
internal memory):
Response:
#D,r,<disk>,<address>,<offsetB>,<nB>; [<data>]
5) #D,w,<name>,<nBwr>;<data> function enables the user to write the file to working directory:
Response:
#D,w; - command was executed
#D,w,?; - command cannot be executed
6) #D,e,<name>; function enables the user to delete the file in working directory:
Response:
#D,e; - command was executed
#D,e,?; - command cannot be executed
7) #D,e; function enables the user to delete all files in in working directory:

Table of Contents

Related product manuals