ET_FtpCommand

Overview

Type:

Enumeration

Available as of:

V1.0.4.0

Description

The enumeration ET_FtpCommand defines the commands which can be executed by the FB_FtpClient function block via i_etCommand.

The command names are similar to the FTP commands defined in IETF RFC 959.

NOTE: Commands to handle a login are not included in the enumeration ET_FtpCommand. The user credentials (Username, Password) are used to establish a connection to the specified host automatically after the function block has been enabled. Port 21 is the default, monitored port for the FTP server. In order to modify these credentials, disable the function and re-enable it with the new information. For more information, refer to ST_Credentials.

Enumeration Elements

Name

Data type

Value

Description

NoCommand

UINT

0

Default value: initial state.

ChangeWorkingDirectory

UINT

1

Change the working directory.

Retrieve

UINT

2

Download file from the external FTP server to a specified local directory.

Store

UINT

3

Upload file to the external FTP server.

Rename

UINT

4

Rename a file or a directory on the external FTP server.

Delete

UINT

5

Delete a file on the external FTP server.

RemoveDirectory

UINT

6

Delete a directory on the external FTP server.

NOTE: The directory on the external FTP server must be empty.

MakeDirectory

UINT

7

Create a new directory on the external FTP server.

List

UINT

8

List the content of the selected directory.

Used By

oFB_FtpClient