597GB
FTP Output Edition (PC—FileZilla)
Documentation for the installation and configuration methods
of the controller, and CAD data can be downloaded from the
following URL.
http://www.keyence.com/xgxus
Copyright© KEYENCE CORPORATION. All rights reserved.
FTP Output Edition (PC—FileZilla) Table of Contents
Table of Contents
1. Connecting to a PC over FTP 003
1.1 Connecting Devices 003
2. Outputting Data 018
2.1 Outputting Image Data (History Images) 018
2.2 Outputting Result Data 024
(Measured Values and Judgment Values)
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
1. Connecting to a PC over FTP
This document has been created on the assumption that it will be used to check connections
with the basic configuration.
Until a connection is successfully established, configure the settings according to this document.
Thereafter, change the settings as necessary.
This chapter explains how to establish a connection between the XG-X2000 and a PC in order
to output images over FTP.
1.1 Connecting Devices
1.1.1 Wiring
Use one of the following methods to connect the devices. Use a CAT5e or higher Ethernet cable.
Connecting in a 1 to 1 Configuration
XG-X2000 PC
Ethernet
crossover cable
Connecting through a Hub
To give priority to the checking of the FTP connection, disconnect all devices other than
the XG-X2000 and the PC from the hub before establishing the connection. To connect
other devices, first configure the settings as described in this document, successfully establish
the connection, set the IP address to an appropriate value, and then connect the other devices.
XG-X2000 Hub PC
Ethernet cable Ethernet cable
Ethernet cable
Other
devices
Disconnect all devices other than the XG-X2000
and the PC. If you have to connect other devices,
exercise caution to prevent the duplication of
IP addresses.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
1.1.2 Configuring PC Settings
(1) On the PC that you will use to connect over FTP, click "Change adapter settings"
in the "Network and Sharing Center."
Windows 7
To open the Network and Sharing Center, click "Control Panel" on the
"Start menu," click "Network and Internet," and then click
"Network and Sharing Center."
Windows 10
To open the Network and Sharing Center, right-click the Start button, click
"Control Panel" on the menu that appears, click "Network and Internet," and
then click "Network and Sharing Center."
(2) Right-click "Local Area Connection," and then click "Properties."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(3) Click "Internet Protocol Version 4 (TCP/IPv4)," and then click "Properties."
(4) Click the option buttons and set "IP address" and "Subnet mask" as shown below.
(You do not have to enter items such as the default gateway.)
* Caution
Making this setting may make it impossible to connect the PC to networks
both inside and out.
Check the communication operations, and then return the settings to
their previous values if necessary.
IP address: 192.168.000.020
Subnet mask: 255.255.255.000
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(5) Download, then run "FileZilla Server."
You can download FileZilla from the following website.
Both a server and a client are available. Download the server.
https://filezilla-project.org/
(6) Click "I Agree."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(7) Click "Next" without changing anything.
(8) Click "Next" without changing anything.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(9) Click "Next" without changing anything.
(10)Click "Install" without changing anything.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(11)When the installation is complete, click "Close."
(12)Check that the value entered for "Host" is "localhost" or "127.0.0.1."
After you have checked this setting, click "Connect" without changing anything.
If "Host" is a value other than "localhost" or "127.0.0.1," change this value
to "localhost," and then click "Connect."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(13)Click "Users" on the "Edit" menu.
(14)Click "Add."
(15)Enter the name of the user to use in FTP communication, and then click "OK."
(Here, we will add the user "admin.")
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(16)On the "Users" screen, check that the user you entered in step (8) has been added,
and then click "Shared folders."
(17)Click "Add."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(18)Select the folder on the PC in which the data output from the XG-X will be saved.
(Here, select the C drive.)
If you are selecting a folder to use as the save destination, use only
alphanumeric characters to specify the folder path.
If the folder path includes any other types of characters, the FTP connection
between the XG-X2000 and the PC may fail.
(19)After the folder is added, select all the check boxes shown below, and then click "OK"
to finish configuring the settings.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
1.1.3 Configuring XG-X2000 Settings
Configure the XG-X2000 to enable a connection to a PC over FTP.
(1) At the top of the setup mode screen, click "Global," point to "Communications & I/O,"
and then click "Ethernet (TCP/IP)."
(2) Check that "IP address" and "Subnet mask" are the values shown below, and then click "OK."
IP address: 192.168.000.010
Subnet mask: 255.255.255.000
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(3) Click "Utilities" at the top of the setup mode screen.
(4) Click the "Image Archive Settings" icon to open the Image Archive Settings screen.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(5) Switch "Output Location" to "FTP," and then click "Settings."
(6) Click "FTP Settings."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(7) Enter the IP address set in step (4) under "1.1.2 Configuring PC Settings" into "Server IP Address."
Enter the user name set in step (15) under "1.1.2 Configuring PC Settings" into "User ID."
If necessary, enter an appropriate character string into "Password."
(Here, the password has not been set in "1.1.2 Configuring PC Settings," so you do not need to
enter the password.)
When you are finished entering the settings, click "OK."
(8) This completes the configuration of the settings. If you can select the "Destination" and check
the contents of the folder on the PC set in step (18) under "1.1.2 Configuring PC Settings,"
the FTP connection has been established successfully.
(Here, you can see the folders contained in the C drive [C:¥].)
List of folders on the PC
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 1. Connecting to a PC over FTP
(9) If you select the "Destination" and an error dialog box with the message
"Failed to connect to FTP server." is displayed, the FTP connection failed.
Check the details in "1.1 Connecting Devices" again.
When checking these details, use the exact values from the setting examples in this
document for items such as the IP address, subnet mask, and user ID.
If the connection fails even when you configure the settings exactly as indicated in this
document, the problem may lie in the Windows Firewall settings or there may be
interference from a different FTP server program.
When the problem lies in the Windows Firewall settings
Disable Windows Firewall.
* Caution
Disabling the firewall may pose a risk of danger to PCs connected to networks inside
and outside of your company. Either prepare a PC for use only in connecting over FTP
or disable the setting only after consulting your network administrator.
When there is interference from a different FTP server program
If different FTP server programs are installed on the PC, disable all the other FTP
servers other than the one you are attempting to use here.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
2. Outputting Data
This chapter explains how to output data from the XG-X2000 to a PC over FTP.
Before configuring the settings shown below, connect the XG-X2000 to a PC over FTP according to
the procedure in "1. Connecting to a PC over FTP."
2.1 Outputting Image Data (History Images)
2.1.1 Configuring XG-X2000 Settings
This section explains how to output image data to a PC over FTP.
(1) Click "Utilities" at the top of the setup mode screen.
(2) Click the "Image Archive Settings" icon to open the Image Archive Settings screen.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
(3) Select the "archive conditions" to use in outputting images.
("Archive conditions" "0" and "1" are used in the default settings, so here we will use condition
"2.") Select the "Enable" check box, and then switch "Reference" to "None" and
"Output Location" to "FTP." Lastly, click "Settings."
(4) Check the "Destination" folder, and then click "OK" to close the setup screen.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
(5) Click "Go to Run Mode" at the top of the setup mode screen to switch to run mode.
(6) When a screen like the one shown below is displayed, the switch to run mode is complete.
When you execute an inspection, the folder that you checked in step (4) under
"2.1.1 Configuring XG-X2000 Settings" is created in the folder on the PC that you set in
step (17) under "1.1.2 Configuring PC Settings." The history data is then output to this
lower-level folder.
If an error occurs, check the details in "1.1 Connecting Devices" again.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
2.1.2 Checking the Output Data
This section explains how to check the output image data.
Using the XG-X2000 to Check the Image Data
(1) Click "Utilities" at the top of the setup mode screen.
(2) Click the "Image Viewer" icon to open the image viewer.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
(3) Select "Images in SD Card/USB HDD/FTP Server" for "Display Target," select "FTP" for
"Device," and then set "Location" to the folder in which the history data was output in step (6)
under "2.1.1 Configuring XG-X2000 Settings."
(3) The images within the output destination folder are displayed as a list, so check these images.
For further details on using the image viewer, see the "XG-X2000 User's Manual."
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
Using a PC to Check the Image Data
(1) Open Explorer on the PC, and then enter the address where the data has been output.
(If you have configured the settings as explained in this manual, enter "C:¥.")
(2) When you switch to the folder in which the history data was output in step (6) under
"2.1.1 Configuring XG-X2000 Settings," you can check the output history data.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
2.2 Outputting Result Data
(Measured Values and Judgment Values)
2.2.1 Configuring XG-X2000 Settings
This section explains how to output result data (measured values and judgment values) to a PC
over FTP.
(1) Add "Data Output" to the flow.
(2) On the editing screen of "Data Output," select "FTP" for "Device," and then click "Settings."
(Click "Add" to configure the appropriate settings for the measured values and
judgment values to output.)
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
(3) Check the "Output Folder," and then click "OK."
(4) Click "Go to Run Mode" at the top of the setup mode screen to switch to run mode.
(5) When you execute an inspection in run mode, the folder that you checked in step (3) under
"2.2.1 Configuring XG-X2000 Settings" is created in the folder on the PC that you set in step
(17) under "1.1.2 Configuring PC Settings." The result data (a CSV file) is then output to this
lower-level folder.
If an error occurs, check the details in "1.1 Connecting Devices" again.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
FTP Output Edition (PC—FileZilla) 2. Outputting Data
2.2.2 Checking the Result Data
This section explains how to check the output result data.
Using a PC to Check the Result Data
(1) Open Explorer on the PC, and then enter the address where the data has been output.
(If you have configured the settings as explained in this manual, enter "C:¥.")
(2) When you switch to the folder in which the result data was output in step (5) under
"2.2.1 Configuring XG-X2000 Settings," you can check the output result data.
KEYENCE Corporation, Vision System Division http://www.keyence.com/xgxus
197192E 1037-1