Ultra High-Speed,
High-capacity Multi-camera
Machine Vision System
XG-8000 Series
Setup Manual
(Area Camera Edition)
96180A
Read this manual before use.
Keep this manual in a safe place for future reference.
Introduction
Introduction
The XG-8000 Series uses a 2-way approach (either on the controller or on a PC) to build inspection
programs. The controller can be used to carry out adjustments in the field, add vision units and perform
product changeovers. A PC can be used to establish inspection methods and build new programs with
original operation menus and other essential GUI elements. The available PC programs are the XG
VisionEditor development environment and the XG VisionTerminal log data collection program.
Notations used in this manual
Symbols
The following warning symbols are used to ensure safety and to prevent human injury and/or damage to
property when using the system.
DANGER
Indicates that the operator is at risk of death or serious physical injury if the system is improperly operated
or this precaution is not followed.
WARNING
Indicates that the operator is at risk of physical injury if the system is improperly operated or this precaution
is not followed.
CAUTION
Indicates that property could be damaged (product malfunction, etc.) if the system is improperly operated
or this precaution is not followed.
Note
Indicates important operating procedures that could be easily overlooked.
Reference
Indicates items to enhance system understanding and other useful information.
Trademarks
• Windows XP/Vista/7 and Microsoft Excel 2000/2002/2003/2007/2010 are registered trademarks of Microsoft
Corporation (US).
• "SD Memory Card" is a registered trademark of the SD Association.
• "QR Code" is a registered trademark of Denso Wave Incorporated.
• Other company names and product names noted in this document are registered trademarks or trademarks of
their respective companies. The ™ mark and ® mark have been omitted in this manual.
2
Introduction
This manual and related manuals
This manual describes the setup procedures required for connecting and initial installation of the XG-8000
Series (hereafter referred to as "the controller"), as well as related information and product specifications.
Read this manual thoroughly in order to understand how the controller works and to maximize
performance of the controller.
Always keep this manual in a safe place for future reference.
Please ensure that the manual is passed to the end user of the software.
Applicable Manuals:
XG-8000 Series system connections, installation and production specifications
Camera
Initial installationSupport tool for operationCommunication control/external monitoring
Controller
External
device
XG-8000 Series Setup
Manual (this manual)
Inspection program development and other support/debugging functions
Inspection program development
Program development
and controller setting using
XG Vision Editor.
Controller
Program development
and controller setting using
the built-in GUI interface
on the controller.
Operation methods of
tools by functions built
into the controller
Controller
Communication and control with external equipment
External terminals
PLC-Link
ActiveX
control
Controller
CC-Link
No protocol
communication
External
device
Remote monitoring and data/image collection
Controller
96180A
XG-8000 Series
User's Manual
XG-8000 Series
Communications
Control Manual
ActiveX control for
XG Reference Manual
XG VisionTerminal
User's Manual
3
Safety information for XG-8000 Series
Safety information for XG-8000 Series
General Precautions
• Before starting or operating the system, check to make sure all system functions are working properly.
• If any Keyence product fails, take all safety precautions to prevent damage before using the system again.
• If the system is operated beyond its published specifications or if the system is modified, its functions and
performance cannot be guaranteed.
• Please note that when the system is used in combination with other devices, its functions and performance
may be negatively affected.
• Do not use this product for the purpose to protect a human body or a part of human body.
• This product is not intended for use as explosion-proof product. Do not use this product in a hazardous
location and/or potentially explosive atmosphere.
• Do not subject the controller or connected devices to a sudden change in temperature, as condensation may
occur.
Warning
General
• Do not use with any power voltage other than 24 V DC. Doing so may cause fire, electric shock, or product
malfunction.
• Do not disassemble or modify the unit. Doing so may cause fire or electric shock.
Operating environment and conditions
• For safe and proper use of the controller, avoid installing it in the following locations: Doing so may cause fire,
electric shock, or product malfunction.
- Locations that contain moisture or du st, or that are poorly ventilated.
- Locations where the controller is exposed to direct sunlight or temperature increases.
- Locations where there are flammable or corrosive gases.
- Locations where the controller may be subjected to vibration or shock.
- Locations where water, oil or chemicals may splash onto the controller.
- Locations where static electricity is present or electric discharge may occur.
• Keep the controller and cables away from high voltage cables or power lines. Otherwise, noise interference
may cause malfunction or accidents.
•Bundle cables with a protective spiral tubing material. Direct bundling will concentrate the cable load on the
bindings, which can result in cable damage or short circuit.
• The controller and optional devices are precision components. To maintain performance do not subject them
to vibration or shock.
4
Safety information for XG-8000 Series
Measures to be taken during abnormal performance
In the following cases, turn the power OFF immediately. Using the system in a defective condition may
cause fire, electric shock, or product malfunction. Contact your local Keyence office for repair.
• If water or debris enters the system
• If the system is dropped or the case is damaged
• If smoke or a burning smell is emitted from the system
Caution
Usage
• Before connecting or disconnecting cables or expansion units, be sure to turn off the controller and other
connected devices. Failure to do so may result in malfunction of the controller or connected devices.
• Do not turn the power off while you are programming. Otherwise, all or part of the program settings may be
lost.
• Do not block the ventilation holes. Otherwise, the inside temperature may rise and malfunction may occur.
• Do not allow an excessive amount of sunlight or other bright light to enter the camera for a long period of time.
Doing so may cause damage to the CCD inside the camera.
Note
Maintenance
Do not clean with benzene, thinner, or alcohol.
Doing so may cause discoloration or deformation of the controller. If the controller has been contaminated
in anyway, use a cloth moistened with a mild detergent to wash off, then wipe dry with a dry cloth.
5
Precautions on Regulations and Standards
Precautions on Regulations and Standards
CE marking
Keyence Corporation has confirmed that this product complies with the essential requirements of the
applicable EC Directive, based on the following specifications. Be sure to consider the following
specifications when using this product in the Member State of European Union.
EMC Directive (2004/108/EC)
• Applicable standardEMI: EN61326-1, Class A
• The length of cables connected to the controller and its external devices must be less than or equal to 30m.
• When using a CC-Link unit CA-NCL10E, attach a ferrite core (OP-84364) to the CC-Link dedicated cable at a
position within 300 mm from the CA-NCL10E.
• When using RS-422, attach the provided ferrite core (ZCAT2035-0930A) to the RS-422 cable at a position
within 300mm from the controller.
Remarks:
These specifications do not give any guarantee that the end-product with this product incorporated
complies with the essential requirements of EMC Directive. The manufacturer of the end-product is solely
responsible for the compliance on the end-product itself according to EMC Directive.
INDEX .................................................................. I-1
8
Chapter
Function
1
Function
1-1
Package Contents
Package Contents
The equipment and accessories listed below are included in
the package when shipped. Check that you have received
all of the equipment and accessories.
Refer to "Options" (Page 4-31) for more details about other
optional accessories which can be used with this system.
1-3
Overview of the XG-8000 Series Machine Vision System
Overview of the XG-8000 Series Machine Vision
System
The XG-8000 Series uses a 2-way approach (either on the controller or on a PC) to build inspection programs. The controller
can be used to carry out adjustments in the field, add vision units and perform product changeovers. A PC can be used to
establish inspection methods and build new programs with original operation menus and other essential GUI elements.
Available PC programs are the XG VisionEditor development environment and the XG VisionTerminal log data collection
program.
Control input/
Image input
output
Data output
XG-8000 Series machine vision system
XG-8702/8502/8002
Make adjustments in the
field and add functionality
using the controller.
.
Ethernet
USB
XG-8000 Series controller
This system features a multi-core DSP. In addition to
running user-developed inspection programs, the handheld
controller can be used to check and edit inspection
flowcharts and display screen setting. This allows for instant
adjustments and program changes as they become
necessary without the need of a PC.
XG VisionEditor
Application software XG-H8NE
XG VisionEditor
XG VisionTerminal
Build programs and GUIs
using the PC
development environment.
XG VisionTerminal
XG VisionTerminal is dedicated software for the XG-8000
Series machine vision system. XG VisionTerminal uses a
remote desktop function allowing the user to view the
monitor output from the XG-8000 Series on a PC, as well as
interact with the controller via a pseudo hand-held
controller. (Mouse operation is also supported.)
The XG VisionTerminal also allows for data and image
logging directly from the XG-8000 controller to the PC.
XG VisionEditor is integrated development software for the
XG-8000 Series machine vision system. It provides all the
inspection program development functions and utilities
required for complete processing of the XG-8000 Series.
Inspection programs that include customized menus and
display screens can be created.
1-4
Identifying Controls and Connectors
Identifying Controls and Connectors
Controller
I/O (parallel I/O) connector
Use for signal input and output (Page 3-9).
SD2 slot (upper), SD1 slot (lower)
Insert an SD card (Page 2-35).
The SD1 slot contains the included SD card (CA-SD1G: 1 GB or
OP-87133: 512 MB).
Note
SD Card 1 must be inserted to operate the controller.
Camera slot
Use to connect the camera input unit.
The controller is shipped with the camera input unit XG-EX80
connected in this slot.
CONSOLE connector (modular)
Use to connect the optional console (OP-84231/84236) or optional
console relay cable (OP-87260: 3 m / OP-87261: 10 m).
Function
MONITOR connector (SVGA)
Use to connect to an external monitor (Page 2-22).
Note
• When using a commercial RGB analog monitor that does not support
SVGA (800 x 600 pixels) or XGA (1024 x 768 pixels), the displayed
image quality may degrade and the screen may not appear correctly
depending on the specifications of the monitor. (Recommended
monitor: CA-MP120T or CA-MP81)
• If the controller is used when XGA output is set in the inspection settings,
be sure that a monitor that supports XGA is connected. If a monitor that
supports only SVGA is used, the screen may not be displayed correctly.
CAMERA2 (camera 2) connector (only when XG-EC80 is
installed)
Use to connect camera 2 (Page 2-21).
USB connector
Use to connect a USB cable (Page 3-5).
Expansion unit connector 1 (right side)
Use to connect the camera expansion unit (XG-E800).
CAMERA1 connector
Use to connect camera 1 (Page 2-21).
RS-232C connector (Port 2, D-sub 9 pin)
Use to connect the optional touch panel RS-232C cable (OP-
87258: 3 m / OP-87259: 10 m) or a commercial RS-232C cable (D-
sub 9-pin female) (Page 3-2).
1-5
Identifying Controls and Connectors
RS-232C connector (Port 1, RJ-11)
Use to connect the optional RS-232C communications cable (OP-
26487: 2.5 m) or the optional touch panel RS-232C modular cable
(OP-87264: 3 m / OP-87265: 10 m) (Page 3-2).
Note
By default, RS-232C port 1 is used for data output/command control, and
port 2 is used for the CA-series touch panel. For details about changing
the settings, see the XG-8000 Series User's Manual.
ETHERNET connector
Use to connect an Ethernet cable (Page 3-4).
IN1/OUT1 connector (terminal block 1)
Use for signal input and output (OUT1/IN1) (Page 3-11).
Power and ground terminals
Use to connect power (24 V DC) and the ground wire (Page 2-22).
Expansion unit connector 2 (left side)
Use when connecting the illumination expansion unit (CA-DC21E)
or CC-Link unit (CA-NCL10E) (Page 2-5).
Note
When the illumination expansion unit CA-DC21E is connected, Flash
control is limited to Flash 1 - 4.
1-6
CC-Link Unit
L RUN
SD
RD
L ERR
DA
DB
DG
SLD
(FG)
Identifying Controls and Connectors
Function
Connector on expansion unit side
Use when connecting the illumination expansion unit CA-DC21E
(Page 2-6).
Operation status indicator light (L RUN)
• ON: Master station and self station are updating the data correctly
(green light lit).
• OFF: Data communication timed out (light will turn on when data is being received correctly).
Data indicator (SD)
• ON: Data is being transmitted.
Data indicator (RD)
• ON: Data is being received.
Error indicator lamp (L ERR)
• ON: Communication error (red light lit).
• Flashing at constant intervals: Station number or
communication speed setting was changed during data transfer.
• Flashing irregularly: Terminator is not installed properly and or
the unit or CC-Link cable is being affected by electrical noise.
• OFF: No communication errors
Termi nal block
See the wiring diagram (Page 3-7).
Connector on controller side
Connect to the controller.
1-7
Identifying Controls and Connectors
Illumination Expansion Unit
Connector on expansion unit side
POWER
4
LIGHT 2
3
2
1
4
LIGHT 1
3
2
1
OUT
IN
Use when connecting two or more illumination expansion units.
Power supply LED
Lit when the power is supplied to the illumination expansion unit.
Light 2 output connector
Use to connect LED light No. 2.
Light 2 intensity LED
Indicates the intensity of Light 2 in four steps.
Light 1 output connector
Use to connect LED light No. 1.
Light 1 intensity LED
Indicates the intensity of light 1 in four steps.
OUT Connector Terminal Block
Use when connecting lights directly to the terminal block.
Connector on controller side
Connect to the controller.
Note
Make sure to connect to the controller side connector when connecting
directly to the CC-Link unit CA-NCL10E.
IN Connector Terminal Block
Use this to supply power to the illumination expansion unit, and to
control the force light off input.
DIP switch for output voltage change
Use to select the output voltage on the output connector (Page 2-28).
1-8
Handheld Controller
Identifying Controls and Connectors
This section explains the common operations and functions of the handheld controller (OP-84231).
Reference
• Text in parentheses indicates the labeling on OP-84231. A blank console without labels (OP-84236) is also available
for customizing button assignments.
• Functions can be assigned to each button and to key combinations. The accessible operations on the handheld
controller can be changed for different user accounts. The operations described here assume the handheld
controller is being used with the default assignments by a user with administrator privileges. The actual operation
may differ for your console. For more details, see "System Settings" in the XG VisionEditor Reference Manual.
No. 0/8-way thumbpad
Press the outer cursor button up, down, right or left to move the
selected item on the screen.
Press the button in the center to confirm the setting on the screen.
FUNCTIONTRIGGER
ESCAPE
SCREENMENU
VIEW
No. 1 button (FUNCTION)
Press the button to toggle the function menu on/off.
It is also setup by default as a combination button.
No. 4 button (SCREEN)
This button cycles the screen through different display types (raw
image 1, filtered, etc.).
No. 5 button (VIEW)
Press to display the View Toolbar, zoom in or out on the screen, or to
switch between options such as result values or display templates.
Function
No. 7 Back button
This button calls up the function menu, just like the No. 1 (FUNCTION)
button. It is also used to toggle the flowchart area on screen between
normal and enlarged. Pressing and holding the button displays the
entire flowchart.
Some of the button combinations differ from the No. 1 (FUNCTION)
button.
No. 8 selector switch (RUN/STOP)
Flicking this switch toggles between edit and run modes. Flick this
switch to show/hide the Flow Editor.
Reference
It is also possible to forcibly change from Remote capture mode to Run mode.
No. 3 button (TRIGGER)
Press this button to issue a trigger for all cameras. Press and hold the
No. 3 button in the flowchart view to issue a continuous trigger (only
when trigger input is enabled). Press the No. 3 button (TRIGGER)
again to stop triggering.
No. 6 button (MENU)
This button displays the image bar and performs operations related to
Retest mode.
No. 2 button (ESCAPE)
Press this button to return to the previous screen or to resume the
previous operation.
1-9
Identifying Controls and Connectors
Special Functions assigned to Buttons and Multiple Key
Combinations
The buttons on the handheld controller perform special functions when pressed under certain conditions.
Var ious other functions can be performed using key combinations (pressing two or more buttons
simultaneously). Note, the functions available will differ depending on the controller operating state, and
the functions assigned to the key combinations on the handheld controller.
1. Operation when turning on the power (special button function)
OperationButtons to use
Initialize the controller to the default settings and
format the contents of SD Card 1
Forcibly display the initial startup screen (Page 2-30)No. 1 button + power ON
Forcibly start the controller in Offline modeNo. 1 button + 8-way touchpad UP + power ON
Acquire network settings by BOOTP protocolNo. 6 button + power ON
Note
• Never turn off the power while initialization of the controller is in progress. Doing so may cause errors in the internal
data.
• Initializing the contents of SD Card 1 in the controller will erase all files, including inspection setting files and the
system settings file which contains settings for terminal assignments, etc. When the controller is started
immediately after it was initialized, settings are automatically created for the language and resolution that were
selected on the initial startup screen.
No. 2 button + power ON
2. Operation when the power is on (combination keys: default settings)
OperationButtons to use
Saving the current image on the screen to SD Card 2
(Screen capture)
Send a reset signal to the controller during Run mode No. 1 button (FUNCTION) + No. 2 button (ESCAPE)
Change the opacity for the dialog menusNo. 1 button (FUNCTION) + No. 6 button (MENU)
Reference
In addition to the above, there are also key operations which can only be used from the Flow Editor and Screen Editor.
For more details, see the XG-8000 Series User's Manual.
No. 1 button (FUNCTION) + No. 5 button (VIEW)
Or
No. 7 Back button + No. 5 button (VIEW)
Or
No. 7 Back button + No. 2 button (ESCAPE)
Or
No. 7 Back button + No. 4 button (SCREEN)
Or
No. 7 Back button + No. 6 button (MENU)
1-10
Chapter
2
Installation and Connection
Installation and Connection
2-1
Standard System Configuration
Standard System Configuration
Example of a standard system setup with two cameras
Controller
XG-8702/8502/8002
24 V DC power supply
CA-U3 (optional)
Handheld Controller
(OP-84231, optional)
To uch panel LCD monitor
CA-MP120T (optional)
SD card (OP-87133, 512MB*)
(Inserted in slot SD1
on controller)
* XG-8702 comes with
1 GB (CA-SD1G)
Camera cable
CA-CN3 (3 m)/CA-CH3* (3 m)
(optional)
For more information on connecting cables to cameras, please refer to "Camera Cables (for XG-****)" (Page 4-26) and
"Camera Cables (for XG-H****)" (Page 4-28).
Example of a standard system setup with four cameras
Standard System Configuration
Controller
XG-8702/8502/8002
24 V DC power supply
CA-U3 (optional)
Camera Expansion Unit
XG-E800 (XG-EC80) (option)
To uch panel LCD monitor
CA-MP120T (optional)
Handheld Controller
(OP-84231, optional)
Camera 1 Camera 2 Camera 3 Camera 4
Supported
cameras
(optional)
*1 XG-8702/8502 only.
*2 XG-8702 only.
SD card (OP-87133, 512MB*)
(Loaded in slot SD1
on controller)
* XG-8702 comes with
1 GB (CA-SD1G)
Camera cable
CA-CN3 (3 m)/
CA-CH3 (3 m)
(optional)
For more information on connecting cables to cameras, please refer to "Camera Cables (for XG-****)" (Page 4-26) and
"Camera Cables (for XG-H****)" (Page 4-28).
2-3
Installing the Controller
Installing the Controller
Install the controller to the DIN rail, or use the holes on the bottom of the controller to secure it with screws.
• Do not install the controller in a location with lots of dust or water vapor. The controller does not have a mechanism
• Turn off the controller when connecting or disconnecting an expansion unit, cable, or terminal block. Connecting or
• When an expansion unit is not connected, keep the connector protection cover on the controller. Using the
• Install the controller in the direction indicated by the circle shown below. Do not install the controller in
Note
to protect it from dust or water. Dust or water entering the controller can cause damage to the controller.
disconnecting a camera expansion unit, cable, or terminal block while connected to a power source may damage
the controller or peripheral devices.
controller with the connector exposed may cause damage to the controller.
Caution on Direction of Controller Mounting
any other direction.
• For ventilation, ensure a minimum of 50 mm of space above the controller unit and 50 mm of space on
either side. So that the cables can be safely connected, ensure a minimum of 90 mm of space in front of
the controller connector panel.
• When two or more controllers are installed side by
side, ensure a minimum of 50 mm of space between
the controllers, and 50 mm above both controllers.
50mm
Note
• Do not block the ventilation openings on the top and bottom of the controller. If the vents are blocked, heat will
accumulate inside the controller and can cause system failure.
• If the temperature inside the control panel (temperature at the top of the front of the controller) exceeds the
recommended specification, use forced air-cooling or increase the free space around the controller to improve
ventilation until the operating ambient temperature drops below the recommended specification.
50mm
50mm50mm
50mm
2-4
Installing the Controller
Installing the Expansion Unit
Note
• Turn off the controller when connecting or removing an expansion unit. Connecting or removing the camera
expansion unit while connected to a power source may damage the controller or peripheral devices.
• When an expansion unit is not connected, keep the connector protection cover on the controller. Using the
controller with the connector exposed may cause damage to the controller.
Installing the Camera Expansion Unit
When connecting 3 or more cameras, attach the optional camera input unit to the optional camera
expansion unit XG-E800, then install onto the controller.
Remove the protective cover from connector 1 on the right side of the controller and install the camera
expansion unit as shown below.
Installation and Connection
Installing the Communication Expansion Module
The optional CC-Link unit CA-NCL10E is used when communicating via CC-Link (Page 3-7).
Remove the protective cover from connector 2 on the left side of the controller and install the CC-Link unit
as shown below.
2-5
Installing the Controller
Installing the Illumination Expansion Unit
When the lighting is controlled by the controller, up to 4 CA-DC21E illumination expansion units can be
connected for the control of up to 8 individual lights. Remove the protective cover from connector 2 on the
left side of the controller and install the illumination expansion unit as shown below.
• It is necessary to mount the supplied spacers before mounting the illumination expansion unit.
• Turn off the controller when connecting or removing an illumination expansion unit. Connecting or removing the
• When an illumination expansion unit is not connected, keep the connector protection cover on the controller. Using
WER
PO
LIGHT 2
4
3
2
1
LIGHT 1
4
3
2
1
OUT
IN
Connecting multiple units
Illumination
expansion unit
WER
PO
LIGHT 2
4
3
2
1
LIGHT 1
4
3
2
1
OUT
IN
Spacer
(included with the
WER
PO
LIGHT 2
4
3
2
1
LIGHT 1
4
3
2
1
OUT
IN
illumination expansion unit)
Note
illumination expansion unit while connected to a power source may damage the controller or peripheral devices.
the controller with the connector exposed may cause damage to the controller.
When Using the Illumination Expansion Unit and CC-Link Unit Together
Mount the CC-Link unit CA-NCL10E directly to the controller, then mount the illumination expansion unit to
the left side of the CC-Link unit.
CC-Link unit CA-NCL10E
Spacer
(included with the illumination
expansion unit)
Illumination expansion unit
CA-DC21E
WER
O
P
LIGHT 2
4
3
2
1
LIGHT 1
4
3
2
1
OUT
IN
Note
The CC-Link unit cannot be mounted to the left side of the illumination expansion unit. If connected by mistake, it may
damage the controller itself or the peripherals.
2-6
Installing the Controller
Installing the Controller
Installing the Controller on a DIN Rail
The controller and the expansion unit are designed to be mounted on a DIN rail.
Ta b
Pull the tab on the bottom in the direction of the arrow to mount or dismount the controller.
Mounting to the Bottom of the Controller
Installation and Connection
M4 screws
Note
Mount the controller in a stable location that is free from vibration.
2-7
Installing the Camera
Installing the Camera
Notes on Electrical Insulation
• The camera case acts as the ground for the camera circuit. If the installation bracket or mount has any
electrical potential or noise, it may cause internal damage and malfunction. For secure insulation, be
sure to use the plastic mounting bracket and screws that are supplied with the controller when installing
the camera.
• If the supplied plastic mounting parts are not used in the installation, take care to insulate adequately.
1 Install the lens on the camera.
Select an appropriate lens according to the size of the object or distance between the object and the
camera (Page 2-9).
Lens
Note
• Do not touch the inside of the camera when installing the lens.
• Take care to ensure dust and/or foreign material does not enter into the camera.
2 Install the camera using the screw holes provided on the plastic mount.
There are three types of screw holes. Use the standard camera connection and appropriate screw
holes suitable for the mounting setup.
Note
• When installing the camera, use a tightening torque of 0.5 Nm and a maximum tension of 30 N.
• Leave enough space around the lens to ensure easy adjustment of the focus and aperture (Page 2-34).
• If the camera is mounted where there is vibration, the lens mount or the lock screw for the lens may loosen. Use
of a locking bond adhesive is recommended in such a case.
• Mounting the provided plastic mount on a side other than the bottom of the camera can cause gaps between
the mount and the camera. If the installation needs to be very precise, try to fix the mount to the bottom of the
camera.
Reference
To allow for future adjustment of the camera, an optional XY stage is available (CA-S2040). Using slot holes for the
mounting screws of the camera will allow for similar adjustments to be made.
2-8
Warning on Installation Space for the Camera
When installing the camera, maintain 30 mm or more of space above the
camera and 15 mm or more on both sides.
15mm
30mm
15mm
Selecting the Lens
Select the lens according to the size of the target (FOV (Field
of view): Y) and the distance between the camera and the
target (working distance). Select a suitable lens referencing
the FOV chart.
Field of
view: Y
Target
Confirm the Working Distance from the FOV Chart.
Selecting the Lens
Installation and Connection
WD (Working
distance)
•The numbers in the FOV chart represent the thickness required for the close-up ring. Install the close-up
ring between the lens and the camera when required.
• The asterisk (*) symbol in the FOV chart indicates the type of lens.
Note
The numerical numbers shown in the FOV chart are typical values.
2-9
Selecting the Lens
Using a 5 Megapixel Camera (XG-H500C/XG-H500M)
When using the CA-LH16 on the XG-H500C with a required field of view of 50 mm, the chart shows that the
working distance should be set to 100 mm and the 1.5 mm close-up ring should be used.
Using a low distortion lens (CA-LH*): 2432 x 2050 pixels (5 megapixel mode)
1000
0.5
1.5
5
10
15
20
10000100010010
100
Y: Field
of view
(mm)
10
1
0.5
1.0
0.5
1.5
5
15
20
0.5
1.0
1.5
1.0
5.0
10
30
60
1.5
5.0
10
10
20
40
20
100
5
30
40
60
WD: Working distance (mm)
CA-LH4
CA-LH8
CA-LH12
CA-LH16
CA-LH25
CA-LH35
CA-LH50
CA-LH75
Note
The standard CV-L lens cannot be used with XG-H500C/H500M high-speed 5 megapixel cameras due to vignetting.
Using a low distortion lens (CA-LHR*): 2432 x 2050 pixels
1000
2-10
100
Y: Field
of view
(mm)
10
1
CA-LHR5
1.0
1.5
1.0
1.5
5
10
20
CA-LHR8
0.5
0.5
0.5
1.5
5
10
WD: Working distance (mm)
CA-LHR12
CA-LHR16
100010010
CA-LHR25
CA-LHR35
10000
CA-LHR50
Selecting the Lens
Using a 2 Megapixel Camera (XG-200C/XG-200M) or a High-speed
2 Megapixel Camera (XG-H200C/XG-H200M)
When using the CA-LH16 on the XG-200C in 2 megapixel mode with a required FOV of 40 mm, the chart
shows that the working distance should be set to 100 mm and the 1.5 mm close-up ring should be used.
Using a low distortion lens (CA-LH*): 1600 x 1200 pixels (2 megapixel mode)
1000
Installation and Connection
100
Y: Field
of view
(mm)
10
0.5
1.0
0.5
1.5
5.0
5.0
20
0.5
1.0
1.5
1.0
5
10
15
30
10
20
40
60
1.5
1.5
10
20
40
60
100
0.5
5
5
10
15
20
30
1
WD: Working distance (mm)
CA-LH4
CA-LH8
CA-LH12
CA-LH16
CA-LH25
CA-LH35
CA-LH50
Using a low distortion lens (CA-LH*): 1600 x 1200 pixels (2 megapixel mode)
1000
10000100010010
CA-LH75
100
Y: Field
of view
(mm)
10
1
CA-LHR5
0.5
1.0
1.5
1.0
1.5
5
10
20
CA-LHR8
0.5
0.5
1.5
5
10
WD: Working distance (mm)
CA-LHR12
CA-LHR16
100010010
CA-LHR25
CA-LHR35
10000
CA-LHR50
2-11
Selecting the Lens
Using a low distortion lens (CA-LH*): 1024 x 960 pixels (1 megapixel mode)
1000
100
Y: Field
of view
(mm)
10
0.5
1.0
0.5
1.5
5
15
20
0.5
1.0
1.5
1.0
1.5
5.0
10
10
20
30
60
5.0
5
40
100
10
20
30
40
60
0.5
1.5
5
10
15
20
1
WD: Working distance (mm)
CA-LH4
CA-LH8
CA-LH12
CA-LH16
CA-LH25
CA-LH35
CA-LH50
Using a low distortion lens (CA-LHR*): 1024 x 960 pixels (1 megapixel mode)
1000
10000100010010
CA-LH75
100
Y: Field
of view
(mm)
10
1
CA-LHR5
0.5
1.0
1.5
1.0
1.5
5
10
20
CA-LHR8
0.5
0.5
1.5
5
10
WD: Working distance (mm)
CA-LHR12
CA-LHR16
100010010
CA-LHR25
CA-LHR35
10000
CA-LHR50
2-12
The following graph shows the performance when using a standard lens.
Using a standard lens (CV-L*): 1600 x 1200 pixels (2 megapixel mode)
1000
Selecting the Lens
Installation and Connection
100
Y: Field
of view
(mm)
10
0.5
1.0
0.5
1.0
10
0.5
5
10
15
20
20
30
1.5
1.5
5
15
5
10
15
20
30
40
50
5
1.5
10
1.5
1
WD: Working distance (mm)
CV-L3CV-L6
CV-L16
CV-L25
CV-L35
CV-L50
Using a standard lens (CV-L*): 1024 x 960 pixels (1 megapixel mode)
1000
10000100010010
100
Y: Field
of view
(mm)
10
1
0.5
1.0
10
CV-L3CV-L6
0.5
5
15
20
30
10
15
20
CV-L16
0.5
1.5
1.0
1.5
5
5
10
30
40
50
1.5
10
15
20
WD: Working distance (mm)
CV-L25
CV-L35
1.5
5
10000100010010
CV-L50
2-13
Selecting the Lens
Using a High-Speed 1 Megapixel Camera (XG-H100C/XG-H100M)
Using a low distortion lens (CA-LH*): 1000 x 1000 pixels (1 megapixel mode)
1000
0.5
0.5
1.0
0.5
100
5
10000100010010
Y: Field
of view
(mm)
10
1
0.5
1.0
1.5
5
20
1.5
1.0
5.0
5.0
10
15
20
40
30
60
1.5
1.5
10
10
20
100
5
10
15
20
30
40
60
WD: Working distance (mm)
CA-LH4
CA-LH8
CA-LH12
CA-LH16
CA-LH25
CA-LH35
CA-LH50
CA-LH75
Note
The standard CV-L lens cannot be used with XG-H100C/XG-H100M high-speed 1 megapixel cameras due to
vignetting.
2-14
Selecting the Lens
Using a Double Speed Camera (XG-035C/XG-035M) or a 7x-speed Camera (XGH035C/XG-H035M)
Using the standard lens (CV-L*)
1000
Installation and Connection
100
Y: Field
of view
(mm)
10
0.5
1.0
10
0.5
5
10
15
20
20
30
1.5
1.5
5
5
10
15
20
30
40
50
0.5
1.0
1.5
10
15
1
WD: Working distance (mm)
CV-L3CV-L6
CV-L16
CV-L25
CV-L35
Using a high accuracy, low distortion lens (CA-LH*)
1000
100
Y: Field
of view
(mm)
10
0.5
1.5
5
5.0
15
20
30
0.5
1.0
1.5
1.0
5.0
10
20
40
60
1.5
10
10
20
0.5
1.0
100
5
20
30
40
60
1.5
1.5
5
10000100010010
CV-L50
0.5
5
10
15
1
CA-LH4
CA-LH8
WD: Working distance (mm)
CA-LH12
CA-LH16
CA-LH25
CA-LH35
CA-LH50
10000100010010
CA-LH75
2-15
Selecting the Lens
Using an Ultra Small Double Speed Camera (XG-S035C/XG-S035M)
1000
100
CA-LS6CA-LS4CA-LS16 CA-LS30
Y: Field
of view
(mm)
10
15
1
5
10
50
15
20
30
5
10
10000100010010
WD: Working distance (mm)
Note
• The numerical numbers shown in the FOV chart are typical values. Adjust the settings as required when installing
the camera.
• For more information on installing and adjusting ultra small cameras, refer to the instruction manual provided with
the camera.
• When attaching the side view attachment OP-51503, subtract the internal optical length of 15.3 mm from the
working distance.
2-16
Using an Ultra Small 2 Megapixel Camera (XG-S200C/XG-S200M)
Using 1600 x 1200 pixels (2 megapixel mode)
Selecting the Lens
1000
100
Y: Field
of vie
w
(mm)
5
10
10
50
15
20
30
150
1
5
10
30
50
70
100
10
15
20
10010
WD: Working distance (mm)
Using 1024 x 960 pixels (1 megapixel mode)
1000
CA-LHS16CA-LHS8CA-LHS25
Installation and Connection
CA-LHS50
5
100001000
CA-LHS16 CA-LHS25
CA-LHS8
CA-LHS50
100
Y: Field
w
of vie
5
(mm)
5
10
10
15
20
30
50
1
5
10
30
50
70
100
150
10010
10
15
20
100001000
WD: Working distance (mm)
Note
• The numerical numbers shown in the FOV chart are typical values. Adjust the settings as required when installing
the camera.
• For more information on installing and adjusting ultra small cameras, refer to the instruction manual provided with
the camera.
• When attaching the side view attachment OP-66833, subtract the internal optical length of 25.8 mm from the
working distance.
2-17
Selecting the Lens
Information on Optional Lenses
Contact your local Keyence office if you require lenses not shown here.
Macro lenses (for all cameras, excluding the XG-S **** series)
ModelShapeOptical magnification WD (Standard
magnification)
CA-LM0510Straightx0.5 to x1111 mm (x0.5) -
78 mm (x1.0)
CA-LM1Straightx167.0 mm
CA-LM2Straightx266.9 mm
CA-LM4Straightx470.3 mm
CA-LM6Straightx664.4 mm
CA-LM8Straightx864.5 mm
CA-LMA1Coaxialx167.0 mm
CA-LMA2Coaxialx266.9 mm
CA-LMA4Coaxialx470.3 mm
Note
The area around the captured image might darken if the processing area is positioned at the edge of the CCD while using the
macro lens.
Reference
• Use the formula below when calculating the macro lens field of view.
Field of view (mm) = CCD size (Y) / Optical magnification
Example: When CA-LM2 is used with XG-035M, 3.6 (CCD size) / 2 (optical magnification) = 1.8 mm
• The size of the CCD in the Y direction for each type of camera is shown below. Note that the numbers in
parentheses are the values used in 1 megapixel mode.
XG-H200C/XG-H200M/XG-200C/XG-200M5.3 mm (4.2 mm)
XG-035C/XG-035M/XG-H035C/XG-H035M3.6 mm
XG-H100C/XG-H100M7.4 mm
XG-H500C/XG-H500M7.1 mm
• The optical magnification is based on the optical design value. Individual variability will occur depending on
installation.
2-19
Selecting the Lens
Using the Close-up Rings
The close-up ring is installed between the camera and the lens.
Close-up rings are available in a set of five different sizes of 0.5 mm, 1.0 mm, 5 mm, 10 mm, and 22 mm
(OP-51612).
• Use the 5 mm (OP-51500) or 10 mm (OP-51501) close-up ring when using the XG-S035C/S035M.
• Use the 5 mm (OP-66830) or 10 mm (OP-66831) close-up ring when using the XG-S200C/S200M.
Close-up ring
If a single ring does not provide the required thickness, combine multiple rings.
Note
If you use the 0.5 mm or 1.0 mm close-up rings with other close-up rings, the lens may become loose through
vibrations due to insufficient tightening with the camera. Use of a locking bond adhesive is recommended in such a
case.
2-20
Connecting Cables
Connecting Cables
Notes when connecting cables
•Make sure that there is no power to the controller before connecting cables. Connecting cables while the
power is turned on may cause damage to the camera or peripherals.
•Bundle cables with a spiral tubing like protective material. Direct bundling will concentrate the cable load
on the bindings, which can result in cable damage or short circuit.
• In the absence of other specifications, the minimum cable flexibility (R) should be 3 times the external
diameter (5 times is recommended). Additionally, repeated flexing and twisting should be avoided. The
minimum bend radius is the same, even when using high-flex cable. Unless otherwise stated, use the
R100 or greater.
1 Connect the camera to the camera connector of the controller using one of the optional camera
cables.
Attach the camera to the connector on the camera input unit.
Installation and Connection
To Camera 2 connector
To Camera 1 connector
Camera 1
Note
• Camera cables CA-CN17, CA-CN17L, and CA-CN17R can only be used to connect the XG-035C and XG-
035M.
• With an XG-H**** high speed camera, only CA-CH* camera cables can be connected.
• Do not connect the CA-CH cable to other cameras. Doing so may result in malfunction.
• For more information on connecting cables to cameras, please refer to "Camera Cables (for XG-****)" (Page 4-
26) and "Camera Cables (for XG-H****)" (Page 4-28).
Using the camera cable extension amplifier
Camera cables can be extended by using the camera cable extension amplifier (Page 4-29).
Camera 2
Camera cable
extension amplifier
For more information on connection, read the instructions provided with the camera extension
amplifier.
2-21
Connecting Cables
C
C
2 Connect the optional handheld controller (OP-84231 or OP-84236) to the modular connector on
the controller.
To modular connector
3 Connect the monitor to the video output terminal of the controller.
To Monitor terminal
Note
• When using a commercial RGB analog monitor that does not support SVGA (800 x 600 pixels) or XGA (1024 x
768 pixels), the displayed image quality may degrade and the screen may not appear correctly depending on
the specifications of the monitor. (Recommended monitor: CA-MP81 or CA-MP120T)
4 Connect the DC 24 V power.
Note
• Use electrical wiring AWG14 to AWG22.
• Make sure to connect the frame ground terminal for the DC 24 V
power source to a Class D ground.
• The solderless terminal sizes are noted below, use a size which fits
M4 screws.
• Tighten the screws to a torque of 0.8 [Nm].
Connect 24 V DC and 0 V to the dedicated power
terminals.
onnecting to 24V DC Connecting to 0V D
Connect the ground wire to the grounding terminal.
Ring terminals
8.5 mm or
less
Forked terminals
8.5 mm or
less
Connect ground wire here
2-22
Connecting Cables
Note
• Ground each device separately.
• Use a Class D ground.
Ω
• Keep ground resistance to 100
or less.
• Keep the ground wire as short as possible.
• If it is not possible to ground each device separately, ground them together. However, make sure that the
electrical cables are the same length.
Installation and Connection
Controller
Ground per Class D
Ground resistance 100Ω
Other devices
Controller
A
A = B
Ground per Class D
Ground resistance 100Ω
Other devices
B
Controller
Other devices
A
A > B
A < B
B
2-23
Selection and Installation of LED Lighting
Selection and Installation of LED Lighting
Reference
Up to 8 LED lights can be individually controlled using the optional illumination expansion unit CA-DC21E. See "Using
the Illumination Expansion Unit" (Page 2-26) for more details.
Selecting the Correct Lighting System
Use the correct lighting system to ensure stable inspection
Inspecting in one of the following locations may lead to unstable detection. Relocate the inspection or use
a dedicated lighting system.
• Locations where the inspection is exposed to direct sunlight
• Locations where the outside light varies greatly depending on the time of day
• Locations where the amount of light changes due to the movement of machines and people
Ask your KEYENCE sales representative for details.
Reflected illumination
Illuminates broadly and evenly using a lighting system such as a
ring light. This type of lighting is suitable for general surface
inspection.
LED Illumination System
• Direct-ring lights (CA-DR)
•Multi-angle light (CA-DRM/DQM)
Backlight illumination
Illuminates from behind the target.
This type of lighting is suitable for measuring the shape, size, and
position of a thin target.
LED Illumination System
Back lights (CA-DS)
Light source
Target
Target
Light source
2-24
Indirect illumination
Illuminates the target from an angle.
This type of lighting is suitable for surface inspection when you
want to reduce the effects of glare or specular reflection.
LED Illumination System
Bar lights (CA-DB/DZ)
Light source
Target
Coaxial Illumination
Illuminates along the same axis as the lens.
This type of lighting makes flat glossy surfaces on the target
appear brighter. This is suitable for surface inspection or position
and size measurement of a flat surface.
Selection and Installation of LED Lighting
Installation and Connection
LED Illumination System
Coaxial lights (CA-DX)
Low-angle Illumination
Illuminates the target from a very low angle.
This type of lighting is suitable for detecting minute defects such as
surface flaws (raised and reduced) and chipped edges.
LED Illumination System
• Low-angle lights (CA-DL)
•Multi-angle light (CA-DRM/DQM)
•Square lights (CA-DQ)
Dome Illumination
Illuminates evenly around a target. Dome lighting is more effective
when used as close as possible to the target.
This type of lighting reduces shadows and hot spots because it
evenly distributes the light over the targets surface.
Half mirror
Light
source
Target
Target
Light source
Light
source
LED Illumination System
Dome lights (CA-DD)
Spot Illumination
Used with a coaxial macro lens.
This type of lighting provides high contrast, even illumination for
images captured under high magnification.
LED Illumination System
Spot lights (CA-DP)
Light sourceLight source
Target
Light source
Target
2-25
Selection and Installation of LED Lighting
Using the Illumination Expansion Unit
Precautions and wiring when using the optional illumination expansion unit CA-DC21E are explained here.
Usage Precautions
Note
• For more details on general precautions for the illumination expansion unit, see "Safety information for XG-8000
Series" (Page 4).
• For more details on cautions and warnings in the installation and handling of the unit, see the operation manuals of
the illumination expansion unit and LED light that are being used.
Power supply
WARNING
Do not use with any power voltage other than DC 24 V. Doing so may cause fire, electric shock, or damage to the unit.
Note
• Always connect the frame ground terminal or ground terminal when a switching regulator is used.
• A separate, dedicated power supply is recommended.
Handling
WARNING
• Illumination units may reach very high temperatures while in operation. Avoid direct contact. Doing so may cause
burns.
• Do not disassemble or modify the unit. Doing so may cause fire, electric shock, or damage to the unit.
• Do not stare into the LED light source for prolonged periods of time. This may cause damage to the eyes.
• The illumination units are classified as Class 1M or Class 2 LED Products (IEC60825-1). Read the "Precautions of
Use" accompanied with the illumination units carefully before use.
2-26
Selection and Installation of LED Lighting
Terminal Block Interface
The following section details the terminal block specifications for the illumination expansion unit (CADC21E).
Note
Tightening above the specified torque may cause damage to the terminal block
1LIGHT2+ (L2+)+ ve terminal for Light 2Connect the + ve side of light 2.
2LIGHT2- (L2-)- ve terminal for Light 2Connect the - ve side of light 2.
3NC (NC)Not usedNot used
4LIGHT1+ (L1+)+ ve terminal for Light 1Connect the + ve side of light 1.
5LIGHT1- (L1-)- ve terminal for Light 1Connect the - ve side of light 1.
WARNING
• Connecting a 12 V DC illumination unit to an output terminal at 24 V DC may cause fire, electric shock, or
damage to the controller and user operating the unit.
• Ensure that the DIP switch located on the right side of the CA-DC21E is configured correctly for the illumination
being connected.
• IN Connector Terminal Block
No.Signal
Signal DescriptionFunction
(terminal block display)
1COMIN (COMIN)Common for terminal block
inputs
Dedicated common input for the IN connector
terminal.
2LIGHT_OFF (LOFF)Forced light off inputUsed to force the emission of LED illumination
units to off.
324VDC (24V)+ ve power supply input
(24 V DC)
Supplies a 24 V power source for the
illumination expansion unit.
40 V (0 V)- power supply (0 V) input Supplies a 0 V power source for the illumination
expansion unit.
The power source 0V and COMIN1 are all isolated.
2-27
Selection and Installation of LED Lighting
DIP Switch Settings
Output voltages for Light 1 and Light 2 can be changed individually by configuring the DIP switches as
indicated below. The factory settings of the DIP switch positions are indicated by .
Bit
Output voltage
ON
87654321
12345678
OFFOFFOFFOFF————Light 1: 12 V
ONONONOFF————Light 1: 24 V
————OFFOFFOFFOFFLight 2: 12 V
————ONONONOFFLight 2: 24 V
WARNING
Setting the output voltage incorrectly may cause fire, electric shock, or product malfunction. Under normal conditions,
use the factory setting of 12VDC.
Input Circuit Diagram
• Max. applied voltage: 26.4 V
• ON voltage: 10.8 V or greater
•ON current: 2 mA or greater
• OFF voltage: 3 V or less
• OFF current: 0.3 mA or less
LOFF
COMIN
6.2kΩ
4.7kΩ
Connecting Cables
After mounting the illumination expansion unit to the controller (Page 2-6), use the following procedures to
connect the cables and wiring.
1 Connect the LED light to the output connector of the illumination expansion unit.
WAR NING
• Connecting a 12 V DC illumination unit to an output terminal at 24 V DC may cause fire, electric shock, or other
damage to the controller and user operating the unit.
• Ensure that the DIP switch located on the right side of the CA-DC20E is configured correctly for the illumination
being connected.
Reference
24 V lights, with different output connector configurations can be connected directly to the terminal block. See
"Connector Specifications" (Page 2-27) for more details.
2 Supply a 24 V DC power source to terminal number 3 and 4 of the IN connector terminal block.
Note
• Use a flat head screwdriver to connect the power supply to the input terminals.
• Use a torque of 0.25 Nm or less to tighten the screws.
• Use electrical wiring AWG14 to AWG22.
• Make sure to connect the frame ground terminal for the DC 24 V power source to a Class D ground.
• Do not supply power until the installation is completed.
2-28
Selection and Installation of LED Lighting
HT
HT
Remove the IN connector terminal block from the illumination expansion unit.
1
2
1
OUT
IN
Terminal block
Loosen the screw of the IN connector terminal block using a flat head screwdriver.
Flathead
screwdriver
Installation and Connection
After stripping the insulating sheath by about 7 mm, insert the wires to terminal No. 3 (24 V
DC) and No. 4 (0 V), and then tighten the screws.
Strip sheath
on wire and insert
After connecting all the necessary cables or wires, securely insert the IN connector terminal
block into the I/O connector as far as it will go.
1
2
1
OUT
IN
2-29
Adjustments
Adjustments
This section explains how to adjust the controller from its default settings to capture images properly.
Note
The handheld controller (OP-84231 or OP-84236) is required to adjust the controller.
Reference
The software may not operate as described below if the inspection settings have already been uploaded.
Check that a Screen is Displayed on the Monitor
1 Confirm that the cables are connected correctly, and then turn on the power.
After the opening screen is displayed, the initial startup screen appears.
If nothing appears on the monitor
Check the following:
• Confirm input terminals are connected correctly.
- Confirm 24VDC (2A) is being used for the power supply.
- Confirm the power input terminals (+24V/0V) are not wired in reverse.
• Confirm the monitor cable is connected correctly.
• Confirm that the monitor has power.
• Confirm that the monitor supports SVGA (800 x 600) or XGA (1024 x 768) pixel resolution with 60Hz vertical
frequency.
2 In the [System Language] box, select the language to use.
• Japanese
• English
• Traditional Chinese
• Simplified Chinese
3 In the [Resolution] box, select the desired system screen resolution.
When new program settings are created with the controller, the resolution selected here will be
applied to the created inspection settings.
• 800 x 600: SVGA
•
1024 x 768: XGA
4 If the CA-MP120T touch panel, click [Close]. If the touch panel will be used, click [Adjust CA
series touch panel].
Proceed to step 6 when not using the touch panel.
2-30
5 Perform touch panel calibration.
Touch the at the top left of the screen.
Touch the at the bottom right of the screen.
Adjustments
Installation and Connection
Touch the at the four corners of the screen, and verify that the touched locations were
each selected correctly.
If one was not selected correctly, the at the touched location turns red.
Note
If calibration is not correct, or to perform correction again, click [Retry Calibration].
Click [OK].
Click [Close].
2-31
Adjustments
6 Press the No.1 (FUNCTION) button on the handheld controller.
The [Function] menu appears.
7 Select [Go Offline].
The [System Configuration] menu appears.
8 From the System Configuration, select [Cameras] - [Camera Settings].
The [Camera Settings] screen appears.
2-32
Adjustments
9 Select the [Camera preview] under Individual Settings and make sure the active screen from
the camera connected to the controller appears.
The active screen displays the live image from the connected cameras.
Reference
• You can display the live image on the entire screen by selecting the desired camera under [Select Display].
• When set for trigger, you can press and hold the No. 3 button (TRIGGER) on the handheld controller to
continuously refresh the data and image on the screen. Press the No. 3 button (TRIGGER) once more and the
screen refresh will stop.
Installation and Connection
If the active screen is not displayed
Check the following:
• Confirm that the cameras are connected properly.
• Confirm that the lens caps are removed from the cameras.
• Confirm that the aperture ring of the lens is open.
While viewing the monitor, turn the aperture ring and the focus ring to adjust the aperture and focus.
Locking screw on focus ring
Locking screw on aperture ring
•Adjusting the aperture: Loosen the locking screw on the aperture ring to make the target and the
surroundings brighter or darker.
•Adjusting the focus: Loosen the locking screw on the focus ring to sharpen the target image.
When the aperture and focus adjustments are complete, tighten the locking screws so that the aperture
ring and the focus ring do not move.
For XG-S035C/S035M/S200C/S200M
While viewing the monitor, turn the aperture locking screws A and B and the lens setting collar to adjust the
aperture and focus.
Aperture locking screw A
Lens setting collar
erture locking screw B
A
1 Screw the lens setting collar on the thread completely.
At the same time, install the lens as far on the thread as it will go.
2 Adjust the distance between the camera and the target, then loosen the lens until the imag e is
focused.
3 Fix the lens with the lens setting collar at the position where the image is in focus.
4 Loosen the aperture locking screws A and B to adjust for the best possible brightness of the
image.
The image becomes brighter when turned towards the OPEN side, and darker when turned towards
the CLOSE side.
5 After brightness is adjusted, fix the aperture with the aperture locking screws A and B.
2-34
Loading and Removing an SD Card
Loading and Removing an SD Card
Users can save the program settings or captured images on an SD card.
Note
• The flash memory used as the storage element on the SD card has a read/write lifespan that, when reached, may
result in an eventual loss of data. It is therefore strongly recommended that data stored on an SD card be backed
up regularly to other media.
• SD Card 1 contains the system settings and other data necessary for the controller to operate. Make sure it is
inserted at startup and when powering up.
• Data that must be loaded by swapping SD cards should be stored on SD card 2.
Supported SD Card Models
Use the optional Keyence OP-87133 (512 MB), CA-SD1G (1 GB), or CA-SD4G (4 GB). Note that the
controller ships with the OP-87133 (CA-SD1G for XG-8702) inserted into SD1 slot.
Note
• SDHC formats are supported on the controller.
• When loading data saved on the CA-SD4G into a PC, use a card reader that supports SDHC.
• SD cards other than the models mentioned above may not operate normally and are exempt from the warranty of this
equipment.
• For details about file management on SD cards and card initialization (formatting), refer to the XG-8000 Series
User's Manual.
Installation and Connection
Inserting an SD Card
Insert the SD card into the SD1 or SD2 slot so that the triangle inscription is on the top of the card.
SD2 slot
Insert SD card.
SD1 slot
(Do not insert or remove
while power is on.)
Note
• Be sure the card is oriented correctly when inserting it. Inserting the card in the wrong direction may damage the data
and SD card.
• The access drive light illuminates while there is an SD card in the drive.
- Green: An SD card is inserted and accessible.
- Red: The SD card is being accessed.
- Not lit: The SD card is not active. (The SD card can be removed from the slot.)
• When inserting the SD card into the SD1 slot, turn off the controller. Keep SD Card 1 inserted at startup and while
the power is ON.
2-35
Loading and Removing an SD Card
Removing an SD Card
Choose [Stop SD2 Operation], then press the SD card in the SD2 slot inward to release and remove the
card.
Note
• Take the following steps to protect the SD card and the data that is contained on it.
• If you remove the SD card using a procedure other than that specified, or if power is turned off when the card is
being accessed, any writing task will stop resulting in a possible loss of data or damage to the SD card.
• SD Card 1 should not be removed while the controller is turned on. Turn off the controller before removing/inserting SD
Card 1.
1 On the Function menu or System Configuration menu, select [Stop SD2 Operation].
A confirmation screen appears.
2 Click [OK].
The LED indicator turns off, indicating that SD Card 2 can now be removed.
3 Remove the SD card from the SD2 slot on the controller.
Make sure the access drive
light is not lit.
Open cover.
2-36
Press SD card to unlock it.
Remove SD card.
Note
The cover on the SD1 slot is screwed in place using (M2 L5) screws when the controller is shipped. This cover
should be left on to prevent accidental removal while the controller is turned on.
Using Dedicated Software to Access the Controller
Using Dedicated Software to Access the
Controller
This section explains the methods to access the controller from a dedicated PC software: XG VisionEditor
and XG VisionTerminal.
Reference
In addition to the dedicated software, these methods can also be used to connect and communicate with the
controller: no-protocol mode using RS-232C (Page 3-2), Ethernet (TCP/IP) (Page 3-4), PLC Link, CC-Link (Page 3-7),
EtherNet/IP, and the FTP client function. For details about these settings, refer to the XG-8000 Series Communications
Control Manual.
Supported Software
The controller supports connection to XG dedicated software XG VisionEditor and XG VisionTerminal.
Both applications are supplied with the optional V-Works for XG Ver. 5.0 (XG-H8NE). See the separate
manuals supplied with each application for details on their operation.
Installation and Connection
Note
• The controller supports applications using the dedicated ActiveX control. Otherwise, Keyence does not support the
use of third-party applications.
• Ver. 4.1 and earlier of the software do not support some communications with Ver. 5.0 and later controllers. For more
XG VisionEditor is programming software that provides access to all functions on the
controller.
XG VisionEditor can be used to create all the program files that are used in the
controller.
Main features of the XG VisionEditor
• Create image processing programs / flowcharts.
• Create display screens.
• Create custom dialog menus to change settings.
• Configure data logging for saving inspection result images and results history on the controller.
• Configure the statistics analysis.
• Use the remote capture feature to acquire image data necessary for programming.
• Provide various simulation environments to check the operation of the controller on the PC.
2-37
Using Dedicated Software to Access the Controller
Remote Control Software "XG VisionTerminal"
XG VisionTerminal is operating software designed to acquire data & images from the
controller, and operate it by remote control via communication.
Main features of the XG VisionTerminal
• Save measurement results and image data output from the controller to the PC.
• Allow remote operation of the controller (remote desktop) by means of the handheld
controller view or mouse while viewing images acquired via communication on the display screen.
•Acquire files from the controller SD Card 1 and SD Card 2.
Reference
In addition to the above, XG VisionTerminal also supports binary data communication and command control
communication using the dedicated ActiveX control.
Ask your local sales office for further information about the dedicated ActiveX control.
Preparing to Connect with the Controller
The following two methods may be used to connect the controller to the dedicated XG software.
Note
The RS-232C and CC-Link interfaces do not support connection using the dedicated XG software.
Ethernet Connection
Connecting
The following methods are supported.
• 1:1 connection using a cross cable (OP-66843 1Gbps cable is recommended).
• 1:n or n:1 connection via a hub and commercial straight cable (category 5e or higher).
See "Ethernet Specifications" (Page 3-4) for more details about the Ethernet interface.
Settings
• Configure the IP address, subnet mask, and default gateway on the controller.
• See the dedicated XG software manual for instructions on connecting to the controller.
USB Connection
Connecting
The USB port supports a 1:1 connection using a USB 2.0 cable (OP-66844 is recommended).
Note
1:n and n:1 connections are not supported.
See "USB Specifications" (Page 3-5) for detailed specifications of the USB interface.
Settings
• There are no USB settings to make on the controller.
• When connecting to the controller via USB, the dedicated USB driver included with XG-H8NE must also
be installed in addition to the dedicated software (Page 3-6).
• See the dedicated XG software manual for instructions on connecting to the controller.
2-38
Using Dedicated Software to Access the Controller
Connecting to the Controller
The dedicated XG software can connect to the controller in any operating mode.
Reference
All connections are initiated by the dedicated XG software. See each software manual for details on connections.
XG VisionEditorXG VisionTerminal
Run mode
Offline mode
Remote capture mode
Retest mode
Note
• When the dedicated XG software is connected to the controller, display updates may slow down and inspections
may stop executing. The connection may also be denied depending on the state the controller is in.
• See each software manual for more details on controller behavior during connections.
Installation and Connection
2-39
Using Dedicated Software to Access the Controller
2-40
Chapter
3
I/O Interface Specifications
Overview of the I/O
Interface
The controller has five communication ports and two
discrete I/O terminal blocks.
• RS-232C Specifications (Page 3-2)
• Ethernet Specifications (Page 3-4)
• USB Specifications (Page 3-5)
• CC-Link Specifications (Page 3-7)
• Parallel I/O Specifications (Page 3-9)
• Terminal Block Specifications (Page 3-11)
Commands can be sent and data output via the RS-232C and
Ethernet communication ports in standard no-protocol mode.
Multiple communication ports can be used at the same time.
• In addition to standard communication, data output and
control can also be performed using PLC link
communication via the RS-232 and Ethernet interfaces.
For more details, see the XG-8000 Series
Communication Control Manual.
• The Ethernet interface also supports data output and
control via EtherNet/IP. For more details, see the XG8000 Series Communication Control Manual.
I/O Interface Specifications
Example of multi port usage
Data such as measurement results and NG images are
output to the PC via Ethernet while the system is controlled
with a PLC through RS-232C.
PLC-1PLC-2
RS-232C
Ethernet
Command control
(Switch programs)
Data output
Inspection
•
images
NG images
•
HUB or router
Ethernet
RS-232C
Ethernet
Command control
(Switch programs)
Data output
Inspection
•
images
NG images
•
PC
Note
Communication software is required to correctly display data on
the computer.
3-1
RS-232C Specifications
RS-232C Specifications
The RS-232C port on the controller can be used to
communicate with external device. The controller can
communicate with external devices through one of the two
communication modes: no protocol mode or PLC link
mode.
The transmitted data will differ depending on the
communication mode. Switch to the correct mode based on
the communication requirements. Refer to "List of
Communication Commands" in the XG VisionEditor
Reference Manual for more details and switching between
communication modes.
Note
The signal GND and power GND are common to both
communication modes. Take care to avoid voltage differences
when connecting external devices to the controller.
The controller can be connected to a PC using a dedicated
serial cable (optional).
When the PLC / PC has a D-sub 9-pin connector
I/O Interface Specifications
No. SignalSignal
Description
1———
2RXDData ReceptionOutput
3TXDData Transmission Inputs
4———
5GNDGND—
6———
7RTSData Transmission
Request
8CTSData Transmission
Permission
9———
Signal direction
Inputs
Output
OP-26487 (2.5m)
OP-26486
XG-8702/8502/8002
PC
When the PLC / PC has a D-sub 25-pin connector
OP-26487 (2.5m)
OP-26485
XG-8702/8502/8002
Note
• In the connection examples above, flow control is not possible.
• The controller uses the communication settings specified under
the System Settings in the XG VisionEditor software. For more
details, refer to "Controller Global Settings" in the XG
VisionEditor Reference Manual (Programming Edition).
• The baud rate and parity bit settings can be viewed and
changed from the [RS-232C] option in the System
Configuration menu. For more details, refer to the XG-8000
Series User's Manual.
PC
3-3
Ethernet Specifications
Ethernet Specifications
The Ethernet port on the controller can be used to
communicate with external devices as well as providing a
connection to Keyence software: XG VisionEditor, XG
VisionTerminal, and software running the ActiveX control.
The controller can communicate with external devices
through 3 different communication modes: TCP/IP based
on ASCII RS-232C command set, PLC link mode, or
EtherNet/IP. The controller also acts as an FTP client and
an external FTP server can be specified as the output
destination for sending stored images and data.
Reference
For more details about the various types of communication control
using the Ethernet port, refer to the XG-8000 Series
Communications Control Manual.
Port Specifications
Protocol specifications
• Connector: RJ-45 (female)
• Medium: 10 BASE-T/100 BASE-TX/1000 BASE-T
• Protocols:
-TCP/IP
- UDP (PLC link)
- TCP/IP, UDP (EtherNet/IP)
Reference
The Keyence software packages (XG VisionEditor, XG
VisionTerminal, and XG ActiveX Control) uses both TCP/IP and
UDP.
Connector Specifications (controller side)
10 BASE-T/
100 BASE-T
No. SignalSignal
direction
1TX +OutputTRX+Input/Output
2TX -OutputTRX-Input/Output
3RX +InputsTRX+Input/Output
4Not used— TRX-Input/Output
5Not used— TRX-Input/Output
6RX -InputsTRX-Input/Output
7Not used— TRX+Input/Output
8Not used—TRX-Input/Output
1000 BASE-T
SignalSignal
direction
3-4
Note
Use a category 5e LAN cable or above when connecting at 1000
Base-T. A STP (Shield Twisted Pair) cable is recommended.
USB Specifications
The USB port on the controller is used exclusively for
communication with Keyence software: XG VisionEditor and
XG VisionTerminal. The USB port cannot be used with any
other software.
Note
The connector shield, signal GND, and power GND are common.
Take care to avoid voltage differences when connecting external
devices to the controller.
Port Specifications
Protocol specifications
• Connector: Female B connector
• Protocol: USB Version 2.0.
USB Specifications
Connecting to a PC
The controller can be connected to a PC using a dedicated
USB cable (optional OP-66844).
Note
• Only 1 controller can be connected to a single PC at one time
via USB.
• If a cable other than OP-66844 or a USB extension cable is
used, communication may not be stable.
• Conventional USB devices such as a USB mouse, card reader
or thumb drive cannot be connected to this port.
• Communication may be interrupted due to high voltage or
electrical noise near the system. If communication is
interrupted, disconnect and re-connect the USB cable, and
restart the software.
• If communication interruption occurs frequently, check the
surrounding area for noise sources (inverter, solenoid valve,
etc.).
I/O Interface Specifications
Connector Specifications
No. SignalSignal
Description
1VBUSVBUS—
2D-Differential signal - Input/Output
3D+Differential
signal+
4GNDGND—
Signal direction
Input/Output
System requirements
To connect the controller to a PC via the USB port, a PC
with the following requirements is needed.
• Operating system: Microsoft Windows 7 Home Premium/
Professional/Enterprise/Ultimate Edition, Microsoft
Windows Vista Home Basic/Premium/Business/Ultimate/
Enterprise Edition, Microsoft Windows XP Home Edition/
Professional SP2 or later (Other Windows operating
systems are not supported.)
• USB 2.0 compatible connector
• CD-ROM/DVD drive
Note
Supports Microsoft Windows 7 64-bit. Only 32-bit is supported for
Microsoft Windows Vista and Windows XP.
3-5
USB Specifications
Installing the driver
Yo u must install the USB driver before connecting the
controller to a PC. After the driver is installed, the controller
can communicate correctly with a PC running the Keyence
software XG VisionEditor or XG VisionTerminal.
Note
USB driver installation must be performed by a user with
Administrator privileges.
This section describes how to install the driver, using
Windows XP as an example.
Note
The installation wizard does not automatically appear on Windows
7. To install on Windows 7, connect the controller and the PC, then
use Device Manager to manually install the USB driver.
To install drivers, in Device Manager click [Update driver] under
[Other devices] on the property page for the [XG-8000/7000
Series], and specify the folder that contains the USB driver.
1 Turn on the controller and the PC.
5 Select [Install from the list or specified location]
and specify the folder that contains the USB driver.
Installation of the USB driver starts.
Reference
• The USB driver is located in the \driver\USB folder on the
XG-H8NE CD-ROM. After installing XG VisionEditor and
XG VisionTerminal, the drivers will also be stored locally in
c:driversV-Works for XG H8N.
• When installing drivers in Windows XP or Windows 7, a
warning message may appear confirming the installation.
If such a warning message appears, click [Continue] to
continue installation.
6 When installation of the USB driver is completed,
click [Finish].
2 When the PC starts, insert the XG-H8NE CD-ROM
in the CD-ROM drive.
3 Connect the controller via USB to the PC using the
OP-66844 cable (optional).
The [Found New Hardware Wizard] will appear on the
PC screen.
4 Select [No, not this time], and click [Next].
The controller can now communicate with the PC via
the USB port.
3-6
CC-Link Specifications
CC-Link Specifications
The controller can be used as a remote device station on a
CC-Link network by connecting the optional CA-NCL10E
module. The CC-Link interface supports command
execution, input / output control and data output.
The station type, communication speed, and number of
exclusive stations can be viewed and changed from the
[CC-Link] option in the System Configuration menu. For
more details, refer to the XG-8000 Series Communication
Control Manual.
Reference
Refer to "Installing the Communication Expansion Module" (Page
2-5) for more details on connecting the CA-NCL10E Module.
Note
• The controller must be turned off before connecting or
disconnecting the CA-NCL10E module.
• Restart the controller and master station after changing the CC-
Link settings.
CA-NCL10E Port Specifications
Communication specifications
Item
CC-Link station typeVer.1.10 remote device station
*Use a cable with a nominal cross-section area of at least 2 mm2
as the grounding cable.
color
wire
Signal
Function
name
Connects to the master station or other
slave stations (1 and 6 are shorted).
Connects to the master station or other
slave stations (2 and 7 are shorted).
Connects to the master station or other
slave stations (3 and 8 are shorted).
SLDShield.
Connect the shielded wire of the CC-
Link Ver. 1.10 compatible cable (OP-
79426, OP-79427, etc.) (4 and 9 are
shorted.).
Ground using Class D ground* (100 Ω
or less) (5 and 10 are shorted).
I/O Interface Specifications
3-7
CC-Link Specifications
Connecting to a CC-Link network
CA-NCL10E terminating resistor installation
DA
Precautions when wiring
Take note of the following when wiring the CA-NCL10E
module.
• When connecting the CA-NCL10E to a CC-Link network/
device, always use a CC-Link Ver.1.10 compatible cable
or a cable approved by the CC-Link Partner Association.
Stable operation cannot be guaranteed when using other
cable types.
• If a CC-Link cable is used near a high voltage/current
source, electrical noise may cause operational errors. If
high voltage / current or electrical noise exists, maintain
at least 100 mm of separation between the CC-link cable
and the source of the noise.
Terminating resistor
When connecting the CA-NCL10E module to either end of a
CC Link network, install a terminating resistor between
terminals DA and DB. Make sure to install the terminating
resistors, as they reduce signal noise and stabilize
communications.
Terminating
resistor
DB
Reference
Because terminals 1 and 6, and terminals 2 and 7, are shorted,
the terminating resistor can be installed between either terminals
1 and 2, or terminals 6 and 7.
DA
DB
DG
SLD
(FG)
Master station
Terminating
resistor
CA-NCL10E
Other deviceOther device
Other device
Terminating
resistor
CA-NCL10E
Depending on the cable type the terminating resistor
will be different
Two of each resistor (one for each end of the network) are
shipped with the CA-NCL10E module. Use the correct
terminating resistor for the type of CC-Link cable being used.
Cable typeTerminating resistor
Ver. 1.10 compatible CC-Link cable
FANC-110SBH, FA-CBL200PSBH,
CS110
OP-79426, OP-79427
CC-Link cable
CC-Link high-performance cable
110
BrownBrown
130
Ω
1/2W
BrownBrown
Ω
1/2W
BrownBrown
GoldGold
3-8
BrownBrown
OrangeOrange
BrownBrown
GoldGold
Parallel I/O Specifications
Connector Specifications
Parallel I/O Specifications
The following relates to the parallel I/O connector / ribbon
cable output.
Two digital color/monochrome
cameras (Compatible with
XG-H500C/200C/S200C/H200C/
H100C/035C/S035C/H035C/
H500M/200M/S200M/H200M/
H100M/035M/S035M/H035M,
mixed connection possible)
• With the use of the expansion unit XG-E800 (XG-EC80 installed), it is possible to connect 2
additional cameras, for a maximum of 4.
Simultaneous capture/individual capture can be selected for a maximum of 4 cameras. (Simultaneous
capture support is limited to 2 cameras if XG-E800 is not connected.)
SD Cards 1 and 2 can each hold 1,000 programs (dependent on the capacity of the SD card and the
size of the programs). External program switching possible through I/O & communication ports.
Maximum 1,000 images per 1 program (depending on SD card size). Supports image registration and
partial image registration with JPEG compression and position adjustment. External switching
possible through variable referencing.
SD card slot x 2 (SDHC
compatible)
OP-87133 (512 MB), CA-SD1G
(1 GB: SD1 default), and CASD4G (4 GB: SDHC).
Two digital color/monochrome
cameras (Compatible with
XG-200C/S200C/H200C/H100C/
035C/S035C/H035C/200M/
S200M/H200M/H100M/035M/
S035M/H035M, mixed
connection possible)
Two digital color/monochrome
cameras (Compatible with
XG-035C/S035C/H035C/035M/
S035M/H035M, mixed
connection possible.)
4-2
Image
Acquisition Unit
Processing
Vision
To ol s
Presence /
Absence
Position
detection
XG-8702(P)XG-8502(P)XG-8002(P)
• Supports simultaneous capture for up to four cameras
• Supports buffered image processing using image buffer memory
• Supports multiple placement and loop execution
Capture
Inspection
region
(Available
region
depends on
unit selected)
Filters
(filters
supported
depend on the
unit
)
Color
extraction
(Only
available
when a color
camera is
connected)
Scaling
function
Unit execution
AreaCounts the number of white or black pixels.
Pattern
search
Edge position
Trend
edge position
Blob
• Supports HDR capture (image capture buffer disabled when used)
• Supports variable referencing across a range of setting parameters
• Supports independent trigger delay for each camera
• Supports CA-DC21E illumination configuration and intensity adjustment for individual captures.
• Supported region shapes: rectangle, rotated rectangle, circle, oval, ring, arc, polygon (up to 12
sides), and composite (up to 32 individual regions including masks).
• Processed image region (inspection region generated from a binary image)
• Supported mask regions: 4 per single unit (excluding composite regions).
• Iterations: The same enhancement can be repeated individually up to 9 times. (except: binarization,
subtract, preserve intensity, contrast conversion, shading correction, blur, blob: 1 iteration only)
Supports multiple filter stacking: 13 steps, any combination (binarization, subtract, blob: can only be
applied once in stack)
• Supports variable referencing across a range of setting parameters
• Color to binary, color to gray, fine color, gray, RGB gray
(Color specified in HSB terms. Fine color only available with stain tool)
• Supports variable referencing across a range of setting parameters
• Individual calibration can be applied to units X, Y and length data (variable referencing allowed).
• Calibration can be turned ON/OFF for each inspection unit.
• Unit execution can be configured in the system settings to apply only to XG VisionEditor or to the
controller.
• Unit results, variable referencing allowed.
• Supports multiple pattern searches for up to 99 patterns oriented throughout 360 degrees.
• Supports variable referencing for search, pattern and 4 mask regions.
• Supports variable referencing for detection point offsets.
• Supports referencing of registered images using image variables for processing.
• Measures up to 3,600 positions simultaneously.
• Supports angle measurement using ring and arc inspection regions.
• Measures the average, maximum, and minimum edge positions in a single inspection region
divided into up to 5,000 segments.
• Supports angle measurement using ring and arc inspection regions.
• Detects straight lines and circles from a group of detection points using the least-squares method
(with correction).
Measures the center of gravity and main axis angle (180/360 degrees selectable) for up to 9,999
blobs.
Main Specifications
Specifications
4-3
Main Specifications
Vision
To ol s
(continued)
Position
Adjustment Unit
Control Units
Inspection
To ol s
XG-8702(P)XG-8502(P)XG-8002(P)
Edge width
Edge pitchMeasures the gap pitch and center pitch for up to 1,800 detected edges.
Edge angleMeasures the angle between two detected edges.
Edge pair
Trend
edge width
Blob
Characterization
Stain
Trend edge
stain
Intensity
inspection
Color
(Only available
when a
color camera is
connected)
OCR
2D code
reader
Branch Join
Loop function
BreakForced exit from a loop.
EndEnd flowchart processing.
Measures the distance between two edges (outer gap, inner gap, specified edges for up to 1800
detected edges).
Measures the gap pitch and center pitch for up to 3,600 detected edges formed into pairs from two
scans.
Measures the average, maximum, and minimum edge widths between two edges (outer gap, inner
gap) in a single inspection region that has been divided into up to 5,000 segments.
Labels and counts up to 9,999 blobs measuring the center of gravity, main axis angle (180/360
degrees selectable), area, Feret diameter, perimeter, roundness, width, aspect ratio, major axis, box
height and axes ratio.
• Detects grayscale targets and returns blob measurement data.
• Supports target measurements and characterization based on intensity data.
• Supports contrast display.
• Detects flaws and defects inside a region by comparing the average intensity of segments.
• Supports image subtracted stain detection by using a subtraction filter from a registered image.
• Supports multiple detection of up to 99 groups using the stain grouping function, measurement of
detected positions and features, and filtering based on feature characteristics.
• Supports detection in a color image using fine color mode.
• Supports contrast display.
• Detects a defect (protrusion or indentation) that deviates with respect to a model line built on
detected edge points from a profile.
• Supports flaw detection based on straight lines, circles, ovals, and free-form curves as model lines.
• Measures pixel intensity value.
• Required as a the reference for the preserve intensity filter.
Measures pixel RGB or HSB value
• Supports recognition of alphanumeric characters and user specified symbols for up to 2 lines of 20
characters (40 total) identified automatically or from a fixed region.
• Supports a user-definable library of up to 200 characters, including 20 custom characters.
• Supports calendar based tolerances (with zero suppression and offset functionality).
• Supports encrypted date, time and shift codes.
• Supports reading of 2D codes (QR (Model 1 / Model 2), Micro QR, DataMatrix, Rectangular
DataMatrix: (ECC200)) of up to 512 characters in length, including readout dividing (up to 8
sections).
• Supports registration of up to 16 character patterns and date & time tolerances (with zero
suppression, and offset functionality).
• Provides 1- or 2-point position correction for X, Y, and θ (±180 degree) orientation of inspection,
image operation and on-screen graphics units.
• Supports referencing from all or individual measurement units.
• Supports batch reference registration using a registered image.
• Provides up to 64 flowchart branches for processing control based on a reference and condition
(unit results, numerical value, variable).
• Supports forced flow processing for retesting.
Supports multiple unit execution control based on the number of loops (fixed or variable reference)
specified.
4-4
Operation Units
Timing Units
Display
XG-8702(P)XG-8502(P)XG-8002(P)
• Allows multiple calculation processing separated by line feeds. Can contain up to 5000 characters
including comments.
• Supports timeout-based and answer-based (ANS) unit judgment.
• Supports bit functions: B_And, B_Not, B_Or, B_Xor, Bind
• Supports statement operators: FOR, STEP, NEXT, EXIT FOR, IF, ELSE IF, END IF, DO WHILE
(undefined loop), EXIT DO (undefined loop), comments, continue to next line
• Supports calculation results
• Displays and highlights calculation errors.
• Creates images based off of features extracted from one or multiple images, or an image with
intensity differences.
• Operation: Processes multiple images. Supports a combination of 1:1, n:1, n:n (max of 32) images
• Conversion: Processing performed on a single image.
• Conversion functions: Add, Subtract, AbsoluteDifference, Multiply, Rotation, Translation, Z,
Trapezoid Correction, Pixel Value Conversion, Blob, NOT, AND, OR, XOR, NAND, NOR, XNOR,
Right Bit Shift, Left Bit Shift
• Provides functionality for C language source files to be compiled for both controller and PC
simulation operation. (Supported compilers: Controller: Texas Instruments C6000 Code Generation
Tools 6.0.* or 6.1.* (6.0.11 recommended), PC: Microsoft Visual Studio 2005/2008/2010, Visual C++
2008/2010 Express Edition.)
• Provides access to pixel data from the specified image variable.
• Supports passing of Local variables, global variables, and system variables values can be passed
for referencing and rewriting (rewriting not supported for system variables).
• Supports Microsoft Visual Studio debugging.
• Lens and trapezoidal distortion correction via taught calibration pattern.
• Supports image and or coordinate correction.
• Supports correction from multiple calibration patterns.
• User defined calibration patterns available for printing.
• Pause flow chart based on AND/OR state change (edge/level, ON/OFF, rising/trailing edge)
evaluation of up to 20 terminals.
• Supports bit information for CC-Link bit device and EtherNet/IP output data (assignment for
controller receiving).
Pause flow chart based on AND/OR evaluation from comparing results of variables (max 8) and
reference values (max 2).
Displays graphical objects and characters linked to variables and unit results. Available graphic
objects: rectangle, rotated rectangle, circle, oval, ring, arc, point (rotating crosshair), line
Characters: text, values, active text, decimal - ASCII.
Main Specifications
Specifications
4-5
Main Specifications
Output Units
Commands
Common Outputs
Configuration &
editing functions.
Retest function
Parallel
terminal
output
Data output
Image output
Command
execution
Total status
output
Tot a l e r r o r
output
Inspection
Programs
Offline /
system
configuration
XG-8702(P)XG-8502(P)XG-8002(P)
• Outputs user-defined inspection results to the I/O terminals.
• Supports time-delayed separated outputs for up to 8 cycles.
• Skips data output for non-processed units.
• Supports image / output priority processing.
• User-defined inspection results (256 maximum) via any of the following methods:
to the SD card, RS-232C, Ethernet, CC-Link, EtherNet/IP, PLC-Link, or PC Program (ActiveX).
• Supports the use of up to 16 custom-formatted output strings.
• Skips data output for non-processed units.
• Supports user-defined output folder and file naming rules (when outputting to the SD card or PC
(ActiveX))
• Supports image / output priority processing.
• Outputs image data (BMP / JPG selectable file format) for an image variable to either the SD card or
PC Program (ActiveX).
• Supports user defined output folder, folder generation (by no. of images or date), and file naming
rules.
• Supports image / output priority processing
Provides functionality for commands to be processed directly from the flowchart during Run mode
from the image processing flow.
Outputs the logical OR from of the results of selected units.
Outputs the logical OR of from the unit errors of selected units.
• Provides the creation of new programs and the deleting/copying/renaming of programs whilst in run
mode.
• Supports adding or editing units in a flowchart (Image Acquisition, Vision Tools, Flowchart
Functions, Functions, Timing, Display, Output, Execute Command)
• Setting Menus: Flowchart Settings, Variable Settings, Total Status Output, Total Error Output,
Scaling, Camera Selection, Image Capture Buffer Settings, Statistics, Image Archive, FTP Settings,
Variable Update Settings, Target Classification Settings, Update Registered Image Information and
Update Reference Position Information.
• Supports the creation and editing of screens using the Screen Editor.
• The system configuration can be edited in offline mode.
• Available system settings (Controller name, Date & Time, Language, Registered Image File Type,
Overall Menu Opacity, Unit Execution, Startup Mode)
1) Available camera settings (Camera Settings, White Balance, Caliration)
3) Available custom functionality (OCR Encryption, Custom Instruction Settings, CA series Touch
Panel settings, New Program Options
• Supports the retesting and editing of inspection settings based on stored / archived or master
images selected from the image strip.
• Supports batch and detailed statistical analysis of stored / archived or master images loaded into
the image strip.
4-6
Image capture
range
Camera image
correction
Display Screens
Process area
CCD
Scanning
method
(monochrome
camera only)
Capture Start/
End Line
Camera gain
adjustment
White
Balance (color
camera only)
Mirrored
image
Calibration &
Scaling
Number of
screens
Number of
frames
Number of
displays
Screen
parts
Main Specifications
XG-8702(P)XG-8502(P)XG-8002(P)
• 1024(H) x 960(V) (980'000 pixels) section contained within
1600(H) x 1200(V) (1,920,000 pixels) in 1 megapixel mode.
• 512(H) x 480(V) (320'000 pixels) section contained within
640(H) x 480(V) (310,000 pixels*) in standard mode.
*310,000 pixels when XG-H035C/H035M is connected
Progressive/interlace selectable
Capture start/end lines can be set anywhere within the image capture range.
(XG-H200C and H200M cannot capture fewer than 100 lines.)
Capture start line can will be changed for each capture unit by referencing variables.
Sensitivity offset and span adjustment
Individual and batch RGB span and sensitivity (brightness) adjustment across 16 levels (when color
camera is connected).
Manual RGB ratio adjustment
Support for mirrored (horizontal (left-right), vertical (top-bottom)) and rotation (180°) image generation
Individual calibration and scaling support for angled camera, lens distortion X,Y and length
measurement for each connected camera
Support for up to 100 screens per program, external switching possible.
Display control according to user group.
99 frames per screen, external switching possible.
• Support for up to 8 individually customizable (layout and size) displays per screen.
• Display of either current image from specified camera, registered image or user specified archived
image.
• Zoom functionality linked to inspection regions of user-specified vision tool or primary target.
• Frames: Base Frame, Page Frame
• Basic Parts: Values, Text, Active Text, Horizontal Line, Vertical Line, Point, Rectangle, Circle,
Polygon.
• Standard Parts: Program Name, Date, Time, Display Camera & Image Information, Display Area &
Magnification, Total Status Pass / Fail, Logo Image (BMP), Unit Details (Vision Tools), Unit Details
(Non-Vision Tools), Variable List, Unit Pass / Fail Graphic, Unit Result Summary List.
512(H) x 480(V) (320'000 pixels)
section contained within 640(H)
x 480(V) (310,000 pixels*) in
standard mode.
Specifications
4-7
Main Specifications
Dialog menus
Number of
menus
Menu
Elements
Built-in menu
Unit
properties
XG-8702(P)XG-8502(P)XG-8002(P)
• Maximum of 900 menus per program with, external switching possible.
• Support for option dialog based menus that can be used to change or set various parameters while
the controller is in Run mode.
• Dialog transparency can be changed to 100%, 90%, 75%, 50%, or 25%
• Screens can be linked to menus being used.
Text, Numerical Input, Drop Down Menu, Option Button, Confirmation Button.
Region Setting, Image Registration, Color Extraction, Statistics, Image Archive, Library, Unit
Properties, View Toolbar, Retest, Function Menu, Change Program, View Files, I/O Monitor &
Diagnostic, RS-232C Monitor, Change User, Setup Date / Time, Save Program, Rename Program,
Copy/Delete Settings, Save / Load Settings, Stop SD2 Operation, Variables, Linescan calibration,
Encoder Monitor, Target Classification, Resources, New / Edit / Delete Programs, Total Status, Total
Error, Scaling, Image Capture Buffer, Statistics Setup, Image Archive, Camera Selection, FTP Setup,
Update Variables, Target Classification / Image Clipping Settings.
• Inspection Region, Color Extraction, Library menus support changes based on login permission.
• Register Image menu can reference position correction functions
• The Unit Properties menu can be used for all units apart from the C Plug In unit.
• Holding variable values can be enabled for variable and New / Edit / Delete Programs menu.
• Supports changes to pre-configured units (Image Acquisition, Vision Tools, Position Adjustment,
Flowchart Functions, Operations, Timing, Display, Output, Commands).
• Supports image selection (captured, registered) and controller input, output operation when menu
opened.
• Supports updating of registration reference values from registered images.
4-8
Support
functions
Statistics
Image Archive
Data
SummaryMaximum, minimum, average, standard deviation (+/- 3σ), total status OK/NG count
Main Specifications
XG-8702(P)XG-8502(P)XG-8002(P)
Maximum of 100,000 data points per item, maximum 256 items (all data can be saved to SD card in a
single operation).
• Maximum number of images:
- 1024 images
(monochrome camera
240,000 pixels)
- 1024 images
(monochrome camera
310,000 pixels)
- 525 images
(monochrome camera
1,000,000 pixels)
- 270 images
(monochrome camera
2,000,000 pixels)
- 100 images
(monochrome camera
5,000,000 pixels)
- 1024 images
(color camera 240,000
pixels)
- 1024 images
(color camera 310,000
pixels)
- 516 images
(color camera 1,000,000
pixels)
- 264 images
(color camera 2,000,000
pixels)
- 94 images
(color camera 5,000,000
pixels)
• Simultaneous processing of up to 8 archives with different content.
• Support for single or multiple preceeding image archiving. Choice of overwriting or processing until
buffer is full.
• Support for storage of result data along with image, allowing reproduction of inspection data and
results.
• Support for outputting archived images and data to SD card, PC (via Active X component), or FTP
server for each archive.
- 1024 images (monochrome camera 240,000 pixels)
- 1024 images (monochrome camera 310,000 pixels)
- 525 images (monochrome camera 1,000,000 pixels)
- 270 images (monochrome camera 2,000,000 pixels)
- 1024 images (color camera 240,000 pixels)
- 1024 images (color camera 310,000 pixels)
- 516 images (color camera 1,000,000 pixels)
- 264 images (color camera 2,000,000 pixels)
Specifications
4-9
Main Specifications
Parameter
setting
Support
functions
(continued)
Interface
aids
Direct SD card saving
Other
Control inputs
(user-assignable)
Control outputs
(user-assignable)
Encoder inputNPN open collector output support via assignable high speed inputs (2 systems)
Monitor output
Operation indicatorsPower, Run and Error LED display
RS-232C
PLC-Link
Image zoom
Edge Graph
display
Trend Edge
Profile display
Contrast
display
OCR
Wavefor m
display
Trend Edge
Stain graph
display
Variabl e
Settings
Line scan
Profile Viewer
Ta rg e t
Classification
XG-8702(P)XG-8502(P)XG-8002(P)
1% to 2500% image magnification during operation. Supports display scrolling via handheld
controller or by detected target position.
(Zoom ratio can be set individually for multiple displays).
Graphical edge differential display during operation. Based on detected change in intensity from
edge tools.
Graphical profile display during operation based on trend-edge tools (position, width, stain) detected
edge points
Visual display of detected contrast during operation. Based on stain level (stain tool) or intensity level
(characterization tool)
Graphical display of OCR character extraction during operation.
Graphical display of stain (protrusion / indentation) during operation. Based on trend-edge stain tool
profile and detected edge points.
• Support for local, global, or system variables to be checked and changed during operation.
(System variables can be checked only.)
• Support for grouping and screen display options.
Graphical display of intensity and differential for selected line of image (line scan camera only).
• Recording and classification of detected stains and blobs based on measurement data.
• Supports file output of classification data, and clipped image (based off of detected position), to SD
card or FTP server.
• The following data can be saved directly to the SD card while running: Measurement data,
judgment results, NG count, processed images BMP/JPG, archived images (BMP/JPG), raw
images, statistical analysis data, RS-232C log, program data, operation log.
• User-specified camera images in offline mode.
Screen capture, user account login, file management, I/O diagnostics, RS-232C monitor / logging and
encoder monitor.
20 inputs, including 4 assignable high speed inputs.
Input rating 26.4 V or less, 2 mA or more (high-speed inputs 3 mA or more).
28 NPN open collector, maximum 50 mA (30 V or less) or PNP outputs (based on controller type).
Including 4 high speed FLASH outputs synchronized with trigger inputs. NPN open collector,
maximum 50 mA (30 V or less)
Analog RGB output
XGA (1024 x 768 x 24-bit color) / SVGA (800 x 600, 24-bit color) (Program selectable.)
2 ports, maximum baud rate 230,400 bps
Numerical value output, control, and interfacing to CA Series touch panel.
• numerical value output and control via the RS-232C or Ethernet port (cannot be used with CC-Link
or EtherNet/IP).
- Mitsubishi Electric: A Series (RS-232C only), Q Series, L Series
- OMRON: SYSMAC C Series (RS-232C only), CP1/CS1/CJ1/CJ2 Series
- Yasukawa Electric MP900 Series (RS-232C only), MP2000 Series
*1
4-10
XG-8702(P)XG-8502(P)XG-8002(P)
• Numerical value output and control.
• PC connectivity to Keyence XG Series software for uploading / downloading of programs data,
images, and running of simulations.
Ethernet (TCP/IP)
USB
Interface
(continued)
Display languageJapanese, English, Chinese (simplified), or Chinese (traditional). Startup selectable.
Illumination control
Rating
Environmental
resistance
WeightApprox. 1,600 g
*1 Models equipped with an Ethernet port on the CPU unit support direct connection to the Ethernet port.
CC-Link
EtherNet/IP
Handheld Controller
Touch panel
Power supply voltage24 V DC ±10%
Current consumption
Ambient temperature0 to +45°C
Relative humidity35 to 85% RH (no condensation)
• FTP client function support
• VNC server function support
• BOOTP function support
• 1000BASE-T/100BASE-TX/10BASE-T communication speed
• PC connectivity to Keyence XG Series software for uploading / downloading of numerical values,
programs, data, images, and running of various simulations.
• USB Ver. 2.0 only
• Numerical value output and control with optional CC-Link module (CA-NCL10E) (cannot be used
with PLC-Link or CC-Link).
• Compatible with Ver.1.10 and Ver. Ver.2.00 remote device stations
• Numerical value output and control via Ethernet port (cannot be used with PLC-Link or CC-Link
enabled).
• Supports cyclic communication (max. 1436 bytes) and message communication.
• Max. number of connections: 32
• Complies with conformance test Version A7.
• Menu access and navigation with connected OP-84231 and OP-84236
• Programmable function buttons.
• Independent user group (enable / disable) button functionality
• New/edit/delete program functionality with CA Series touch panel (connected to RS-232C port).
• Special touch menu and control button support.
Optional LED illumination expansion module (CA-DC21E). 12V / 24V illumination and intensity control,
2 channels per module, maximum of 4 modules (8 channels) per controller.
3.6 A (2 cameras connected) / 4.6 A (4 cameras connected)
Figures indicate maximum load including include rush current at startup.
0.05 ms to 9000 ms can be set through manual input
0 to +40°C
1/1.8-inch monochrome CCD, square
element all pixels 7x-speed reading,
2,010,000 pixels
Progressive (29.2 ms: 2 megapixel mode,
24.2 ms: 1 megapixel mode),
interlace (16.1 ms: 2 megapixel mode, 13.6
ms: 1 megapixel mode)
Interlace is a binning process which sums
the odd lines and even lines.
4-12
Cameras (XG-200C/S200C)
XG-200CXG-S200C
CCD1/1.8 type color CCD, square pixels reading, 2x-speed reading 2,010,000 pixels
CCD pixel size4.4 μm x 4.4 μm
Effective pixelsColor 1,920,000 pixels, 1600 (H) x 1200 (V)
In the 1 megapixel mode, 980,000 pixels (1024 x 960) of the 1,920,000 pixels are in the
process area.)
Effective pixels1,920,000 pixels, 1600 (H) x 1200 (V)
(In the 1 megapixel mode, 980,000 pixels (1024 x 960) of the 1,920,000 pixels are in the
process area.)
Scanning
method
Image transfer
frequency
Transfer systemDigital serial transfer
Electronic
shutter
Lens mountC-mountSpecial mount (M15.5 P0.5 male)
Environmental
resistance
WeightApprox. 110 g (lens not included) • Head: approx. 210 g
Ambient
temperature
Relative humidity 35 to 85% RH (no condensation)
Progressive (58.5 ms: 2 megapixel mode, 47.6 ms: 1 megapixel mode)
Interlace (32.7 ms: 2 megapixel mode, 27.0 ms: 1 megapixel mode)
Interlace is a binning process which sums the odd lines and even lines.