FTP JavaScript Interface
ftpConfig
ftpCONFIG (IPAddress, Port, Authentication, UserName, Password)
Set the FTP parameters to use on next FTP calls
Parameter Description
IPAddress FTP server IP Address.
Port Port for FTP connection (default = 21).
Authentication Select the FTP authentication to use:
l Normal (Username and password required)
l Anonymous
UserName Username of the remote FTP account
Password Password of the remote FTP account
ftpGET
ftpGET (remoteFileName, localFileName, [callback])
Download files from a remote FTP server
Parameter Description
remoteFileName File name on the remote FTP server to download (source)
localFileName File name on local HMI device (destination)
callback Function that will be call at the end of the FTP transfer
ftpPUT
ftpPUT (remoteFileName, localFileName, [callback])
Upload files to a remote FTP server
Parameter Description
remoteFileName File name on the remote FTP server to download (source)
localFileName File name on local HMI device (destination)
callback Function that will be call at the end of the FTP transfer
Example:
project.ftpCONFIG("192.168.0.200", "21", "true", "admin", "admin");
HMWIN Studio |User Manual| v206 (2017-06-30) | EN| © 2014-2017 Panasonic Electric Works Europe AG
123
10 Actions