Cicode Programming Reference > Cicode Function Categories > FTP Functions Introduction > FTPOpen

FTPOpen

Connects to an FTP server. This function can only be used on the Internet Display Client.

Syntax

FTPOpen( [sIPAddress] [, sUsername] [, sPassword] )

sIPAddress:

The TCP/IP address of the FTP server you wish to connect to (for example, 10.5.6.7 or plant.yourdoman.com). If you do not specify an IP address, the CitectSCADA FTP server running on the Internet Server you are connected to will be used.

sUsername:

The FTP login username. If you omit both the username and IP address, the CitectSCADA FTP password will be used. If you omit just the username, an anonymous logon will occur.

sPassword:

The FTP server password. If you wish to log on anonymously or you wish to log on to the CitectSCADA FTP server, do not specify a password, here.

Return Value

A handle to the FTP server otherwise -1 if an error occurs (for example, the server cannot be found).

Related Functions

FTPClose

See Also

FTP Functions