38.9.4.21 Read CF Card file (define file type)
Function to read the file contents of the file to save to CF
Card. File you can read are limited to the file type defined in
pReadFileType.
Function Name
INT WINAPI
EasyFileReadCard(LPCSTR sNodeName, LPCSTR pReadFileType, WORD
wReadFileNo, LPCSTR sWriteFileName, DWORD* odwFileSize);
Argument
sNodeName: The
station name is fixed as #WinGP.
pReadFileType: File
type of the file to read from the CF Card (see Special Items)
wReadFileNo: File
number of the file to read from the CF Card
sWriteFileName: File
name and path for saving the CF Card file
odwFileSize: File
size of the file read from the CF Card
Return value (NULL)
Normal End: 0
Problem: Error code
Special Item
The supported file types are as follows. You can only read items
stored in the defined CF Card folder.
Data Class
|
File Type
|
Folder
|
Recipe (Filing Data)
|
ZF or F
|
FILE
|
Recipe (CSV Data)
|
ZR
|
FILE
|
Image Screen
|
ZI or I
|
DATA
|
Sound Data
|
ZO or O
|
DATA
|
GP-PRO/PB III for Windows Line Chart data
(compatible)
|
ZT
|
TREND
|
GP-PRO/PB III for Windows Sampled data
(compatible)
|
ZS
|
TREND
|
Alarm1
|
Z1 or ZA
|
ALARM
|
Alarm2
|
Z2 or ZH
|
ALARM
|
Alarm3
|
Z3 or ZG
|
ALARM
|
Alarm4 to 8
|
Z4 to Z8
|
ALARM
|
GP-PRO/PB III for Windows Logging data
(compatible)
|
ZL
|
LOG
|
Capture data
|
CP
|
CAPTURE
|
Sampling Group 1 to 64 data
|
ZS1 to ZS64
|
SAMP01 to SAMP64
|
|