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 | 982 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

  • Rexroth 0-531-012-740 Bladder Accumulator
  • Rexroth VT-VRRA 1-527-20/V0/2STV Amplifier
  • Rexroth CSB01-1N-AN-ENS Control Section
  • Rexroth 2ma-1a P58718 Pilot Air Valve
  • Rexroth SB356 Multi-channel Controller System Box
  • Rexroth IndraControl L20 PLC CML20.1
  • Rexroth R151231013 Ball Screw Nut
  • Rexroth RC28-14/30 BODAS Controller R917007683
  • Rexroth LTU350 3-Phase Servo Amplifier
  • Rexroth VAM42.1 Control Device
  • Rexroth S20-DO-16/1 Digital Output Module
  • Rexroth HED8OA-20/350K14AS Pressure Switch
  • Rexroth CSH01.1C-SE-EN2 Control Section
  • Rexroth VT-VSPA2-1-11/T1 Valve Amplifier R900021909
  • Rexroth VT3024-S34-R1 Amplifier Card
  • Rexroth Aventics R417000243 Operating Unit Switch
  • Rexroth NYS04.1-ST-05-ULNN R911325068 Module
  • Rexroth DPR-10 Amplifier Circuit Board Card
  • Rexroth 4WE 10 D33/OFCG24N9K33L R900701304 Valve
  • Rexroth DKC01.3-100-7-FW Servo Drive
  • Rexroth VCP05.2DSN-003-PB-NN-PW Operator Panel
  • Rexroth MSK030B-0900-NN-M1-UG0-NNNN Servo Motor
  • Rexroth 0 821 758 010 Valve Terminal 10 Bar
  • Rexroth VAM42.1-PB-NF-NN-TB-VD-NN-1608-NN Control Panel
  • Rexroth MAC090B-0-JD-5-C/110-A-0/KI520LV Servo Motor
  • Rexroth VCP25.1BVN-003PB-NN-PW Operator Panel
  • Rexroth RKL4305/002.5 Power Cable L=250cm
  • Rexroth MSM031C-0300-NN-M5-MH1 R911344216 Servomotor
  • Rexroth CSH01.1C-SE-EN2 R911335435 Control Unit
  • Rexroth FEM-E-S 25x10RX3-4 R151224013 Ball Screw
  • Rexroth FCS01.1E-W0005-A-04-NNBV Frequency Drive
  • Rexroth 0510-425-009 Hydraulic Gear Pump
  • Bosch Rexroth IndraControl XM42 Controller R911396964
  • Rexroth VT5035-17 R900579497 Valve Amplifier
  • Rexroth FCS01-1EW0015-A-04 R91131106 Frequency Drive
  • Rexroth MSK050B-0600-NN-M1-UG1-NNN Motor
  • Bosch Indramat TBM1.2-40-W1-115 Bleeder
  • Rexroth HCS01.1E-W0028 Compact Converter
  • Rexroth Indramat MAC071B-0-PS-2-C/095-A-0 Motor
  • Rexroth HCS02.1E-W0012-A-03-NNNN Drive Set
  • Rexroth R-IL S3 BK DI8 DO4-PAC Coupler
  • Rexroth HCS01.1E-W0028-A-03-E-S3-EC-NNN Drive
  • Rexroth MSK061C-0600-NN-S1-UG0-NNNN Motor
  • Bosch Rexroth MSM041B-0300-NN-M0-CH0 Motor
  • Rexroth IKG0071-05.0m Servo Motor Cable
  • Rexroth R-IL S3 BK DI8 DO4-PAC Bus Coupler
  • Bosch Rexroth SB301 Tightening Unit 0608701017
  • Rexroth E-003-S-S Tool Cable 0608740220
  • Rexroth MSM020B-0300-NN-M0-CG0 Servo Motor
  • Rexroth IndraControl VEP30.3 Panel PC
  • Rexroth DBETE-62/315G24K31A1V Valve R901029969
  • Rexroth CSH01.3C-ET-ENS-NNN Control Section
  • Rexroth VT3013-37 Amplifier Control Card
  • Rexroth 1-2 TH6 L 162-10/N 05 Joystick
  • Rexroth ESV025 Handheld Nutrunner 0608841037
  • Rexroth RK2 S30 Amplifier Card VT 4224 U 261
  • Rexroth CDB01.1C-SE-ENS R911308279 Control Unit
  • Rexroth VFC3610-0K40-3P4-MNA-7P Inverter 0.4kW
  • Bosch Indramat HCS02.1E-W0028-A-03-NNNN Servo Module
  • Rexroth DKC01.3-040-7-FW EcoDrive R911279426
  • Rexroth HMV02.1R-W0015-A-07-NNN Utility Unit 15kW
  • Rexroth 0 608 830 193 ZSE220 Communication Module
  • Rexroth VT5003 S41 R5 Proportional Amplifier Card
  • Rexroth KSM02.1B-041c-42N-M1-HP0-ET-L3-D7-NN-FW Motor Drive
  • Mannesmann Rexroth VT5005 S16 R1 Valve Amplifier Card
  • Rexroth CFL01.1-R3 Sercos III Interface Module
  • Rexroth CKK-110-NN-1 Linear Axis with MSK040C
  • Bosch Rexroth 047018-104401 Controller Card
  • Rexroth MDSD1K-2X/4 Solenoid Driver Module
  • Rexroth DKC02.3-012-3-MGP-01VRS Servo Drive
  • Rexroth HCS01.1E-W0006 Compact Servo Drive
  • Rexroth NAM1.2-08 Line Former R911246505
  • Rexroth VPB40 Industrial PC Control Cabinet
  • Rexroth FWA-ECODR3-SGP-03-MS Firmware Module
  • Rexroth HEDE10-31 Pressure Switch R901425475
  • Rexroth HM 17-11/315-C/V0/0 Pressure Sensor
  • Rexroth VFC 3610-2K20-3P4-MNA-7P Inverter 2.2kW
  • Rexroth MSK040C-0600-NN-M1-UG1-NNNN Right Angle Geared Motor
  • Rexroth DKC02.3-012-3-MGP-01VRS EcoDrive Cs
  • Bosch Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Rexroth HCS02.1E-W0012-A-03-NNNN Power Section
  • Rexroth DBDS 20 P18/400V Pressure Relief Valve
  • Rexroth 3460565500 Pneumatic EP Converter Regulator
  • Rexroth VT-SWA-1-12/DFEE Angle Sensor R900913641
  • Rexroth 0-608-830-250 Interface Module SM24V
  • Rexroth MHD071B-035-NP0-UN8 Servo Motor 12Nm 1000rpm
  • Rexroth MKD025B-144-KG0-KN R911263737 Servo Motor
  • Rexroth KCU02.2N-ET-ET*-025-NN-N-NN-NW Control Unit
  • Rexroth MV-VPB40*3-RB001VPB R911337529 Valve Terminal
  • Bosch Rexroth AS 2/R-2200 Drive Module 3842998041
  • Rexroth HMS01.1N-W0036 Power Section
  • Rexroth CKK-145-NN1 Compact Linear Module
  • Rexroth MS2N04-C0BTN-BSDK0-NNNNN-NN Geared Servo Motor
  • Rexroth HCS02.1E-W0028-A-03-NNNN Power Section
  • Rexroth MS2N04-D0BQN-CMSG0-NNNNN-NN Servo Motor
  • Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Rexroth MKD041B-144-KP1-KN Servo Motor R911262307
  • Rexroth ESA075G Handheld Nutrunner 0608841033
  • Rexroth MSK070D-0450-NN-M1-UP1-NSNN Motor
  • Rexroth CKK-145-NNG1 Linear Kit with HCS02 Drive
  • Rexroth MSK060C-0300-NN-M1-UG0-NNNN Servo Motor
  • Rexroth MKD090B-047-KP1-KS Servo Motor
  • Rexroth MLS140S-3A-0450-NNN Linear Motor
  • Rexroth VPB40.3 Industrial PC R911338689 CB1
  • Rexroth HCS02.1E-W0012 Servo Drive R911313871
  • Rexroth R151349014 R151145672 Ball Screw Assembly
  • Bosch Rexroth CKK-110-NN-1 Compact Module
  • Rexroth MSK060B-0300-NN-M1-UG1-NNNN Servo Motor
  • Rexroth Indramat TBM 1.2-40-W1-024 Servo Bleeder
  • Rexroth MSK040B-0600-NN-M1-UG1-NNNN Servo Motor
  • Rexroth MLS200S-3A-0450-NNN R911299213 Linear Motor
  • Rexroth SB356 Tool Tightening Controller Rack
  • Rexroth MSK050C-0300-NN-M1-UG0-NNNN Servo Motor
  • Rexroth Indramat DKC11.3-040-7-FW Eco Drive
  • Rexroth VT2000 Proportional Amplifier
  • Rexroth VT1118-10 Analog Module
  • Rexroth MSK060C-0600-NN-M1-UP1-NSNN Motor
  • Rexroth MSK060C-0300-NN-S1-UG0-NNNN Motor
  • Rexroth R911173937 IndraControl XM AI1
  • Rexroth R412018225 AES-D-BC-ECAT Module
  • Rexroth CDB02.1B R911338542 Controller Card
  • Rexroth VT-HNC100-2-30/P-I-00/000 Module
  • Bosch Rexroth CSB02.1B R911372549 Control
  • Bosch Rexroth R185321310 Runner Block
  • Rexroth VPB40.3 Industrial PC R911338689
  • Rexroth HNK01.1A-A075-E0106-A-500 Drive Controller
  • Rexroth CSH02.1B-CC-EC-ET-S4-NN-NN-FW Controller
  • Rexroth CSB01.1C-PB-ENS-NNN Control Unit