Type: |
Enumeration |
Available as of: |
V1.0.4.0 |
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.
Name |
Data type |
Value |
Description |
---|---|---|---|
UINT |
0 |
Default value: initial state. |
|
UINT |
1 |
Change the working directory. |
|
UINT |
2 |
Download file from the external FTP server to a specified local directory. |
|
UINT |
3 |
Upload file to the external FTP server. |
|
UINT |
4 |
Rename a file or a directory on the external FTP server. |
|
UINT |
5 |
Delete a file on the external FTP server. |
|
UINT |
6 |
Delete a directory on the external FTP server. NOTE: The directory on the external FTP server must be empty. |
|
UINT |
7 |
Create a new directory on the external FTP server. |
|
UINT |
8 |
List the content of the selected directory. |
oFB_FtpClient