Download Pro-Server with Pro-Studio for Windows Operation - Pro

Transcript
9.1 Simple DLL (ProEasy.DLL) Function
CF Card File Delete Function (Arbitrary File Designation)
INT WINAPI EasyFileDeleteInCfCard (LPCTSTR sNodeName, LPCTSTR sFolderName, LPCTSTR
sFileName);
<Function>
Deletes the designated file on the CF Card. Delete file can be arbitrarily (freely) designated. An error will
occur if a GP77R Series unit is used with this function.
<Arguments>
sNodeName ............. Node name of GP containing the data to be deleted.
sFolderName ............ Name of the folder used when deleting the CF Card file (Max. 32 char single-byte.)
sFileName ................ Name of file to be deleted from CF Card. (Max. 8.3 format string - ********.***)
<Return value>
Executed successfully:
0
Not executed successfully: Error code (refer to the separate table)
CF Card File Delete Function (Type Designation)
INT WINAPI EasyFileDeleteCard (LPCTSTR sNodeName, LPCTSTR pDeleteFileType, WORD
wDeleteFileNo)
<Function>
Deletes the designated file on the CF Card. Files deleted are limited to those designated by “
pDeleteFileType”. An error will occur if a GP77R Series unit is used with this function.
<Arguments>
sNodeName ............. Node name of GP containing the data to be deleted.
pDeleteFileType ....... Designates the type of file to be deleted (refer to supplemental table)
wDeleteFileNo ......... No. of a file to be deleted from CF Card.
<Return value>
Executed successfully:
0
Not executed successfully: Error code (refer to the separate table)
<Supplement>
If the file does not exist and this function is performed, no error will occur and it will be completed
normally. Following 17 file types are supported.
File Type
Folder
File Type
Folder
ZF
\FILE
ZL
\LOG
ZR
\FILE
ZG
\ALARM
ZI
\DATA
ZH
\ALARM
ZO
\DATA
ZA
\ALARM
ZT
\TREND
ZC
\MRM
ZS
\TREND
CP
\CAPTURE
Z4 to Z8
\ALARM
--
--
9-27