1130
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.5 File Transfer Function Instructions
• This instruction retrieves files on the FTP server, which are specified by (s2), to the folder path of the CPU module, which is
specified by (s3). The CPU module opens a connection with the FTP server set in the module parameters ("FTP Client
Settings") at execution of the instruction, and closes a connection after retrieving files. For details on the parameter setting,
refer to the following.
MELSEC iQ-R Ethernet User's Manual (Application)
• The total number of files to be transferred by the SP.FTPGET instruction is stored in (s1)+2, and the number of transferred
files is stored in (s1)+3.
• Specify the folder path where the transfer source files are stored on the FTP server, and the file name (including an
extension) in (s2) in Unicode string. The maximum number of characters used in a file path is 255. The specified file path
shall be a relative path from home directory of the FTP server. Use one-byte '\' or '/' as a delimiter to specify the boundary of
the folder path or the file name.
*1
*1 Note that '\' cannot be used as a delimiter for some FTP servers.
(1)Use one-byte '\' or '/' as a delimiter of the folder path or file.
*1
(2)The specified file name should include an extension.
255 characters maximum
(2)(1)
[ … "\database1\recipe\recipe_db.txt" … ]
0000H
(s2)+n
(s2)+2
(s2)+1
(s2)
b15
·
b0
1st character
2nd character
3rd character
255 characters
maximum
Null character (end of string)
n + 1st character