Multi-dimensional process method and system based on MBD clamping laser wire feeder measurement and control

Through the model-based design method, the software control model is constructed, and the simulation test of the wire feeder of the laser processing device is realized, which solves the problem that traditional wire feeder electronic control software cannot be simulated and verified, improves development efficiency and reduces the cost of real-time machine testing.

CN120276391APending Publication Date: 2025-07-08MAXPHOTONICS CORP +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510418776.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Traditional wire feeding machine electronic control software lacks simulation verification links, resulting in extended development cycle, difficulty in finding problems, and increased cost of consumables, making it impossible to estimate process effects during the development stage.

Method used

The software control model is constructed using a model-based design method, and the performance of the laser processing device wire feeder is verified through simulation tests. The actual machine test is only performed after the simulation test is passed, and the code is automatically generated and integrated using the MATLAB/Simulink tool chain.

Benefits of technology

It improves the development efficiency of software control models, reduces the risks of real-machine verification and consumables costs, and reduces the testing time of real-machine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276391A_ABST
    Figure CN120276391A_ABST
Patent Text Reader

Abstract

The invention discloses a test control method, system and equipment for a wire feeder of a laser processing device and a medium. The method comprises the following steps: in response to a trigger operation event on the wire feeder of the laser processing device, determining a target test requirement of the wire feeder of the laser processing device; determining a target test task from a pre-constructed software control model according to the target test demand; performing a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result; and if the simulation test result is that the test is passed, performing a real machine test on the wire feeder of the laser processing device based on the target test task to obtain a real machine test result. According to the scheme, the software control model is constructed by utilizing a model-based design method, the simulation test of the wire feeder of the laser processing device is realized through the software control model, and the real machine test is performed after the simulation test passes, so that the development efficiency of the software control model can be effectively improved, the real machine test risk is reduced, and the real machine test consumables and time cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial manufacturing and detection, and particularly relates to a test control method, system, device and medium for a wire feeder of a laser processing device. Background Art

[0002] Process testing is a systematic technical activity aimed at testing the rationality, stability and reliability of a production process through a series of detection, verification and evaluation means to ensure that the production process can proceed according to the predetermined quality standards and efficiency requirements. It plays an important role in many fields such as manufacturing, chemical industry, electronics, aerospace, etc.

[0003] The existing process testing of wire feeders is realized based on the wire feeder's electronic control software. However, the traditional wire feeder electronic control software has no simulation verification link and needs to be loaded on a physical machine to verify the operation effect of the electronic control software, which will lead to the inability to estimate the process effect during the development stage of the electronic control software, so there is a risk. In addition, since it is necessary to load on a physical machine to verify the operation effect of the electronic control software, it will lead to the inability to quickly find the problem point after the electronic control software has problems in the process testing, resulting in a lengthened development cycle; at the same time, there will be redundant process testing - problem finding and modification - process testing links, and additional consumables need to be paid during this process, increasing the consumable cost of the process testing. Summary of the Invention

[0004] The present invention provides a test control method, system, device and medium for a wire feeder of a laser processing device, which constructs a software control model by using a model-based design method, realizes the simulation test of the wire feeder of the laser processing device through the software control model, and conducts a physical machine test after the simulation test passes, which can effectively improve the development efficiency of the software control model, reduce the verification risk of the software control model on a physical machine, and at the same time reduce the consumable cost and time cost of the physical machine test of the wire feeder.

[0005] According to an aspect of the present invention, there is provided a test control method for a wire feeder of a laser processing device, the method comprising:

[0006] In response to a trigger operation event for the wire feeder of the laser processing device, determining the target test requirements of the wire feeder of the laser processing device; wherein, the test requirements include test content and test method;

[0007] Determining a target test task from a pre-constructed software control model according to the target test requirements; wherein, the software control model is constructed by using a model-based design method;

[0008] Conducting a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result;

[0009] If the simulation test result is a pass, a physical machine test is performed on the wire feeder of the laser processing device based on the target test task to obtain a physical machine test result.

[0010] According to another aspect of the present invention, there is provided a test control system for a wire feeder of a laser processing device, the system comprising:

[0011] A test requirement determination module, configured to determine the target test requirements of the wire feeder of the laser processing device in response to a trigger operation event for the wire feeder of the laser processing device; wherein, the test requirements include test contents and test methods;

[0012] A test task determination module, configured to determine a target test task from a pre-constructed software control model according to the target test requirements; wherein, the software control model is constructed by using a model-based design method;

[0013] A simulation test module, configured to perform a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result;

[0014] A physical machine test module, configured to, if the simulation test result is a pass, perform a physical machine test on the wire feeder of the laser processing device based on the target test task to obtain a physical machine test result.

[0015] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0016] At least one processor; and,

[0017] A memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test control method for the wire feeder of the laser processing device according to any embodiment of the present invention.

[0019] According to another aspect of the present invention, there is provided a computer-readable storage medium, the computer-readable storage medium storing computer instructions for causing a processor to execute the test control method for the wire feeder of the laser processing device according to any embodiment of the present invention when executed.

