Workpiece horizontal state detection method, system and equipment

By dynamically adjusting the sensor set and constructing an adaptive detection configuration, the problem of insufficient adaptability of workpiece horizontal detection was solved, achieving efficient and flexible workpiece horizontal state detection, and improving the quality and production efficiency of laser engraving.

CN121739974APending Publication Date: 2026-03-27SHENZHEN ZHUOJIAN INTELLIGENT MANUFACTURING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-26
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In the existing technology, the workpiece horizontal inspection method has insufficient adaptability and cannot flexibly adapt to the inspection requirements of different product models, resulting in high changeover costs, long downtime, and a lack of data management and closed-loop control in the inspection process, which affects the quality of laser engraving.

Method used

By acquiring the formula data of the target product model, the sensor set is dynamically adjusted to achieve flexible selection of the number and layout of sensors. Combined with the moving mechanism and controller, horizontal detection is performed to identify whether the sensor detection data meets the judgment conditions and to build an adaptive detection configuration.

Benefits of technology

It improves the flexibility and adaptability of automated production lines, reduces changeover costs and downtime, ensures the precision and consistency of laser engraving, and reduces rework and scrap rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121739974A_ABST
    Figure CN121739974A_ABST
Patent Text Reader

Abstract

The invention discloses a workpiece horizontal state detection method, system and equipment, and the method comprises the steps: obtaining a target product model of a to-be-laser-carved workpiece, and loading corresponding target formula data from a formula database based on the target product model; controlling each corresponding target sensor to execute level detection according to a sensor identifier needing to be started in the target formula data so as to obtain sensor detection data of the workpiece to be subjected to laser carving; and identifying whether the sensor detection data meets a level judgment condition or not so as to determine whether the workpiece to be subjected to laser carving is in a qualified level state or not. Therefore, the flexibility of an automatic production line can be obviously improved, and the downtime and the remodeling cost caused by remodeling are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial automation inspection technology, and in particular to methods, systems and equipment for detecting the horizontal state of workpieces. Background Technology

[0002] In industrial automated laser engraving, the horizontal state of the workpiece is a key factor affecting the positioning accuracy and pattern clarity of the laser engraving. When the workpiece is misaligned or unstable before entering the laser engraving process, it often leads to quality problems such as laser misalignment, out-of-focus issues, or blurriness, thus affecting processing consistency and overall quality stability. With the diversification of product models and structures, workpiece level inspection has gradually become an important quality control link in automated laser engraving production lines.

[0003] Currently, workpiece level inspection typically relies on a fixed number and location of sensors to determine the workpiece's posture. However, this fixed inspection method is difficult to adapt to the varying requirements of different products in terms of size, geometry, or assembly structure. When products are changed or processes are adjusted, the inspection configuration often cannot be adapted synchronously, limiting the flexibility of automated production lines.

[0004] Specifically, fixed sensor configurations often suffer from insufficient adaptability when inspecting different types of workpieces. Smaller workpieces may require only a few inspection points to determine their levelness, while larger or more complex workpieces may require more inspection positions and multiple rounds of inspection to obtain reliable results. However, because the number of sensors, their layout, and the inspection process of leveling inspection devices are generally not adjustable, they struggle to cover the inspection needs of different products. Therefore, when switching product models, significant parameter modifications or even hardware adjustments to the inspection device are often necessary, increasing changeover costs and extending production line downtime. Summary of the Invention

[0005] This application provides a method, system, device, storage medium, and program product for detecting the horizontal state of a workpiece, which is used to solve at least one of the above-mentioned technical problems.

[0006] In a first aspect, embodiments of this application provide a method for detecting the horizontal state of a workpiece, comprising: obtaining a target product model of the workpiece to be laser-engraved, and loading corresponding target formula data from a formula database based on the target product model; wherein the formula database pre-stores at least one workpiece product model and corresponding formula data, the formula data including at least one sensor identifier to be enabled from a preset sensor set; controlling each corresponding target sensor to perform horizontal detection according to the sensor identifier to be enabled in the target formula data to obtain sensor detection data of the workpiece to be laser-engraved; identifying whether the sensor detection data meets the horizontal determination conditions to determine whether the workpiece to be laser-engraved is in a qualified horizontal state.

[0007] Secondly, embodiments of this application provide a workpiece horizontal detection system, comprising: a moving mechanism, a sensor array module, and a controller; the moving mechanism is used to move the sensor array module sequentially to at least one detection position point under the drive of the controller; the sensor array module includes at least one horizontal detection sensor for collecting sensor detection data of the workpiece to be laser-engraved; the controller is used to implement the steps of the above method.

[0008] Thirdly, embodiments of this application provide a storage medium storing one or more programs including execution instructions, which can be read and executed by electronic devices (including but not limited to computers, servers, or network devices) to perform the workpiece horizontal state detection method described above in this application.

[0009] Fourthly, a computer device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the workpiece level state detection method described above in this application.

[0010] Fifthly, embodiments of this application also provide a computer program product, the computer program product including a computer program stored on a storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the above-described workpiece horizontal state detection method.

[0011] The beneficial effects of the embodiments of this application are as follows: By loading corresponding target formula data based on the target product model and dynamically adjusting the set of activated sensors according to the formula data, flexibility and adaptability in workpiece level condition detection are achieved. Compared with traditional fixed sensor configurations, the number and layout of sensors can be flexibly selected according to the model, size, and structural characteristics of different workpieces, thus avoiding the need for significant modifications to hardware or parameters when changing products or adjusting processes. This not only significantly improves the flexibility of automated production lines but also reduces downtime and changeover costs caused by product changes. Attached Figure Description

[0012] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 A flowchart of an example of a workpiece horizontal state detection method according to an embodiment of this application is shown; Figure 2 A flowchart illustrating an example of controlling a sensor to perform level detection in a workpiece level state detection method according to an embodiment of this application is shown. Figure 3 The diagram illustrates an example of matching sensor detection data with level determination conditions in a workpiece level state detection method according to an embodiment of this application. Figure 4 A flowchart illustrating an example of the recipe data construction operation in a workpiece level condition detection method is shown; Figure 5 A flowchart is shown as another example of a workpiece horizontal state detection method according to an embodiment of this application; Figure 6 A schematic diagram of an example HMI recipe configuration in a workpiece level condition detection method according to an embodiment of this application is shown. Figure 7 A schematic diagram of an example interactive interface of a recipe storage area in a workpiece horizontal state detection method according to an embodiment of this application is shown. Figure 8 A schematic diagram of an interactive interface is shown as an example of the internal detection parameters of the formula in the workpiece horizontal state detection method according to an embodiment of this application; Figure 9 The flowchart illustrates an example of an operation of a workpiece horizontal state detection method according to an embodiment of this application, which identifies the horizontal state of a workpiece to be laser-engraved based on the detection results of each detection location point. Figure 10A schematic diagram of a PLC program structure is shown as an example of a single detection comparison by a sensor. Figure 11 A schematic diagram of an example PLC program structure is shown for summarizing the results of multiple sensor detection comparisons. Figure 12 A schematic diagram of an example alarm interaction interface is shown for a workpiece that is not in a horizontal position. Figure 13 A structural block diagram of an example workpiece level detection system according to an embodiment of this application is shown; Figure 14 A physical schematic diagram of an example workpiece inspection system according to an embodiment of this application is shown. Figure 15 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.

