Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

KEYENCE XG-8000 Line Scan Visual Debugging Guide

F: | Au:FANS | DA:2026-05-25 | 282 Br: | 🔊 点击朗读正文 ❚❚ | Share:

2.3 Light source connection and voltage selection

The CA-DC21E lighting expansion unit provides two LED output ports (LIGHT 1, LIGHT 2). Maximum load of output terminal: 24 V DC or 12 V DC, selected through the DIP switch (8-bit) on the right side of the unit:

Position 1-4 controls LIGHT 1 (all OFF=12V, all ON=24V)

Position 5-8 controls LIGHT 2 (all OFF=12V, all ON=24V)

Danger warning: If a 12V light is connected to a 24V output, it will immediately burn out and may cause a fire. The default voltage at the factory is 12V. Before making any changes, be sure to check the lamp nameplate.

The IN terminal block provides a forced light off input (LOFF), and when the terminal is ON, all LED outputs are turned off, which can be used for safety interlocking.

Image acquisition mode and parameter calculation

The line scan camera has two core acquisition modes: "Fixed" and "Continuous".

3.1 Fixed frame mode (suitable for shooting a rectangular image with a single trigger)

Used for detecting workpieces with limited length, collect one frame (consisting of N rows) per trigger.

Key parameters:

Shutter Speed: Exposure time per line (μ s). It must be at least 3 μ s smaller than the Line Trigger Cycle.

Number of Lines: Frame height (number of lines). Calculation formula:

Rows=vertical field of view (mm)/horizontal pixel resolution (mm/pixel)

For example, with a 2048 pixel camera and a horizontal field of view of 150 mm, the resolution is 0.073 mm/pixel. To shoot a 100mm long workpiece, 100/0.073 ≈ 1370 lines are required.

Line Trigger Cycle: The time interval (μ s/line) between two adjacent lines of data collection, determined by the speed of object movement

Cycle (μ s)=(vertical movement time (μ s))/number of rows

Movement time=Vertical field of view length (mm)/Movement speed (mm/s).

For example, if the speed is 200 mm/s, the vertical length is 100 mm, and the movement time is 0.5 s=500000 μ s, then the period is approximately 500000/1370 ≈ 365 μ s/line.

Trigger method:

Timed trigger: Select "Method"="Time" in Capture Options and trigger internally according to the set cycle.

Encoder trigger: Select "Encoder" and trigger each line of acquisition through external pulses. The unit of Line trigger cycle needs to be set in "Parameters" as the number of pulses per line. For example, if the total number of pulses for the workpiece is 4110 and 1370 rows are required, then set 3 pulses per row.

3.2 Continuous mode (suitable for infinite length material detection)

The camera continues to capture, and the image buffer adopts a "overlay" mode. Additional Overlapping Lines need to be set to create overlapping areas between adjacent frames to avoid frame loss.

Note: The continuous mode forces the number of image buffers to be set to 3, and the operation type is' overwrite '. If the original settings do not match, the system will automatically make changes.

3.3 Correction of vertical stretching/compression of images

If the displayed image is stretched or flattened in the vertical direction, it indicates that the Line Trigger Cycle does not match the actual motion speed:

The image is stretched downwards → the triggering period of the row is too large → the period value should be reduced.

Image compression upwards → line trigger cycle too small → cycle value should be increased.

When adjusting, you can simultaneously observe the Brightness and Sharpness LED indicators on the back of the camera. Default threshold: Brightness LEDs 1/2/3 correspond to maximum grayscale values of 64/128/192 respectively; The sharpness LED corresponds to a maximum differential value of 10/20/30.


Lens selection and working distance determination

The XG-HL02M/04M uses a C-mount lens (such as the CA-LHW series), while the XG-HL08M uses an M40 P0.75 special interface lens (such as the CA-LHL series).

Check FOV chart: Taking CA-LHW16 (16mm lens) as an example, if a horizontal field of view of 200mm is required, the chart should display a working distance (WD) of 200mm and a 0.5mm extension ring should be added.

Note:

Ordinary C-mount lenses (non CA-LHW) may not be able to cover the wide image plane of line scan cameras, resulting in dark corners at the edges.

When using macro lenses (CA-LM0210, CA-LML0210), the lens must be directly fixed to the device using a dedicated mounting bracket (OP-87337), otherwise the weight of the lens may damage the camera interface.


Lighting Technology and Shadow Correction

5.1 Selection of Lighting Modes

Mirror reflection: used to detect dents, scratches (scattered light, defects in dark areas) on flat surfaces.

