05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUNCTION REFERENCE<br />

FTPGETFILE(SERVER, LOC, REM, DELETE)<br />

FTPGETFILE(SERVER, LOC, REM, DELETE)<br />

ARGUMENT TYPE DESCRIPTION<br />

server int FTP connection number, always 0<br />

loc cstring Local file name on the CompactFlash card<br />

rem cstring Remote file name on the FTP server<br />

delete int If true, the source will be deleted after the transfer,<br />

otherwise, it will remain on the source disk.<br />

DESCRIPTION<br />

This function will transfer the defined file from the FTP server to the operator interface<br />

CompactFlash card. It will return true if the transfer is successful, false otherwise. The source<br />

and destination file name can be different. The remote path is relative to the FTP server<br />

setting root path (See Synchronization Manager for details).<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

Success = FtpGetFile(0, “/Recipes.csv”, “/Recipes/Rec001.csv”, 0);<br />

In this example, the file Recipes.csv will be transferred from the FTP server to the<br />

CompactFlash Card. The original file will not be deleted from the PC server.<br />

REVISION 6 PAGE 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!