[0015] It should also be noted that, in this document, the terms "comprising" or "including" include not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0016] It should be noted that in current industrial laser engraving production lines using related technologies, workpiece horizontal inspection typically relies on a fixed number of sensors with fixed positions and a fixed inspection process. While this fixed structure can meet the inspection needs of some single-model products, its lack of adaptability is particularly prominent in environments with mixed production lines of multiple models or frequent product changes. Because different products vary significantly in size, structural features, and clamping methods, the required number of inspection points and inspection steps often differ, and the fixed configuration cannot be flexibly adjusted, thus limiting the inspection range. To adapt to different products, the production line must be adjusted by replacing hardware or rearranging sensors, which increases additional costs and causes downtime and changeover delays during production.

[0017] Specifically, the selection of sensors and the number of inspections for workpiece leveling are fixed and cannot be adjusted according to the inspection requirements of different product models (such as mobile phone casings and electronic components of different sizes). For example, leveling small parts may only require two sensors for one inspection, while inspecting large parts may require four sensors for three to four inspections. The fixed configuration cannot meet such differentiated needs, resulting in a narrow applicability of a single inspection equipment set. When changing production models, hardware replacement or significant adjustments are required, increasing equipment costs and downtime.

[0018] Furthermore, current testing methods generally lack a standardized and systematic mechanism for data management. Parameters generated during the testing process, such as real-time sensor values, number of tests, and upper and lower limit settings, are usually recorded independently, lacking an effective correlation with specific product models or formula data. As a result, historical parameters cannot be automatically recalled when switching products, forcing operators to manually input testing conditions again. This is not only inefficient but also prone to parameter mismatches due to inconsistencies or omissions, thus affecting testing accuracy and the stability of laser engraving quality.

[0019] In highly automated production lines, another common problem is that the loading and judgment of testing parameters still rely on manual operation. Operators need to manually match the corresponding testing parameters according to the current product model, and also need to manually observe the test results and judge whether they are within the set range. However, this is prone to judgment errors due to human negligence, fatigue, or misunderstanding, making it impossible to form an automated closed-loop control and limiting production efficiency and testing reliability. Specifically, manual parameter configuration carries the risk of "model-parameter" matching errors (such as loading the parameters of model A onto model B). At the same time, the comparison between the test value and the set value requires manual intervention (such as the operator checking the instrument value and recording pass / fail), which not only increases the workload but may also lead to misjudgment due to visual fatigue.

[0020] Furthermore, when a workpiece fails the horizontal inspection (NG), current equipment typically alerts operators with indicator lights or simple alarms, but lacks an effective interlocking error-proofing mechanism to prevent defective workpieces from entering the laser engraving process. If operators fail to respond promptly, defective workpieces will continue into the processing stage, causing irreversible defects such as laser engraving misalignment and blurred patterns, resulting in material waste, difficulty in rework, and increased production costs.

[0021] Therefore, current workpiece level inspection methods generally suffer from problems such as inflexible configuration, fragmented data management, insufficient inspection loop, scattered recording mechanisms, and weak error prevention measures, which cannot meet the actual needs of multi-model mixed-line production, flexible manufacturing, and high-quality laser engraving.

[0022] It should be understood that the above description of the relevant technologies is intended only to help the public better understand the inventive spirit and motivation of this application, and is not intended to limit this application. Furthermore, the technical solutions described in the above-mentioned relevant technologies are not prior art, and may also be undisclosed technical solutions, such as those under research or in the laboratory stage.

[0023] The technical solutions in this application, including the collection, storage, use, processing, transmission, provision, and disclosure of users' personal information, comply with relevant laws and regulations and do not violate public order and good morals.

[0024] Figure 1 A flowchart of an example of a workpiece leveling detection method according to an embodiment of this application is shown.

[0025] Regarding the execution subject of the method in the embodiments of this application, it can be any controller or processor with computing or processing capabilities. In some examples, the method in the embodiments of this application can be integrated and configured in an electronic device or terminal through software, hardware or a combination of software and hardware, and the type of terminal or electronic device can be diverse, such as mobile phone, tablet computer, desktop computer or vehicle terminal, etc.

[0026] For example, the execution subject of the method in this application embodiment may be an integrated workpiece level state detection controller. By dynamically loading formula data based on product model and enabling the preset sensor set on demand, the detection configuration is adaptively adjusted according to the product model, thereby effectively avoiding the problem of insufficient adaptability of traditional fixed sensor layout in multi-product scenarios.

[0027] like Figure 1 As shown, in step S110, the target product model of the workpiece to be laser-engraved is obtained, and the corresponding target formula data is loaded from the formula database based on the target product model.

[0028] Here, the formula database pre-stores at least one workpiece product model and its corresponding formula data. The formula data includes at least one sensor identifier selected from a preset sensor set to be enabled. The formula database can be a storage system containing multiple product models and their corresponding formula data. The data can be stored in a standardized and structured manner for easy searching and retrieval. Each product model corresponds to a set of preset formula data, containing information such as the required sensor configuration, detection strategy, and detection location for that product.

[0029] The identification of target product models can be achieved through automated identification systems or manual input, and workpiece models can be distinguished based on product category, specifications, or specific serial numbers. Specifically, on the production line, the target product model is obtained by scanning barcodes, QR codes, or reading RFID tags, or by manually inputting specific workpiece information.

[0030] Then, based on the obtained product model, the system searches the formula database for matching formula data, which includes information such as sensor activation status and sensor location. In some cases, if the formula data for a particular model is not found in the database, a warning can be issued, requiring manual confirmation or a formula update.

[0031] In step S120, the corresponding target sensors are controlled to perform horizontal detection according to the sensor identifiers to be enabled in the target formula data, so as to obtain the sensor detection data of the workpiece to be laser engraved.

