Ultra High-Speed,
High-capacity Multi-camera
Machine Vision System
XG-8000 Series
Setup Manual
(Line Scan Camera Edition)
96181A
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
Initial installationSupport tool for operationCommunication control/external monitoring
Camera
External
device
Controller
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
96181A
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 dust, 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 any way, use a cloth moistened with a mild detergent to wash off, then wipe dry with a dry cloth.
5
Precautions on Regulations and Stabdards
Precautions on Regulations and Stabdards
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 standard EMI: 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 the 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.
Alphabetical 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 5-23) for more details about other
optional accessories which can be used with this system.
1-2
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
Function
XG-8502L/8702L
Make adjustments in the
field and add functionality using
the controller.
USB
.
Ethernet
XG-8000 Series controller
This controller 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 for 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 & 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-3
Identifying Controls and Connectors
Identifying Controls and Connectors
Controller
I/O (parallel I/O) connector
Use for signal input and output (Page 4-9).
SD2 slot (upper), SD1 slot (lower)
Insert an SD card (Page 2-22).
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-EX80L
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).
MONITOR connector (SVGA)
Use to connect to an external monitor (Page 2-13).
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.
USB connector
Use to connect a USB cable (Page 4-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-12).
RS-232C connector (Port 2, D-sub 9 pin)
Use to connect the touch panel RS-232C cable (OP-87258: 3 m /
OP-87259: 10 m, optional) or a commercial RS-232C cable (D-sub
9-pin female) (Page 4-2).
1-4
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 4-2).
Reference
As a 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 4-4).
IN2/OUT2 connector (terminal block 2)
Use for signal input/output (IN2/OUT2) (Page 4-15).
IN1/OUT1 connector (terminal block 1)
Use for signal input and output (OUT1/IN1) (Page 4-12).
Power and ground terminals
Use to connect power (24 V DC) and the ground wire (Page 2-13).
Expansion unit connector 2 (left side)
Use when connecting the illumination expansion unit (CA-DC21E)
or CC-Link unit (CA-NCL10E) (Page 2-5).
Function
Note
When the illumination expansion unit CA-DC21E is connected, Flash
control is limited to Flash 1 - 4.
1-5
Identifying Controls and Connectors
CC-Link Unit: CA-NCL10E (option)
Connector on expansion unit side
L RUN
SD
RD
L ERR
DA
DB
DG
SLD
(FG)
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
Terminal block
See the wiring diagram (Page 4-7).
Connector on controller side
Connect to the controller.
1-6
Identifying Controls and Connectors
Illumination Expansion Unit: CA-DC21E (Option)
Connector on expansion unit side
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.
POWER
4
LIGHT 2
3
2
1
4
LIGHT 1
3
2
1
OUT
IN
Function
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-18).
1-7
Identifying Controls and Connectors
Handheld Controller
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.
FUNCTIONTRIGGER
ESCAPE
SCREENMENU
VIEW
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.
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.
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.
1-8
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.
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.
Various 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 3-2). 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 protocol.No. 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
Function
2. Operation when the power is on (combination keys: default settings)
Change the opacity for the dialog menus.No. 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)
No. 1 button (FUNCTION) + No. 2 button (ESCAPE)
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-9
Identifying Controls and Connectors
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 one camera
24 V DC power supply
CA-U3 (optional)
Controller
XG8702L/8502L
Touch panel LCD monitor
CA-MP120T (optional)
Handheld Controller
(OP-84231, optional)
Camera
XG-HL02M
XG-HL04M
XG-HL08M
* XG-8702L only.
SD card (OP-87133, A512MB*)
(Inserted in slot SD1 on
controller)
* XG-8702L comes with
1 GB (CA-SD1G)
Camera cable
CA-CH3 (3 m) (optional)
Lens
(optional)
*
*
Reference
For more information on connecting cables to cameras, please refer to "Camera cables (line scan camera XG-HL***,
high-speed camera XG-H****)" (Page 5-21).
2-2
Standard System Configuration
Example of a standard system setup with two line scan cameras
Camera Expansion Unit
XG-E800 + XG-EC80L (option)
Controller
XG-8702L/8502L
24 V DC power supply
CA-U3 (optional)
Handheld Controller
(OP-84231,
optional)
Touch panel LCD monitor
CA-MP120T (optional)
SD card (OP-87133, A512MB*)
(Inserted in slot SD1 on
controller)
* XG-8702L comes with
1 GB (CA-SD1G)
Camera cable
CA-CH3 (3 m) (optional)
Cameras 1 & 2
XG-HL02M
XG-HL04M
XG-HL08M
* XG-8702L only.
*
*
Installation and Connection
Lens
Reference
For more information on connecting cables to cameras, please refer to "Camera cables (line scan camera XG-HL***,
high-speed camera XG-H****)" (Page 5-21).
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 a large amount of dust or water vapor. The controller does not have a
• 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
mechanism 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. Maintain 90mm or more of space in the front of the connector panel of the controller to
ensure the cables can be properly connected.
• 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 2 or more cameras, attach the camera input unit to the camera expansion unit XG-E800,
then install the controller. (Each sold separately)
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 4-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
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.
Illumination
expansion unit
Connecting multiple units
Spacer
(included with the
illumination expansion unit)
Note
• 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
illumination expansion unit while connected to a power source may damage the controller or peripheral devices.
• When an illumination 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.
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
2-6
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.
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 appropriate measures insulate
the camera 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.
• 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 width of the target (FOV, field
of view: X) and the distance between the camera and the
target (working distance). Select a suitable lens referencing
the FOV chart.
Width: X
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.
Reference
For information about the area camera FOV Chart, refer to the XG-8000 Series Setup Manual (Area Camera Edition).
2-9
Selecting the Lens
0
Using a 2048-pixel Line Scan Camera (XG-HL02M) or 4096-pixel Line Scan
Camera (XG-HL04M)
Example: When using the CA-LHW16 with a required field of view of 200 mm, the chart shows that the working
distance should be set to 200 mm and the 0.5 mm close-up ring should be used.
High-resolution lens for line scan cameras (CA-LHW/CA-LM)
1000
0.5
0.5
1.0
1.5
5
x0.25
100
X: Field
of view
(mm)
10
1.0
1.5
x0.5
x0.75
x1.0
1
100010010
WD: Working distance (mm)
CA-LHW8
CA-LHW12
CA-LHW16
CA-LHW25
CA-LHW35
Note
C-mount lenses other than CA-LHW cannot be used with a line scan camera.
Using a 8192-pixel Line Scan Camera (XG-HL08M)
High-resolution lens for line scan cameras (CA-LHL/CA-LML)
1000
100
X: Field
of view
(mm)
10
x0.75
x1.0
x0.25
x0.5
CA-LHW50
10000
CA-LM021
2-10
1
CA-LHL16
CA-LHL25
WD: Working distance (mm)
CA-LHL35
CA-LML0210
100010010
10000
Information on Optional Lenses
Contact your local Keyence office if you require lenses not shown here.
• 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 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.
To Camera 1 connector
Camera 1
Note
• With a XG-HL**** line scan 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.
Using the camera cable extension amplifier
Camera cables can be extended by using the camera cable extension amplifier and dedicated
extension cable (Page 5-22).
Camera cable
extension amplifier
2-12
For more information on connection, read the instructions provided with the camera extension
amplifier.
Connecting Cables
connecto
C
2 Connect the optional handheld controller (OP-84231 or OP-84236) to the modular connector on
the controller (CONSOLE).
Installation and Connection
To modular
r
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].
8.5 mm or less
8.5 mm or less
Forked terminals
Ring terminals
Connect 24 V DC and 0 V to the dedicated power
terminals.
Connecting to 24V DC Connecting to 0V D
Connect the ground wire to the grounding terminal.
Connect ground wire here.
2-13
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.
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
A
Other devices
B
A > B
A < B
2-14
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-16) 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.
Installation and Connection
Reference
Refer to "Line scan LED lights" (Page 5-33) for a list of the LED light (CA-DZ) products which can be used with the line
scan camera.
Specular Reflection
If a stain or indentation exists, the light is not reflected back to the
camera and the corresponding area appears dark.
Diffuse Reflection
If a burr or protrusion is present, the light is reflected back to the
camera and the corresponding area appears bright.
Tran s m ittanc e
This method is frequently used for dimensional measurement and
for detecting foreign substances on a translucent/transparent
sheet. With transmitted lighting, the outline edges are highlighted
for easy measurements. When detecting foreign substances on a
translucent/transparent sheet, the containments block the
transmitted light and appear dark.
2-15
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-16
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-DC20E is configured correctly for the illumination
being connected.
• IN Connector Terminal Block
No.Signal (terminal
block display)
1COMIN (COMIN)Common for terminal
2LIGHT_OFF (LOFF)Forced light off inputUsed to force the emission of LED illumination units
324VDC (24V)+ ve power supply input
40 V (0 V)- power supply (0 V) input Supplies a 0 V power source for the illumination
The power source 0V and COMIN1 are all isolated.
Signal DescriptionFunction
Dedicated common input for the IN connector
block inputs
terminal.
to off.
Supplies a 24 V power source for the illumination
(24 V DC)
expansion unit.
expansion unit.
2-17
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 12 VDC.
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.
Warning
• 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-17) 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-18
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-19
Connecting the Encoder
Connecting the Encoder
There are two methods that can be used to connect the controller and encoder.
• RS-422 Line Driver Output
• Open collector output
Select the appropriate method of connection according to the specifications of the encoder that is being
used.
For RS-422 Line Driver Output
Configure the controller circuit as shown below.
Line driver output
(encoder)
+5VDC
5V
OUT
5V
Controller
Main circuit
26C31
A, B, Z
A, B, Z
0V
(Shield)
Controller-to-shield disconnected
A+, B+, Z+
Use shield cable.
A−, B−, Z−
0V
OUT
100Ω
1kΩ
1kΩ
Equivalent
AM26LS32
Receiving circuit
Terminals used for connection on the controller side (IN2 connector)
For more details about the IN2 connector specifications, refer to "INPUT 2 connector" (Page 4-15).
Precautions when connecting
• Install the provided ferrite core (ZCAT2035-0930A) at a point within 300 mm on the cable controller side.
• For the RS-422 cable, use a cable that is suitable for the RS-422 signal.
• Be sure to connect the cable shield to FG.
• The 5 V OUT current shall be 150 mA or less. If the current exceeds this value, use an external 5 V
power source.
• 5 V OUT and 0 V OUT are insulated from the power, 0 V, COMIN1, COMIN2, COMOUT1, COMOUT2,
COMOUT_F+, and COMOUT_F-.
2-20
Connecting the Encoder
For Open Collector Output
Same wiring as standard terminal inputs.
Open collector
output (encoder)
Controller
Main circuit
+24VDC
A, B, Z
20mA
maximum
0V
(Shield)
Controller-to-shield disconnected
F_IN1 (A phase input) (IN1)
F_IN2 (B phase input) (IN2)
F_IN3 (C phase input) (IN3)
COMIN
Note
Only encoders with a 24VDC type output can be used and connected to the controller (5VDC open collector type is
not supported).
Terminals used for connection on the controller side (IN2 connector, parallel I/O port)
• For more details about the IN1 connector specifications, refer to "INPUT 1 connector" (Page 4-14).
Installation and Connection
6
• For more details about the parallel I/O port specifications, refer to "Parallel I/O Specifications" (Page 4-
9).
2-21
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 (XG-8502L) or CA-SD1G (XG-8702L) 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.
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-22
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].
Installation and Connection
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.
Press SD card to
unlock it.
Remove SD card.
Reference
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.
2-23
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 RS-232C (Page 4-2), Ethernet (TCP/IP) (Page 4-4), PLC Link, CC-Link (Page 4-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.
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
details, see the XG-8000 Series User's Manual.
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-24
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 4-4) for more details about the Ethernet interface.
Installation and Connection
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 4-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 4-6).
• See the dedicated XG software manual for instructions on connecting to the controller.
2-25
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.
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.
XG VisionEditorXG VisionTerminal
2-26
Chapter
Initial Installation
Overview of Initial
Installation
3
This section explains how to connect the line scan
camera(s) to the controller and adjust the necessary
settings in order to capture images properly.
Initial Installation
1. Turn on the power and perform initial setup
(Page 3-2).
• Set the system language and screen resolution.
T
2. Enable the encoder (only when an encoder is used)
(Page 3-4).
• When capturing images by encoder input, change the
controller settings and enable input from the encoder.
• For details about connecting the encoder, refer to "Connecting
the Encoder" (Page 2-20).
T
3. Activate the lighting (Page 3-5).
• Turn on the lighting before executing image capture or
adjusting the capture settings.
T
4. Make adjustments in order to obtain the desired
image capture with the line scan camera.
Fixed capture (time specified) (Page 3-6).
• Set for fixed frame inspection using line capture at the set time
interval.
Fixed capture (encoder input) (Page 3-8).
• Set for fixed frame inspection using line capture every set
number of counts from the encoder.
Continuous capture (time specified) (Page 3-11).
• Set for continuous inspection using line capture at the set time
interval.
Continuous capture (encoder input) (Page 3-13).
• Set for continuous inspection with using capture every set
number of counts from the encoder.
Reference
If the inspection settings have already been uploaded, the
required operations and contents of screen displays may be
different than those shown in this manual.
3-1
1. Turn on the power and perform initial setup.
1.Turn on the power and perform initial setup.
This section explains how to adjust the controller starting
from its initial default condition in order to capture images
properly.
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.
4 If the touch panel is not used, 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.
5 Perform touch panel calibration.
Touch the at the top left of the screen.
Touch the at the bottom right of the screen.
2 In the [System Language] box, select the desired
system screen resolution.
• Japanese
• English
• Traditional Chinese
• Simplified Chinese
3 In the [Screen Resolution] box, select the
resolution at the time the settings are created.
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
•
3-2
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.
Reference
If the calibration is not correct, or to perform correction
again, click [Retry Calibration].
Click [OK].
Click [Close].
6 Press the No.1 (FUNCTION) button on the handheld
controller.
The [Function] menu appears.
1. Turn on the power and perform initial setup.
Initial Installation
Next steps:
The operations vary depending on whether or not an
encoder will be used. If an encoder will be used for image
capture, proceed to "2. Enable the Encoder (When an
Encoder is Used)." (Page 3-4). If an encoder will not be
used, proceed to "3. Activate the lights." (Page 3-5).
3-3
2. Enable the Encoder (When an Encoder is Used).
2. Enable the Encoder (When an Encoder is Used).
This section explains the Offline mode operations that are
needed in order to capture images using an encoder.
The [Terminal Block & Parallel Port] menu appears.
4 Select [Encoder Settings].
The Encoder Settings menu appears.
5 Select [Encoder 1], then select [Open Collector] or
[RS-422] and click [OK].
If 2 line scan cameras will be connected and 2
encoders are used, select both [Encoder 1] and
[Encoder 2].
Note
If [Open Collector] is selected, the input assignments listed
below are disabled and used specifically for the encoders.
• Encoder1: F_IN1, F_IN2, F_IN3
• Encoder2: IN1, IN2, IN3
3 Select [Input Assignments].
The Input Assignments menu appears.
Reference
[Filter Length (nsec)] on the Encoder screen indicates the
minimum length of the signal which the controller receives as
the input signal from the encoder. It is recommended to use
the initial setting.
6 Click [OK].
The [Terminal Block & Parallel Port] menu appears.
7 Click [OK].
A confirmation screen appears.
• To apply the settings right away, select [Restart now].
• Select [Restart later] to return to the System Configuration
menu.
8 From the System Configuration menu select [Go
Online].
The controller switches to Online Run mode.
9 Press the No.1 (FUNCTION) button on the handheld
controller.
The [Function] menu appears.
3-4
3. Activate the lights.
3. Activate the lights.
This section explains the operations used to activate the
lights when an illumination expansion unit is used.
Note
Use caution so that continual lighting does not cause the
illumination unit to overheat.
1 From the function menu, select [Edit Flowchart].
A confirmation screen appears.
2 Click [OK].
The Flow Editor appears.
4 Activate the desired lights.
• If an illumination expansion unit is used: Click
[Lighting Expansion Unit] on the left side of the screen,
then select the desired light number and click [OK].
If other lights are used: Keep the lights on while
•
adjustments are being made.
Reference
It is recommended to set the light [Mode] to D.C. when using fast
shutter speeds. This is set in the Offline Settings of the controller.
Select [Cameras] - [Settings] - [Light Config.] and set the mode.
Next steps:
Initial Installation
3 Select the capture unit.
The capture unit setting menu appears.
The following operations vary depending on the capture
conditions and environment.
See the explanation below for details.
• Fixed capture at set time interval: Page 3-6
• Fixed capture using encoder input: Page 3-8
• Continuous capture at set time interval: Page 3-11
• Continuous capture using encoder input: Page 3-13
3-5
4. Adjust capture settings to obtain desired image with the line scan camera. (Fixed capture)
4. Adjust capture settings to obtain desired image
with the line scan camera.
This section explains the operations necessary to correctly
perform fixed image capture.
Fixed image capture at set time
interval
1 Select [Camera Settings].
The [Camera Settings] screen appears.
(Fixed capture)
6 Select [Capture Options].
The Capture Options menu appears.
7 Input the trigger.
Image capture is performed once.
2 Select [Select Camera].
The [Camera Selection] menu appears.
3 Verify that the camera type displayed in the
[Camera] field matches the camera that is
connected.
If a different camera is displayed
Select [Camera], then select [Auto] on the Camera
Selection menu and this will automatically detect the
connected camera type.
Reference
• Because brightness has not yet been adjusted, a black
screen may be displayed. This is not a problem.
• Pressing and holding the No. 3 button (TRIGGER) on the
handheld controller will continuously update the screen. In
this case, the lights that are connected to the illumination
expansion unit will remain continuously on.
4 In the "Resolution" field, select "(Fixed)" capture.
5 Click [OK].
3-6
4. Adjust capture settings to obtain desired image with the line scan camera. (Fixed capture)
g
8 Display a location where there is an intensity
difference, and adjust the lens aperture and focus
while monitoring the LED indicators on the back of
the camera.
When brightness is increased, the upper "Brightness"
LEDs illuminate white, and when the intensity
difference increases, the lower "Sharpness" LEDs
illuminate blue.
Brightness
Sharpness
There are three LED indicators for each. With the
default settings, the LEDs indicate the values shown
below (0 - 255, units: steps)
Brightness (Maximum
brightness value)
Sharpness (Maximum intensity
difference value)
Reference
The threshold values for the "Brightness" and "Sharpness"
camera LEDs can be changed with the Linescan Intensity
Calibration function (Page 3-17).
64128192
102030
9 Move the workpiece and display the image.
10Adjust the [Shutter Speed], [Number of Lines], and
[Line Cycle] values.
When the values are properly adjusted, the correct
image will be displayed at each update without
displacement.
Reference
• If the image is displaced downwards, reduce the line
trigger cycle.
• If the image is displaced upwards, increase the line trigger
cycle.
• If the image is displaced downwards or upwards, the
number of lines and line trigger cycle must be adjusted
correctly for the size of the target in the vertical direction
and the speed of the target.
Shutter speed
Specify the shutter speed for capture of 1 line
(units:μs)
Note
It must be set at least 3 μs faster than the line trigger cycle.
Initial Installation
If the image is displayed stretched or compressed
vertically, the camera settings need to be adjusted.
Example of a
stretched ima
e
Example of a
compressed image
Number of lines
Calculate the required number of lines for the field of
view in the horizontal direction and the size in the
vertical direction, and specify the number of lines to
use in the vertical direction.
Example: When capturing a square target of 100 x
100mm and a XG-HL02M (2048 pixels) is used with an
X-direction field of view of 150 mm, then the pixel
resolution is 0.073 mm (150 / 2048). Therefore the
required number of lines is 1370 (100 / 0.073).
3-7
4. Adjust capture settings to obtain desired image with the line scan camera. (Fixed capture)
Line trigger cycle
Calculate the movement time from the number of lines
and the target size in the vertical direction, and specify
the cycle for capture of 1 line (line trigger cycle)
(units:μs/line).
Example: Using a target size of 100mm with 1370 lines
and a speed of 200mm/s, the movement time in the
vertical direction is 0.5s (100/200). A suitable line
trigger cycle is 365 us/L (0.5s / 1370 lines).
Capturing when encoder input
occurs
This section explains the procedures when using an
encoder for line capture.
1 Select [Camera Settings].
The [Camera Settings] screen appears.
11 Click [OK].
The screen returns to the capture unit top menu.
12Close the capture unit top menu.
2 Select [Select Cameras].
The [Camera Selection] menu appears.
3 Verify that the camera type displayed in the
[Camera] field matches the camera that is
connected.
If a different camera is displayed
Select [Camera], then select [Auto] on the Camera
Selection menu and this will automatically detect the
connected camera type.
3-8
4 In the "Resolution" field, select "(Fixed)" capture.
5 Click [OK].
4. Adjust capture settings to obtain desired image with the line scan camera. (Fixed capture)
g
6 Select [Capture Options].
The Capture Options menu appears.
7 Select [Encoder] in the [Method] box.
To change the detailed encoder settings, refer to
"Changing the detailed settings to match the encoder
that is used" (Page 3-15).
8 Input the trigger.
Start image capture and wait for encoder input.
10Display a location where there is an intensity
difference, and adjust the lens aperture and focus
while monitoring the LED indicators on the back of
the camera.
When brightness is increased, the upper "Brightness"
LEDs illuminate white, and when the intensity
difference increases, the lower "Sharpness" LEDs
illuminate blue.
Brightness
Sharpness
There are three LED indicators for each. With the
default settings, the LEDs indicate the values shown
below (0 - 255, units: steps)
Brightness (Maximum
brightness value)
Sharpness (Maximum intensity
difference value)
64128192
102030
Initial Installation
9 Start the line (target movement).
The encoder operates and an image is displayed
every time the set line count occurs.
Reference
• Because brightness has not yet been adjusted, a black
screen may be displayed. This is not a problem.
• Pressing and holding the No. 3 button (TRIGGER) on the
handheld controller while the encoder is operating will
cause the trigger to be continuously input and the screen
to be continuously updated. In this case, the lights that are
connected to the illumination expansion unit will remain
continuously on.
Reference
The threshold values for the "Brightness" and "Sharpness"
camera LEDs can be changed with the Linescan Intensity
Calibration function (Page 3-17).
11 Check the image.
If the image is displayed stretched or compressed
vertically, the camera settings need to be adjusted.
Example of a
stretched ima
e
Example of a
compressed image
3-9
4. Adjust capture settings to obtain desired image with the line scan camera. (Fixed capture)
12Adjust the [Shutter Speed], [Number of Lines], and
[Line Cycle] values.
When the values are properly adjusted, the correct
image will be displayed at each update without
displacement.
Reference
• If the image is displaced downwards, reduce the line
trigger cycle.
• If the image is displaced upwards, increase the line trigger
cycle.
• If the image is displaced downwards or upwards, the
number of lines and line trigger cycle must be adjusted
correctly for the size of the target in the vertical direction
and the speed of the target.
13Click [OK].
The screen returns to the capture unit top menu.
14Close the capture unit top menu.
Shutter speed
Specify the shutter speed for capture of 1 line (units:
μs)
Note
It must be set at least 3 μs faster than the line trigger cycle.
Number of lines
Calculate the required number of lines for the field of
view in the horizontal direction and the size in the
vertical direction, and specify the number of lines to
use in the vertical direction.
Example: When capturing a square target of 100 x
100mm and a XG-HL02M (2048 pixels) is used with an
X-direction field of view of 150 mm, then the pixel
resolution is 0.073 mm (150 / 2048). Therefore the
required number of lines is 1370 (100 / 0.073).
Line trigger cycle
Calculate the movement encoder pulse count from the
number of lines and the target size in the vertical
direction, and specify the cycle for capture of 1 line
(encoder pulse cycle) (units: pulses/line).
Example: Using a target size of 100mm with 1370 lines
and a target encoder pulse count of 4110, a suitable
line trigger cycle is 3 pulses/L (4110 count / 1370
lines).
3-10
4. Adjust capture settings to obtain desired image with the line scan camera. (Continuous capture)
4. Adjust capture settings to obtain desired image
with the line scan camera.
This section explains the operations necessary to correctly
perform continuous image capture.
Continuous image capture at a set
time interval
1 Select [Camera Settings].
The [Camera Settings] screen appears.
2 Select [Select Cameras].
The [Camera Selection] menu appears.
(Continuous capture)
5 Click [OK].
6 Select [Capture Settings].
The Capture menu appears.
7 Input the trigger.
Images are continuously captured.
Reference
Because brightness has not yet been adjusted, a black
screen may be displayed. This is not a problem.
8 Display a location where there is an intensity
difference, and adjust the lens aperture and focus
while monitoring the LED indicators on the back of
the camera.
When brightness is increased, the upper "Brightness"
LEDs illuminate white, and when the intensity
difference increases, the lower "Sharpness" LEDs
illuminate blue.
Initial Installation
3 Verify that the camera type displayed in the
[Camera] field matches the camera that is
connected.
If a different camera is displayed
Select [Camera], then select [Auto] on the Camera
Selection menu and this will automatically detect the
connected camera type.
4 In the "Resolution" field, select "(Continuous)"
capture.
Reference
For continuous capture, an image buffer count of 3 or more is
required and the buffer operation type must be [Overwriting].
If this setting is not satisfied, a confirmation screen will
appear. The Image Buffer Capacity is forcibly set to 3 and the
operation type is set to [Overwriting].
Brightness
Sharpness
There are three LED indicators for each. With the
default settings, the LEDs indicate the values shown
below (0 - 255, units: steps)
Brightness (Maximum
brightness value)
Sharpness (Maximum intensity
difference value)
Reference
The threshold values for the "Brightness" and "Sharpness"
camera LEDs can be changed with the Linescan Intensity
Calibration function (Page 3-17).
64128192
102030
3-11
4. Adjust capture settings to obtain desired image with the line scan camera. (Continuous capture)
9 Move the workpiece and display the image.
If the image is displayed stretched or compressed
vertically, the camera settings need to be adjusted.
10Adjust the [Shutter Speed], [Number of Lines]
[Overlapping Lines], and [Line Cycle] values.
When the values are properly adjusted, correct
images will continually be captured without skipping.
Number of overlapping lines
Specify the number of overlapping lines for the
continuous capturing. This will be the number of image
lines that are carried over from the previous image
when capturing the next image each time.
Line trigger cycle
Calculate the movement time from the number of lines
and the target size in the vertical direction, and specify
the cycle for capture of 1 line (line trigger cycle) (units:
μs/line).
Example: Using a target size of 100mm with 1370 lines
and a speed of 200mm/s, the movement time in the
vertical direction is 0.5s (100/200). A suitable line
trigger cycle is 365 us/L (0.5s / 1370 lines).
11 Set the desired value and click [OK] for each item.
12Click [OK].
The screen returns to the capture unit top menu.
13Close the capture unit top menu.
Reference
• If the image is displaced downwards, reduce the line
trigger cycle.
• If the image is displaced upwards, increase the line trigger
cycle.
• If the image is displaced downwards or upwards, the
number of lines and line trigger cycle must be adjusted
correctly for the size of the target in the vertical direction
and the speed of the target.
Shutter speed
Specify the shutter speed for capture of 1 line (units:
μs)
Note
It must be set at least 3 μs faster than the line trigger cycle.
Number of lines
Specify the number of lines to use in the vertical
direction.
Note
The number of lines must be a multiple of the number of
overlapping lines.
3-12
4. Adjust capture settings to obtain desired image with the line scan camera. (Continuous capture)
Capturing when encoder input
occurs
This section explains the procedures when using an
encoder for line capture.
1 Select [Camera Settings].
The [Camera Settings] screen appears.
5 Click [OK].
6 Select [Capture Options].
The Capture Options menu appears.
Initial Installation
2 Select [Select Cameras].
The [Camera Selection] menu appears.
3 Verify that the camera type displayed in the
[Camera] field matches the camera which is
connected.
If a different camera is displayed
Select [Camera], then select [Auto] on the Camera
Selection menu and this will automatically detect the
connected camera type.
7 Select [Encoder] in the [Method] box.
To change the detailed encoder settings, refer to
"Changing the detailed settings to match the encoder
that is used" (Page 3-15).
8 Input the trigger.
Start image capture and wait for encoder input.
9 Start the line (target movement).
The encoder operates and an image is displayed
every time the set line count occurs.
Reference
Because brightness has not yet been adjusted, a black
screen may be displayed. This is not a problem.
10Display a location where there is an intensity
difference, and adjust the lens aperture and focus
while monitoring the LED indicators on the back of
the camera.
When brightness is increased, the upper "Brightness"
LEDs illuminate white, and when the intensity
difference increases, the lower "Sharpness" LEDs
illuminate blue.
Brightness
4 In the "Resolution" field, select "(Continuous)"
capture.
Reference
For continuous capture, an image buffer count of 3 or more is
required and the buffer operation type must be [Overwriting].
If this setting is not satisfied, a confirmation screen will
appear. The Image Buffer Capacity is forcibly set to 3 and the
operation type is set to [Overwriting].
Sharpness
There are three LED indicators for each. With the
default settings, the LEDs indicate the values shown
below (0 - 255, units: steps)
3-13
4. Adjust capture settings to obtain desired image with the line scan camera. (Continuous capture)
Brightness (Maximum
brightness value)
Sharpness (Maximum intensity
difference value)
Reference
The threshold values for the "Brightness" and "Sharpness"
camera LEDs can be changed with the Linescan Intensity
Calibration function (Page 3-17).
64128192
102030
11 Move the workpiece and display the image.
If the image is displayed stretched or compressed
vertically, the camera settings need to be adjusted.
12Adjust the [Shutter Speed], [Number of Lines]
[Overlapping Lines], and [Line Cycle] values.
When the values are properly adjusted, correct
images will continually be captured without skipping.
Shutter speed
Specify the shutter speed for capture of 1 line (units:
μs)
Note
It must be set at least 3 μs faster than the line trigger cycle.
Number of lines
Specify the number of lines to use in the vertical
direction.
Note
The number of lines must be a multiple of the number of
overlapping lines.
Number of overlapping lines
Specify the number of overlapping lines for the
continuous capturing. This will be the number of image
lines that are carried over from the previous image
when capturing the next image each time.
Line trigger cycle
Calculate the movement encoder pulse count from the
number of lines and the target size in the vertical
direction. Specify the cycle for capture of 1 line
(encoder pulse cycle) (units: count/line).
Example: Using a target size of 100mm with 1370 lines
and a target encoder pulse count of 4110, a suitable
line trigger cycle is 3 cnt/L (4110 count / 1370 lines).
13Set the desired value and click [OK] for each item.
14Click [OK].
The screen returns to the capture unit top menu.
Reference
• If the image is displaced downwards, reduce the line
trigger cycle.
• If the image is displaced upwards, increase the line trigger
cycle.
• If the image is displaced downwards or upwards, the
number of lines and line trigger cycle must be adjusted
correctly for the size of the target in the vertical direction
and the speed of the target.
3-14
15Close the capture unit top menu.
Changing the detailed settings to match the encoder that is used
Changing the detailed settings to match the
encoder that is used
Change these settings when using phase A and phase B
of the encoder for more captures per rotation, or for
specifying the CC/CCW directions.
1 From the function menu, select [Edit Flowchart].
A confirmation screen appears.
2 Click [OK].
The Flow Editor appears.
4 Select [Capture Options].
Initial Installation
5 Select [Encoder] in the [Method] box in [Trigger
Settings], then click [Parameters].
The Trigger 1 Details menu appears.
3 Select the capture unit.
The capture unit top menu appears.
Note
In order to select [Encoder], it is necessary to first enable the
encoder in the system settings. See "2. Enable the Encoder
(When an Encoder is Used)." (Page 3-4) for more details.
6 Change the settings according to the encoder
which is used.
Line trigger cycle
Set the encoder pulse cycle (pulses/line) for the
capture of one pixel line (default setting: 1). Calculate
the movement encoder pulse count for the number of
lines and the target size in the vertical direction, then
calculate the suitable line trigger cycle.
Sampling Mode
• 1x (default setting): Count increases when the encoder
output phase A rises (OFF > ON).
2x: Count increases when the encoder output phase A
•
rises and falls (OFF > ON & ON > OFF).
4x: Count increases when the encoder outputs phase A
•
and phase B rise and fall (OFF > ON & ON > OFF for both).
3-15
Changing the detailed settings to match the encoder that is used
Encoder Direction
• OFF (default setting): Counting up occurs for rotation in
both the clockwise and counterclockwise directions.
CW (Clockwise): Counting up occurs at any time for the
•
clockwise direction only.
CW and CCW (both directions): Counting up occurs
•
in the clockwise direction. The count goes down (is
reduced) in the counterclockwise direction.
Reverse Detection
• OFF (default setting): Counting up occurs for CW
(clockwise) direction.
ON: Counting up occurs for the CCW (counterclockwise)
•
direction.
Z-Phase Function
• None (default setting): Z phase input is not used.
Tri gger : Z-Phase input is used as the trigger input. Used
•
as trigger input.
Reset Pulse Count: Z-Phase input is used to reset the
•
encoder count.
Reset Pulse Count and Trigger: Z-Phase input is
•
used to reset the encoder count and as trigger input.
Detect Timeout (units: ms)
Set the time from when encoder counting stops until
timeout occurs.
7 Click [OK].
The screen returns to the capture unit Capture
Settings menu.
3-16
Using the Linescan Intensity Calibration function to adjust the capture settings
Using the Linescan Intensity Calibration function to
adjust the capture settings
The Linescan Intensity Calibration function can be used to
display a profile graph of the intensity data for the selected
pixel line in the image. The profile graph can be used to
adjust the focus, adjust the LED thresholds and perform
shading correction. The light intensity as well as the
differential can be viewed. It is also possible to view a
specified magnified area of the profile for further analysis.
Note
The Linescan Calibration uses the system settings information
even in online mode.
Using the Linescan Intensity
Calibration
From the capture unit Edit menu or Function menu,
select [Utility] – [Linescan Calibration].
The [Linescan Intensity Calibration] menu appears,
and the most recently captured image is displayed
along with the intensity profile graphs.
Reference
When either [Intensity Graph] or [Differential Graph] is selected,
an area can be selected to enlarge (magnify) and check the
detailed condition for that area.
Magnification
Select the area to be displayed in the magnified profile
graph.
• X Cente: Selects the center position in the X direction.
• Width: Selects the width in the X direction.
Initial Installation
Line Number (Reference Line)
Specify the image line (0 - 16383) to be displayed in the
profile graph.
Profile settings
The displayed contents change according to the display
graph settings. (Vertical axis indicates the intensity value 0 -
255.)
• Intensity + Differential: The intensity graph for the entire
selected line is shown on top, and the differential graph
for the entire selected line is shown on bottom.
• Intensity: The intensity graph for the entire selected line
is shown on top, and the magnified intensity graph for the
zoom area of the selected line is shown on bottom.
• Differential: The differential graph for the entire selected
line is shown on top, and the magnified differential graph
for the zoom area of the selected line is shown on
bottom.
3-17
Using the Linescan Intensity Calibration function to adjust the capture settings
Changing the camera LED
threshold setting
The light levels of the LED indicators on the back of the
camera can be adjusted as necessary.
1 Click [LED Thresholds] on the Linescan Instensity
Calibration screen.
The Camera LED Threshold Settings menu appears.
2 Capture an image with the standard target, and
specify each of the 3 LED thresholds with [LED
Thresholds] while checking the graph.
The thresholds are linked with the 3-level LEDs on the
back of the camera, and the LEDs will illuminate when
the set threshold is exceeded.
• Brightness: Select intensity within the range of 0 - 255.
• Sharpness: Select differential within the range of 0 - 255.
3 When setting is complete, click [OK].
Changing the shading correction
If the light intensity is uneven across the X field of view, it is
possible to perform image correction.
1 From the Linescan Intensity Calibration screen,
click [Shading Correction].
The Shading Correction menu appears.
The graph which is displayed in this screen shows the
intensity graph after correction on top, and before
correction on bottom.
The top profile graph (intensity graph after correction)
is the graph after Y direction averaging and X direction
smoothing of the intensity profile graph.
2 Specify the area to be the standard for correction.
Two blue lines appear and indicate the width of the
displayed graph according to the selected width W.
• Correction Region: Specify the X/Y center, width in the
X direction and number of lines in the Y direction.
X Center: Selects the center position in the X direction.
•
Y (Selected Line): Specify the center position (selected
•
line) in the Y direction.
Width: Selects the width in the X direction.
•
Lines: Specify the Y direction area. (Calculates the
•
average value of multiple lines.)
Smoothing Range: Specify the degree of correction as
•
a percentage (%) of the image pixels in the X direction.
Use a smaller value for correction over a narrow intensity
range, and a higher value for correction over a broader
intensity range.
3-18
Reference
The smoothing range is linked to the graph display.
• With a larger value, the graph after filtering becomes
smoother.
• With a smaller value, the graph after filtering shows
sharper changes.
3 Click [Execute].
Shading correction is executed. The corrected images
can then be checked on the triggered images.
The correction value for shading correction is saved
inside the camera and is retained until [Reset] is
executed.
Reference
• When an encoder is used, the image will be displayed after
the encoder reaches the designated count.
• After correction has been executed, the correction value
can be written to an SD card (Save Correction Values). As
a default, the file will be saved to the following folder.
SD2:\xg\linecam
• The correction value can also be read from an SD card
(Load Correction Values). Save the file that contains the
correction value in the following folder.
SD1 or SD2: /xg/linecam/
• The maximum shading correction value is 5x.
• The maximum, minimum and average intensity values
before and after correction are displayed under Profile
Data in the Shading Correction screen.
• The SD card slot to which the shading correction values file
will be saved to can be specified in the system settings for
XG VisionEditor (default setting: SD2).
Using the Linescan Intensity Calibration function to adjust the capture settings
Initial Installation
3-19
Using the Linescan Intensity Calibration function to adjust the capture settings
3-20
Chapter
s
4
Discrete I/O & Communication
Specifications
Overview of the I/O
Interface
The controller has five communication ports and four
discrete I/O terminal blocks.
• RS-232C Specifications (Page 4-2)
• Ethernet Specifications (Page 4-4)
• USB Specifications (Page 4-5)
• CC-Link Specifications (Page 4-7)
• Parallel I/O Specifications (Page 4-9)
• Terminal Block 1 & 2 Specifications (Page 4-12)
• Terminal Block 3 & 4 Specifications (Page 4-15)
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.
Discrete I/O & Communication 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 image
· NG images
PC
Note
Communication software is required to correctly display data on
the computer.
4-1
RS-232C Specifications
RS-232C Specifications
The RS-232C port on the controller can be used to
communicate with external devices. The controller can
communicate with external devices through one of 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. Please 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
Discrete I/O & Communication 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-8702L/8502L
PC
When the PLC / PC has a D-sub 25-pin connector
OP-26487 (2.5m)
OP-26485
XG-8702L/8502L
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 siftware. 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
4-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 XG ActiveX
control. The controller can communicate with external
devices through 3 different communication modes: TCP/IP
based on ASCII RS-232C data structure, PLC link mode, or
EtherNet/IP. The controller also act 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
Note
Use a category 5e LAN cable or above when connecting at 1000
Base-T. A STP (Shield Twisted Pair) cable is recommended.
1000 BASE-T
SignalSignal
direction
4-4
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 the 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.).
Discrete I/O & Communication 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. 32-bit only support for
Microsoft Windows Vista and Microsoft XP.
4-5
USB Specifications
Installing the driver
You 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 or XG
VisionTerminal, the drivers will also be stored locally in
c:\drivers\V-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-H8N 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.
4-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 2mm2
as the grounding cable.
color
wire
Signal
name
SLDShield.
Function
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).
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).
Discrete I/O & Communication Specifications
4-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.
Master station
Terminating
resistor
Terminating
resistor
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)
CA-NCL10E Other
device
Other
device
Other
device
CA-NCL10E
Depending on the cable type the terminating resistor
will be different
Two with the module 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-SBH, FA-CBL200PSBH, CS110
OP-79426, OP-79427
CC-Link cable
CC-Link high-performance cable
110
BrownBrown
130
BrownBrown
Ω
1/2W
BrownBrown
Ω
1/2W
OrangeOrange
BrownBrown
BrownBrown
GoldGold
GoldGold
4-8
Parallel I/O Specifications
Connector Specifications
Parallel I/O Specifications
The following relates to the parallel I/O connector / ribbon
cable output
In normal circumstances, use the optional ribbon cable OP-51657
(3m).
Default Terminal Assignment: Cable color when OP-51657 is used.
No.Terminal
name
1COMIN2Connector
2IN0General purpose
3IN1General purpose
4IN2General purpose
5IN3General purpose
6IN4General purpose
7IN5General purpose
8IN6General purpose
9IN7General purpose
10IN8General purpose
11IN9General purpose
12IN10General purpose
13IN11General purpose
14IN12General purpose
DescriptionSignal
direction
-----Brown
common input
In%CmdParam
input 0
In%CmdParam1-Orange
/ encoder input 1
In%CmdParam2-Yellow
/ encoder input 2
In%CmdParam3-Green
/ encoder input 3
In%CmdParam4-Blue
input 4
In%CmdParam5-Purple
input 5
In%CmdParam6-Gray
input 6
In%CmdParam7-White
input 7
In%CmdCode
input 8
In%CmdCode1-Brown
input 9
In%CmdCode2-Red
input 10
In%CmdCode3-Orange
input 11
In%CmdStrobeCustom instruction
input 12
Default state
Assigned variable Function
Custom instruction
parameter / encoder
input
Custom instruction No.
execution
*2
Discrete I/O & Communication Specifications
*1
BitN.O/N.C
0-Red
0-Black
0-Yellow
Cable
color
4-9
Parallel I/O Specifications
No.Terminal
DescriptionSignal
name
15IN13General purpose
input 13
16IN14General purpose
input 14
17COMOUT2Connector
common output
18OUT0General purpose
output 0
19OUT1General purpose
output 1
20OUT2General purpose
output 2
21OUT3General purpose
output 3
22OUT4General purpose
output 4
23OUT5General purpose
output 5
24OUT6General purpose
output 6
25OUT7General purpose
output 7
26OUT8General purpose
output 8
27OUT9General purpose
output 9
28OUT10General purpose
output 10
29OUT11General purpose
output 11
30OUT12General purpose
output 12
31OUT13General purpose
output 13
32OUT14General purpose
output 14
33OUT15General purpose
output 15
34OUT16General purpose
output 16
35OUT17General purpose
output 17
36OUT18General purpose
output 18
37OUT19General purpose
output 19
38OUT20General purpose
output 20
39OUT21General purpose
output 21
Default state
direction
In%ResetReset input0-Green
In%PstCycle output data0-Blue
-----Purple
Out%AckCommand success
Out%NackCommand failure
Out%BusyBusy output0N.O.Black
Out%CmdReadyCommand ready
Out%Trg1ReadyTrigger 1 ready output0N.O.Red
Out%Trg2ReadyTrigger 2 ready output0N.O.Orange
Out%OutDataA
Out%OutDataA1N.O.Green
Out%OutDataA2N.O.Blue
Out%OutDataA3N.O.Purple
Out%OutDataA4N.O.Gray
Out%OutDataA5N.O.White
Out%OutDataA6N.O.Black
Out%OutDataA7N.O.Brown
Out%OutDataA8N.O.Red
Out%OutDataA9N.O.Orange
Out%OutDataA10N.O.Yellow
Out%OutDataA11N.O.Green
Out%OutDataA12N.O.Blue
Out%OutDataA13N.O.Purple
Out%OutDataA14N.O.Gray
Out%OutDataA15N.O.White
Assigned variable Function
output
output
output
%OutDataA Data
Output
*2
*1
BitN.O/N.C
0N.O.Gray
0N.O.White
0N.O.Brown
0N.O.Yellow
Cable
color
4-10
Parallel I/O Specifications
No.Terminal
name
40COMOUT2Connector
*1 The default assigned state refers to the default system variables assigned to each terminal in the System Configuration menu. These
assignments may vary if the System Settings have been changed.
*2 For more details about the functions of individual variables, refer to the XG-8000 Series Communications Control Manual.
Note
• COMOUT2 terminals 17 and 40 are internally connected. Please ensure there is no potential difference between the two for stable
switching.
• All common terminals (COMIN1, COMIN2, COMOUT1, COMOUT2, COMOUT_F+, COMOUT_F-, COMOT2_F+, COMOUT2_F-) and
power terminals (24V, 0V, 5VOUT and 0VOUT) are isolated.
• COMIN2 is a common terminal used exclusively for input terminals 2 through16 on the parallel I/O connector.
• COMOUT2 is a common terminal used exclusively for output terminals 18 through 39 on the parallel I/O connector.
DescriptionSignal
direction
common output
Default state
Assigned variable Function
----Black
*2
*1
BitN.O/N.C
Cable
color
Discrete I/O & Communication Specifications
4-11
Terminal Block 1 & 2 Specifications
Terminal Block 1 & 2 Specifications
Standard specifications
Terminal block 1 & 2 specifications for the controller are as follows.
Note
Tightening above the specified torque may cause damage to the terminal block
OUTPUT 1 connector
Terminal block
MC1.5/9-ST-3.5BK (Phoenix Contact)
Suitable wiring
AWG 16 - 28
Terminal block screw torque
0.25 Nm or less
INPUT 1 connector
6
Terminal block
MC1.5/6-ST-3.5BK (Phoenix Contact)
Suitable wiring
AWG 16 - 28
Terminal block screw torque
0.25 Nm or less
4-12
Terminal Block 1 & 2 Specifications
Terminal Assignment
OUTPUT 1 Connector
No. Terminal nameDescriptionSignal
direction
Assigned
Assigned default state
Function
*2
variable
1OUT22 (STO)General purpose output 22 Out%StoStrobe output for reading
parallel terminal output
unit data
2OUT23 (OR)General purpose output 23 Out%JAHoldHold output general status0N.O.
3F_OUT2 (ERR)High-speed general
purpose output 2
4F_OUT3 (RUN)High-speed general
purpose output 3
5COMOUT1 (COMOUT)Terminal block common
output
6F_OUT0 (FLS1)High-speed general
purpose output 0
7F_OUT1 (FLS2)High-speed general
purpose output 1
8COMOUT_F+ (COM1F+) High speed common
output (+ ve)
9COMOUT_F- (COM1F-)High speed common
output (- ve)
Out%Error0Error 0 output0N.O.
Out%RunRun mode output0N.O.
-----
Out%Flash1Strobe light output 10N.C.
Out%Flash2Strobe light output 20N.C.
-- ---
-- ---
*1
BitN.O/N.C
0N.O.
Discrete I/O & Communication Specifications
*1 The default assigned state refers to the default system variables assigned to each terminal in the System Configuration menu. These
assignments may vary if the System Settings have been changed.
*2 For more details about the functions of individual variables, refer to the XG-8000 Series Communications Control Manual.
Note
• All common terminals (COMIN1, COMIN2, COMOUT1, COMOUT2, COMOUT_F+, COMOUT_F-, COMOT2_F+, COMOUT2_F-) and
power terminals (24V, 0V, 5VOUT and 0VOUT) are isolated.
• COMOUT1 is a common terminal used exclusively for the output 1 connector terminals 1 and 2.
• COMOUT_F+ and COMOUT_F- are common terminals used exclusively for the OUTPUT 1 connector terminals 3 & 4 and 6 & 7
respectively.
( ) indicates labels printed on terminal blocks at time of shipment
4-13
Terminal Block 1 & 2 Specifications
INPUT 1 connector
No. Terminal nameTerminal descriptionSignal
direction
Assigned
Assigned default state
Function
*2
*1
BitN.O/N.C
variable
1COMIN1
(COMIN)
2IN15
(PLC)
3F_IN0
(TRG1)
4F_IN1
(TRG2)
5F_IN2
(TEST)
6F_IN3
(EXT)
*1 The default assigned state refers to the default system variables assigned to each pin in the Global menu. These assignments may vary
if the Global settings have been changed.
*2 For details about the functions of individual variables, refer to the XG-8000 Series Communications Control Manual.
Common for
terminal block
inputs
General purpose
input 15
High-speed
general purpose
input 0
High-speed
general purpose
input 1
High-speed
general purpose
input 2
High-speed
general purpose
input 3
-----
Input%PlcCustom command
execution input (PLC)
Inp u t% Tr g1Trig g er 1 i npu t0-
Inp u t% Tr g2Trig g er 2 i npu t0-
Input%TestTrial run input0-
Input%ExtDisable trigger input0-
0-
Note
• Power source 0V and COMIN1, COMIN2, COMOUT1, COMOUT2, COMOUT_F+, COMOUT_F-, COMOT2_F+, COMOUT2_F-, and
0VOUT are all isolated.
• COMOUT1 is the OUT1 connector for the common terminals 1 to 2.
• COMOUT_F+ and COMOUT_F- are the common terminals for outputs 3 to 4 and 6 to 7.
• COMIN1 is the IN1 connector for the common terminals 2 to 6.
( ) indicates labels printed on terminal blocks at time of shipment
4-14
Terminal Block 3 & 4 Specifications
Standard specifications
Terminal block 3 & 4 specifications for the controller are as follows.
Note
Tightening above the specified torque may cause damage to the terminal block
Terminal Block 3 & 4 Specifications
Discrete I/O & Communication Specifications
INPUT 2 connector
Terminal block
MC1.5/8-ST-3.81BK (Phoenix Contact)
Suitable wiring
AWG 16 - 28
Terminal block screw torque
0.25 Nm or less
OUTPUT 2 connector
Terminal block
MC1.5/6-ST-3.5BK (Phoenix Contact)
Suitable wiring
AWG 16 - 28
Terminal block screw torque
0.25 Nm or less
4-15
Terminal Block 3 & 4 Specifications
Terminal Assignment
INPUT 2 connector
No. Terminal nameTerminal descriptionSignal
direction
Assigned
Assigned default state
Function
*2
*1
BitN.O/N.C
variable
1F_IN4+ (ENCA+)RS-422 encoder input A+In-Cannot be re-assigned--
2F_IN4- (ENCA-)RS-422 encoder input A-In-Cannot be re-assigned--
3F_IN5+ (ENCB+)RS-422 encoder input B+In-Cannot be re-assigned--
4F_IN5- (ENCB-)RS-422 encoder input B-In-Cannot be re-assigned--
5F_IN6+ (ENCZ+)RS-422 encoder input Z+In-Cannot be re-assigned--
6F_IN6- (ENCZ-)RS-422 encoder input Z-In-Cannot be re-assigned--
75VOUT+5V output-----
80VOUT0V output-----
*1 The default assigned state refers to the default system variables assigned to each terminal in the System Configuration menu. These
assignments may vary if the System Settings have been changed.
*2 For more details about the functions of individual variables, refer to the XG-8000 Series Communications Control Manual.
Note
• When wiring the INPUT 2 connector use a RS-422 compatible shielded cable and connect the shield to FG
• All common terminals (COMIN1, COMIN2, COMOUT1, COMOUT2, COMOUT_F+, COMOUT_F-, COMOT2_F+, COMOUT2_F-) and
power terminals (24V, 0V, 5VOUT and 0VOUT) are isolated.
( ) indicates labels printed on terminal blocks at time of shipment
4-16
OUTPUT 2 connector
Terminal Block 3 & 4 Specifications
No. Terminal nameTerminal descriptionSignal
direction
Assigned
Assigned default state
Function
*2
*1
BitN.O/N.C
variable
1F_OUT4 (FLS5)High-speed general
purpose output 4
2F_OUT5 (FLS6)High-speed general
purpose output 5
3F_OUT6 (FLS7)High-speed general
purpose output 6
4F_OUT7 (FLS8)High-speed general
purpose output 7
5COMOUT2_F+
(COM2F+)
6COMOUT2_F-
(COM2F-)
*1 The default assigned state refers to the default system variables assigned to each terminal in the System Configuration menu. These
assignments may vary if the System Settings have been changed.
*2 For more details about the functions of individual variables, refer to the XG-8000 Series Communications Control Manual.
Note
• All common terminals (COMIN1, COMIN2, COMOUT1, COMOUT2, COMOUT_F+, COMOUT_F-, COMOT2_F+, COMOUT2_F-) and
power terminals (24V, 0V, 5VOUT and 0VOUT) are isolated.
• COMOUT2_F+ and COMOUT2_F- are common terminals used exclusively for the OUTPUT 2 connector terminals 3 & 4 and 6 & 7
respectively.
High speed common
output (+ ve)
High speed common
output (- ve)
Out-No default assignment --
Out-No default assignment --
Out-No default assignment --
Out-No default assignment --
Out----
Out----
Discrete I/O & Communication Specifications
( ) indicates labels printed on terminal blocks at time of shipment
4-17
Input/Output Wiring
Input/Output Wiring
Input Connections
Input circuit diagram
Circuit A (F_IN0 to 3, IN0 to 3 only EV compatible)
3.3kΩ
IN
10kΩ
com
• Max. applied voltage: 26.4 V
• ON voltage: 10.8 V or greater
• ON current: 3 mA or greater
• OFF voltage: 5 V or less
• OFF current: 1 mA or less
Circuit B (other inputs)
6.2kΩ
IN
4.7kΩ
com
Connection Examples
Connecting a NPN output to the controller input
6.2kΩ
OUT
COM(−)
PLC (NPN output)Controller input circuit
Connecting a PNP output to the controller input
COM(+)
OUT
PLC (PNP output)
IN
4.7kΩ
com
6.2kΩ
IN
4.7kΩ
com
Controller input circuit
• 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
Reference
See "Terminal Assignment" (Page 4-13) for terminal assignments.
4-18
Input/Output Wiring
Output Connections
Note
The overcurrent protective Poly Switch is set to trip at 1 A. For the power supplied to output, use a 1 A or larger power source.
Discrete I/O & Communication Specifications
NPN output circuit diagram
Circuit C (F_OUT0 to 3)
COMOUT_F+
0.3A
OUT
Poly Switch
COMOUT_F-
• Max. applied voltage: 30 V
• Max. sink current: 50 mA
• Leakage current: 0.1 mA or less
• Residual voltage:
1.4 V or less (50 mA)
1.0 V or less (20 mA)
Circuit D (other outputs)
40V
22kΩ
10kΩ
22kΩ
22kΩ
22kΩ
PNP output circuit diagram
Controllers with a "P" at the end of the part number eg. XG8702P
Circuit C (F_OUT0 to 3)
COMOUT_F+
33V
0.3A
104
OUT
COMOUT_F-
Poly Switch
• Max. applied voltage: 30 V
• Max. sink current: 50 mA
• Leakage current: 0.1 mA or less
• Residual voltage:
1.4 V or less (50 mA)
1.0 V or less (20 mA)
Circuit D (other outputs)
10kΩ
22kΩ
104
OUT
COM
0.3A
Poly Switch
40V
10kΩ
• Max. applied voltage: 30 V
• Max. sink current: 50 mA
• Leakage current: 0.1 mA or less
• Residual voltage:
1.4 V or less (50 mA)
1.0 V or less (20 mA)
1kΩ
COM
10kΩ
33V
0.3A
OUT
Poly Switch
• Max. applied voltage: 30 V
• Max. sink current: 50 mA
• Leakage current: 0.1 mA or less
• Residual voltage:
1.4 V or less (50 mA)
1.0 V or less (20 mA)
1kΩ
4-19
Input/Output Wiring
p
p
Connection examples (controller with NPN transistor outputs)
Connecting a controllers NPN output to a PLC with a positive common input.
• The XG-E800 expansion module allows the connection of 1 additional line scan camera
(maximum of 2 per system) with XG-EC80L or 2 additional area cameras (maximum of 4 per
system - mixed connection possible) with XG-EC80.
Individual and up to 4 simultaneous image captures.
(Simultaneous capture limited to 2 cameras if XG-E800 is not connected.)
and the size of the programs). External program switching possible through I/O &
communication ports.
and position adjustment supported. External switching possible through variable referencing.
XG-HL02M connected
• 2048 (H) x 16384 (L), approx. 33,550,000
pixels
XG-200C/S200C/H200C/200M/S200M/H200M
connected
• 2 megapixel mode:1600 (H) x 1200
(V),1,920,000 pixels
• 1 megapixel mode:1024 (H) x 960
(V),approx. 980,000 pixels
• 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 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)) 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.
5-4
Operation Units
Calculation
Image operation
C PlugIn
Calibration
Main Specifications
XG-8702L(P)XG-8502L(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 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.
Specifications & Dimensions
5-5
Main Specifications
Timing Units
Display
Output Units
Commands
Common Outputs
Configuration &
editing functions
XG-8702L(P)XG-8502L(P)
PausePause flowchart for specified time (0 ms to 1 hour: fixed or variable reference)
Timer startStart user timer (0 to 7)
Timer endPause flowchart until user timer (0 to 7) expires
• Pause flowchart based on AND/OR state change (edge/level, ON/OFF, rising/trailing edge)
Terminal I/O
delay
Variable de lay
User menuPause flowchart from the time a menu is open to the time it is closed.
On-screen
graphics
Parallel terminal
output
Data output
Image output• Outputs image data (BMP / JPG selectable file format) for an image variable to either the SD
Command
execution
Total status
output
Total error output Outputs the logical OR from the errors of selected units.
Inspection
programs
Offline / system
configuration
evaluation of up to 20 I/O terminals.
• Supports bit information for CC-Link bit device and EtherNet/IP output data (assignment for
controller receiving).
Pause flowchart 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
Characters: text, values, active text, decimal - ASCII.
• 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.
• Outputs 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 to a PC (via 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 an SD card or
PC (via ActiveX))
• Supports image / output priority processing
card or a PC (via 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.
Outputs the logical OR from the results 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, Operations, Timing, Display, Output, Commands)
• 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, Linescan Calibration)
3) Available custom functionality (OCR Encryption, Custom Instruction Settings, CA series
Touch Panel settings, New Program Options)
5-6
Retest function
Image capture range
Camera image
correction
Display Screens
XG-8702L(P)XG-8502L(P)
• 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.
• 1024(H) x 960(V) (980'000 pixels) section contained within 1600(H) x 1200(V) (1,920,000
Process area
(area camera
only)
CCD Scanning
method
(monochrome
area camera
only)
Capture Start/
End Line
Gain adjustment
White Balance
(color camera
only)
Mirrored image
Calibration &
Scaling
Shading
correction (line
scan camera
only)
Number of
screens
Number of frames 99 frames per screen, external switching possible.
Number of image
displays
Screen
elements
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
• Line scan camera: Any number of lines up to the maximum number of lines for that camera
can be set.
• Area scan camera: Any capture start and end lines within the CCD imaging region can be
set.(With the XG-H200C and H200M, a number of capture lines less than 100 cannot be set.)
The capture start line can also be changed for each image capture through 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.
Individual shading correction functionality for each connected camera.
Support for up to 100 screens per program, external switching possible.
Display control according to user group.
• 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.
Main Specifications
Specifications & Dimensions
5-7
Main Specifications
Menus
XG-8702L(P)XG-8502L(P)
• Maximum of 900 menus per program, external switching possible.
• Support for option based menus that can be used to change or set various parameters while
Number of menus
Menu elementsText, Numerical Input, Drop Down Menu, Option Button, Confirmation Button
Built-in
menus
Unit properties
the controller is in Run mode.
• Supports menu opacity ranging from 100%, 75%, 50% or 25%
• Screens can be linked to menus being used.
Region Setting, Image Registration, Color Extraction, Statistics, Image Archive, Library, Unit
• 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.
5-8
Support
functions
Statistics
Image Archive
Main Specifications
XG-8702L(P)XG-8502L(P)
Data
SummaryMaximum, minimum, average, standard deviation (+/- 3σ), total status OK/NG count
Maximum of 100,000 data points per item, maximum of 256 items (all data can be saved to SD
card in a single operation).
• Maximum number of images:
When using area camera
- 1024 images (monochrome camera
240,000 pixels)
- 1024 images (monochrome camera
310,000 pixels)
- 1024 images (monochrome camera
1,000,000 pixels)
- 830 images (monochrome camera
2,000,000 pixels)
- 315 images (monochrome camera
5,000,000 pixels)
- 1024 images (color camera 240,000
pixels)
- 1024 images (color camera 310,000
pixels)
- 1024 images (color camera 1,000,000
pixels)
- 821 images (color camera 2,000,000
pixels)
- 309 images (color camera 5,000,000
pixels)
When using line scan camera
- 85 images (XG-HL02M continuous
capture, 2048 x 8192 pixels)
- 40 images (XG-HL02M single frame
capture, 2048 x 16384 pixels)
- 38 images (XG-HL04M continuous
capture, 4096 x 8192 pixels)
- 16 images (XG-HL04M single frame
capture, 4096 x 16384 pixels)
- 14 images (XG-HL08M continuous
capture, 8192 x 8192 pixels)
- 16 images (XG-HL08M single frame
capture, 8192 x 8192 pixels)
• Simultaneously 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 control.
• 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.
When using area camera
- 1024 images (monochrome camera
240,000 pixels)
- 1024 images (monochrome camera
310,000 pixels)
- 528 images (monochrome camera
1,000,000 pixels)
- 272 images (monochrome camera
2,000,000 pixels)
- 1024 images (color camera 240,000
pixels)
- 1024 images (color camera 310,000
pixels)
- 519 images (color camera 1,000,000
pixels)
- 265 images (color camera 2,000,000
pixels)
When using line scan camera
- 21 images (XG-HL02M continuous
capture, 2048 x 8192 pixels)
- 8 images (XG-HL02M single frame
capture, 2048 x 16384 pixels)
Specifications & Dimensions
5-9
Main Specifications
Parameter
setting aids
Support
functions
(continued)
Direct SD card saving
Other
Image zoom
Edge
Graph display
Trend Edge
Profile display
Contrast display
OCR Waveform
display
Trend Edge Stain
graph display
Update Variables
Line scan Profile
Viewer
Ta rg e t
Classification
XG-8702L(P)XG-8502L(P)
1% to 2500% image magnification during operation. Supports display scrolling via handheld
controller or by detected target position.
(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.
- 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
• Numerical value output and control.
• PC connectivity to Keyence XG Series software to for uploading / downloading of programs
data, images, and runnung of simulations.
• 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 CCLink 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.
control, 2 channels per module, maximum of 4 modules (8 channels) per controller.
• Area camera: 3.6 A (2 cameras connected) / 4.6 A (4 cameras connected)
Figures indicate maximum load including include rush current at startup.
*1
Specifications & Dimensions
5-11
Main Specifications
XG-8702L(P)XG-8502L(P)
WeightApprox. 1600 g
*1 Models equipped with an Ethernet port on the CPU unit support direct connection to the Ethernet port.
Line scan camera (XG-HL02M/HL04M/HL08M)
XG-HL02M
CCD14.3 mm monochrome CMOS
image receiving element, 8x
high-speed reading using
square-grid (2 outputs),
2048 pixels
Unit cell size7 μm x 7 μm3.5 μm x 3.5 μm3.5 μm x 3.5 μm
Resolution
Processing Area
(individual)
Processing Area
(continuous)
Minimum Scan
Time
Image transfer
frequency
Transfer systemDigital serial transfer
Electronic shutterUser-defined setting (2 μs to 20,000 μs)
FunctionsShading correction (1 save pattern unit)
Lens mountC mountC mountSpecial mount
Environmental
resistance
WeightApprox.340g
*1 When using any of the line scan cameras, only the high-speed camera cable (CA-CHxx) can be used.
*2 The maximum shutter time is limited to 3 μs less than the line trigger cycle setting.
*3 F-mount lens adapter is optionally available (OP-87319).
Ambient
temperature
Relative
humidity
2048 pixels
2048 (H) x 16384 (V)
2048 (H) x 8192 (V)
24 μs (41.7kHz)24 μs (41.7kHz)45 μs(22.2kHz)
100 MHz (50 MHz x 2ch)
8x high-speed
0 to 40 ºC
35 to 85%RH (No condensation)
(not including the lens)
*1
XG-HL04M
14.3 mm monochrome CMOS
image receiving element, 16x
high-speed reading using
square-grid (4 outputs),
4096 pixels
4096 pixels
2048 (H) x 16384 (V)
2048 (H) x 8192 (V)
200MHz (50MH x 4ch)
16x high-speed
Approx.350g
(not including the lens)
*1
*2
XG-HL08M
28.7 mm monochrome CMOS
image receiving element, 16x
high-speed reading using
square-grid (8 outputs),
8192 pixels
8192 pixels
8192(H) x 8192(V)
8192(H) x 8192(V)
200MHz (25MH x 8ch)
16x high-speed
(M40 P0.75 P0.03")
Approx.310g
(not including the lens)
*3
5-12
Illumination expansion module (CA-DC21E)
CA-DC21 E
OutputsIllumination control(1) Rated voltage (DC)
(2) Pulse width modulation (light emission frequency 100 kHz)
(Controller selectable.)
Intensity level255 digital levels (controller selectable)
Lighting connections 2 channels (CA-D series connection / terminal block)