![Omron CS1W-ETN01 Operation Manuals Download Page 158](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528158.webp)
7-5
Section
Using FTP Commands
146
Note
1. The current status of the FTP server can be obtained from the service status
in the words allocated to the Ethernet Unit in the CPU Bus Unit Area in the
CIO Area. The first word allocated to the Ethernet Unit is n and is computed
as follows:
n = 1500 + (25 x unit number)
FTP Status Flag
0: FTP Server free
1: FTP Server busy
2. The FTP server can handle only one command at a time.
3. Do not simultaneously write a file with the same name to the same file device
in a CPU Unit from more than one Ethernet Unit or ladder diagram program.
Exclusive control is not performed.
7-5
Using FTP Commands
This section describes the FTP commands which the host computer (FTP client)
can send to the Ethernet Unit’s FTP server. The descriptions should also apply
to most UNIX workstations, but slight differences may arise. Refer to your
workstation’s operation manuals for details.
7-5-1 Table of Commands
The FTP commands which can be sent to the Ethernet Unit are listed in the fol-
lowing table.
Command
Description
open
Connects the specified host FTP server.
user
Specifies user name for the remote FTP server.
ls
Displays the Memory Card file names.
dir
Display the Memory Card file names and details.
rename
Changes a file name.
mkdir
Creates a new directory in the working directory in the remote host.
rmdir
Deletes a new directory from the working directory in the remote
host.
cd
Changes the Ethernet Unit work directory to the specified directory.
cdup
Changes the working directory at the remote host to the parent
directory.
pwd
Displays the Ethernet Unit work directory.
type
Specifies the data type of transferred files.
get
Transfers the specified file from the Memory Card to the local host.
mget
Transfers multiple files from the Memory Card to the local host.
put
Transfers the specified local file to the Memory Card.
mput
Transfers multiple local files to the Memory Card.
delete
Deletes the specified file from the Memory Card.
mdelete
Deletes multiple files from the Memory Card.
close
Disconnects the FTP server.
bye
Closes the FTP (client).
quit
Closes the FTP (client).
•
The Ethernet Unit is considered to be the remote host and the host computer
(FTP client) is considered to be the local host.
•
A remote file is a file on the Memory Card or in EM File Memory in the CPU Unit.
A local file is one in the host computer (FTP client).