Diffuse reflection: used to detect protrusions and burrs (light directly reflects back to the camera, bright areas display defects).

Transmitting illumination: used for foreign object detection on transparent/semi transparent films, where foreign objects obstruct light and present dark spots.

5.2 Shading Correction

When the brightness within the field of view is uneven (such as dark edges and bright centers), shadow correction must be performed.

Operation steps:

Open the Linescan Calibration tool in Flow Editor.

  • Basler Electric BE1-700 Digital Protective Relay
  • Basler Electric SR8A-2B01B3A Static Voltage Regulator
  • Basler Electric SR4A-2B01B3E Static Voltage Regulator
  • Basler Electric 9017709102 PC Board
  • Basler Electric SR4A-2B01B3A Static Voltage Regulator
  • Basler Electric PRS-250 Veri-Sync Relay
  • Basler Electric 9066800102 Excitation Support System
  • Basler Electric BE1-87G Generator Differential Relay 9 1708 18 100
  • Basler Electric 36T865-2 BE03752001 Power Supply
  • Basler Electric M-300 149D940G02 Power Supply
  • Basler Electric ACA2040-25GM 4Mp 25Fps Area Scan Camera
  • Basler BE1-87G-S1A-A1C-A0N0 Differential Relay
  • Basler SR8A-2B06B3E Static Regulator SR8A2B06B3E
  • Basler SCP-210 Frequency Controller 9095400100
  • Basler BE1-59-A3E-A1J-N1N3F Overvoltage Relay BE159A3EA1JN1N3F
  • Basler 9 2011 11 100 Bracket Mounted Terminal Unit
  • Basler 9 1606 00 101 Voltage Regulator
  • Basler CBS-377 Current Boost System 9109600102
  • Basler 8650C72 Exciter Control Module PCB Rev 5
  • Basler C2EE1PA0N1F BE1-32R Reverse Power Relay
  • ADLINK HPCI-14S12U - Industrial Control Backplane 12PCI Backplane PCI-14S Passive Backplane
  • ADLINK PCIe-GIE74C - image acquisition card 4-CH GigE Vision PoE+ Frame Grabber
  • ADLINK PCI-8164 - control card 4-Axis Advanced Motion Controller Board
  • ADLINK PCIe-U304 - 4 Port USB3 PCIe Frame Grabbers USB Screw Hole Card
  • ADLINK PCI-9112 - Multi-Function Data Acquisition Card DAQ Card
  • ADLINK PCI-7432 - 51-12013-0A50 4-CH Isolated Numérique I/O PCI Cartes Digital I/O Card
  • ADLINK PCA-6106P3-0C1 REV.C1 - backplane 6-Slot Passive Backplane Board
  • ADLINK PCI-7224 - 24-CH Opto-Isolated Digital I/O PCI Board
  • ADLINK CPCI-7433R(G) - Digital Input Board Rear I/O CompactPCI Card
  • ADLINK EBP-13E4 - 51-46703-0A30 Industrial PC Backplane Passive Backplane
  • ADLINK PCIE-HDV62 - Image acquisition card High Definition Video Frame Grabber
  • ADLINK EBP-13E4 - 51-46703-0A30 Industrial Backplane Board Passive Backplane
  • ADLINK 90111-B1 / CPCI-6770 - PCB CPU MODULE CompactPCI Single Board Computer
  • ADLINK PCI-7248 - DATA ACQUISITION PCI CARD 48-CH Parallel Digital I/O Board
  • ADLINK PCI-7230 - 51-12003-0a50 board PCI7230 32-CH Isolated Digital I/O Card
  • ADLINK PCI2A000CB - 51-20000-0B30 Multi-Function DAQ Card Baseboard
  • ADLINK PCI-8134-005 - 4-Axis Motion Controller Card
  • ADLINK PCI-7224 - 24-CH Opto-Isolated Digital I/O PCI Card
  • ADLINK PCI-7434 - 64-CH Isolated Digital Output Card
  • ADLINK PCI-8132 - motion control card 2-Axis Servo & Stepper Controller
  • ADLINK PCI-8134 - Motion Controller PCI Card 4-Axis Controller Board
  • ADLINK PCI-8164 - Motion Control Card 51-12406-0A40 4-Axis Controller
  • ADLINK 51-12001-0C20 - Circuit Board Data Acquisition Interface Module Hardware
  • ADLINK NuPR0-840 - industrial control motherboard Full-Size PICMG CPU Board
  • ADLINK PCI-7444 - 51-12023-0A10 card 128-CH Isolated Digital Output Board
  • ADLINK PCI-1612B - data acquisition card 4-Port RS-232/422/485 Serial Communication Card
  • ADLINK PCI-6208V 009 - 8/16-CH 16-Bit Analog Output Cards PCB-I-E-482=6BX3
  • ADLINK NUPRO-935A/LV - industrial control motherboard Full-Size PICMG SBC Board
  • ADLINK PCI-9114DG - Multi-Function DAQ Card Data Acquisition PCI Card
  • ADLINK ACL-7130 - Data acquisition card Isolated Digital I/O Board
  • ADLINK ABX-6300D-4E1-BP - board ABX6300D4E1BP Video Interface Expansion Card
  • ADLINK CPCI-6940 - CPCI-6940/D1539/M16-0(EA)-000E 6U CompactPCI Processor Board
  • ADLINK NuPRO-760 - industrial control motherboard Half-Size PICMG SBC CPU Board
  • ADLINK IMB-M42H (G)-0020 - industrial control motherboard LGA1155 Micro-ATX Mainboard
  • ADLINK RTV-24 / PCI-MP4S - 51-12519-1C30 4-Channel Real Time Video Capture Board
  • ADLINK PCI-8134 - 4-Axis Servo & Stepper Motion Controller Card
  • ADLINK MXC-6101D - V.PC000.002.ST.00 Box PC Configurable Embedded Computer
  • ADLINK PCI-8134A - 51-12421-0A10 Motion Control Card 4-Axis Controller Card
  • ADLINK DIN-100S / DIN-100SA1 - Technology SCSI-II TB 100-PIN Terminal Block Board
  • ADLINK DIN-812M001 / DIN812M001 - 51-14034-0A1 51140340A1 Terminal Module Breakout Interface
  • ADLINK PCI-8164 - Servo motion control 4-Axis Advanced Controller Card
  • ADLINK PCIe-GIE64 - Acquisition card GigE Vision PoE+ Frame Grabber
  • ADLINK M-302 - Industrial control motherboard ATX PC Board Mainboard
  • ADLINK PCI-8134 - Motion Controller PCI Card 4-Axis Controller Board
  • ADLINK PCI-RTV24 - Image capture card Analog Video Frame Grabber
  • ADLINK PCI-8102 - Motion control card 2-Axis Servo & Stepper Controller Board
  • ADLINK PCI-9112 REV.B1 - Card Multi-Function Data Acquisition Card
  • ADLINK HSI-DI32-M-N / HSL-TB32-M-DIN - Discrete I/O MODULE Distributed Automation Module System
  • ADLINK PCI-7296 - IO card REV.A3 96-CH Parallel Digital I/O Card
  • ADLINK DIN-814P-A4 / 814Y - terminal board Motion Control Interface Block
  • ADLINK DIN-814P-A4 - 51-14056-0A10 PCB-I-E-2736=ZA01 Screw Terminal Board Breakout
  • ADLINK M-322 - motherboard Industrial Control Computer Mainboard
  • ADLINK NUPRO-406 REV:B1 - industrial control motherboard Full-Size PICMG CPU Board
  • ADLINK AMP-204C - card DSP-Based 4-Axis Advanced Pulse-Train Controller
  • ADLINK HPCI14S REV.B1 - industrial computer baseboard 14-Slot Passive Backplane
  • ADLINK PCI-7250 - 8-CH Relay Output & 8-CH Isolated DI PCI Card
  • ADLINK EBP-13E2 - baseplate Passive Backplane Industrial Computer Chassis Board
  • ADLINK LPCI-3488A - PCI-GPIB card 51-12801-0A30 acquisition card IEEE-488 Interface Board
  • ADLINK PCI-6216V-GL - 51-12201-0C30 16-CH 16-Bit Voltage Analog Output Card
  • ADLINK ACL-8454 - 16-CH Isolated Digital I/O & 4-CH Counter Card
  • ADLINK HPCI-9S7U - backplane Passive Backplane Compatible with NuPRO-A301 852 841 842
  • ADLINK DAQ-2010-007 - Simultaneous-Sampling Multi-Function Data Acquisition Card
  • ADLINK MP-C154 - 51-64205-0A10 Motion Control Card 4-Axis Controller Board
  • ADLINK MXE-202/mSSD16B/WiFi-BT - Matrix Rugged I/O Platform Embedded Fanless Computer
  • ADLINK CM-920-R-17 - PC/104-Plus Single Board Computer Module Intel Celeron M
  • ADLINK PCI-7250 NSMP - 8-CH Relay Output & 8-CH Isolated DI Card
  • ADLINK PCI-8164 - 4-Axis Motion Controller PCI Card W/ Cable and Breakout Box
  • ADLINK EMX-100 - Ethernet-based 4-axis Motion Controllers Distributed Motion Module
  • ADLINK PCI-8134A - Press control card 4-Axis Motion Controller Board
  • ADLINK M-845EG REV:3.2 - industrial motherboard Pentium 4 Socket 478 Micro-ATX
  • ADLINK PCI-9114A Rev A2 DG - card High-Resolution Multi-Function Data Acquisition Board
  • ADLINK IEC-915GV - REV 1.1 Industrial motherboard Socket 478 CPU Board
  • ADLINK PCI-9111DG(G) - Data Acquisition Card Multi-Function DAQ Card
  • ADLINK HPCI-15S10 REV:B2 - Industrial computer base plate Passive Backplane Board
  • ADLINK NuPR0-840 / NuPR0-840DV - industrial control motherboard Full-size PICMG CPU Board
  • ADLINK RTV-24 / PCI-MP4S - 51-12519-1C30 4-Channel Real Time Video Capture Board
  • ADLINK NUPRO-780 - industrial control motherboard Pentium III Single Board Computer
  • ADLINK PCI-7296 - 0050 card 96-CH Opto-Isolated Parallel DIO Card Set
  • ADLINK NUPRO-780 - industrial control motherboard PICMG Full-Size SBC
  • ADLINK PCI-7248 - 51-12006-0A3 002 Pci 7248 48-CH Parallel Digital I/O Card
  • ADLINK PCI-7230 - 32-CH Isolated Digital I/O Card
  • ADLINK AMP-204C - motion control card 4-Axis Advanced Controller Board
  • ADLINK PCI-1714UL - Card Ultra High-Speed 4-CH Simultaneous Sampling DAQ
  • ADLINK NuPRO-E330 - industrial computer equipment motherboard PICMG 1.3 SHB SBC
  • ADLINK AMP-204C - DSP-Based 4-Axis Advanced Pulse-Train Motion Controller Module
  • ADLINK PCI-7256 - 001 51-12206-0A2 REV.A2 LPCI-7256 16-CH Latching Relay Output Card
  • ADLINK ND6050 - NUDAM DIGITAL I/0 MODULE Distributed I/O Unit
  • ASEM BM100 - Box PC Embedded Fanless Industrial Computer
  • ADLINK PCI-7250 - PCI Acquisition Card 8-CH Relay Output & Isolated DI Board
  • ADLINK PCI-8164 - Servo motion control 4-Axis Controller Card
  • ADLINK NuPRO-A40H - Industrial Motherboard 51-41807-1A30 OSP LGA1155 H61
  • ADLINK ADMAX X300 SERVER - 51066010-0A30 motherboard Multi-Processor Mainboard
  • ADLINK CMe-GIE62+ - 51-32903-0A30 control card PC/104-Plus GigE Vision Frame Grabber
  • ADLINK NUPRO-780 - industrial control motherboard Full-Size PICMG SBC CPU Board
  • ADLINK ETX-AT-N270-18/GKTEL - 51-71111-OB10 motherboard ETX CPU Module Board
  • ADLINK DIN-812M - interface module Terminal Block Connection Board
  • ADLINK IMB-M42H - industrial control motherboard LGA1155 Micro-ATX Mainboard
  • ADLINK PXIS-2508 - 8-slot 3U PXI Instrument Chassis Power Hardware Assembly
  • ADLINK AMP-208C - Motion Control card DSP-Based 8-Axis Pulse-Train Controller
  • ADLINK PCI-9111 / PCI-9111DG - Multi-Function Data Acquisition Card DAQ Board
  • ADLINK IEEE-488 GPIB card - Bus Interface Controller Communication Board
  • ADLINK RTV-24 - 51-12519-1C30 image acquisition card Video Frame Grabber Card
  • ADLINK TB-24P/24-01 - Board 24 Way Screw Terminal Breakout Board
  • ADLINK HSL-DI16DO16-DB-NN - 51-23015-0A40 Distributed Discrete I/O Module Set
  • ADLINK PCI-7442 - switch quantity card data acquisition card 64-CH Isolated Card
  • ADLINK ACL-7130 REV. B2 - industrial control capture card Isolated Digital I/O PCI Card
  • ADLINK PCI-6S / PCI6S - Backplane 6-Slot Passive Backplane Chassis Board
  • ADLINK ACL-8113A - card Isolated Digital Input Card