[0020] In the technical solution of the embodiment of the present invention, in response to a trigger operation event of the wire feeder of the laser processing device, the target test requirements of the wire feeder of the laser processing device are determined; wherein, the test requirements include test contents and test methods; the target test tasks are determined from a pre-constructed software control model according to the target test requirements; wherein, the software control model is constructed by using a model-based design method; the wire feeder of the laser processing device is subjected to a simulation test based on the target test tasks to obtain a simulation test result; if the simulation test result is a pass, the wire feeder of the laser processing device is subjected to an actual machine test based on the target test tasks to obtain an actual machine test result. In this technical solution, a software control model is constructed by using a model-based design method, the simulation test of the wire feeder of the laser processing device is realized through the software control model, and the actual machine test is carried out after the simulation test passes, which can effectively improve the development efficiency of the software control model, reduce the verification risk of the software control model on the actual machine, and at the same time reduce the consumables and time costs of the actual machine test of the wire feeder.

[0021] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Brief Description of the Drawings

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0023] Figure 1 is a flowchart of a test control method for a wire feeder of a laser processing device according to Embodiment 1 of the present invention;

[0024] Figure 2 is a schematic diagram of a performance test requirement analysis process according to Embodiment 1 of the present invention;

[0025] Figure 3 is a schematic diagram of a software control model according to Embodiment 1 of the present invention;

[0026] Figure 4A is a simulation result of software-in-the-loop test according to Embodiment 1 of the present invention;

[0027] Figure 4B is according to Embodiment 1 of the present invention Figure 4A is a schematic diagram of the difference between the code simulation result and the model simulation result;

[0028] Figure 5It is a schematic diagram of a physical machine test environment provided according to Embodiment 1 of the present invention;

[0029] Figure 6 It is a schematic diagram of a precision test working condition provided according to Embodiment 1 of the present invention;

[0030] Figure 7A It is a schematic diagram of the scale of a wire measuring jig corresponding to the starting moment of wire feeding provided according to Embodiment 1 of the present invention;

[0031] Figure 7B It is a schematic diagram of the scale of a wire measuring jig corresponding to the ending moment of wire feeding provided according to Embodiment 1 of the present invention;

[0032] Figure 8A It is a schematic diagram of the setting of wire breakage test parameters provided according to Embodiment 1 of the present invention;

[0033] Figure 8B It is provided according to Embodiment 1 of the present invention Figure 8B corresponding wire breakage test result graph;

[0034] Figure 9A It is a schematic diagram of the setting of welding test parameters provided according to Embodiment 1 of the present invention;

[0035] Figure 9B It is provided according to Embodiment 1 of the present invention Figure 9B corresponding welding test result graph;

[0036] Figure 10 It is a flowchart of automatically importing data into a target data dictionary through an M script provided according to Embodiment 1 of the present invention;

[0037] Figure 11 It is a flowchart of a test control method for a wire feeder of a laser processing device provided according to Embodiment 2 of the present invention;

[0038] Figure 12 It is a schematic structural diagram of a test control system for a wire feeder of a laser processing device provided according to Embodiment 3 of the present invention;

[0039] Figure 13 It is a schematic structural diagram of an electronic device for implementing a test control method for a wire feeder of a laser processing device according to an embodiment of the present invention. Specific embodiments

[0040] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0041] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0042] Embodiment 1

[0043] Figure 1 It is a flowchart of a test control method for a wire feeder of a laser processing device provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where code is automatically generated by means of MBD development mode instead of handwritten code. This method can be executed by a test control system of a wire feeder of a laser processing device. The test control system of the wire feeder of the laser processing device can be implemented in the form of hardware and / or software, and the test control system of the wire feeder of the laser processing device can be configured in an electronic device with data processing capabilities. As Figure 1 shown, the method includes:

[0044] S110, in response to a trigger operation event for the wire feeder of the laser processing device, determine the target test requirements of the wire feeder of the laser processing device.

[0045] The technical solution of the embodiment of the present invention conducts test function design, software model construction, digital simulation, automatic code generation, specification integration, multi-layer software simulation test, and continuous multi-task scheduling physical machine test on the test control system of the wire feeder of the laser processing device based on the MATLAB / Simulink tool chain system, thereby effectively improving the development efficiency of the software control model, reducing the verification risk of the software control model on the physical machine, and at the same time reducing the consumable cost and time cost of the physical machine test of the wire feeder. Further, this technical solution uses Simulink / Stateflow to replace the original program design and develop new functions. After simulation verification, C code is automatically generated, the interface is transformed, integrated into the existing software, and regression testing is performed to ensure the overall consistency and reliability of the software.

[0046] Among them, the operation trigger event can refer to an instruction for controlling the wire feeder of the laser processing device. Exemplarily, the operation trigger event can be generated by a user operating a control (such as a button or a key) in the upper computer (i.e., the test control system) to control the wire feeder of the laser processing device. For example, the user manually clicks the "precision test" or "stability test" button in the upper computer, or can also be one or more pre-set performance test signals (such as a precision test signal and / or a stability test signal). Exemplarily, the stability test can include a wire break test and a welding test. Among them, the precision test can be used to test the wire feeding accuracy of the wire feeder of the laser processing device, and the stability test can be used to test the wire feeding stability of the wire feeder of the laser processing device.

