Application Example From A Host Computer - Omron CJ1W-EIP21 Operation Manuals

For nj-series cpu unit. cj-series ethernet/ip units
Hide thumbs Also See for CJ1W-EIP21:
Table of Contents

Advertisement

9 FTP Server
9-9
Application Example from a Host
Computer
The following procedure provides an example of FTP operations from a host computer. In this example,
the following assumptions are made.
• The IP address of the EtherNet/IP Unit is registered in the hosts as host name [nj].
• The FTP login name is "LogIn".
• Manufacturing results is stored in the SD Memory Card in the CPU Unit in a file that is named
RESULT.BIN.
• A processing instructions data file called PLAN.BIN already exists on the workstation.
In the following procedure, the manufacturing results file (RESULT.BIN) in the SD Memory Card in the
CPU Unit is transferred to a workstation, and then a manufacturing instructions file (PLAN.BIN) on the
workstation is transferred to the SD Memory Card in the CPU Unit. Underlined text is keyed in from the
FTP client. The workstation prompt is indicated as $ and the cursor is indicated as ■.
1
Start the FTP application and connect to the EtherNet/IP Unit.
$ ftp nj
connected to nj
220 **IPaddress** NJ501-1300 FTP server(FTP**version**)ready
Name(nj:root):
2
Enter the login name.
Name(nj:root):LogIn
331 Password required for LogIn.
Password:
230 LogIn logged in.
ftp>
3
Make sure the Memory Card is correctly inserted. The MEMCARD directory is displayed if there
is an SD Memory Card in the CPU Unit.
ftp> ls
200 PORT command successful.
150 opening data connection for ls(**IPaddress**port#**)(0 bytes).
MEMCARD
226 Transfer complete.
15 bytes received in 0 seconds(**bytes/s)
ftp>
4
Change to the MEMCARD directory.
ftp> cd MEMCARD
250 CWD command successful.
ftp>
5
Change data type to binary.
ftp> type binary
200 Type set to I.
ftp>
9-18
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
FTP started.
Enter the login name.
Enter the password.
Make sure the Memory
Card is inserted.
Change the directory.
Set binary data type.

Advertisement

Table of Contents
loading

Table of Contents