[0032] In some implementations, the layout and number of sensors are customized based on the shape, size, and structural characteristics of different workpieces. By loading target recipe data, sensors corresponding to the current product model are automatically selected, and these sensors are controlled to perform horizontal inspection tasks. For example, some smaller or simpler workpieces may require only a few sensors, while larger or more complex workpieces may require multiple sensors to ensure comprehensive inspection.

[0033] Specifically, the recipe data specifies the sensor identifiers that need to be enabled. The system can select the corresponding sensors from a preset sensor set based on these identifiers. The sensor control module sends instructions to control the sensors to perform level detection based on the sensor identifiers in the recipe. Each sensor will measure a specific detection point. The sensor detection data can include information such as the workpiece angle and tilt degree measured by each sensor, thereby recording the horizontal state of the workpiece at the detection point.

[0034] It should be understood that the type of sensor can be diverse. For example, a contact sensor can provide feedback on the horizontal deviation of the workpiece through physical contact, while a laser sensor or ultrasonic sensor scanner can detect the horizontal deviation of the workpiece. All of these fall within the scope of the embodiments of this application. In particular, for workpieces that require detection of small-range, fine horizontal deviations, a high-precision laser sensor can be selected.

[0035] In one example of this application's embodiments, multiple sensors may be arranged in different positions. By activating at least one sensor at a corresponding position, horizontal sensing and measurement of different positions on the workpiece can be achieved. In another example of this application's embodiments, the device may only have a small number of horizontal detection sensors. However, to support the detection of different workpiece positions, its position can be adjusted via a moving mechanism, thereby achieving horizontal measurement of different workpiece positions and enabling low-cost and highly flexible horizontal detection.

[0036] In step S130, the sensor detection data is identified to determine whether the level judgment condition is met, so as to determine whether the workpiece to be laser-engraved is in a qualified level state.

[0037] In some implementations, the detection data collected from various sensors can be analyzed and judged to confirm whether the horizontal state of the workpiece to be laser-engraved meets the process requirements. Horizontal judgment criteria may include parameters such as a threshold angle for workpiece deviation from horizontal, and the maximum allowable tilt error. If the detection data exceeds the preset judgment criteria, the horizontal state of the workpiece is considered unqualified. For example, if a sensor detects that the tilt angle of the workpiece exceeds the set tolerance range during measurement, the system will mark the workpiece as unqualified.

[0038] Furthermore, the leveling criteria can be set differently based on the requirements of different workpieces. For example, some high-precision workpieces may have stricter requirements for levelness, while some low-precision workpieces may have a higher tolerance. These criteria can be dynamically adjusted according to specific process requirements. If the workpiece is qualified, the production line will continue with subsequent laser engraving processes, ensuring that the workpiece's levelness meets the processing requirements, improving the accuracy of laser engraving, guaranteeing the consistency and stability of laser engraved products, reducing rework and scrap rates, and improving overall production efficiency.

[0039] Figure 2 A flowchart illustrating an example of controlling a sensor to perform level detection in a workpiece level state detection method according to an embodiment of this application is shown.

[0040] like Figure 2 As shown, in step S210, at least one detection location point is determined based on the target formula data.

[0041] In one example of an embodiment of this application, the recipe data may include at least one detection location point, which may be stored in the form of three-dimensional coordinates (X,Y,Z), planar coordinates, axial relative position offset, or offset parameters of the workpiece fixed reference position. This location point is then converted into a recognizable detection location point through recipe data parsing.

[0042] However, the data calibration operation for detection location points can be quite cumbersome, especially when there are a large number of detection location points or workpiece models, leading to a heavy workload for formula calibration. In another example of this application embodiment, the formula data may carry conditions that the detection location points should meet, such as the number or distribution of location points, etc., and the system can adaptively determine each detection location point through condition parsing.

[0043] It should be understood that the distribution of detection points can be adaptively adjusted according to the type of workpiece. For example, large workpieces with complex shapes may require more detection points, while small workpieces with simple shapes may only require fewer detection points.

[0044] In step S220, for each detection location point, each target sensor is moved to the detection location point, and each target sensor is controlled to perform horizontal detection at the detection location point to obtain the corresponding sensor detection value sequence.

[0045] In one example of an embodiment of this application, all horizontal detection sensors in the system are mounted on a moving mechanism. One or more specific target sensors in the sensor array are activated by a sensor identifier, and the displacement operation of the moving mechanism is used to gradually move each target sensor to the detection position point to perform horizontal detection in sequence. The sensor detection data is obtained by summarizing the data.

[0046] In another example of the embodiments of this application, each sensor in the sensor array can be individually displacement controlled. One or more specific target sensors in the sensor array are activated by sensor identification, and each target sensor is moved to the corresponding specific detection point position. Sensor detection data is obtained by summarizing the information.

[0047] For multiple detection points, the target sensor is moved and detected sequentially according to a preset order, and the detection value sequence at different detection positions is generated synchronously. Multiple horizontal detections at different positions improve the comprehensiveness and reliability of the system's judgment on the overall horizontal state of the workpiece.

[0048] In step S230, the sensor detection data of the workpiece to be laser-engraved is determined based on the sensor detection value sequence corresponding to each detection position point.

[0049] In some implementations, for the sensor detection value sequences acquired at each detection location, the system first performs validity screening and quality verification on the detection data in the sequence. For example, it removes abnormal jump values, noise interference values, or spurious data that exceeds the normal operating range of the sensor, ensuring the reliability of the data used for subsequent analysis. After data cleaning, the system can obtain representative values ​​from the detection value sequence that characterize the true horizontal state of the detection location based on methods such as mean calculation, median calculation, or weighted analysis, to reduce the bias caused by possible errors in single measurements. It should be understood that since the representative values ​​of different detection locations have different meanings in the workpiece posture plane, information aggregation is used to construct overall detection data reflecting the horizontal state of the workpiece.

[0050] Regarding the implementation details of step S210, in some examples of embodiments of this application, the formula data also includes the number of sensor detections. The number of sensor detections can be preset for different workpiece models, and it usually reflects the workpiece's requirements for horizontal state detection accuracy and the sensitivity of structural areas. For example, workpieces with complex structures and irregularly distributed bottom support points may require a higher number of detections to cover more potential tilting risk points; while standardized workpieces with simple structures can complete horizontal state confirmation with fewer detections.

[0051] Accordingly, the number of location points can be determined based on the number of sensor detections in the target formula data, and at least one detection location point corresponding to that number of location points can be generated.

[0052] In some implementations, during the determination of detection location points, the system adaptively generates the distribution of location points by combining the number of inspections with the spatial structural characteristics of the workpiece, in order to ensure that the inspection points cover the key support areas or horizontally sensitive areas of the workpiece as much as possible. For example, for workpieces with rectangular or regular geometric shapes, multi-point inspection areas can be generated symmetrically based on the number of inspections to construct a more stable multi-point sampling model; for workpieces with irregular shapes or local concave and convex structures, inspection points can be preferentially allocated to edge areas prone to tilting or node positions with significant stress changes based on the workpiece model or preset inspection rules. Through the adaptive generation mechanism of inspection points, even without explicitly providing the coordinates of the inspection points, the system can still proactively construct a distribution of inspection location points that conforms to the characteristics of the target product based on the number of inspections.

[0053] Therefore, by linking the number of sensor detections to the number of detection points, a set of location points that meet the detection requirements can be automatically generated without the need for manual calibration of all detection point coordinates, significantly reducing the complexity and workload of formula calibration. Simultaneously, a direct correlation is established between the number of detection points and the required detection accuracy for different products, ensuring that the system can dynamically adjust the detection coverage according to the characteristics and accuracy requirements of the workpiece.

[0054] Figure 3 This document illustrates an example of a workpiece leveling detection method according to an embodiment of this application, which matches sensor detection data with leveling criteria. In this embodiment, the formula data further includes reference detection values ​​for each detection location. These reference detection values ​​identify the standard measurement result that the workpiece should exhibit at that location under ideal leveling conditions, such as standard height, standard distance, or standard contact displacement.

[0055] like Figure 3 As shown, in step S310, the qualified detection value judgment range for each detection location point is determined based on the reference detection value corresponding to each detection location point in the target formula data and in combination with the preset tolerance threshold.

[0056] Here, when analyzing the target formula data, reference detection values ​​are read at each location point. By setting these reference detection values, a unified theoretical benchmark can be established to address the differences in size, geometry, and support methods among different workpieces. Furthermore, combined with preset tolerance thresholds, a judgment interval characterizing the allowable deviation range for that location point is automatically constructed. The tolerance threshold limits the maximum allowable deviation range of the reference detection value. It can use symmetrical thresholds (i.e., equal positive and negative deviations) or asymmetrical thresholds (e.g., strict requirements for upper deviations but more lenient requirements for lower deviations) to generate judgment intervals for different product process requirements. This automatically generates complete, accurate, and product-model-specific detection standards, eliminating the need for manual point-by-point setting of judgment intervals, thus effectively reducing adjustment costs when switching product models on the production line.

[0057] In step S320, for each detection location point, it is identified whether the sensor detection value sequence of the detection location point matches the corresponding qualified detection value judgment interval, so as to obtain the horizontal qualified detection result of the corresponding location point.

[0058] In this embodiment, after the pass / fail judgment interval for each location point is established, the detection value sequence is compared point by point with the corresponding judgment interval to determine whether the location point meets the horizontal condition. By matching the detection value sequence of each detection location point with the judgment interval, the system can generate a horizontal pass / fail detection result for each location point, such as "pass," "fail," or "suspicious" multi-level judgment results, making the detection information of different location points more recognizable. Therefore, it can effectively identify tilt points or abnormal stress points in the local structure of the workpiece that may cause laser engraving misalignment.

[0059] In step S330, based on the horizontal qualification test results of each location point, it is determined whether the workpiece to be laser-engraved is in a qualified horizontal state.

[0060] In one example of this application's embodiments, if the horizontal qualification test results at all locations pass, the workpiece to be laser-engraved is determined to be in a qualified horizontal state. In another example of this application's embodiments, the roles of different detection points in the overall horizontal state of the workpiece may not be equal. A weighted decision-making method can be used to fuse the results of each detection point based on the location point weights or priorities defined in the formula data. For example, if a critical detection point located at the edge of the support is judged to be unqualified, it may directly lead to the overall judgment of unqualified, while points located in non-critical areas may only have a weak impact on the overall result. Thus, based on multi-point detection, the overall consistency of the workpiece in a horizontal state can be accurately identified.

[0061] In some examples of embodiments of this application, when the identification result indicates that the workpiece to be laser-engraved is in an unqualified level state, a prohibition command is sent to the laser engraving equipment to interrupt the laser engraving process for the workpiece to be laser-engraved.

[0062] Here, when it is determined that the workpiece to be laser-engraved is in an unqualified horizontal state, the linkage control logic with the laser engraving equipment can be triggered to ensure that the unqualified workpiece does not enter the laser engraving process. Specifically, the system can map the judgment result into equipment control commands, and generate a corresponding prohibition command when an unqualified state is detected. This command is sent to the laser engraving equipment via the industrial bus or equipment communication protocol, causing the laser engraving equipment to suspend the processing flow of the current workpiece. For example, disabling laser emission permission or locking the laser engraving head's motion axis ensures that the laser engraving process will not be performed on workpieces that are unqualified in a horizontal state. In addition, an audible and visual alarm can be triggered simultaneously, and the equipment can enter a safe standby state, waiting for the operator to handle the unqualified horizontal workpiece, thus improving the overall operational stability of the production line. Therefore, through the coordinated use of the linkage locking mechanism and the early warning mechanism, it can be ensured that the horizontal detection result can promptly affect the production line execution logic, preventing defective workpieces from continuing to flow into the laser engraving process, thereby improving the yield rate of laser products.

[0063] Figure 4 A flowchart illustrating an example of the process for constructing recipe data in a workpiece level condition detection method is shown.

[0064] like Figure 4 As shown, in step S410, the first user input operation for the calibrated product model is parsed to determine at least one selected sensor identifier.

[0065] In some implementations, through a first user input operation, after the user selects a sensor identifier through the interface, the range of sensors that need to participate in the detection during this calibration process can be locked according to the selected content.

[0066] In one example of the embodiments of this application, a second user input operation for a calibrated product model can also be parsed to determine the number of times the calibration sensor is detected, and then a corresponding number of reference position points can be generated based on the determined number of times the calibration sensor is detected.

[0067] Here, the number of sensor calibration checks can be used to indicate the minimum number of check points required for a workpiece of a given model during horizontal inspection, covering critical structural areas or determining the inspection accuracy level. After reading this number of checks, the system can automatically generate a corresponding number of reference points based on the overall workpiece contour, fixture reference position, or a preset inspection strategy. For example, the points can be distributed proportionally according to the workpiece size, or the inspection points can be preferentially placed on edges, support surfaces, or structural areas prone to tilting based on the workpiece's bottom surface geometry. Therefore, even without direct user input of coordinates, a set of reference points sufficient to represent the workpiece's horizontal state can be constructed. This not only ensures flexible configuration of different sensor combinations and the number of inspection points for different product models but also significantly simplifies the manual calibration process and reduces the complexity of formula development.

