Data type: ftp_data, Data type declaration, Code example – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 168

Communications Toolbox: DataTypes
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
155
Data Type: FTP_Data
Data Type Declaration
TYPE
FTP_Data : STRUCT
Username : YC_STRING32;
(* Username to log in to the FTP server *)
Password : YC_STRING32;
(* Password to log in to the FTP server *)
LocalIP : YC_STRING16;
(* Local IP of the controller *)
FTPDomain : YC_STRING128;
(* The domain name of the FTP server that will be resolved via DNS *)
FTPIP : YC_STRING16;
(* The IP of the FTP server if a domain is not known or set *)
FTPPort : UINT;
(* The port to connect to the FTP server through, default 21 *)
DNSIP : YC_STRING16;
(* The DNS lookup server IP *)
DNSPort : UINT;
(* The DNS port to connect through, default 53 *)
Timeout : TIME;
(* Timeout for connecting to the FTP server or data connection, default 5s *)
END_STRUCT;
END_TYPE
Code Example
ftpdata.LocalIP := '192.168.1.1';
ftpdata.FTPDomain := 'ftp.example.com';
ftpdata.DNSIP := '8.8.8.8';
ftpdata.Username := 'mp2300';
ftpdata.Password := 'securepassword';