Method based on Simulink tool chain and capable of rapidly reproducing electric control of laser wire feeder
By automatically generating code in the control system of the wire feeder of the laser processing device, the poor normative and stability problems caused by traditional handwritten code are solved, and a more efficient and reliable control system development is achieved.
Patent Information
- Application Number
- CN202510164926.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-16
AI Technical Summary
The development of traditional laser industry control systems relies on handwritten control algorithm code, resulting in poor code standardization and poor readability, easy to introduce errors, affect system stability, and difficult to achieve effective integration and optimization during product version iteration.
The model-based design (MBD) development method is used to automatically generate code, and the behavior and structure of the control system are described by building software control models, reducing manual coding errors, and improving development efficiency and reliability.
It improves the development efficiency and reliability of the control system, reduces design defects, enhances the stability and reliability of the system, and simplifies the software iteration process.
Smart Images

Figure CN120010392A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial control technology, and in particular to a control method, system, equipment and medium for a wire feeder of a laser processing device. Background Art
[0002] Embedded controllers are one of the most important components of control systems and are widely used in industrial control. Control algorithms are the core of the entire control system. Traditional control algorithms are generally implemented through embedded software platforms. This development method is difficult to develop in large-scale software projects, has a long development cycle, and is prone to human coding errors.
[0003] The existing laser industry control system development still adopts the form of handwritten control algorithm code, such as manual code writing through development tools such as Keil / STM32 / Visual Studio / Source Insight / .NET / FPGA. This method has the following defects: 1. Manual code writing is not standardized and has poor readability due to personal writing habits. It contains Chinese comments and is prone to introduce errors, affecting system stability. 2. During the iterative upgrade of product versions, it is easy to cause large-scale code modifications due to changes in functional requirements, resulting in low development efficiency and difficulty in achieving effective integration and optimization with the original control algorithm. Summary of the invention
[0004] The present invention provides a control method, system, equipment and medium for a wire feeder of a laser processing device. With the help of MBD (Model Based Design) development method, codes are automatically generated instead of handwritten codes. The behavior and structure of the control system are described by a constructed software control model, which can effectively improve the development efficiency and reliability of the control system.
[0005] According to one aspect of the present invention, a control method for a wire feeder of a laser processing device is provided, the method comprising:
[0006] In response to a trigger operation event on a wire feeder of a laser processing device, determining a target control signal of the wire feeder of the laser processing device;
[0007] Determining a target control requirement of a wire feeder of the laser processing device according to the target control signal;
[0008] Determining a target functional task from a pre-built software control model according to the target control requirement;
[0009] The wire feeder of the laser processing device is controlled based on the software execution result of the target functional task.
[0010] Optionally, the software control model is constructed based on Simulink.
[0011] According to another aspect of the present invention, a control system for a wire feeder of a laser processing device is provided, the system comprising:
[0012] A target control signal determination module, for determining a target control signal of the wire feeder of the laser processing device in response to a trigger operation event of the wire feeder of the laser processing device;
[0013] A target control requirement determination module, used to determine the target control requirement of the wire feeder of the laser processing device according to the target control signal;
[0014] A target function task determination module, used to determine the target function task from a pre-built software control model according to the target control requirement;
[0015] A laser processing device wire feeder control module is used to control the laser processing device wire feeder based on the software execution result of the target functional task.
[0016] Optionally, the software control model is constructed based on Simulink.
[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0018] at least one processor; and,
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program that can be executed 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 control method of the wire feeder of the laser processing device described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the control method of the wire feeder of the laser processing device described in any embodiment of the present invention when executed by a processor.
[0022] The technical solution of the embodiment of the present invention determines the target control signal of the wire feeder of the laser processing device in response to the trigger operation event of the wire feeder of the laser processing device; determines the target control requirement of the wire feeder of the laser processing device according to the target control signal; determines the target functional task from the pre-built software control model according to the target control requirement; and controls the wire feeder of the laser processing device based on the software execution result of the target functional task. This technical solution uses the MBD development method to automatically generate code instead of handwritten code, which reduces manual coding errors and improves coding quality; by describing the behavior and structure of the control system through the constructed software control model, the control system algorithm prototype can be quickly built, effectively improving the development efficiency of the control system and the software iteration speed; the software control model can verify the correctness of the algorithm at an early stage through simulation, reduce design defects, and enhance the stability and reliability of the control system.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended 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
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a flow chart of a control method for a wire feeder of a laser processing device provided in accordance with the first embodiment of the present invention;
[0026] Figure 2 It is a schematic diagram of the physical structure of a wire feeder of a laser processing device provided in Embodiment 1 of the present invention;
[0027] Figure 3 is a schematic diagram of a functional requirement analysis process provided according to Embodiment 1 of the present invention;
[0028] Figure 4 is a schematic diagram of a software control model provided according to Embodiment 1 of the present invention;
[0029] Figure 5 is a flowchart of automatically importing data in a target data dictionary through an M script according to Embodiment 1 of the present invention;
[0030] Figure 6 is a flow chart of a control method for a wire feeder of a laser processing device provided in accordance with a second embodiment of the present invention;
[0031] Fig. 7A It is a motor duty cycle curve diagram of a handwritten code and an MBD code under a wire feeding working condition provided by the second embodiment of the present invention;
[0032] Figure 7B According to the second embodiment of the present invention, Fig. 7A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram;
[0033] Fig. 8A is a motor duty cycle curve diagram of a handwritten code and an MBD code under a retraction condition provided by Embodiment 2 of the present invention;
[0034] Figure 8B According to the second embodiment of the present invention, Fig. 8A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram;
[0035] Fig. 9A A motor duty cycle curve diagram of a handwritten code and an MBD code under a wire filling working condition provided by the second embodiment of the present invention;
[0036] Fig. 9B According to the second embodiment of the present invention, Fig. 9A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram;
[0037] Fig.10 It is a structural schematic diagram of a control system of a wire feeder of a laser processing device provided according to a third embodiment of the present invention;
[0038] Fig.11 It is a structural schematic diagram of an electronic device for implementing a control method for a wire feeder of a laser processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0040] 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 are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] Embodiment 1
[0042] Figure 1 This is a flow chart of a control method for a wire feeder of a laser processing device provided in the first embodiment of the present invention. This embodiment can be applied to the case where the MBD development method is used to automatically generate codes instead of handwritten codes. The method can be executed by the control system of the wire feeder of the laser processing device. The control system of the wire feeder of the laser processing device can be implemented in the form of hardware and / or software. The control system of the wire feeder of the laser processing device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0043] S110, in response to a triggering operation event on a wire feeder of a laser processing device, determining a target control signal of the wire feeder of the laser processing device.
[0044] The technical solution of the embodiment of the present invention is based on the MATLAB / Simulink tool chain system to carry out functional design, software model construction, digital simulation, automatic code generation, specification integration, software-in-the-loop testing, and continuous multi-task scheduling actual machine testing of the control system of the laser processing device wire feeder, and finally achieves rapid reproduction of traditional code functions, thereby accelerating the development of control strategies for the laser processing device wire feeder. Figure 2 The schematic diagram of the physical structure of a wire feeder of a laser processing device provided in the first embodiment of the present invention. Figure 2 As shown, the wire feeder of the laser processing device mainly includes an embedded processor, a storage, a motor and a peripheral circuit, etc., wherein the peripheral circuit may include a communication bus and a communication interface, etc. Furthermore, this technical solution uses Simulink / Stateflow to replace the original program design and develop new functions, and after simulation verification, automatically generates C code, transforms the interface, integrates it into the existing software, and performs regression testing to ensure the overall consistency and reliability of the software.
[0045] Among them, the operation trigger event may refer to an instruction to control the wire feeder of the laser processing device. Exemplarily, the operation trigger event may be generated by the user operating the control (such as a button or key) in the host computer (i.e., the control system) to control the wire feeder of the laser processing device. For example, the user manually clicks the "retract", "wire filling" or "manual wire feeding" button in the host computer, or it may be a pre-set function signal (which may be one or more). The target control signal can be understood as a control signal corresponding to the operation trigger event. Exemplarily, for the wire filling action, a control signal of 1 indicates that the wire filling action is executed, and a control signal of 0 indicates that the wire filling action is not executed.
[0046] S120, determining a target control requirement of a wire feeder of the laser processing device according to the target control signal.
[0047] In this embodiment, after detecting a user operation event, the target control signal of the laser processing device wire feeder corresponding to the user operation event is first obtained, and then the functional requirements of the laser processing device wire feeder are analyzed according to the target control signal to obtain the target control requirements. Among them, the target control requirements can be understood as the control function requirements of the laser processing device wire feeder, that is, which functions of the laser processing device wire feeder need to be controlled. Optionally, the target control requirements of the laser processing device wire feeder are determined according to the target control signal, including: determining the target control requirements of the laser processing device wire feeder according to a pre-set functional requirement analysis process and the target control signal; wherein the functional requirement analysis process is set based on the preset functions of the laser processing device wire feeder.
[0048] Exemplarily, the preset function may refer to all functions that can be realized by the pre-set wire feeder of the laser processing device, such as motor speed query, light flashing, serial communication, wire feeding, manual wire feeding and parameter verification (specifically parameter verification of serial communication), etc. Among them, light flashing specifically includes LED light on / off / flashing; wire feeding specifically includes wire feeding mode (such as continuous wire feeding, pulse wire feeding), retraction and wire filling; manual wire feeding specifically includes manual wire feeding and manual wire withdrawal. Figure 3 A schematic diagram of a functional requirement analysis process provided in Example 1 of the present invention. Among them, the MyTask function module is used to describe the motor speed query function, the LED_Task function module is used to describe the light flashing function, the Uart_Task function module is used to describe the serial communication function, the Modbus_CRC_Task function module is used to describe the parameter verification function, the WireFeed_Task function module is used to describe the wire feeding function, and the ManualFeed_Task function module is used to describe the manual wire feeding function.
[0049] like Figure 3As shown in the figure, in the functional requirements analysis process, first read the execution result of the last write control system flash, and judge whether the wire feeder of the laser processing device is powered on for the first time based on the execution result. If it is the first power-on, write the initialization parameters to the flash; if it is not the first power-on, directly save the flash storage result. Then create a motor speed query task through the MyTask function module, control the LED flashing through the LED_Task function module, perform serial communication and parameter verification through the Uart_Task function module and the Modbus_CRC_Task function module respectively, control wire feeding through the WireFeed_Task function module, and control manual wire feeding through the ManualFeed_Task function module.
[0050] Specifically, when performing serial communication, the signal quantity is read to determine whether the register is processed, and further determine whether the register needs to be read or written. When controlling wire feeding, first determine whether the current wire feeding mode is continuous wire feeding mode or pulse wire feeding mode according to the target control signal, so as to execute the wire feeding action in the corresponding mode when the wire feeding is enabled. If the current wire feeding mode is pulse wire feeding mode, determine whether the retraction action and wire filling action need to be executed according to the target control signal. When controlling manual wire feeding, first register the button callback function and determine whether the power is on. If it is on, control the LED to light up, and if it is not on, control the LED to go out; then determine whether manual wire feeding and manual wire retraction actions need to be executed according to the target control signal.
[0051] Through such a setting, this scheme utilizes the functional requirement analysis process and target control signals set based on the preset functions that the laser processing device wire feeder can achieve, so as to conduct a rapid and comprehensive demand analysis on the laser processing device wire feeder, thereby determining which functions need to be performed on the laser processing device wire feeder.
[0052] S130, determining a target functional task from a pre-built software control model according to target control requirements.
[0053] In this embodiment, after determining the target control requirements, the target functional tasks can be determined from the pre-built software control model according to the target control requirements. Exemplarily, the software control model can be built based on Simulink. Optionally, the functional tasks include motor speed query tasks, light flashing tasks, serial communication tasks, wire feeding tasks, manual wire feeding tasks, and parameter verification tasks, and these functional tasks correspond one-to-one to the preset functions that can be achieved by the wire feeder of the laser processing device described above. Specifically, a functional task that matches the target control requirements is selected from the various functional tasks of the pre-built software control model as the target functional task.
[0054] In this embodiment, optionally, the software control model adopts a three-layer architecture, which includes a top layer, a structure layer, and a data flow layer. The top layer is used to describe the control functions that can be achieved by the software control model, the structure layer is used to create the functional tasks of the software control model, and the data flow layer is responsible for the business logic implementation of the software control model.
[0055] Figure 4 A schematic diagram of a software control model provided in the first embodiment of the present invention. Figure 4 As shown, 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 control functions that the software control model can achieve. The external manifestation of the top layer is the entire packaged Controller, which only displays the signal input interface Input and the signal output interface Output to the outside, that is, the MBD_User_Task in the top layer is the encapsulation of each functional task in the structure layer. The structure layer is also an intermediate layer, which is composed of the same functional tasks. The structure layer can be nested at multiple levels, and multiple functional tasks can be nested inside the functional tasks. Exemplarily, the wire feeding mode, retraction and wire filling functional tasks can be nested inside MBD_WireFeed_Task, and the manual wire feeding and manual wire retraction functional tasks can be nested inside MBD_ManualFeed_Task. The data flow layer is the bottom layer, which is responsible for the specific business logic implementation through task scheduling, and is built using the basic function library in MATLAB / Simulink.
[0056] Through such a setting, this solution can quickly build a control system algorithm prototype. The software control model designed with a three-layer architecture can achieve program reusability, thereby improving software development efficiency and software version update speed, making it easier to quickly adjust software services according to changes in demand.
[0057] S140, controlling the wire feeder of the laser processing device based on the software execution result of the target functional task.
[0058] In this embodiment, after the target functional task is determined, the target functional task can be executed through task scheduling, and the wire feeder of the laser processing device can be controlled based on the software execution result of the target functional task. Optionally, the wire feeder of the laser processing device is controlled based on the software execution result of the target functional task, including: converting the software execution result into a data format to obtain hardware control information; and controlling the wire feeder of the laser processing device according to the hardware control information.
[0059] It should be noted that the laser processing device wire feeder cannot directly recognize the software execution result, so it is necessary to convert the software execution result into a data format to obtain hardware control information that the laser processing device wire feeder can recognize. Then the hardware control information is sent to the laser processing device wire feeder, and the laser processing device wire feeder can be controlled according to the hardware control information.
[0060] The technical solution of the embodiment of the present invention determines the target control signal of the wire feeder of the laser processing device in response to the trigger operation event of the wire feeder of the laser processing device; determines the target control requirement of the wire feeder of the laser processing device according to the target control signal; determines the target functional task from the pre-built software control model according to the target control requirement; and controls the wire feeder of the laser processing device based on the software execution result of the target functional task. This technical solution uses the MBD development method to automatically generate code instead of handwritten code, which reduces manual coding errors and improves coding quality; by describing the behavior and structure of the control system through the constructed software control model, the control system algorithm prototype can be quickly built, which can effectively improve the development efficiency of the control system and the software iteration speed; the software control model can verify the correctness of the algorithm at an early stage through simulation, reduce design defects, and enhance the stability and reliability of the control system.
[0061] In this embodiment, optionally, the method further includes: in the process of constructing the software control model, batch establishing and setting the interface properties of the software control model by calling the target data dictionary; wherein the target data dictionary is predetermined based on the hardware configuration of the wire feeder of the laser processing device.
[0062] It should be noted that when the structure of the software control model is complex and contains thousands of signals and parameters, the manual creation and configuration of the property dialog box is very labor-intensive, resulting in low efficiency of property configuration. Therefore, in order to improve the configuration efficiency of the interface properties of the software control model, a data dictionary management can be created in the Simulink model, an M script can be written in the MATLAB language, and the data in the target data dictionary (predetermined based on the hardware configuration of the wire feeder of the laser processing device) can be automatically imported for batch processing. When the M script is completed, all information in the target data dictionary is automatically imported into the basic workspace of MATLAB and created as a data object. Exemplarily, the target data dictionary can be represented in the form of an Excel table. Among them, the control of data through Excel tables has the advantages of flexibility and freedom, and parameter configuration can be edited without the need for a MATLAB environment, thereby improving the management and maintenance efficiency of the target data dictionary.
[0063] 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 semaphore attributes, the second data type is used to describe parameter attributes, and the third data type is used to describe bus data types.
[0064] In this embodiment, an Excel table can be used as the basis for establishing a data dictionary. Specifically, an Excel table including three groups (Sheet1, Sheet2 and Sheet3) is pre-created as a target data dictionary for distinction and management. Among them, Sheet1 is used to store the first data type (used to describe semaphore properties); Sheet2 is used to store the second data type (used to describe parameter properties); Sheet3 is used to store the third data type (used to describe bus data type). Among them, the semaphore can be understood as a variable, and the parameter can be understood as a fixed quantity. Exemplarily, the bus data type can be a floating point type, a double precision type, an array, etc.
[0065] Figure 5 A flowchart of automatically importing data in a target data dictionary through an M script is provided in the first embodiment of the present invention. Figure 5 As shown, first clear the command line window and workspace content of MATLAB, then read the signal data through the table, create a signal object, and store the signal object in the basic workspace of MATLAB. Specifically, get the semaphore data from the table Sheet1; traverse the data content to get the signal name; automatically set the signal properties; process the initial value, get the data, convert it into a string and a character vector; store the signal object in the basic workspace. Then read the parameter data through the table, create a parameter object, and store the parameter object in the basic workspace of MATLAB. Specifically, read the parameter data content in the table Sheet2; create a parameter object, get the parameter name, get the parameter data; set the parameter quantity properties, and store the parameter object in the basic workspace. Finally, get the table structure data; get the unique Bus name, use the dot symbol to access the column; and create a Bus object and store it in the basic workspace of MATLAB; pre-allocate the Bus element array. Specifically, traverse all elements of the current Bus, get the element name, get the data type, get the minimum value, get the maximum value, get the unit, parse the dimension, get the data and convert it into a numeric array, ensure conversion into a numeric array, set the dimension, add the element to the Bus element array; create a Bus object; store the Bus object in the basic workspace.
[0066] Embodiment 2
[0067] Figure 6 This is a flow chart of a 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-mentioned embodiment.
[0068] like Figure 6 As shown, the method of this embodiment specifically includes the following steps:
[0069] S210, in response to a triggering operation event on a wire feeder of a laser processing device, determining a target control signal of the wire feeder of the laser processing device.
[0070] S220, determining the target control requirements of the wire feeder of the laser processing device according to the preset functional requirement analysis process and the target control signal; wherein the functional requirement analysis process is set based on the preset functions of the wire feeder of the laser processing device.
[0071] S230, determining a target functional task from a pre-built software control model according to target control requirements.
[0072] Exemplarily, the software control model can be constructed based on Simulink. The software control model adopts a three-layer architecture, which includes a top layer, a structure layer, and a data flow layer. The top layer is used to describe the control functions that the software control model can achieve, the structure layer is used to create the functional tasks of the software control model, and the data flow layer is responsible for the business logic implementation of the software control model. Among them, the functional tasks include motor speed query tasks, light flashing tasks, serial communication tasks, wire feeding tasks, manual wire feeding tasks, and parameter verification tasks.
[0073] S240, converting the data format of the software execution result to obtain hardware control information.
[0074] S250, controlling the wire feeder of the laser processing device according to the hardware control information.
[0075] In order to verify the effectiveness of this technical solution, the following three working conditions of the wire feeder of the laser processing device are used to draw the motor duty cycle curves of the handwritten code and the MBD code, and further obtain the comparison result diagram and tolerance analysis diagram of the motor duty cycle curve, so as to compare and analyze the control effects of the handwritten code and the MBD code. Among them, the three working conditions are wire feeding working condition, retraction working condition and wire filling working condition.
[0076] Fig. 7A The motor duty cycle curve of the handwritten code and MBD code under wire feeding conditions is shown below. Figure 7B for Fig. 7A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram. Fig. 7A and Figure 7B As can be seen from the figure, the motor duty cycle curves of the handwritten code and the MBD code Figure 1 The comparison results are consistent, and the tolerance value is 0, which proves that MBD development can completely reproduce the wire feeding function of the traditional handwritten code of the wire feeder of the laser processing device.
[0077] Fig. 8A The motor duty cycle curve of the handwritten code and MBD code under the retraction condition is shown below. Figure 8B for Fig. 8A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram. Fig. 8A and Figure 8B As can be seen from the figure, the motor duty cycle curves of the handwritten code and the MBD code Figure 1 The comparison results are consistent, and the tolerance value is 0, which proves that MBD development can completely reproduce the retraction function of the traditional handwritten code of the wire feeder of the laser processing device.
[0078] Fig. 9A The following is the motor duty cycle curve of the handwritten code and MBD code under the wire filling condition. Fig. 9B for Fig. 9A The corresponding motor duty cycle curve comparison result diagram and tolerance analysis diagram. Fig. 8A and Fig. 9B As can be seen from the figure, the motor duty cycle curves of the handwritten code and the MBD code Figure 1 The comparison results are consistent, and the tolerance value is 0, which proves that MBD development can completely reproduce the wire filling function of the traditional handwritten code of the wire feeder of the laser processing device.
[0079] The technical solution of the embodiment of the present invention uses the MBD development method to automatically generate code instead of handwritten code, thereby reducing manual coding errors and improving coding quality; by constructing a software control model to describe the behavior and structure of the control system, a control system algorithm prototype can be quickly constructed, which can effectively improve the development efficiency of the control system and the software iteration speed; the software control model can verify the correctness of the algorithm at an early stage through simulation, reduce design defects, and enhance the stability and reliability of the control system.
[0080] Embodiment 3
[0081] Fig.10 This is a schematic diagram of the structure of a control system for a wire feeder of a laser processing device provided in the third embodiment of the present invention. The system can execute the control method for the wire feeder of a laser processing device provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig.10 As shown, the system includes:
[0082] A target control signal determination module 310, for determining a target control signal of the wire feeder of the laser processing device in response to a trigger operation event of the wire feeder of the laser processing device;
[0083] A target control requirement determination module 320, configured to determine a target control requirement of a wire feeder of the laser processing device according to the target control signal;
[0084] A target function task determination module 330 is used to determine the target function task from a pre-built software control model according to the target control requirement;
[0085] The laser processing device wire feeder control module 340 is used to control the laser processing device wire feeder based on the software execution result of the target functional task.
[0086] Optionally, the software control model is constructed based on Simulink.
[0087] Optionally, the target control requirement determination module 320 is specifically configured to:
[0088] The target control requirement of the wire feeder of the laser processing device is determined according to a preset functional requirement analysis process and the target control signal; wherein the functional requirement analysis process is set based on the preset function of the wire feeder of the laser processing device.
[0089] Optionally, the software control model adopts a three-layer architecture, which includes a top layer, a structural layer and a data flow layer. The top layer is used to describe the control functions that can be implemented by the software control model, the structural layer is used to create functional tasks of the software control model, and the data flow layer is responsible for the business logic implementation of the software control model.
[0090] Optionally, the system further includes: an interface attribute batch setting module, which is used to:
[0091] In the process of constructing the software control model, the interface attributes of the software control model are batch established and set by calling the target data dictionary; wherein the target data dictionary is predetermined based on the hardware configuration of the wire feeder of the laser processing device.
[0092] Optionally, the target data dictionary includes a first data type, a second data type and a third data type, wherein the first data type is used to describe semaphore attributes, the second data type is used to describe parameter attributes, and the third data type is used to describe bus data types.
[0093] Optionally, the functional tasks include a motor speed query task, a light flashing task, a serial port communication task, a wire feeding task, a manual wire feeding task and a parameter verification task.
[0094] Optionally, the laser processing device wire feeder control module 340 is specifically used for:
[0095] Converting the software execution result into a data format to obtain hardware control information;
[0096] The wire feeder of the laser processing device is controlled according to the hardware control information.
[0097] A control system for a wire feeder of a laser processing device provided in an embodiment of the present invention can execute a control method for a wire feeder of a laser processing device provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0098] Embodiment 4
[0099] Fig.11 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Fig.11 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and 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 to 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, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0101] A number of 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 disk, 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 through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 11 may be a variety of general and / or special 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 appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a control method for a wire feeder of a laser processing device.
[0103] In some embodiments, the 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 a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on 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 control method of the wire feeder of the laser processing device described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the control method of the wire feeder of the laser processing device by any other appropriate means (for example, by means of firmware).
[0104] Various implementations 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A control method for a wire feeder of a laser processing device, characterized in that: The method comprises: In response to a trigger operation event on a wire feeder of a laser processing device, determining a target control signal of the wire feeder of the laser processing device; Determining a target control requirement of a wire feeder of the laser processing device according to the target control signal; Determining a target functional task from a pre-built software control model according to the target control requirement; The wire feeder of the laser processing device is controlled based on the software execution result of the target functional task.
2. The method according to claim 1, characterized in that Determining the target control requirement of the wire feeder of the laser processing device according to the target control signal includes: The target control requirement of the wire feeder of the laser processing device is determined according to a preset functional requirement analysis process and the target control signal; wherein the functional requirement analysis process is set based on the preset function of the wire feeder of the laser processing device.
3. The method according to claim 1, characterized in that The software control model adopts a three-layer architecture, which includes a top layer, a structural layer and a data flow layer. The top layer is used to describe the control functions that can be implemented by the software control model, the structural layer is used to create the functional tasks of the software control model, and the data flow layer is responsible for the business logic implementation of the software control model.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the process of constructing the software control model, the interface attributes of the software control model are batch established and set by calling the target data dictionary; wherein the target data dictionary is predetermined 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, wherein the first data type is used to describe semaphore attributes, the second data type is used to describe parameter attributes, and the third data type is used to describe bus data types.
6. The method according to claim 3, characterized in that The functional tasks include motor speed query tasks, light flashing tasks, serial port communication tasks, wire feeding tasks, manual wire feeding tasks and parameter verification tasks.
7. The method according to claim 1, characterized in that The wire feeder of the laser processing device is controlled based on the software execution result of the target functional task, including: Converting the software execution result into a data format to obtain hardware control information; The wire feeder of the laser processing device is controlled according to the hardware control information.
8. A control system for a wire feeder of a laser processing device, characterized in that: The system comprises: A target control signal determination module, for determining a target control signal of the wire feeder of the laser processing device in response to a trigger operation event of the wire feeder of the laser processing device; A target control requirement determination module, used to determine the target control requirement of the wire feeder of the laser processing device according to the target control signal; A target function task determination module, used to determine the target function task from a pre-built software control model according to the target control requirement; A laser processing device wire feeder control module is used to control the laser processing device wire feeder based on the software execution result of the target functional task.
9. An electronic device, characterized in that: The electronic device comprises: 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 the computer program is executed by the at least one processor so that the at least one processor can execute the control method of the wire feeder of the laser processing device described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the control method of the wire feeder of the laser processing device according to any one of claims 1 to 7 when the processor executes them.