[0047] Among them, the target test requirement can be understood as the performance test requirement of the wire feeder of the laser processing device, that is, it can be used to describe which performance tests need to be performed on the wire feeder of the laser processing device. Specifically, the test requirement includes the test content and the test method. The test content can be used to characterize the performance test object (such as precision test, wire break test, or welding test), and the test method can be used to describe the specific test conditions corresponding to the test content. Exemplarily, for the precision test, the test conditions can include the wire state (such as straight or coiled), the wire material (such as ER304 stainless steel or ER5356 aluminum magnesium), the wire diameter (such as 0.8mm, 1.0mm, 1.2mm, or 1.6mm), the wire feeding time (such as 10s), and the wire feeding speed (such as 5mm / s, 10mm / s, 15mm / s, or 20mm / s).

[0048] In this embodiment, after detecting a trigger operation event of the wire feeder of the laser processing device, the target control signal corresponding to the trigger operation event is first obtained, and then the target test requirements of the wire feeder of the laser processing device are determined according to the pre-set performance test requirement analysis process and the target control signal. Exemplarily, for accuracy testing, a control signal of 1 indicates performing accuracy testing, and a control signal of 0 indicates not performing accuracy testing. Among them, the performance test requirement analysis process is set based on the preset test performances that the wire feeder of the laser processing device can achieve. Exemplarily, the preset performance tests may include accuracy testing and stability testing. Among them, the accuracy testing may specifically involve the wire state, wire material, wire diameter, wire feeding time, and wire feeding speed, and the stability testing may specifically include wire breakage testing and welding testing.

[0049] Figure 2 It is a schematic diagram of a performance test requirement analysis process provided in the first embodiment of the present invention. As Figure 2 shown, first, it is confirmed whether the wire feeder accuracy test is currently being carried out. If the accuracy test is carried out, it is then confirmed whether the current test working condition is a straight and smooth working condition. If it is a straight and smooth working condition, the wire material, wire diameter, wire feeding time, and wire feeding speed under the straight and smooth working condition are determined; if it is not a straight and smooth working condition (i.e., a coiled condition), the wire material, wire diameter, wire feeding time, and wire feeding speed under the coiled condition are determined. Then, it is judged whether the actual wire feeding length meets the reference wire feeding length standard, thereby completing the accuracy test. Among them, the reference wire feeding length standard may refer to the wire feeding length range that meets the accuracy requirements under the accuracy test working condition, which can be used to test whether the wire feeding length meets the accuracy requirements, so as to reflect whether the wire feeding speed meets the accuracy requirements. If the actual wire feeding length meets the reference wire feeding length standard, it is confirmed whether the wire breakage test is carried out, otherwise it ends directly. If the accuracy test is not carried out, it is necessary to confirm whether the wire breakage test is carried out. If the wire breakage test is carried out, it is judged whether the wire can be normally broken during the welding process. If the wire can be normally broken during the welding process, it is confirmed whether the welding test is carried out, otherwise it ends directly. If the wire breakage test is not carried out, it is confirmed whether the welding test is carried out. If the welding test is carried out, it is necessary to judge whether the wire is smooth and has no redundant solder joints during the welding process, and it ends after the judgment is completed. If the welding test is not carried out, it ends directly.

[0050] This solution quickly and comprehensively analyzes the performance test requirements of the wire feeder of the laser processing device by using the performance test requirement analysis process and the target control signal set based on the preset test performances that the wire feeder of the laser processing device can achieve, so as to determine which performance tests need to be carried out on the wire feeder of the laser processing device.

[0051] S120. Determine the target test task from the pre-constructed software control model according to the target test requirements; wherein, the software control model is constructed by using the model-based design method.

[0052] Among them, the software control model is understood as an electronic control software model capable of controlling the performance test process of the wire feeder of the laser processing device. It should be noted that the software control model is pre-constructed using the MBD (Model Based Design) method. Among them, MBD refers to a method of using graphical models to design, simulate, and verify complex engineering systems, which can automatically generate structured code through modeling and effectively avoid errors caused by manual coding. Exemplarily, the software control model can be constructed based on Simulink.

[0053] Among them, the target test task can refer to the wire feeder performance test task that matches the target test requirement. Optionally, the test tasks include an accuracy test task and a stability test task. The accuracy test task is used to test the wire feeding accuracy of the wire feeder of the laser processing device. The stability test task includes a wire breakage test task and a welding test task. Among them, the accuracy test task can be to test the accuracy of the wire feeding speed or the accuracy of the wire feeding length. It should be noted that in the accuracy test, in order to improve the test convenience, the accuracy test can be based on the wire feeding length. Whether the accuracy test passes is determined by judging whether the actual wire feeding length conforms to the reference wire feeding length standard. Exemplarily, if the current working condition is a straight and smooth condition, the wire material is ER304 stainless steel, the wire diameter is 0.8 mm, the wire feeding time is 10 s, and the wire feeding speed is 5 mm / s, then the corresponding reference wire feeding length standard is 50 - 60 mm. It can be understood that in the accuracy test working condition, if the wire feeding length corresponding to the wire feeding time and the wire feeding speed conforms to the reference wire feeding length standard, it can be determined that the accuracy test passes.

