beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 264

background image

F

TP

P

UT

F

ILE

(

SERVER

,

LOC

,

REM

,

DELETE

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

248

F

TP

P

UT

F

ILE

(

SERVER

,

LOC

,

REM

,

DELETE

)

A

RGUMENT

T

YPE

D

ESCRIPTION

server

int

FTP connection number, always 0

loc

cstring

Local file name on the CompactFlash card

rem

cstring

Remote file name on the FTP server

delete

int

If true, the source will be deleted after the transfer,
otherwise, it will remain on the source disk.

D

ESCRIPTION

This function will transfer the defined file from the Gateway CompactFlash card to the FTP
server. It will return true if the transfer is successful, false otherwise. The source and
destination file name can be different. The remote path is relative to the FTP server setting
root path (See Synchronization Manager for details).

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int.

E

XAMPLE

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

In this example, the file Report.txt will be sent to the FTP server and deleted from the
CompactFlash Card upon success of the transfer.