38.9.4.22 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 for saving the CF Card file (full path)

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. Only files saved in the applicable folder can be read.

Data Class

File Type

Folder

Recipe (Filing Data)

ZF or F

FILE

Recipe (CSV Data)

ZR

FILE

Capture data

CP

CAPTURE

Image Screen

ZI or I

DATA

Sound Data

ZO or O

DATA

Alarm1

Z1 or ZA

ALARM*1

Alarm2

Z2 or ZH

ALARM*1

Alarm3

Z3 or ZG

ALARM*1

Alarm4 to 8

Z4 to Z8

ALARM*1

Sampling Group 1 to 64 data

ZS1 to ZS64

SAMP01 to SAMP64*1

GP-PRO/PB III for Windows Line Chart data (compatible)

ZT

TREND

GP-PRO/PB III for Windows Sampled data (compatible)

ZS

TREND

GP-PRO/PB III for Windows Logging data (compatible)

ZL

LOG

*1 When using the [Set number of files in destination folder on external storage] function on GP-Pro EX Ver.3.60 or later versions, you can also read files in subfolders (for example: "ALARM\00000").