[0054] In this embodiment, after determining the target test requirement, the test task that matches the target test requirement can be found from the pre-constructed software control model according to the target test requirement as the target test task. Optionally, the software control model adopts a three-layer architecture, including a top layer, a structure layer, and a data flow layer. The top layer is used to describe the test control functions that the software control model can achieve. The structure layer is used to create the test tasks of the software control model. The data flow layer is responsible for the implementation of the business logic of the software control model.

[0055] Figure 3 This is a schematic diagram of a software control model provided in Embodiment 1 of the present invention. As Figure 3As shown in the figure, the software control model adopts a three-layer architecture of the top layer, the structure layer, and the data flow layer. The structure layer is obtained by encapsulating the data flow layer, and the top layer is obtained by encapsulating the structure layer. Specifically, the top layer can be used to describe the test control functions that the software control model can achieve. The external manifestation of the top layer is the entire encapsulated Controller, which only shows the signal input interface Input and the signal output interface Output. That is, MBD_User_Task in the top layer is the encapsulation of each test task in the structure layer. Among them, MBD_My_Task represents the motor speed query task, MBD_LED_Task represents the light flashing task, MBD_Uart_Task represents the serial communication task, MBD_Modbus_CRC_Task represents the parameter verification task, MBD_WireFeed_Task represents the wire feeding task, and MBD_ManualFeed_Task represents the manual wire feeding task. The structure layer is also the middle layer, which consists of the same test tasks. The structure layer can be nested with multiple levels, and multiple test tasks can also be nested inside the test tasks. Exemplarily, the test tasks of wire feeding mode, retraction, and wire replenishment can be nested inside MBD_WireFeed_Task, and the test tasks of manual wire feeding and manual wire retraction can be nested inside MBD_ManualFeed_Task. The data flow layer is the bottom layer, which is responsible for the implementation of specific business logics through task scheduling and is built using the basic function library in MATLAB / Simulink. Exemplarily, the functions related to the wire feeder accuracy test can include the control of wire feeding modes (such as continuous wire feeding or pulsed wire feeding) and the automatic wire feeding function, etc., and the functions related to the wire feeder stability test can include the motor speed look-up table and the upper computer interaction function, etc.

[0056] Through such settings, this solution can quickly build the algorithm prototype of the test control system. The software control model designed with a three-layer architecture can achieve program reusability, thereby improving the software development efficiency and the software version update speed, and facilitating the rapid adjustment of software services according to the changes in test requirements.

[0057] S130, perform a simulation test on the wire feeder of the laser processing device based on the target test task to obtain the simulation test result.

[0058] In this embodiment, after determining the target test task, the wire feeder of the laser processing device can be subjected to simulation testing based on the target test task to obtain corresponding simulation test results, thereby verifying the correctness of the software control model, quickly finding problems existing in the software control model through the simulation test link, and reducing software control model problems in subsequent actual machine testing. In this embodiment, one or more simulation test methods can be adopted according to actual test requirements to perform simulation testing on the wire feeder of the laser processing device. Exemplarily, the simulation test method can be at least one of model-in-the-loop testing, software-in-the-loop testing, and hardware-in-the-loop testing. The simulation test result can specifically include passing the test or failing the test.

[0059] Among them, model-in-the-loop testing can refer to a method of testing a single or integrated module in an MBD development environment, which has the following advantages: 1. Digital simulation results: Digital results of the software can be viewed in advance using the Scope module on Simulink in the early stage of software development; 2. Early problem detection: By comparing the digital results viewed on Simulink with the process test standards, test conditions with problems can be found and solved, so as to detect and solve problem points in the early stage of software development; 3. Improve software quality: The functions of the software control model can be comprehensively verified using test cases corresponding to the target test task, thereby ensuring the quality of the software control model.

[0060] Among them, software-in-the-loop testing can refer to a test method for verifying the effectiveness of the test control system in a software environment, which has the following advantages: 1. Verify the consistency between the code and the model design: Verify the consistency between the code generated by the model and the model function through the Simulink platform, so as to determine that the code burned on the actual machine of the wire feeder of the laser processing device is consistent with the software design; 2. Code problem finding: Digitalize the running results of the MBD code through the Simulink platform and compare them with the process test standards, so as to verify whether the MBD code meets the requirements of the software control model. It should be noted that the MBD code can automatically generate code that conforms to the industrial standard MISRAC format, which can eliminate problems such as handwritten errors and inconsistent code styles in the traditional development method, thereby improving the readability and maintainability of the code. Figure 4A The figure shows a simulation result of software-in-the-loop testing provided in Embodiment 1 of the present invention. Among them, the blue line in the upper figure is the code simulation result, and the yellow line in the lower figure is the model simulation result. Figure 4A Taking the difference between the code simulation result and the model simulation result in Figure 4B to obtain the result in Figure 4B It can be seen from