[0068] In step S420, each selected sensor is controlled to perform level detection according to the selected sensor identifier in order to obtain the corresponding reference detection value.

[0069] Specifically, for cases with only a single reference location, all selected sensors can be directly controlled to move to that location and complete one benchmark test, thereby obtaining the reference test value for that product model under standard horizontal conditions. This reference test value will serve as the theoretical standard for subsequent production testing, providing a consistent horizontal baseline for different workpiece models.

[0070] In some examples of embodiments of this application, when multiple reference location points exist, for each reference location point, the selected sensors corresponding to the selected sensor identifiers are moved to the reference location point, and each selected sensor is controlled to perform horizontal detection at the reference location point to obtain the corresponding reference sensor value sequence. For example, the selected sensors can be moved to each reference location point sequentially according to a preset order, and sampling can be performed at different location points. The sensor values ​​from multiple samplings are then summarized to obtain the reference sensor value sequence. When performing multi-point detection, different sensor motion modes can also be used, such as a single sensor being moved point by point by a moving mechanism, or multiple independently movable sensors arriving at different location points in parallel for collaborative detection.

[0071] In step S430, the selected sensor identifier and the corresponding reference detection value are recorded and associated with the calibrated product model to construct the corresponding formula data.

[0072] Here, the system organizes and structures all key parameters generated during the calibration process to form final formulation data that can be used for production testing. For calibration modes that only include a single reference location point, the system can record the sensor identifier selected for this calibration and the corresponding reference detection value, and bind the above data with the calibrated product model, writing it into the formulation database.

[0073] In some examples of embodiments of this application, when the calibration process includes multiple reference location points, the selected sensor identifier, the number of calibration sensor detections and the corresponding reference sensor value sequence are recorded and associated with the calibration product model to construct corresponding formula data. This formula data structure can provide a set of horizontal detection benchmark models that accurately match the structural characteristics and horizontally sensitive areas of different workpiece models.

[0074] Regarding the implementation details of step S420 above, in some examples of embodiments of this application, to enhance the flexibility of setting detection location points during the recipe construction process, the system also allows users to directly specify the set location points of the corresponding sensors through third-party user input. The set location points are typically used to cover workpiece areas that the user considers more sensitive to or representative of the horizontal state, such as key support points at the bottom of the workpiece, the center of the laser-engraved area, or local nodes susceptible to external forces. Through third-party user input, the system can parse the coordinate information, offset, or location point name input by the user and convert it into spatial coordinates recognizable by the actuator, thereby constructing a set of calibration detection points that highly matches the actual workpiece structure.

[0075] After acquiring the set location points, each selected sensor is independently moved and positioned according to its chosen sensor identifier, ensuring that each sensor accurately reaches the user-specified location. Once in position, the sensor performs level detection, acquiring reference sensor measurements, which typically represent the actual feedback data of the workpiece in an ideal level state. After completing the detection of the set location points, the selected sensor identifiers, all set location points, and their corresponding reference sensor measurements are completely recorded and associated with the calibrated product model to construct the corresponding formula data. Compared to calibration methods that automatically generate location points, this example's user-defined set location point mechanism not only further enhances the controllability and specificity of formula construction but also makes the formula data more closely aligned with actual process requirements.

[0076] Figure 5A flowchart of another example of a workpiece leveling detection method according to an embodiment of this application is shown. This method can be implemented based on a PLC-based visual configuration leveling detection error prevention system. By coordinating HMI (Human-Machine Interface), PLC system and laser engraving equipment at different stages, a complete closed-loop process of recipe configuration, parameter storage, automatic loading, detection comparison, result judgment and anomaly error prevention control is achieved.

[0077] like Figure 5 As shown, during the configuration phase (Phase 1), the user selects the target sensor for horizontal detection (supporting multiple or single selection) through the HMI's visual interface, and can customize the input or select the number of horizontal detections via dropdown. The HMI transmits the user's selections to the PLC system in real time to generate the basic configuration data for subsequent detection processes.

[0078] Figure 6 A schematic diagram of an example of the HMI recipe configuration in a workpiece level condition detection method according to an embodiment of this application is shown.

[0079] like Figure 6 As shown, this interface is a visual operation window provided by the PLC host computer. Through the "Current Category" and "Category Selection" dropdown menus, users can select the sensor combination and corresponding number of tests required for the target product model. The interface is divided into multiple testing areas according to the testing sequence, such as "First Test," "Second Test," and "Third Test." Each area displays multiple standard value input boxes for sensors (e.g., U2, U3, U4, U5 standard values), used to set reference test values ​​for different locations for each test. Users can input the standard value parameters for each test item in the interface according to the workpiece structure characteristics and testing requirements; in addition, these standard value parameters can also be automatically generated during subsequent calibration testing. The interface also provides visual configuration items such as the number of tests, upper limit of test values, and lower limit of test values ​​to precisely set the allowable deviation range for horizontal testing.

[0080] After configuration, users can use the "Settings," "Save," "Download," and "Upload" buttons on the interface to write the set sensor identifiers, number of tests, and reference values ​​for each test location into the PLC system. This data is then associated with the corresponding product formula to form a formula data package that can be automatically called upon during production. The system automatically drives the moving mechanism (e.g., along the X-axis) to each test location based on the number of tests, recording the actual sensor measurement data with test values ​​at each location and comparing it with the reference values ​​configured in this interface. Through this interface, test parameters are bound to specific projects, ensuring that different product models can quickly switch test strategies, improving the configurability and adaptability of the horizontal inspection error-proofing system.

[0081] In the formula storage stage (stage 2), the PLC system can package and organize the real-time sensor readings, sensor configuration information, and test count parameters collected during the testing process, associate them with the current product model, form a complete formula data package, and write it into the PLC's internal storage area. The formula storage function not only ensures that different product models can establish independent horizontal testing standards, but also provides a data foundation for rapid model changeovers in automated production processes.

[0082] Figure 7 A schematic diagram of an example interactive interface of the recipe storage area in the workpiece horizontal state detection method according to an embodiment of this application is shown.

[0083] like Figure 7 As shown, the interface displays the structured data area inside the PLC used to store recipes for different product models. Each product model corresponds to an independent recipe structure (ST_Recipe), which is arranged sequentially in the form of arrays PartCode[1] to PartCode

