10-13
10 FTP Server
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
10-5 Using FTP Commands
10
10-5-2 Using the Commands
• The root directory (/) is the directory that is used when you log onto the built-in EtherNet/IP port.
The MEMCARD1 directory does not exist if an SD Memory Card is not inserted in the CPU Unit or
if the SD Memory Card power indicator on the CPU Unit is not lit.
Format
type data_type
Function
• Specifies the file data type.
• The following data types are supported:
ascii: Files are transferred as ASCII data.
binary (image): Files are transferred as binary data. The CPU Unit handles binary files. Use the
type command to specify binary transfers before you upload or download files. File contents can-
not be guaranteed if transferred as ASCII data.
• The default file type is ASCII.
Format
get file_name [receive_file_name]
Function
• Transfers the specified remote file from the SD Memory Card to the local host.
• A receive file name can be used to specify the name of the file in the local host.
Format
mget file_name
Function
• You can include wildcards (*) in the file name to transfer multiple remote files from the SD Memory
Card to the local host.
Format
put file_name [destination_file_name]
Function
• Transfers the specified local file to the remote host (to the SD Memory Card).
• You can specify the destination file name to specify the name the file is stored under on the SD
Memory Card.
• Any existing file with the same name in the remote host (on the SD Memory Card) is overwritten
by the contents of the transferred file.
type
get
mget
put