[0061] Among them, in the hardware-in-the-loop test, the actual hardware (such as ECU, sensors, actuators, etc.) and analog devices (such as models, simulators, etc.) are connected through interfaces to simulate the actual operating environment, so as to test and evaluate the real-time running test control system. Specifically, the MBD code project can be obtained by integrating the MBD code generated based on the software control model. The MBD code project is compiled and burned into the control board of the wire feeder of the laser processing device. According to the MBD code project, the hardware-in-the-loop test of the wire feeder of the laser processing device is realized, so as to troubleshoot the MBD code faults and optimize and upgrade the MBD code according to the hardware-in-the-loop test results. Since the wire feeder simulation test is carried out on the PCBA control board, the hardware-in-the-loop test results are closer to the actual machine process test results, and the problems that may occur in the actual machine process test can be found and solved through the simulation test.

[0062] S140, if the simulation test result is a pass, then based on the target test task, the wire feeder of the laser processing device is subjected to an actual machine test to obtain an actual machine test result.

[0063] In this embodiment, when it is determined that the simulation test result is a pass, the wire feeder of the laser processing device can be subjected to an actual machine test based on the target test task to obtain the corresponding actual machine test result. Among them, the actual machine test result includes a pass or a fail. Further, if the actual machine test result is a fail, the actual machine test failure information can be generated according to the problems occurring in the actual machine test process, so as to find and solve the corresponding problems according to the actual machine test failure information. Exemplarily, the actual test failure information may include the nodes, time, and reasons for the actual machine test failure, etc.

