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