Ftp Client Application Example - Omron sysmac NX102-9 Series Owner's Manual

Machine automation controller, cpu unit built-in ethernet/iptm port
Table of Contents

Advertisement

12-3 FTP Client Application Example

All FTP client functionality is executed with FTP client communications instructions. This section pro-
vides sample programming that uses the FTP client communications instructions.
This programming executes an SD Memory Card backup and then uploads all of the backup-related
files to the /Backup/yyyy-mm-dd directory on the FTP server.
FTP server
The backup-related files are uploaded
to the /Backup/yyyy-mm-dd 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
UDP port number
User name
Password
The following procedure is used.
1
The BackupToMemoryCard instruction is used to save NJ/NX-series Controller backup-related
files to the root directory on the SD Memory Card.
2
The FTPPutFile instruction is used to upload the backup-related files to the /Backup/yyyy-mm-
dd directory on the FTP server.
The wildcard specification *.* is used to specify the names of the files to transfer.
3
Normal end processing is executed if all processing ends normally. Processing for an error end
is performed if an error occurs.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
IP address: 192.168.250.2
UDP port number: 21
User name: FtpUser
Password: 12345678
FTP client
Value
192.168.250.2
21
FtpUser
12345678
12 FTP Client
Ethernet
Built-in EtherNet/IP port
12
12-9

Advertisement

Table of Contents
loading

Table of Contents