[0064] Figure 5 It is a schematic diagram of an actual machine test environment provided in Embodiment 1 of the present invention. Among them, the laser processing device is a laser, and nitrogen is used as the protective gas medium for laser welding, and the air pressure requirement is less than 0.5 MPa. Specifically, the precision test includes two working conditions, namely the straight and smooth working condition (see Figure 6 the left figure) and the coiling working condition (see Figure 6(right figure). Among them, in the coil working condition, it is necessary to coil a 4m wire feeding tube around a circle with a circumference of 1m, and the coiling position is between 2 - 3m from the wire feeder end. In the accuracy test, for each working condition, wires of different materials (such as ER304 stainless steel and ER5356 aluminum-magnesium welding wire) and different diameters (such as 0.8mm, 1.0mm, 1.2mm, and 1.6mm) are used on the laser wire feeder at different wire feeding speeds (such as 5mm / s, 10mm / s, 15mm / s, and 20mm / s) for continuous wire feeding within the wire feeding time (such as 10s), and after the wire feeding is completed, a wire measurement fixture is used to measure the wire feeding length. Among them, the wire measurement fixture has an internal groove, and during the accuracy test, the wire passes through the groove. The wire measurement fixture has the advantages of preventing the wire from bending, and at the same time visually observing the wire feeding length, improving the test accuracy and efficiency. Specifically, when using the wire measurement fixture to measure the wire feeding length, the scale of the wire measurement fixture corresponding to the start time of wire feeding (see Figure 7A ) and the scale of the wire measurement fixture corresponding to the end time of wire feeding (see Figure 7B ) can be determined respectively, and the wire feeding length is determined based on the difference between the scales of the wire measurement fixture corresponding to the end time and the start time of wire feeding. After obtaining the wire feeding length, the measured wire feeding length can be compared with the reference wire feeding length standard to determine the accuracy test result. If the measured wire feeding length meets the reference wire feeding length standard, it can be determined that the accuracy test passes, otherwise it can be determined that the accuracy test fails. Further, to avoid random errors introduced by a single test, the number of tests can also be set, and the average value of the multiple test results is used as the actual wire feeding length to be compared with the reference wire feeding length standard. It should be noted that the environmental settings of the two accuracy test working conditions, on the one hand, are closer to the actual application scenario, and on the other hand, errors such as wire blockage can be excluded, thereby improving the accuracy of the accuracy test. Exemplarily, Table 1 below shows the actual machine accuracy test results under a straight condition:

[0065] Table 1 Actual machine accuracy test results under a straight condition

[0066]

[0067] As can be seen from Table 1, the average wire feeding lengths under different accuracy test working conditions all meet the corresponding reference wire feeding length standards, so it can be determined that the accuracy test passes.

[0068] For the broken wire test, welding can be performed by setting parameters such as laser scanning amplitude, laser power, scanning frequency, wire feeding speed, etc., and then observing the weld color and width to judge the stability of the wire feeder and the suitability of the process test parameter settings. If the wire feeding speed of the wire feeder is unstable, there will be a problem of inconsistent width between the head and the tail of the weld; if the process test parameter settings are not suitable, the weld will appear blackened. In addition, the broken wire test can also test whether the laser can break the wire normally. If the parameter settings are inappropriate or the wire feeding is unstable, the weld cannot be broken normally, and wire drawing will occur at the end of the weld. Exemplarily, the broken wire test parameter settings can be referred to Figure 8A , and the Figure 8A corresponding broken wire test results can be referred to Figure 8B .

[0069] For the welding test, the parameter settings of the laser scanning amplitude, laser power, and scanning frequency that are the same as those in the broken wire test can be maintained, and welding can be performed by setting different wire feeding speeds (such as 10 mm / s and 20 mm / s), and then observing the weld color and width of the two to judge the wire feeding stability of the wire feeder at different wire feeding speeds. Exemplarily, the welding test parameter settings can be referred to Figure 9A , and the Figure 9A corresponding welding test results can be referred to Figure 9B .

[0070] In the technical solution of the embodiment of the present invention, in response to a trigger operation event for the wire feeder of the laser processing device, a target test requirement for the wire feeder of the laser processing device is determined; wherein, the test requirement includes a test content and a test method; a target test task is determined from a pre-constructed software control model according to the target test requirement; wherein, the software control model is constructed by using a model-based design method; a simulation test is performed on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result; if the simulation test result is a pass, a physical machine test is performed on the wire feeder of the laser processing device based on the target test task to obtain a physical machine test result. In this technical solution, a software control model is constructed by using a model-based design method, the simulation test of the wire feeder of the laser processing device is realized through the software control model, and a physical machine test is performed after the simulation test passes, which can effectively improve the development efficiency of the software control model, reduce the verification risk of the software control model on the physical machine, and at the same time reduce the consumable cost and time cost of the physical machine test of the wire feeder.

[0071] In this embodiment, optionally, the method further includes: during the process of constructing the software control model, batch establishment and setting of the interface attributes of the software control model are performed by calling a target data dictionary; wherein, the target data dictionary is pre-determined based on the hardware configuration of the wire feeder of the laser processing device.

[0072] It should be noted that when the software control model structure is complex and contains thousands of signals and parameters, the workload of manually creating and configuring the property dialog box is very large, resulting in low property configuration efficiency. Therefore, in order to improve the configuration efficiency of the interface properties of the software control model, data dictionary management can be created in the Simulink model, an M script can be written through the MATLAB language, and the data in the target data dictionary can be automatically imported for batch processing. Among them, the target data dictionary can refer to a data dictionary pre-created based on the hardware configuration of the wire feeder of the laser processing device to meet the actual requirements. When the M script runs to completion, all the information in the target data dictionary is automatically imported into the MATLAB base workspace and created as data objects. Exemplarily, the target data dictionary can be characterized in the form of an Excel table. Among them, managing data through an Excel table has the advantages of flexibility and freedom, and parameters can be configured without the need to be in the MATLAB environment, thereby improving the management and maintenance efficiency of the target data dictionary.

[0073] In this embodiment, optionally, the target data dictionary includes a first data type, a second data type, and a third data type. The first data type is used to describe signal quantity attributes, the second data type is used to describe parameter quantity attributes, and the third data type is used to describe bus data types.

[0074] In this embodiment, an Excel table can be used as the basis for establishing the data dictionary. Specifically, an Excel table including three groups (Sheet1, Sheet2, and Sheet3) is pre-created as the target data dictionary for distinction and management. Among them, Sheet1 is used to store the first data type (used to describe signal quantity attributes); Sheet2 is used to store the second data type (used to describe parameter quantity attributes); Sheet3 is used to store the third data type (used to describe bus data types). Among them, the signal quantity can be understood as a variable quantity, and the parameter quantity can be understood as a fixed quantity. Exemplarily, the bus data type can be floating-point type, double-precision type, array, etc.

[0075] Figure 10 It is a flowchart of automatically importing data in the target data dictionary through an M script provided in Embodiment 1 of the present invention. As Figure 10As shown, first, clear the content of the MATLAB command window and workspace. Then, read signal data through a table, create signal objects, and store the signal objects in the MATLAB base workspace. Specifically, obtain signal quantity data from Sheet1 of the table; traverse the data content to obtain signal names; automatically set signal attributes; process the initial values, obtain the data, and convert it into strings and character vectors; store the signal objects in the base workspace. Furthermore, read parameter data through a table, create parameter objects, and store the parameter objects in the MATLAB base workspace. Specifically, read the parameter data content in Sheet2 of the table; create parameter objects, obtain parameter names, and obtain parameter data; set the attributes of the parameter quantity and store the parameter objects in the base workspace. Finally, obtain the table structure data; obtain the unique Bus (bus) name, access columns using dot notation; and create a Bus object and store it in the MATLAB base workspace; pre-allocate the Bus element array. Specifically, traverse all elements of the current Bus, obtain element names, obtain data types, obtain minimum values, obtain maximum values, obtain units, parse dimensions, obtain the data and convert it into a numerical array, ensure it is converted into a numerical array, set the dimensions, and add the elements to the Bus element array; create a Bus object; store the Bus object in the base workspace.

[0076] In this embodiment, optionally, the method further includes: if the simulation test result is that the test fails, feedback the simulation test failure information of the wire feeder of the laser processing device, so as to adjust and update the software control model based on the simulation test failure information.

[0077] Exemplarily, the simulation test failure information may include the nodes, time, and reasons for the simulation test failure, etc. In this embodiment, if it is determined that the simulation test result is that the test fails, the simulation test failure information can be generated according to the problems that occur during the simulation test, so as to adjust and update the software control model based on the simulation test failure information, thereby improving the accuracy of the software control model.

[0078] Embodiment 2

[0079] Figure 11 It is a flowchart of a test control method for a wire feeder of a laser processing device provided in Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment.

[0080] As Figure 11 shown, the method of this embodiment specifically includes the following steps:

[0081] S210, in response to a trigger operation event for the wire feeder of the laser processing device, determine the target test requirements of the wire feeder of the laser processing device.

[0082] Among them, the test requirements include test content and test method.

[0083] S220, determine a target test task from a pre - constructed software control model according to the target test requirements; wherein, the software control model is constructed by using a model - based design method.

[0084] Exemplarily, the test tasks include a precision test task and a stability test task. The precision test task is used to test the wire feeding accuracy of the wire feeder of the laser processing device. The stability test task includes a wire breakage test task and a welding test task.

[0085] S230, perform a model - in - the - loop test on the wire feeder of the laser processing device according to the target test task to obtain a first simulation test result.

[0086] Among them, the first simulation test result is either the test passes or the test fails.

[0087] S240, if the first simulation test result is that the test passes, then perform a software - in - the - loop test on the wire feeder of the laser processing device according to the target test task to obtain a second simulation test result.

[0088] Among them, the second simulation test result is either the test passes or the test fails. In this embodiment, only when the first simulation test result is that the test passes, will a software - in - the - loop test be performed on the wire feeder of the laser processing device according to the target test task to obtain a second simulation test result. If the first simulation test result is that the test fails, then there is no need to perform subsequent simulation tests, and a first simulation test failure message can be generated based on the problems occurring during the model - in - the - loop test to adjust and update the software control model based on the first simulation test failure message.

[0089] S250, if the second simulation test result is that the test passes, then perform a hardware - in - the - loop test on the wire feeder of the laser processing device according to the target test task to obtain a third simulation test result.

[0090] Among them, the third simulation test result is either the test passes or the test fails. In this embodiment, only when the second simulation test result is that the test passes, will a hardware - in - the - loop test be performed on the wire feeder of the laser processing device according to the target test task to obtain a third simulation test result. If the second simulation test result is that the test fails, then there is no need to perform subsequent simulation tests, and a second simulation test failure message can be generated based on the problems occurring during the software - in - the - loop test to adjust and update the software control model based on the second simulation test failure message.

[0091] S260, determine the simulation test result of the wire feeder of the laser processing device according to the third simulation test result.

[0092] Specifically, if the third simulation test result is passed, it can be determined that the simulation test result of the wire feeder of the laser processing device is passed; if the third simulation test result is not passed, it can be determined that the simulation test result of the wire feeder of the laser processing device is not passed. That is to say, the simulation test result of the wire feeder of the laser processing device is consistent with the third simulation test result. It can be understood that based on the logical relationship of S230-S260, only when the model-in-the-loop test, software-in-the-loop test, and hardware-in-the-loop test all pass, that is, the first simulation test result, the second simulation test result, and the third simulation test result are all passed, can it be determined that the simulation test result of the wire feeder of the laser processing device is passed; otherwise, it will be determined that the simulation test result of the wire feeder of the laser processing device is not passed.

[0093] Further, if the third simulation test result is not passed, the third simulation test failure information can be generated according to the problems that occur during the hardware-in-the-loop test, so as to adjust and update the software control model based on the third simulation test failure information.

[0094] S270, if the simulation test result is passed, the wire feeder of the laser processing device is subjected to an actual machine test based on the target test task to obtain an actual machine test result.

[0095] The technical solution of the embodiment of the present invention uses a model-based design method to construct a software control model, and realizes multi-layer simulation tests on the wire feeder of the laser processing device through the software control model, specifically including model-in-the-loop test, software-in-the-loop test, and hardware-in-the-loop test, and performs an actual machine test after the simulation test passes, which improves the development efficiency, accuracy, and reliability of the software control model, reduces the verification risk of the software control model on the actual machine, and at the same time reduces the consumable cost and time cost of the actual machine test.

[0096] Embodiment III

[0097] Figure 12 FIG. 16 is a schematic structural diagram of a test control system for a wire feeder of a laser processing device provided in Embodiment III of the present invention. This system can execute the test control method for the wire feeder of the laser processing device provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. As Figure 12 shown, the test control system includes:

[0098] A test requirement determination module 310, configured to determine a target test requirement of the wire feeder of the laser processing device in response to a trigger operation event for the wire feeder of the laser processing device; wherein, the test requirement includes a test content and a test method;

[0099] A test task determination module 320, configured to determine a target test task from a pre-built software control model according to the target test requirements; wherein, the software control model is built by using a model-based design method;

[0100] A simulation test module 330, configured to perform a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result;

[0101] An actual machine test module 340, configured to, if the simulation test result is a pass, perform an actual machine test on the wire feeder of the laser processing device based on the target test task to obtain an actual machine test result.

[0102] Optionally, the software control model adopts a three-layer architecture, and the three-layer architecture includes a top layer, a structure layer, and a data flow layer. The top layer is used to describe the test control functions that the software control model can implement. The structure layer is used to create the test tasks of the software control model. The data flow layer is responsible for implementing the business logic of the software control model.

[0103] Optionally, the test tasks include a precision test task and a stability test task. The precision test task is used to test the wire feeding accuracy of the wire feeder of the laser processing device. The stability test tasks include a wire breakage test task and a welding test task.

[0104] Optionally, the test control system further includes: an interface attribute batch setting module, configured to:

[0105] During the process of building the software control model, batch establish and set the interface attributes of the software control model by calling a target data dictionary; wherein, the target data dictionary is pre-determined based on the hardware configuration of the wire feeder of the laser processing device.

[0106] Optionally, the target data dictionary includes a first data type, a second data type, and a third data type. The first data type is used to describe semaphore attributes. The second data type is used to describe parameter quantity attributes. The third data type is used to describe bus data types.

[0107] Optionally, the simulation test module 330 is configured to:

[0108] Perform a model-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a first simulation test result;

[0109] If the first simulation test result is a pass, perform a software-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a second simulation test result;

[0110] If the second simulation test result is a pass, perform a hardware-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a third simulation test result;

[0111] Determine the simulation test result of the wire feeder of the laser processing device according to the third simulation test result.

[0112] Optionally, the test control system further includes: a software control model update module, configured to:

[0113] If the simulation test result is a fail, feedback the simulation test failure information of the wire feeder of the laser processing device, so as to adjust and update the software control model based on the simulation test failure information.

[0114] The test control system for a wire feeder of a laser processing device provided by an embodiment of the present invention can execute the test control method for a wire feeder of a laser processing device provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

[0115] Embodiment 4

[0116] Figure 13 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processing, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0117] As Figure 13 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0118] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0119] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the test control method of the wire feeder of the laser processing device.

