Settings At Programming - Mitsubishi L02CPU User Manual

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

Advertisement

10.2.2

Settings at programming

This function executes the file transfer function using the following instructions.
Instruction
SP.FTPPUT
SP.FTPGET
(1) Wild card specification
For an FTP command which can be used for multiple files, specify the file name and extension using a wild card
character (* or ?).
Symbol
*
?
The following specification methods result in an error.
• Two or more asterisks "*" are used in the file name (before the period) or extension. (Example: "*abc*.csv")
• "*" and "?" are both used in the file name (before the period) or extension. (Example: "*ab?.csv")
The number of files that can be transferred with the wild card specification is determined by the total size of the
file names of the specified files.
Specified files can be transferred when the number of these files and the total size of the file names satisfy the
following expression.
If a file transfer function instruction is executed when the following expression is not satisfied, the instruction is
completed with an error.
(Fi+NM) + 1 < 65536
● If an error occurs in sending or receiving a file included in the target files during execution of the file transfer function
instruction, the transfer is stopped at the time of error occurrence. (Remaining files are not transferred.)
If an error occurs during file transfer, re-execute the file transfer.
● If the same file name exists in the destination while "Do not overwrite" is specified in the file overwrite setting, none of the
specified files including the relevant file are transferred.
● A file whose file path exceeds 255 characters is not transferred even if it satisfies the wild card specification conditions.
(2) Automatic creation of folder
If file transfer is executed by specifying a folder that does not exist as the transfer destination, the specified folder
is automatically created in the destination and files are transferred to the folder.
Sends the specified file to the FTP server.
Obtains the specified file from the FTP server.
All file names each including an arbitrary character string (including none) from the position where "*" is specified are
targeted.
All file names each including an arbitrary character (excluding none) at the position where "?" is specified are targeted.
("?" can be used multiple times.)
CHAPTER 10 FILE TRANSFER FUNCTION (FTP CLIENT)
Description
Description
N: Total number of files that match the wild card specification
Fi: Total size of the file names that match the wild card
specification
M: 9 bytes (fixed)
Reference
Page 146, Section 10.3.1
Page 152, Section 10.3.2
143
10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents