38.9.4.24 Write to CF Card file (define type)

Function to save the file contents of the file to the CF Card. Files you can save are limited to the file type specified in "sWriteFileType."

Function Name

INT WINAPI EasyFileWriteCard(LPCSTR sNodeName, LPCSTR pReadFileName, LPCSTR sWriteFileType, WORD wWriteFileNo);

Argument

sNodeName: The station name is fixed as #WinGP.

pReadFileName:The file name (full path) of the source file to save to the CF Card

sWriteFileType: Type of files to write in CF Card (SeeSpecial Items)

wWriteFileNo: File number of file to save to 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 written to.

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 write to files in subfolders (for example: "ALARM\00000").