EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R04CPU - Page 128

Mitsubishi Electric MELSEC iQ-R04CPU
416 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
126
1 FUNCTIONS
1.9 File Transfer Function (FTP server)
mdir Function Stores the detailed information (file name, date of creation, volume) of the file stored in the CPU module in the
FTP client side file as log data.
Specification format mdir "source drive name":\"destination file path name"
Example When storing the detailed information of file stored in data memory into 20120702.LOG file
mdir 4:\20120702.LOG
Caution Always specify "\" immediately after the source drive name.
Always specify the source drive name when specifying the destination file path name (FTP client side).
If the destination file path name is not specified, the file is stored with the file name determined by the FTP
client's FTP application.
The transfer destination is in the currently connected directly when FTP is started and connected.
Similar command mls
mget Function Reads a file from the CPU module.
When reading multiple files, specify the file name and extension in the file path name with wild cards (*, ?).
When reading multiple files, receive is confirmed before transferring each file.
Specification format mget "file path name"
Example When reading all files with "CSV" extension from files stored in SD memory card
mget 2:\*.CSV
Caution The read file is stored with the same file name in the FTP client side. The storage destination is in the current
connection directory when the FTP is started and connected.
mls Function Stores the file name of the file stored in the CPU module in the FTP client side file as log data.
Specification format mls "source drive name":\"destination file path name"
Example When storing the file name of file stored in SD memory card into 20120702.LOG file
mls 2:\20120702.LOG
Caution Always specify "\" immediately after the source drive name.
Always specify the source drive name when specifying the destination file path name (FTP client side).
If the destination file path name is not specified, the file is stored with the file name determined by the FTP
client's FTP application.
The transfer destination is in the currently connected directly when FTP is started and connected.
Similar command mdir
mput Function Writes the file to the CPU module.
When writing multiple files, specify the file name and extension in the file path name with wild cards (*, ?).
When writing multiple files, send is confirmed before transferring each file.
Specification format mput "source file path name"
Example When writing all files with "PRG" extension
mput*.PRG
Caution The storage destination file name is the same as the FTP client side.
The transmission destination is the data memory (drive 4 "4:\").
open Function Specifies the host name or IP address and port number on the FTP server side, and connects with the FTP
server.
Specification format open "host name" [port number]
open "IP address" [port number]
Host name: Host name set with Microsoft
Windows
hosts file
IP address: IP address of the Ethernet-equipped module side
Port number: Port number to be used (If omitted, port number 21 is used for operation)
Example 1 When specifying the host name and connecting to the FTP server
open HOST
Example 2 When specifying the IP address and connecting to the FTP server
open 192.0.1.254
Caution The IP address can be specified to create a connection when starting the FTP.
put Function Writes the file to the CPU module.
Specification format put "source file path name" [destination file path name]
Example 1 When writing the param.PRM file to the SD memory card with the same file name
put param.PRM 2:\param.PRM
Example 2 When writing the param.PRM file to the SD memory card with a different file name
put param.PRM 2:\param1.PRM
Caution If the directory is not specified with the source file path name (FTP client side), the file in the current connection
directory when the FTP server is started and connected is written.
If the destination file path name (FTP server side) is not specified, the file is transferred to the data memory
(drive 4 "4:\").
Command name Description

Table of Contents

Related product manuals