[13] . Each recipe structure contains multiple fields for storing detection parameters, such as reference detection value array, sensor enable flag, number of location points, and number of detections.

[0084] Reference Figure 7 In the example, the formula data is stored in an array in DataSave → PartCode → Data → Data1[…], such as Data1[0], Data1[1], etc., which store different reference values ​​or parameter codes. Through this structured formula storage method, the system can package the real-time detection values ​​of each sensor during the current detection process, the sensor configuration information set by the user in the HMI configuration stage, and the number of detections, and bind them with the corresponding product model to form a complete and callable formula data package, thereby realizing the persistence and high-speed reading of detection parameters.

[0085] Figure 8 A schematic diagram of an interactive interface is shown as an example of the internal detection parameters of the formula in the workpiece horizontal state detection method according to an embodiment of this application.

[0086] like Figure 8The interface shown illustrates the actual storage format of each parameter in the formula data package, which is stored as an array within the Data → Data1[0..100] field of the ST_Recipe structure. Each Data1[x] item in the diagram is an integer (DInt) used to record the test reference value, location point code, test count parameter, or other basic data required for the test process related to that product model. This structured numerical storage format allows for the rapid loading of formula data for the corresponding product model in automated production mode, using these values ​​as the internal calculation benchmark for the test process, thus achieving stable and reliable data retrieval and parameter parsing.

[0087] During the automatic loading phase (Phase 3), when the production line switches product models or triggers an automatic generation instruction, the PLC system automatically matches and loads the corresponding formula data package based on the built-in "Product Model-Formula Data Mapping Library". The loaded formula includes data such as sensor activation information, number of tests, reference test values ​​or reference ranges, which are used to guide the testing logic of the current batch of workpieces.

[0088] Then, the detection and comparison stage (stage 4) begins. The PLC system drives the selected sensors to perform real-time detection based on the formula data. The current detection value is compared with the reference value or upper and lower limit thresholds in the formula to obtain the comparison result (qualified / unqualified) for each detection point, thus realizing the real-time judgment of the level status.

[0089] Figure 9 The diagram illustrates an example of an operation flowchart in the workpiece horizontal state detection method according to an embodiment of this application, which identifies the horizontal state of the workpiece to be laser-engraved based on the detection results of each detection location point.

[0090] like Figure 9 As shown, in step S910, a unique corresponding PLC result register address is assigned to each detection location point, and the PLC result register addresses are arranged consecutively according to the order of the detection location points. This ensures that the detection results of each location point can be recorded and retrieved in sequence.

[0091] In step S920, the horizontal qualification test results of each detection location are stored in the corresponding PLC result register address. The "horizontal qualification test result" (qualified / unqualified) of each detection location after threshold judgment is written to the corresponding PLC result register address, thereby forming a complete judgment record of the current inspection round of the workpiece.

[0092] In step S930, when all PLC result register addresses indicate a qualified test result, a workpiece level qualified signal is output. All PLC result register addresses are iterated through; when all detection position points indicate qualified, a workpiece level qualified signal is output, allowing the workpiece to continue into the laser engraving process.

[0093] In step S940, when any PLC result register address indicates a non-conforming detection result, a workpiece horizontal non-conforming signal is output. Specifically, as soon as any PLC result register address is marked as non-conforming, the system immediately outputs a workpiece horizontal non-conforming signal, triggering the error prevention mechanism and preventing the corresponding workpiece from entering the laser engraving stage.

[0094] Figure 10 A schematic diagram of a PLC program structure is shown as an example of a single detection comparison of a sensor.

[0095] like Figure 10 As shown, during the detection and comparison phase, based on the loaded sensor configuration and the number of detections defined in the formula data, each sensor is triggered sequentially to perform real-time detection, and the collected detection value is sent to the PLC's range judgment module (IN_RANGE). In this module, the system reads the reference upper limit value (Limit2) and reference lower limit value (Limit1) of the corresponding detection location point and compares the current sensor detection value (VAL) with the upper and lower limit ranges. When the detection value falls within the reference range, the detection location point is determined to be qualified; conversely, when the detection value exceeds the reference range, the location point is determined to be unqualified, and the corresponding PLC result register address is set to NG. Figure 10 In the example shown, multiple IN_RANGE modules are arranged side by side, each used to perform threshold judgment on the measurement results of multiple sensors or multiple location points in the same detection, thereby realizing parallel judgment processing for different detection points.

[0096] In the result recording and judgment stage (stage 5), the PLC system writes the comparison results of each inspection step to the corresponding PLC memory address (which can be an independent address or a summary address), and makes a comprehensive judgment on the overall inspection result according to the preset judgment logic. The system only determines that the current workpiece level is qualified when the comparison results of all inspection steps are within the set qualified threshold range; if any inspection point exceeds the limit, the system immediately judges the overall result as NG (unqualified). After the judgment is completed, the system will use the final qualified or NG flag to guide subsequent processes.

[0097] Figure 11 A schematic diagram of an example PLC program structure is shown for summarizing the results of multiple sensor detection comparisons.

[0098] Reference Figure 11The program structure shown illustrates that after threshold judgments are performed at multiple detection points or through multiple detection steps, the result of each detection is written to the corresponding status register variable (e.g., DistanceStatus1, DistanceStatus2, DistanceStatus3, DistanceStatus4, DistanceStatus5, etc.). During the result recording and judgment phase (phase 5), the PLC program sequentially checks whether these status variables are all "qualified" values ​​(e.g., Int = 1) using a cascaded judgment structure. When the status variables of all detection steps indicate that the detection result falls within the set reference range, the judgment logic sets the overall detection status DistanceStatus to a qualified flag, thus allowing the current workpiece to continue into the laser engraving process.

[0099] Conversely, such as Figure 11 As shown in the logic on the right, if the comparison result of any detection step does not meet the acceptance criteria (for example, if DistanceStatus ≠ 1 in a certain detection), the PLC can identify the abnormal state in the result summary logic and update the overall detection status DistanceStatus to NG (unacceptable). This judgment result will serve as the basis for subsequent process control, preventing the laser engraving equipment from continuing to process the workpiece, thus forming real-time error prevention control for unacceptable levels. Therefore, by unifying multiple detection results into a single workpiece level judgment output, the traceability of the detection process is ensured, as well as the accuracy and stability of the final judgment result.

[0100] Finally, in the error-proofing execution phase (phase 6), when the judgment result is NG (Not Acceptable), the system automatically prompts the operator via an HMI pop-up window (e.g., "Product level is unacceptable, please level the product"), and simultaneously outputs an interlock prohibition signal to the laser engraving equipment, preventing the laser engraving equipment from starting or immediately interrupting the current laser engraving task. This prevents unacceptable workpieces from entering the laser engraving process and avoids quality problems such as laser engraving misalignment, out-of-focus areas, or blurry patterns. For acceptable results, the laser engraving equipment is allowed to continue the processing flow, achieving fully automatic closed-loop control of detection-judgment-interlock.

[0101] Figure 12 A schematic diagram of an example alarm interaction interface is shown for a workpiece that is not in a horizontal position.

[0102] like Figure 12As shown, when the PLC determines the result as NG, the host computer immediately pops up a prompt window saying "Current product level inspection NG, please manually review!" and provides two manual confirmation buttons: "OK Confirm" and "NG Confirm," allowing operators to manually review and handle the non-conforming status. Simultaneously, at the same time the pop-up appears, the system sends a prohibition interlock signal to the laser engraving equipment, causing the equipment to pause or prevent the current workpiece from entering the laser engraving process until manual confirmation and completion of workpiece leveling or repositioning. This alarm interface enables timely interception and manual intervention of abnormal workpieces, effectively preventing laser engraving misalignment, poor focus, or processing failure caused by poor workpiece leveling. Therefore, through the coordinated operation of the HMI, PLC system, and laser engraving equipment, level inspection becomes a key quality control link in the laser engraving production line, significantly improving the line's automation level and error prevention capabilities.

[0103] In this embodiment, through the visual configuration mechanism of PLC and HMI, the system can select different detection sensors and flexibly set the number of detections as needed, thereby adapting to the detection requirements of various product models and demonstrating high configuration flexibility. At the same time, the detection data and project formula are bound and stored, making all reference parameters and real-time detection records traceable and reusable, greatly improving the changeover efficiency of the production line during the switching process of multiple models. During operation, the system can automatically load the formula parameters of the corresponding product model without manual intervention, which not only improves the degree of automation but also effectively reduces human configuration errors. In addition, by storing the comparison results of each detection step to a designated address of the PLC and making a comprehensive judgment based on clear logic, the accuracy of the horizontal detection results is further guaranteed, avoiding misjudgment. When the detection result is NG, the system can also promptly block unqualified workpieces from entering the laser engraving process through a dual error prevention mechanism of upper computer pop-up prompts and interlocking with the laser engraving equipment, forming a complete error prevention closed loop, reducing the defect rate from the source and significantly improving the overall processing quality and production line stability.

[0104] Figure 13 A structural block diagram of an example of a workpiece level detection system according to an embodiment of this application is shown.

[0105] like Figure 13 As shown, the workpiece horizontal detection system 1300 includes a moving mechanism 1310, a sensor array module 1320, and a controller 1330.

[0106] The moving mechanism 1310, driven by the controller 1420, sequentially moves the sensor array module 1410 to at least one detection position point. Specifically, the moving mechanism 1430, driven by the controller 1420, moves the sensor array module 1410 along a preset path within the detection area, enabling at least one horizontal detection sensor to sequentially reach multiple detection position points for measurement. This moving mechanism can employ a linear module, a sliding table mechanism, or an electric lead screw, for example, in the axial direction, to ensure high-precision reciprocating movement of the sensor between different position points. Through the action of the moving mechanism 1430, even if the formula configuration includes multiple detection points, it is not necessary to configure multiple fixed sensors to achieve automatic detection point-by-point sequentially, improving the space utilization and adaptability of the detection system.

[0107] The sensor array module 1320 includes at least one horizontal detection sensor for acquiring sensor detection data of the workpiece to be laser-engraved.

[0108] Specifically, the sensor array module 1310 can measure multiple detection points of the workpiece to be laser-engraved according to the system configuration, and collect sensor detection data related to the workpiece posture.

[0109] The controller 1330 is used to implement the steps of the workpiece horizontal state detection method described in any of the above embodiments of this application. The controller 1330 is electrically or communicatively connected to the sensor array module, and integrates multiple functional modules such as recipe management, sensor scheduling, position point analysis, detection data processing, threshold comparison, and result judgment. It is used to execute the workpiece horizontal state detection method described in any of the above embodiments of this application, including loading recipe data, controlling the sensors to perform detection, judging the multi-point detection values, recording the detection results, and outputting error prevention control signals.

[0110] As can be seen from the method embodiments, the controller 1330 can be implemented by a PLC, an industrial control computer, or an embedded system with the ability to run control logic. By calling pre-stored recipe data and real-time detection data, it can automatically identify the horizontal state of the workpiece and output an interlock signal to prevent the laser engraving equipment from continuing processing when an unqualified state occurs. Those skilled in the art can understand the logical relationship of the internal functional modules of the controller by referring to the foregoing method embodiments and can obtain the same or similar technical effects as the method embodiments, so further details are omitted.

[0111] Figure 14 A physical schematic diagram of an example workpiece inspection system according to an embodiment of this application is shown.

[0112] like Figure 14As shown, the system is equipped with multiple sensors (e.g., four sensors) for horizontal detection, used to sample height or posture at different locations. An X-axis moving module is also installed inside the device to drive the sensor array along the X-axis. During a single detection task, the moving module moves point by point to each detection location according to the number of detections, ensuring the sensors are precisely aligned with the corresponding locations and completing one detection. As the moving module moves sequentially, each sensor can perform multiple measurements at multiple locations, thus achieving multi-point, sequential detection of the workpiece's horizontal state.

[0113] The workpiece level detection system provided in this application embodiment can achieve automated detection of multiple positions through the coordinated action of the sensor array module and the moving mechanism, thereby significantly improving the coverage and accuracy of level detection.

[0114] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of combined actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Secondly, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application. In the above embodiments, the descriptions of each embodiment have their own emphasis; for parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0115] In some embodiments, this application also provides a computer program product, the computer program product including a computer program stored on a non-volatile computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform any of the above-described workpiece level state detection methods.

[0116] In some embodiments, this application also provides an electronic device, which includes: at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a workpiece horizontal state detection method.

[0117] The apparatus described in the embodiments of this application can be used to execute the workpiece horizontal state detection method of the embodiments of this application, and accordingly achieve the technical effects achieved by the workpiece horizontal state detection method of the embodiments of this application, which will not be elaborated here. In the embodiments of this application, the relevant functional modules can be implemented by a hardware processor.

[0118] Figure 15 This is a schematic diagram of the hardware structure of an electronic device for performing a workpiece horizontal state detection method according to another embodiment of this application, as shown below. Figure 15 As shown, the device includes: One or more processors 1510 and memory 1520, Figure 15 Take the 1510 processor as an example.