[0120] In some embodiments, the test control method of the wire feeder of the laser processing device can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the test control method of the wire feeder of the laser processing device described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the test control method of the wire feeder of the laser processing device by any other suitable means (e.g., by means of firmware).

[0121] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special or general programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0122] A computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer programs are executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer programs can be executed entirely on the machine, partially on the machine, executed partially on the machine and partially on a remote machine as an independent software package, or executed entirely on a remote machine or server.

[0123] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0125] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0126] The computing system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0127] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and this is not limited herein.

[0128] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A test control method for a wire feeder of a laser processing device, characterized in that The method includes: In response to a triggering operation event of the wire feeder of the laser processing device, determining the target test requirements of the wire feeder of the laser processing device; wherein, the test requirements include test content and test method; Determining a target test task from a pre-constructed software control model according to the target test requirements; wherein, the software control model is constructed by using a model-based design method; Performing a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result; If the simulation test result is a pass, performing an actual machine test on the wire feeder of the laser processing device based on the target test task to obtain an actual machine test result.

2. The method according to claim 1, wherein The software control model adopts a three-layer architecture, and the three-layer architecture includes a top layer, a structure layer, and a data flow layer. The top layer is used to describe the test control functions that the software control model can achieve. The structure layer is used to create the test tasks of the software control model. The data flow layer is responsible for the implementation of the business logic of the software control model.

