![Omron Sysmac NX1P2-10 1 Series User Manual Download Page 425](http://html1.mh-extra.com/html/omron/sysmac-nx1p2-10-1-series/sysmac-nx1p2-10-1-series_user-manual_1633435425.webp)
12-3 FTP Client Application Example
FTP client functionality is executed with FTP client communications instructions. This section provides
sample programming that uses the FTP client communications instructions.
This program 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.
Built-in EtherNet/IP port
Ethernet
FTP server
FTP client
IP address: 192.168.250.2
UDP port number: 21
User name: FtpUser
Password: 12345678
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 pa-
rameters to connect to the FTP server are given in the following table.
Parameter
Value
IP address
192.168.250.2
UDP port number
21
User name
FtpUser
Password
12345678
The following procedure is used.
1
The BackupToMemoryCard instruction is used to save backup-related files of a NJ/NX-series
Controller 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 performed if the operation is normally completed. Error end process-
ing is performed if an error occurs.
LD
Internal
variables
Variable
Data type
Initial value
Comment
FTPPutFile_in-
stance
FTPPutFile
Instance of FTPPutFile in-
struction
FTPAddr
_sFTP_CON-
NECT_SVR
(Adr := '', PortNo := 0, User-
Name := '', Password := '')
Connected FTP server
settings
12 FTP Client
12-9
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
12-3
FTP Client Application Example
12
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......