05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

FTPPUTFILE(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 operator interface CompactFlash card to<br />

the FTP server. It will return true if the transfer is successful, false otherwise. The source and<br />

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

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

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

Success = FtpPutFile(0, “/LOGS/Report.txt”, “/Reports/Report.txt”, 1)<br />

In this example, the file Report.txt will be sent to the FTP server and deleted from the<br />

CompactFlash Card upon success of the transfer.<br />

PAGE 332<br />

http://www.redlion.net/controller

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

Saved successfully!

Ooh no, something went wrong!