[0119] The equipment for performing the workpiece levelness detection method may also include: an input device 1530 and an output device 1540.

[0120] The processor 1510, memory 1520, input device 1530, and output device 1540 can be connected via a bus or other means. Figure 15 Taking the example of a connection between China and Israel via a bus.

[0121] The memory 1520, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the workpiece horizontal state detection method in the embodiments of this application. The processor 1510 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 1520, thereby implementing the workpiece horizontal state detection method in the above-described method embodiments.

[0122] Memory 1520 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the device, etc. Furthermore, memory 1520 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 1520 may optionally include memory remotely located relative to processor 1510, and these remote memories may be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0123] Input device 1530 can receive input digital or character information and generate signals related to user settings and function control of the device. Output device 1540 may include display devices such as a display screen.

[0124] The one or more modules are stored in the memory 1520, and when executed by the one or more processors 1510, the workpiece horizontal state detection method in any of the above method embodiments is executed.

[0125] The above-described product can perform the methods provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for performing the methods. Technical details not described in detail in this embodiment can be found in the methods provided in the embodiments of this application.

[0126] The electronic devices in this application embodiments exist in various forms, including but not limited to: (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.

[0127] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.

[0128] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes audio and video players (such as iPods), handheld game consoles, e-book readers, as well as smart toys and portable car navigation devices.

[0129] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0130] (5) Other electronic devices with data interaction functions.

[0131] In some embodiments, this application also provides a mobile platform on which the computer device described in any embodiment of this application is installed. The mobile platform includes, but is not limited to, vehicles, tracked robots, bipedal robots, quadrupedal robots, etc., wherein the vehicle can be a passenger car, pickup truck, truck, etc. It should be noted that the above are merely examples, and this application does not limit the specific form of the mobile platform.

[0132] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0133] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for detecting the horizontal state of a workpiece, comprising: Obtain the target product model of the workpiece to be laser-engraved, and load the corresponding target formula data from the formula database based on the target product model; wherein, the formula database pre-stores at least one workpiece product model and corresponding formula data, and the formula data includes at least one sensor identifier to be enabled selected from a preset sensor set; According to the sensor identifiers that need to be enabled in the target formula data, control the corresponding target sensors to perform horizontal detection in order to obtain the sensor detection data of the workpiece to be laser engraved; The sensor detection data is used to determine whether the level judgment condition is met, thereby determining whether the workpiece to be laser-engraved is in a qualified level state.

2. The method according to claim 1, wherein, The step of controlling the corresponding target sensors to perform horizontal detection based on the sensor identifiers to be activated in the target formula data to obtain sensor detection data of the workpiece to be laser-engraved includes: Determine at least one detection location point based on the target formula data; For each detection location, each target sensor is moved to the detection location, and each target sensor is controlled to perform horizontal detection at the detection location to obtain the corresponding sensor detection value sequence; Based on the sensor detection value sequence corresponding to each detection location point, the sensor detection data of the workpiece to be laser-engraved is determined.

3. The method according to claim 2, wherein, The formula data also includes the number of sensor detections; Determining at least one detection location point based on the target formula data includes: The number of location points is determined based on the number of sensor detections in the target formula data, and at least one detection location point corresponding to the number of location points is generated.

4. The method according to claim 2, wherein, The formula data also includes reference detection values ​​for each detection location point; The step of identifying whether the sensor detection data meets the level determination criteria to determine whether the workpiece to be laser-engraved is in a qualified level state includes: Based on the reference detection values ​​corresponding to each detection location point in the target formula data, and combined with the preset tolerance threshold, the qualified detection value judgment range for each detection location point is determined. For each detection location, identify whether the sensor detection value sequence of the detection location matches the corresponding qualified detection value judgment interval, so as to obtain the horizontal qualified detection result of the corresponding location. Based on the horizontal qualification test results at each location point, it is determined whether the workpiece to be laser-engraved is in a qualified horizontal state.

5. The method according to claim 4, wherein, The step of determining whether the workpiece to be laser-engraved is in a qualified horizontal state based on the horizontal qualification test results at each location point includes: Each detection location point is assigned a unique corresponding PLC result register address, and the PLC result register addresses are arranged consecutively in the order of the detection location points. Store the horizontal qualification test results of each detection location point to the corresponding PLC result register address; When all the PLC result register addresses indicate a qualified test result, output a workpiece level qualified signal; When any of the PLC result register addresses indicates a non-compliant detection result, a workpiece level non-compliant signal is output.

6. The method according to claim 1, wherein, After determining whether the workpiece to be laser-engraved is in a qualified level state based on the recognition result, the method further includes: When the identification result indicates that the workpiece to be laser-engraved is in an unqualified state, a prohibition command is sent to the laser engraving equipment to interrupt the laser engraving process for the workpiece.

7. The method according to claim 1, wherein, The construction of the formula data includes: Analyze the first user input operation for the calibrated product model to determine at least one selected sensor identifier; Based on the selected sensor identifier, control each selected sensor to perform level detection in order to obtain the corresponding reference detection value; Record the selected sensor identifier and corresponding reference detection value, and associate them with the calibrated product model to construct the corresponding formula data.

8. The method of claim 7, further comprising, after parsing a first user input operation for a calibrated product model to determine the selected at least one sensor identifier: Analyze the second user input operation for the calibrated product model to determine the number of times the calibration sensor is detected. Based on the determined number of detections by the calibrated sensor, a corresponding number of reference position points are generated; The step of controlling each selected sensor to perform level detection based on the selected sensor identifier to obtain a corresponding reference detection value includes: For each reference position point, the selected sensors corresponding to the selected sensor identifiers are moved to the reference position point, and the selected sensors are controlled to perform horizontal detection at the reference position point to obtain the corresponding reference sensor value sequence. The process involves recording the selected sensor identifier and corresponding reference detection value, and associating them with the calibrated product model to construct corresponding formula data, including: Record the selected sensor identifier, the number of times the calibrated sensor was detected, and the corresponding reference sensor value sequence, and associate them with the calibrated product model to construct the corresponding formula data.

9. A workpiece leveling detection system, comprising: Motion mechanism, sensor array module, and controller; The moving mechanism is used to move the sensor array module sequentially to at least one detection position point under the drive of the controller. The sensor array module includes at least one horizontal detection sensor for collecting sensor detection data of the workpiece to be laser-engraved. The controller is used to implement the steps of the method according to any one of claims 1-8.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory, wherein, The processor executes the computer program to implement the steps of the method according to any one of claims 1-8.