On modern high-speed and high-precision manufacturing lines, line scanning cameras have become an ideal choice for detecting long materials, cylindrical surfaces, or large workpieces on conveyor belts due to their ability to image objects line by line during continuous motion. The Keyence XG-8000 series machine vision system, with its multi-core DSP, line scan camera (XG-HL08M) supporting up to 8192 pixels, and flexible I/O and communication expansion capabilities, provides engineers with a complete solution from hardware installation to image correction. This article will delve into the key steps of system integration, common causes of image distortion, trigger synchronization settings, light source control, and troubleshooting methods for the XG-8000 series (including the XG-8702L/8502L controller and XG-HL series line scan camera), helping on-site engineers quickly build a stable and reliable visual inspection system.
System composition and hardware installation points
1.1 Standard kits and selection confirmation
The XG-8000 controller (taking XG-8702L as an example) that leaves the factory includes:
Host unit x 1
SD card (CA-SD1G 1GB or OP-87133 512MB, must be inserted into SD1 slot to boot)
RS-422 ferrite magnetic ring (ZCAT2035-0930A)
Terminal label group
The optional line scan camera is available in three resolutions:
XG-HL02M: 2048 pixels, pixel size 7 × 7 μ m, minimum row scanning period 24 μ s
XG-HL04M: 4096 pixels, pixel size 3.5 × 3.5 μ m, minimum row scanning period 24 μ s
XG-HL08M: 8192 pixels, pixel size 3.5 × 3.5 μ m, minimum line scanning period 45 μ s (requires M40 interface lens)
1.2 Installation taboos for controllers and cameras
Heat dissipation requirements: Leave a ventilation gap of at least 50mm above and below the controller, and 50mm on both sides. If multiple units are installed side by side, the spacing should not be less than 50mm. The front panel needs to leave 90mm for cable insertion and removal.
Installation direction: It can only be installed in the "upward" direction as shown in the bottom diagram, and cannot be inverted or placed on the side.
Insulation treatment: The camera casing is isolated from the equipment through a plastic mounting bracket. The accompanying plastic mounting plate and screws must be used, otherwise the camera circuit may be damaged due to live or noise interference from the mounting base.
Lens installation: Do not touch the internal photosensitive surface of the camera before installation; Tightening torque ≤ 0.5 N · m to avoid lens loosening caused by vibration (thread locking adhesive can be used).
1.3 Connection sequence of expansion units
Camera Expansion Unit XG-E800: Connected to Expansion Unit Connector 1 on the right side of the controller, used to connect a second camera (up to two, requiring XG-EC80L).
CC Link Unit CA NCL10E: Connected to the left Expansion Unit Connector 2. If you need to use the CA-DC21E lighting expansion unit simultaneously, you must first install the CC Link unit tightly against the controller, and then install the lighting unit on the left side of the CC Link unit. It is prohibited to install CC Link units on the outside of lighting units.
Lighting Expansion Unit CA-DC21E: Up to 4 units can be connected in series, controlling up to 8 LED light sources. When connecting, it is necessary to install the accompanying gasket first.
All expansion units must be loaded and unloaded while the controller is powered off, otherwise the interface may be burned.
Anti interference measures for power supply, grounding, and cables
2.1 Power terminal wiring
The power supply terminals of the controller are A1 (+24V), A2 (0V), and FG (protective ground). AWG14~22 wire must be used, with a terminal screw torque of 0.8 N · m. Power requirements:
Rated 24 V DC, allowable fluctuation -15%~+10% (i.e. 20.4~26.4 V)
Recommend using switch mode power supplies with double insulation or reinforced insulation (such as CA-U3)
The A2 terminal must be grounded (Class D grounding, grounding resistance ≤ 100 Ω), otherwise it may cause program abnormalities due to electromagnetic interference.
2.2 Encoder connection (RS-422 with open collector)
XG-8000 supports connecting rotary encoders through IN2 terminal blocks to achieve image line acquisition and object motion synchronization.
RS-422 line drive output: Connect the A+, B - and other signals of the encoder to the corresponding terminal of IN2. The accompanying ferrite magnetic ring must be fitted within 300mm of the controller side cable. The 5V OUT terminal can supply power to the encoder, but the current is ≤ 150 mA; if it exceeds the limit, an external 5V power supply is required. The shielding layer is connected to FG.
Open collector output (24V DC type): can be directly connected to the universal input terminal of IN1 or parallel I/O (24V level). Note that 5V open collector encoders are not supported.
After connection, the encoder needs to be enabled in the system configuration:
System configuration → Communication&I/O → Terminal blocks¶llel ports → Input allocation → Encoder settings, select "Encoder 1" and match the output type (Open Collector or RS-422). After activation, some universal input terminals (such as F_IN1~3) will be occupied.