Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Sample Programming
The following programming downloads a file from the /Recipe directory on the FTP server and stores it
in the root directory of an SD Memory Card.
The file to download is the last file in the /Recipe directory on the FTP server when the files are sorted
in ascending order of names.
FTP server
A file is downloaded from the /Recipe directory
on the FTP server.
The Controller is connected to the FTP server through an EtherNet/IP network. The settings of the
parameters to connect to the FTP server are given in the following table.
Parameter
IP address
TCP port number
User name
Password
The following procedure is used.
1
The FTPGetFileList instruction is used to get a file list from the FTP server. The following table
gives the FTP server directory name, number of files to list, sort order, and variable to store file
details.
FTP server directory name
Number of files to list
Sort order
Variable to store file details
2
The FTPGetFile instruction is used to download the last file from the file list obtained in step 1
when the list is in ascending order of names. The file is stored in the root directory on the SD
Memory Card.
3
Normal end processing is executed if all processing ends normally. Processing for an error end
is performed if an error occurs.
2-1114
IP address: 192.168.250.2
TCP port number: 21
User name: FtpUser
Password: 12345678
FTP client
Value
192.168.250.2
21
FtpUser
12345678
Item
'/Recipe'
1000
Ascending order of names
FTPFileList[]
Ethernet
Built-in EtherNet/IP port
Specification

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents