Welcome to the Industrial Automation website!

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

KEYENCE XG-8000/7000 adds new features

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

Keyence XG-8000/7000 Series Image Processing System Ver. 5.1/4.2 New Features Practical Guide

In the field of industrial visual inspection, the Keyence XG-8000 series and XG-7000 series are renowned for their ultra-high speed, multi camera support, and flexible processing capabilities. With the firmware upgrade to Ver.5.1 (XG-8000) and Ver.4.2 (XG-7000), the system has added a large number of practical features, including 1D barcode reading unit, image stitching unit, PROFINET industrial Ethernet communication, enhanced calculation functions, additional data output for target classification, FTP image transmission, and German interface support. The addition of these functions enables the XG series to not only complete traditional positioning, measurement, and appearance inspection, but also directly read barcodes, stitch large field of view images, and exchange data with PLCs at high speed through PROFINET, greatly expanding its application scope in intelligent manufacturing and automation production lines.

This article starts from the perspective of on-site application by engineers, systematically sorting out the configuration methods, typical application scenarios, common problems, and solutions of these new features, helping users quickly get started and avoid pitfalls.


1D barcode reading unit: allowing the visual system to directly read barcodes

1.1 Function Overview

Before Ver. 5.1/4.2, the XG series mainly relied on 2D code reading units to process QR codes, etc. The newly added 1D code reading unit supports the following code systems:

CODE39 (does not support Full ASCII conversion)

CODE128 (does not support FNC2 linking characters)

EAN/JAN/UPC (including EAN-8/13, UPC-A/E, and 2-digit/5-digit additional codes)

This unit can output rich result data such as barcode reading string, center position (X/Y coordinates), deflection angle, minimum bar width (pixels/module), reading stability (level 5), reasons for reading errors, etc. It also supports comparison with preset reference strings to achieve dynamic date, time, and serial number verification.

1.2 Key parameter settings and optimization

Suggested values for parameter description

Barcode type CODE39/CODE128/EAN/UPC can be selected as needed

When the minimum bar width module width (in pixels) position correction is turned off, it should be ≥ 1.5 pixels; Color image+position correction ≥ 3.2 pixels

The sensitivity of contrast feature extraction is set to Normal by default, and low contrast can be adjusted to Low

Barcode color black background white stripe/white background black stripe/both take a long time, it is recommended to fix them

The expected barcode direction of the reference angle is horizontal at 0 °, which can adapt to rotation

The maximum time for decoding timeout and single recognition is set to 3 seconds by default, which can be adjusted according to the beat

1.3 Advanced Features: Data Segmentation and Fixed Length Output

Data segmentation: The read string can be divided into up to 8 segments based on the starting position and length. Each segment can be output separately and used for reference comparison, suitable for composite information (such as batch number+production date+serial number).

Fixed length output: If the number of characters read is less than the set length, the specified characters (such as underscores) can be automatically filled in, making it convenient for PLC to receive fixed length data blocks.

Symbol identifier: Barcode type identification defined by JIS X 0530 can be added (such as "] J0" representing CODE39) to facilitate downstream system recognition of the code system.

1.4 Auto Tune

Click the "Auto Tune" button, and the system will automatically analyze the barcode in the current image, setting the most suitable contrast, minimum bar width, length range, etc. Possible reasons for automatic tuning failure:

There are multiple barcodes in the inspection area (unable to specify which one to read)

Excessive background noise or extremely low barcode contrast

The timeout period is too short

Solution: Reduce the inspection area to ensure that only one barcode is included; Increase lighting or use filters; Increase the decoding timeout value appropriately.

1.5 Error Handling and Common Problems

Possible causes and solutions for the phenomenon

Unable to read bar width too small (<1.2 pixels) to increase camera resolution or zoom in on objects

Read unstable and insufficient contrast. Enable the "contrast conversion" filter or use RGB grayscale extraction

Misunderstanding barcode with no static area around, increasing the detection area edge blank, or using a position correction unit

If the decoding time exceeds the set value, increase the decoding timeout, or optimize the image quality to reduce the computational load

Image stitching unit (XG-8700/8700L only)

2.1 Principles and Limitations

The image stitching unit can stitch 2-4 monochrome images (source images) into a large image with a maximum of 4864 × 4864 pixels according to the specified reference position and result position. The merged image can be used for all subsequent detection tools, such as pattern search, edge detection, etc.

Limitations:

Only supports XG-8700/8700L (high-speed models)

Only supports monochrome images (color images cannot be stitched together)

The combined image size needs to be pre allocated with multiple camera type image variables

2.2 Configuration steps

Add image variables of the "multi camera" or "multi camera array" type in the variable settings, and set sufficient width and height (32 pixel multiplier width, 1 pixel multiplier height).

In the image stitching unit, specify for each source image:

Whether to participate in splicing (Include=Yes)

Source image variable

Reference position (point in the source image coordinate system, default to top left corner)

Result location (target coordinates in the final image)

Rotation angle (around reference point)

Set the result image variable.

Choose the overlapping area processing method: Max (take the brightest pixel) or Min (take the darkest pixel).

If smooth edge stitching is required, enable "interpolation processing" (which will increase computation time).

2.3 Typical Applications

Multiple cameras capture large-sized workpieces and combine them into a complete image for overall defect detection.

The line scan camera captures long images in segments and then concatenates them to avoid excessive data volume in a single capture.

2.4 Precautions

To ensure the accuracy of stitching, it is recommended to first perform distortion correction on each camera image (using a calibration unit) before stitching.

The spliced image can only be used as a monochrome image and cannot restore color information.

If there is an overlapping area between the source images, selecting an appropriate overlay mode can eliminate the seam.


PROFINET Communication: Making XG a True Industrial IoT Node

3.1 Overview of Supporting Features

XG series Ver. 5.1/4.2 now supports PROFINET IO, following Conformance Class A, and can achieve:

Loop communication: Exchange I/O data according to the update cycle (≥ 4ms), with a maximum of 1408 bytes.

Record data communication (non cyclic): Use RDREC/WRREC instructions to read and write up to 1024 bytes of data records.

Data output: The data output unit can directly write the measurement results into the PROFINET output buffer.

I/O control: Mapping system variables (such as external triggers, gating signals) to input/output of PROFINET bits, replacing physical wiring.

Command control: Execute custom instructions (such as switching programs, obtaining versions, reading and writing variables) through PROFINET.

Variable synchronization: Through the% InDataMieldbus [] array, internal variable values can be efficiently modified externally.

3.2 Configuration Process (Taking Siemens S7-300 as an Example)

XG side settings:

System Settings → Communication&I/O → PROFINET → Enable

Set the device name (such as "xg-8000") and IP address (on the same network segment as the PLC)

Choose data processing priority (recommend prioritizing "communication" to avoid timeouts)

Configure I/O address mapping: specify command function start address, data output start address, etc

Generate GSDML file: Use "Create GSDML file" on XG to generate a device description file and import it into STEP 7.

PLC side configuration:

Install GSDML file in HW Config and drag XG-8XXX into PROFINET IO system.

Set the device name to match the XG end, and the IP address can be automatically assigned.

Attention: Do not delete the Bit module (slots 1-5, 12-16), otherwise communication will be abnormal.

The update time and parameter/result byte module size can be adjusted as needed.

Download configuration and run: After both PLC and XG are restarted, the LINK LED flashes to indicate successful communication.

3.3 Data output and handshake

After selecting "PROFINET" as the device for the data output unit, offset address and handshake mode can be configured.

Handshake ON (recommended): After each output, set the Result ready flag to 1. After the PLC completes reading, set the Result ack flag to 1. Only after XG receives it, clear the ready flag and prepare for the next output. Avoid data being overwritten.

Handshake OFF: XG continues to overwrite output data, and the PLC needs to determine the validity of the data on its own.

FAQ:

The Result OR flag is always 0 → Confirm that the data output unit has output at least one data to PROFINET.

Data misalignment or overlap → Check the byte range occupied by offset addresses and command functions to avoid conflicts.

3.4 Command Control Practice

The process of executing commands through PROFINET:

Write the command code into the Command Number (such as PW representing program switching).

Write the parameters into Command Parameters 1-16.

Set the Command request flag.

Wait for the Command complete flag to become 1 and check if the Command error flag is 0.

Read Command Data (return value) and Command Result (0 successful).

Clear the Command request flag and prepare for the next command.

Example: Switch the program to the 11th

Command Number=2 (Custom PW Command Number)

Command Parameter1 = 11

After triggering the request, the program switch is completed.

3.5 Variable synchronization

By mapping% InDataMieldbus [0]~[n] to the byte address of PROFINET output data, PLC can directly modify XG internal user variables. The use of the 'InDataMieldbus sync inhibit flag' enables multiple variables to be updated simultaneously, preventing intermediate states from being read.

Enhancement of data output unit

4.1 Crop array data according to the number of detections

When outputting array results (such as the coordinates of multiple spots), even if no object is detected, the default value (such as 0) will still be output. After adding the option 'Use number of detected items to control outputting array data', the output quantity will be consistent with the actual detection quantity, avoiding the PLC from processing a large amount of useless data.

Applicable scenario: Detecting changes in the number of targets (such as different numbers of screws on different batches of parts).

4.2 FTP Server as Output Destination

The image output unit has added an FTP server option. The inspection images can be directly saved to a remote FTP server for central data archiving. Use in accordance with file name rules (automatic date and time or sequential numbering) to avoid overwriting.

Attention: Before use, it is necessary to configure the IP address, port, username and password of the FTP server in the system settings.


New functions added to the computing unit

Ver. 5.1/4.2 has added multiple utility functions to the computing unit:

Typical Applications of Function Functions

CalibInfo (P1, P2, CALIB [], CINFO []) calculates the field of view size, pixel resolution, camera rotation angle, and whether left or right hand conversion occurs based on calibration parameters and camera pixel size to convert pixel coordinates into actual physical coordinates

AngleTrans (D, P) converts angle values to a specified range (-179.9~180 ° or 0~359.9 °) for normalized angle output

UVWTrans (P1, P2, P3, P4 [], P5 [], UVW []) converts the relative displacement of the XY θ platform into the displacement of each axis of the UVW (three-axis) platform for platform alignment control

ClearVariables S/P/L/C and array versions reset the accumulator by resetting user variables to zero

ResetVariable S/P/L/C and array versions restore user variables to their initial values and preset values

These functions greatly enhance the flexibility of on-site custom calculations and reduce reliance on external PLCs or PCs.


Additional data for target classification

The target classification function (used to classify detected defects or objects) now allows for the addition of three additional user specified data items (such as processing times, defect area, variable values). Additional data will be displayed on the classification result interface and can be output together with the classification results.

Note: This feature is only available for XG-8000 series Ver.5.1, and once enabled, unit parameters cannot be saved in Ver.5.0 format.


Communication monitoring and diagnosis

7.1 EtherNet/IP Monitoring

Added the "EtherNet/IP Monitor&Diagnostics" tool, which allows real-time viewing of the bit and byte status of input/output data, and supports manual forced modification of output data for offline testing. Very suitable for troubleshooting communication data mismatch issues.

7.2 PROFINET Monitoring

Similarly, "PROFINET Monitor&Diagnostics" can view loop data, connection status, and diagnostic information. When communication is disconnected, "Disconnected" will be displayed here to help quickly locate the problem.


Shadow Correction (HSP)

The shadow correction filter has added a "Shading Correction (HSP)" mode. Compared to regular shadow correction, HSP suppresses partial correction effects and has a faster processing speed. Suitable for scenes with uneven lighting but high real-time requirements.


German language support

German (Deutsch) has been added to the system interface. Change "System Language" to German in the system settings and restart. In display templates and custom menus, you can specify German text by adding the prefix "<G>" before the text to achieve multilingual switching.


Summary of Common Problems and Solutions

Cause and solution of the problem

PROFINET cannot connect to the device name or IP address mismatch. Ensure that the XG device name matches the PLC configuration; Check if the IP is on the same subnet; Restart both devices

1D code reading timeout, poor barcode quality or too large area, reduced inspection area; Enable automatic tuning; Adjust lighting or lens focal length

After image stitching, there are jagged edges and interpolation is not used. Enable 'Use Interpolation'; If it still exists, check if the reference position is accurate

The number of data output arrays is incorrect and not enabled. Control by detection quantity. Check 'Use number of detected items...'

Variable synchronization update is not synchronized. The synchronization suppression flag is not set to InDataMieldbus sync inhibition flag. Write all variables and then clear the flag

The German character display garbled system language has not been switched to German and restarted to ensure language consistency during upload/download

  • Atlas Copco PF3000-C-HW Tensor S4 S7 RBU Controller
  • Atlas Copco PPBE0613 24VAC Control Panel
  • Atlas Copco PF3000-C-HW Tensor S4 S7 Controller
  • Atlas Copco Neos ARC-D130-S+ Inverter Drive
  • Atlas Copco Power Focus SL PF4002-G-HW Controller
  • Atlas Copco 8436 6770 00 ILT Base Station
  • Atlas Copco 1900520400 Air Compressor Control Panel
  • Atlas Copco 1900-0711-51 Display Keypad Unit
  • Atlas Copco 1900-0710-52 Communication Control Board
  • Atlas Copco 1900-0701-04 Control Interface Module
  • Atlas Copco 8092 1143 40 SRTT Transducer 180Nm
  • Atlas Copco MT Focus 6000 Controller with Pump and Screwdriver
  • Atlas Copco Elektronikon GraphicPlus Controller PPBE0622 PPBE0633
  • Atlas Copco PF3109-G-DN-HW Tensor 8-9 Power Focus Nutrunner Control
  • Atlas Copco Elektronikon P1900520440 Touch Controller
  • Atlas Copco Power Focus 8 Controller 8436280002
  • Atlas Copco 8436 1500 03 FlexCarrier 3-Slot Torque System Component
  • Atlas Copco Power Focus 6000 PF6000 Industrial Controller
  • Atlas Copco TC-4000-P-PB-ES Power Macs Controller
  • Atlas Copco 8433-0015-20 8433001520 Cable Assembly
  • Atlas Copco 49X10301AB Pressure Transducer Sensor
  • Atlas Copco 8436180002 Replacement Filter Element
  • Atlas Copco C4700A01V216 Compressor Control Module
  • Alcatel-Lucent 3HE01019AAAA01 High-Speed Interface Module
  • Alcatel-Lucent 111381 Power Distribution Module
  • Alcatel TN 2523 1:1 CDN III Module – MRPQAE3
  • Alcatel-Lucent 3he06151aaac01 8-Port Interface Module – IPUIBKB3AA
  • Alcatel-Lucent LNW46 DMX Metro OC12 Interface Module – 108694878
  • Alcatel-Lucent 41A12C FT-2000 Optical Transponder Unit – 108188053
  • Alcatel-Lucent 8DG02607AA POW100 DC-DC Converter Module
  • Alcatel-Lucent LambdaXtreme WWBQ21 40G Optical Transponder
  • Alcatel-Lucent TN1891 5ESS Protocol Handler PHV5 Commcode 108747064
  • Alcatel-Lucent 300-0303-900 T1D3PDL1AE Digital Matrix Card
  • Alcatel-Lucent G-821M-A Module
  • Alcatel Lucent MPT-GC Eth 1G+ARM TX 81-86GHz 3DB80005AAAAO1
  • Nokia 3KC48990AB 1830PSS 16FAN2 Fan Unit
  • Alcatel 3EC17041AA PSPC-G4 PCB CP011200552
  • Alcatel 300-0437-906 Rev F DEXCS DMC T1D1L0S Module
  • Alcatel-Lucent 3DW03697ABBA01 TFD64A Module
  • Alcatel-Lucent AWR12 S1-1 UN Interface T3PQAC3AAA
  • ALCATEL LUCENT 9500-MPR ODU RADIO MPT-HC V2 9558HC 3DB20914BAAA03 6GHZ
  • Alcatel-Lucent 9500-MPR ODU 300 11GHz Microwave Radio MPT 3DB23035AEAA01
  • Alcatel 2C7-1005-000 Teflon Bell Jar Holder Ring – 146111
  • Alcatel-Lucent BNJ118 S1:4 Circuit Board – Interface Module
  • Alcatel-Lucent 9500-MPR ODU 300 6GHz Microwave Radio MPT 3DB23215AFAA01
  • Alcatel 3EM04001AA Signal Processing Unit with Accessory Cards
  • Alcatel VAUCAL5KAB AA1418FE2BG 3FE67437AAD02 Interface Card
  • Alcatel-Lucent 1642 Edge Multiplexer N1217P YF – Access Node
  • Alcatel-Lucent 3HE07158BA 7750 SR-12 12-Port 10GIGE MultiCore IMM IPUCA741AA
  • Alcatel 101200429000 Power Divider 746-776 MHz with Heatsinks
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215ADAA01 High Power Radio
  • Alcatel-Lucent 9500-MPR MPT-HC 23GHz 2/2P ODU Radio 3DB20474BA
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215AAAA01 Low Power Radio
  • Alcatel 3BA52126ABAA OmniPCX 4400 Compact Cabinet
  • Alcatel-Lucent 3HE12300AA 7750 SR-1 Subrack with Licenses
  • Alcatel 300-1368-903 Rev C DEXCS SPA-1 T1PQAC1 Line Card
  • Alcatel-Lucent 408977981 WOWUAB6HAA 10G XPR OTU2 XPonder Card
  • Alcatel-Lucent-Nokia 3HE08423AARC01 7750 SR Control Processor Module IPUCBGZ1AA
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215ABAA01 Low Power Radio
  • Alcatel-Lucent CPU7-2 3BA23259ABJE 05 Control Processor Module
  • Alcatel WTM11AD 3DW03915DABA01 Optical Transponder Module
  • Alcatel-Lucent 1340FMPK Card Chip BA5IVY6BAA – Processor Module
  • Alcatel-Lucent 3HE06151ACAC01 Control Fabric Module
  • Alcatel-Lucent 9500-MPR 18GHz 1P-1 Protection ODU Radio 3DB20433BA AA04
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 18GHz Radio 3DB20433BAAA04
  • Alcatel-Lucent SM269 LMPQ04KAXX Circuit Pack – Interface Module
  • Alcatel OME25HP Filter Cartridge – 107494
  • Alcatel-Lucent ALU-BZ74 99BC-4 –48V Battery Cabinet
  • Alcatel-Lucent WWAA37 Optical Amplifier WMAPZNZAAB – CP Series
  • ALCATEL LUCENT 9500-MPR ODU RADIO MPT-HC V2 9558HC MPT-XP 3DB20476BAAA04 23GHZ
  • Alcatel Tyco Yukon ES760A Rectifier
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 23GHz 3DB23045HMAA02 Microwave Radio
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 11GHz 3DB20548ACAA01 Microwave Radio
  • Alcatel Lucent 3DH03173AKAA Module
  • Alcatel-Lucent 76-0300-02 CSM-V2 PCB
  • Alcatel 9400 UX ODU Module 3CC06729ABAA
  • Alcatel-Lucent 408981363 Jigsaw A Band Block 24/-48V KS24624L58
  • Alcatel 3BA53095 PCB Card
  • Alcatel 2C7-1005-000 Bell Jar Holder Ring Teflon PC7-1005-000
  • Alcatel-Lucent ES640 PWDQAGKUAA 5ESS 48V DC Alarm Control Unit
  • Alcatel-Lucent 9500-MPR ODU 300 23GHz Microwave Radio MPT 3DB23045HM
  • Alcatel-Lucent KFA720 WMOTCMVLAB Optical System Interface Carrier
  • Alcatel-Lucent 9500-MPR ODU MPT-HC V2 15GHz Microwave Radio 3DB20373BAAB04
  • Alcatel-Lucent AKM70 S1-7 SMUX1 Sub-Multiplexer – T3PQWAEAAH
  • Alcatel-Lucent 107486490 DDM-2000 SONET DS3 Circuit Pack – BBG4B
  • Alcatel-Lucent SBEVM BNJ82 1:12 Module – AV950-01168
  • Alcatel-Lucent 938A Optical Loss Set – Test & Measurement Kit
  • Alcatel-Lucent MS1025-25O16-ED Fiber Optic Unit – 48VDC
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 23GHz 1/1P Microwave Radio 3DB20473BA AA04
  • Alcatel-Lucent bCEM-U Control Module – 3BK28676ABAC01
  • Alcatel ASI20 Detector Control Module
  • Alcatel Lucent 130B S-1 PWPQ08B Power Unit
  • Alcatel-Lucent 9500-MPR ODU MPT-HC V2 9558HC 6GHz 3DB20441BBAA02
  • Alcatel-Lucent 9500-MPR ODU MPT-MC 15GHz 3DB20824AAAA02 Microwave Radio
  • Alcatel-Lucent 9500-MPR ODU MPT-MC 15GHz 3DB20822AAAB02 Microwave Radio
  • Alcatel-Lucent 3AL92111AA 1P10GSO Interface Module
  • Alcatel 8220 CTT 450 Turbo Pump Controller 127821
  • Alcatel-Lucent 3AL78823AAAE 02 Module
  • Alcatel-Lucent 90-0413-01 Universal Card
  • Alcatel-Lucent BRMA 10Base-T/100Base-TX Connecting Box 3BA56170ACAB010842
  • Woodward Micronet 5453-279 Rev E Chassis Rack for TMR Control
  • Alcatel-Lucent KFA632 WMOTBUKLAA 10G Optical Interface Carrier
  • Alcatel-Lucent 9500-MPR ODU MPT-HC V2 3DB20474BAAB04 23GHz Microwave Radio
  • Alcatel-Lucent KFA720 WMOTCMVLAB SFP/XFP Optical Interface Carrier
  • Alcatel-Lucent 3AL00114AB Universal Interface Module
  • Alcatel-Lucent BBG9 S1:1 OHCTL Optical Hardware Control Module
  • Alcatel-Lucent FB16401-A-I03 GTD-5 Analog Master/Slave Control Board
  • Alcatel-Lucent MCR1721B Control Module
  • Alcatel-Lucent 9500-MPR 3DB20547ACAA01 ODU MPT-HC 11GHz Microwave Radio
  • Alcatel-Lucent 3HE01014AAAA02 Interface Module
  • Alcatel-Lucent 244-2091-005 High Density Digital Line Card V1.5
  • Alcatel-Lucent LAMBDAXTREME WWAA36 Optical Amplifier Module
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 6GHz 2P-2 Radio 3DB20444BAAA05
  • Alcatel-Lucent 9500-MPR ODU MPT-HC V2 9558HC MPT-XP 6GHz 3DB20442BBAA02
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 23GHz 3DB20476ABAA01 Microwave Radio
  • Alcatel Lucent 3HE01019AAAA01 Module
  • Alcatel CPU5 3BA23071 PCB Card with IO2 3BA23050 Set
  • Alcatel-Lucent 9500-MPR ODU MPT-HC V2 9558HC 6GHz 3DB20443BBAA02
  • Alcatel Lucent 500-1113-211 Rev H Channel Bank Assembly
  • Alcatel Lucent 89-0419-B-2 BA9ATS0FAB Frontal Compute Module
  • Alcatel-Lucent LambdaXtreme 1625 WWAF31 Optical Amplifier CP Module
  • Alcatel Z24 3BA53065 Analog Extension Card 3BA52065 AAAA KAZZB-01
  • Alcatel 3EH08263AAXX000448 OmniPCX Office Large PBX System
  • Alcatel Lucent VSEM-C 3FE62453 XA VAUCAJZKAA 7330 DSLAM Line Card
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 3DB20432BAAA04 18GHz Microwave Radio
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 3DB20546ACAA01 11GHz Microwave Radio
  • Alcatel-Lucent 3DB04823AAAA Circuit Board
  • Alcatel-Lucent 3DB04530AAAA Circuit Board