PLC library

Overview

The TcFTPClient.lib library contains function blocks to control and configure the TwinCAT FTP Client.

Function Blocks

Name

Description

FB_GetStateTcFTPClient

Call state information.

 

 

FB_FTP_HostResolve

Resolves the given host name to an IPv4 address

FB_FTP_Open

Open a connection to a FTP Server. (Passive)

FB_FTP_OpenEx

Open a connection to a FTP Server. (Passive / Active)

FB_FTP_Close

Close a connection to a FTP Server.

FB_FTP_CloseAll

Close all connections to a FTP Server

FB_FTP_Info

Get information from all opened connections

 

 

FB_FTP_FileUpload

Copy a file to a FTP Server. Use an existing connection.

FB_FTP_FileUploadEx

Copy a file to a FTP Server.

FB_FTP_FileDownload

Copy a file from a FTP Server to an ADS device. Use an existing connection.

FB_FTP_FileDownloadEx

Copy a file from a FTP Server to an ADS device.

 

 

FB_FTP_DirCreate

Create a directory on the FTP Server

FB_FTP_DirRemove

Remove a directory on the FTP Server

 

 

FB_FTP_FileList

Select all files and folder which pass the searchmask.

FB_FTP_FileListEx

Select all files and folder with additional information which pass the searchmask.

FB_FTP_FileExist

Find out if the searched file exist on the FTP Server.

FB_FTP_FileRemove

Remove a file from the FTP Server.

FB_FTP_FileRename

Rename a file on the FTP Server.

Functions

Name

Description

F_GetVersionTcFTPClient

Call version information.

Data Types

Name

Description

T_HFTP

Handle of the FTP Server.

ST_FTP_ConnInfo

Information of existing FTP connections.

ST_FTP_FileDetails

Returning file information of the FTP "LIST" command

E_FTP_ConnMode

FTP connection modes (Passiv / Aktiv).