3. The method according to claim 1 or 2, characterized in that, The test tasks include an accuracy test task and a stability test task. The accuracy test task is used to test the wire feeding accuracy of the wire feeder of the laser processing device. The stability test task includes a wire breakage test task and a welding test task.

4. The method according to claim 3, wherein The method further includes: During the process of constructing the software control model, batch establishing and setting the interface attributes of the software control model by calling a target data dictionary; wherein, the target data dictionary is pre-determined based on the hardware configuration of the wire feeder of the laser processing device.

5. The method according to claim 4, characterized in that The target data dictionary includes a first data type, a second data type, and a third data type. The first data type is used to describe the semaphore attributes. The second data type is used to describe the parameter quantity attributes. The third data type is used to describe the bus data type.

6. The method according to claim 1, characterized in that Performing a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result, including: Performing a model-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a first simulation test result; If the first simulation test result is a pass, performing a software-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a second simulation test result; If the second simulation test result is a pass, performing a hardware-in-the-loop test on the wire feeder of the laser processing device according to the target test task to obtain a third simulation test result; Determining the simulation test result of the wire feeder of the laser processing device according to the third simulation test result.

7. The method according to claim 1 or 6, characterized in that, The method further includes: If the simulation test result is a fail, feeding back the simulation test failure information of the wire feeder of the laser processing device to adjust and update the software control model based on the simulation test failure information.

8. A test control system for a wire feeder of a laser processing device, characterized in that, The system includes: A test requirement determination module, configured to determine the target test requirements of the wire feeder of the laser processing device in response to a triggering operation event of the wire feeder of the laser processing device; wherein, the test requirements include test content and test method; A test task determination module, configured to determine a target test task from a pre-constructed software control model according to the target test requirement; wherein, the software control model is constructed by using a model-based design method; A simulation test module, configured to perform a simulation test on the wire feeder of the laser processing device based on the target test task to obtain a simulation test result; An actual machine test module, configured to, if the simulation test result is a pass, perform an actual machine test on the wire feeder of the laser processing device based on the target test task to obtain an actual machine test result.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the test control method of the wire feeder of the laser processing device according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the test control method of the wire feeder of the laser processing device according to any one of claims 1-7 is implemented.