Configure periodic file transfer via FTP
Combine
FTPClientLogic
and PeriodicActionLogix
to automate the upload and download of files and folders in a periodic and non-interactive manner. You can use this FTP server configuration to automate file and folder transfers between devices.- Create the folderC:/FtpServerand inside that folder create the filemyDocument.txt.
- SetC:/FtpServeras the starting folder on the FTP server.
- Start the FTP server.
- To use the FTP server that exists inTemplate Libraries, see FTP Server configuration, and configure the connection parameters to the FTP server in theFTPClientLogicscript.The files and folders to be transferred are already configured throughFileTransferDownloadandFileTransferUpload.The pages in the project include:
- FTP client configuration. Allows you to change the configuration parameters of the FTP client. TheOverwriteExistingItemsswitch defines whether an existing file must be overwritten.
- Transfer files. Shows how to connect and disconnect the FTP client using theConnectFTPClientandDisconnectFTPClientmethods and how to download and upload using theDownloadItemandUploadItemmethods.
- Periodic backup method. Allows you to enable periodic downloading of a given file using thePeriodicActionLogicscript. The script is configured withPeriodset at 30 seconds andActionset toDownloadItem. See Download example.
file transfer
backup
Provide Feedback