Mitsubishi L02CPU User Manual page 155

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(3) Function
• The SP.FTPGET instruction gets the specified file from the FTP server to the CPU module.
The function connects to the FTP server specified by "FTP Client Setting", and gets the file specified by
S2 S3
to the directory specified by
S2
the file.
• The function stores the total number of transfer files in "Total number of files to be processed" of
the number of files which has been transferred completely in "Number of files processed" of
(a)
(transfer file path)
S2
• In
, specify the character string beginning from the home directory of the FTP server to the file name
S2
including an extension.
• When using the FTP server function of the CPU module in place of the FTP server, specify the character
string beginning from the drive number.
• Use one-byte "\" or "/" for the delimiters of directory and file names.
• Up to 32 one-byte characters can be used in the specified string. However, up to 255 characters can be used
by specifying a device number.
-[∙∙∙ "¥CPUData¥LOG01¥ABCD.CSV" ∙∙∙]-
(1) Use ":\" or ":/" for the delimiter.
(2) The specified file name should include an extension.
• The character strings that can be specified in
and two-byte characters (Shift JIS code).
• The method of device setting in
File name specified in
• Wild cards (*, ?) can be used in file names in
• The file path in
S2
specified, it shows directly under the home directory of the FTP server. If specifying only a file name, begin
with a delimiter. For details, follow the FTP server specifications.
. The function releases the connection from the FTP server after getting
S3
Up to 32 characters
(1)
(2)
S2
is as follows.
S2
...
b15
S2
ASCII code of 2nd character
S2
+1
ASCII code of 4th character
S2
+2
ASCII code of 6th character
S2
S2
+3
ASCII code of 8th character
·
S2
+128
00
S2
is the relative path from the home directory of the FTP server. If only a file name is
CHAPTER 10 FILE TRANSFER FUNCTION (FTP CLIENT)
include one-byte letters, digits, symbols, kana characters,
...
b8
b7
ASCII code of 1st character
ASCII code of 3rd character
ASCII code of 5th character
ASCII code of 7th character
ASCII code of 255th character
H
Indicates the end of a character string.
. (
Page 143, Section 10.2.2 (1))
+2 and
S1
+3.
S1
b0
Up to 255
characters
153
10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents