Kuhnke Electronics Instruction Manual
Kuhnke Electronics Instruction Manual
Kuhnke Electronics Instruction Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Function Libraries<br />
4.5.16 Opening, Writing, Closing a File<br />
"MMC_OWC" lets you write data to a file. The function will<br />
open the file, write the set number of data bytes, and<br />
close the file again afterwards. Users therefore need not<br />
worry about the file handle.<br />
Parameter Type Value Explanation<br />
name DWORD ADR(file name)<br />
mode UINT<br />
0 create and open file<br />
1 read access to file<br />
2 read/write access to file<br />
buff DWORD pointer to write buffer<br />
count INT<br />
pSysInfo POINTER<br />
TO STRING<br />
error INT<br />
finished BOOL<br />
start BOOL<br />
number of bytes to be<br />
read<br />
ADR(systeminfo)<br />
0 no error<br />
? error code<br />
TRUE function performed<br />
FALSE executing function<br />
TRUE start function<br />
FALSE stop function<br />
'mode' constant defined Type Value<br />
MMC_OPENMODE_CREATE 0<br />
MMC_OPENMODE_READ UINT 1<br />
MMC_OPENMODE_READ_WRITE<br />
MMC_OPENMODE_CREATE will delete a file of the<br />
same name.<br />
110 E 700 GB<br />
2