A method, device, equipment and medium for acquiring a laser control interface

CN115951886BActive Publication Date: 2026-07-21JIANGSU YAWEI AOSI LASER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGSU YAWEI AOSI LASER TECH CO LTD
Filing Date
2022-12-09
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

The existing coding approach of laser control systems results in a large amount of repetitive code, numerous loadings of general parameters, inflexible software programming, poor code maintainability, and poor functional scalability.

Method used

By separating the laser control interface from the functions, the interface information of the single-step thread is obtained by acquiring the main program file information, program files and general parameters of the laser control system, and global variables and handles are processed to display the laser control interface, thus achieving the separation and standardization of the interface and functions.

Benefits of technology

It improves the architectural clarity of the laser control system, simplifies software development, enhances code maintainability and scalability, and improves the flexibility and portability of software development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115951886B_ABST
    Figure CN115951886B_ABST
Patent Text Reader

Abstract

The application discloses a kind of acquisition methods, device, equipment and medium of laser control interface, the acquisition method of laser control interface includes: obtaining the main program file of laser control system, the program file of laser control interface and multiple general parameters;Obtain the program file of multiple single-step threads and the interface information of display;Multiple program files of the single-step thread call multiple general parameters, obtain multiple global variables;According to the main program file, obtain multiple global handles;Through the interface information of display, call multiple global handles, display laser control interface on the display, and the program file of laser control interface calls multiple global variables, and display multiple global variables on the laser control interface.The acquisition method of laser control interface disclosed in the application improves the flexibility and expandability of the code for realizing laser control interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of laser technology, and specifically relates to a method, apparatus, device, and medium for acquiring a laser control interface. Background Technology

[0002] Laser control technology is an opto-mechatronics processing technology that integrates electromechanical numerical control, optoelectronics, and computer technologies. It has advantages such as wide application range, non-contact processing, high processing precision, low cost, and high processing efficiency. However, the coding philosophy of many laser control system architectures is to implement the functional flow and read and save general parameters in the source code file of the user interface. This leads to a large amount of repetitive code, frequent loading of general parameters, and repeated writing of similar functions in the software programming. As a result, the use of general parameters within the entire system architecture is inflexible, the code maintainability is poor, and the functional scalability is limited. Summary of the Invention

[0003] The purpose of this invention is to provide a method, apparatus, device, and medium for acquiring a laser control interface. Through the laser control interface acquisition method of this invention, the laser control interface and functional specifications are organized, resulting in a clear architecture, concise software development code, convenient maintenance, strong scalability, and strong portability of the laser control system.

[0004] To solve the above-mentioned technical problems, the present invention is achieved through the following technical solution:

[0005] The present invention provides a method for obtaining a laser control interface, characterized by comprising the following steps:

[0006] Obtain information about the main program file of the laser control system, the program file of the laser control interface, and several general parameters;

[0007] Obtain the interface information of the program files and monitor for multiple single-threaded processes;

[0008] The program files of multiple single-step threads call multiple general parameters and process the multiple general parameters to obtain multiple global variables;

[0009] Based on the information in the main program file, obtain multiple global handles and the program file handle of the laser control interface; and

[0010] Using the interface information of the display, the program file handle of the laser control interface and multiple global handles are invoked to display the laser control interface on the display. The program file of the laser control interface invokes multiple global variables to display multiple global variables on the laser control interface.

[0011] In one embodiment of the present invention, the method for obtaining the laser control interface further includes the following steps:

[0012] Obtain multiple function program files;

[0013] Obtain the communication initialization program file; and

[0014] Get the parameters and load the program file.

[0015] In one embodiment of the present invention, obtaining a plurality of global handles includes the following steps:

[0016] Obtain handles to multiple function program files;

[0017] Obtain the file handle of the communication initialization program; and

[0018] Get the parameter loader file handle.

[0019] In one embodiment of the present invention, the following steps are also included:

[0020] In the main program file, the handles of multiple function program files, the handle of the communication initialization program file, and the handle of the parameter loading program file are initialized, and the initialization values ​​of multiple global handles are obtained; and

[0021] In the main program file or the program file of the laser control interface, the program file handle of the laser control interface is initialized, and the initialization assignment of the program file handle of the laser control interface is obtained.

[0022] In one embodiment of the present invention, the method for obtaining the laser control interface further includes the following steps:

[0023] Change the parameters displayed on the laser control interface and obtain the changed global variables;

[0024] Determine whether the modified global variable conforms to the information in the main program file. If the modified global variable does not conform to the information in the main program file, display an error warning on the laser control interface.

[0025] In one embodiment of the present invention, the method for obtaining the laser control interface further includes the following steps:

[0026] If the modified global variables meet the parameter requirements in the main program file, obtain the modified general parameters; and

[0027] Multiple program files in the single-step thread call and process the modified general parameters to obtain multiple new global variables.

[0028] In one embodiment of the present invention, the method for obtaining the laser control interface further includes the following steps:

[0029] The program file of the laser control interface calls multiple new global variables and displays multiple new global variables on the laser control interface.

[0030] The present invention also provides a device for acquiring a laser control interface, the device comprising:

[0031] The file acquisition module is used to acquire information about the main program file of the laser control system, the program file of the laser control interface, and multiple general parameters.

[0032] The interface information acquisition module is used to acquire interface information of program files and displays from multiple single-step threads;

[0033] A global variable acquisition module is used to call multiple general parameters and process multiple general parameters in the program files of multiple single-step threads to acquire multiple global variables;

[0034] The handle acquisition module is used to acquire multiple global handles and the program file handle of the laser control interface based on the information in the main program file; and

[0035] The laser control interface display module is used to call the program file handle of the laser control interface and multiple global handles through the interface information of the display, and to display the laser control interface on the display. The program file of the laser control interface calls multiple global variables and displays multiple global variables on the laser control interface.

[0036] The present invention also provides an electronic device, the electronic device comprising:

[0037] At least one processor;

[0038] A storage device for storing at least one program, which, when executed by the at least one processor, causes the electronic device to implement the laser control interface acquisition method of any of the above-mentioned methods.

[0039] The present invention also provides a computer-readable storage medium, characterized in that it stores a computer program thereon, which, when executed by a computer processor, causes the computer to perform the laser control interface acquisition method described in any of the preceding claims.

[0040] As described above, the present invention provides a method, apparatus, device, and medium for acquiring a laser control interface. The laser control interface and functions are separated and standardized. The laser control interface is only used to display data, while the functional threads can be rewritten in the code file. This method makes the architecture of the laser control system clear, the programming, development, and maintenance convenient, and the implemented code concise, thereby improving the scalability, flexibility, and portability of software development.

[0041] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

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

[0043] Figure 1 This is an application environment diagram of the laser control interface acquisition method provided in this embodiment of the invention.

[0044] Figure 2 This is a flowchart of a method for obtaining a laser control interface provided in an embodiment of the present invention.

[0045] Figure 3 This is a flowchart illustrating the method for communication between the laser control interface and the laser control system provided in this embodiment of the invention.

[0046] Figure 4 This is a schematic diagram of the laser control interface acquisition device provided in the embodiments of the present invention.

[0047] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.

[0048] In the diagram: 110, Material Information Acquisition Module; 120, Laser Control System; 130, Display; 410, File Acquisition Module; 420, Interface Information Acquisition Module; 430, Global Variable Acquisition Module; 440, Handle Acquisition Module; 450, Laser Control Interface Display Module; 500, Computer System; 501, Central Processing Unit; 502, Read-Only Memory; 503, Random Access Memory; 504, Bus; 505, I / O Interface; 506, Keyboard Input Section; 507, Output Section; 508, Storage Section; 509, Communication Section; 510, Driver; 511, Removable Media. Detailed Implementation

[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0050] The illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0051] Please see Figure 1 As shown, the laser control interface acquisition method disclosed in this invention can be applied to a laser marking system for materials. First, the material information acquisition module 110 acquires relevant material information, such as the material's location information and relevant parameters from the control card process diagram. Then, it transmits this information to the laser control system 120. The laser control system 120 processes the material information and connects to a display 130 via an interface. The display 130 shows the laser control interface and the processing results of the laser control system 120 on the material information. Based on the processing results, the laser control system 120 controls the laser to perform laser marking on the material. Simultaneously, the parameters on the laser control interface of the display 130 can be modified. The laser control system 120 continuously monitors the global variables corresponding to the parameters on the laser control interface of the display 130. When a changed global variable is acquired, the laser control system 120 processes the global variable and displays the processing result on the laser control interface of the display 130. The application environment of the laser control interface acquisition method provided in this application can also be applied to other laser control systems with laser control interfaces. This application does not limit the application environment.

[0052] Please see Figure 2 As shown, in one embodiment of the present invention, a method for obtaining a laser control interface provided in this application includes the following steps:

[0053] Step S210: Obtain information about the main program file of the laser control system, the program file of the laser control interface, and multiple general parameters.

[0054] Please see Figure 1As shown, in one embodiment of the present invention, the main program file of the laser control system, as the main function file, calls other functional function files. The program file for the laser control interface, for example, represented as Dlg.cpp, mainly generates the laser control interface. Multiple general parameters are, for example, material-related parameters acquired by the material information acquisition module 110. The information of the functional function files called by the main program file includes information about the functional program file, for example, represented as *Process.cpp; information about the communication initialization program file, for example, represented as *DeviceCommon.cpp; and information about the parameter loading program file, for example, represented as *Setting.cpp. The function program file implements each single-step thread, and the implemented functions include, for example, camera alignment and laser control. The communication initialization program file serves as the runtime file for the communication system, and the parameter loading program file loads general parameters and software runtime configuration parameters. Multiple functional program files include, for example, multiple main thread program files, and the main thread program files include, for example, multiple single-step thread program files. Program files with multiple main threads can be represented as follows: AUTO_Thread main framework main thread, AUTO_IDLE main thread Step, AUTO_INITIALIZE main thread Step, AUTO_WAIT_INITIALIZE main thread Step, AUTO_WAIT_READY_WAIT_SHOTSW main thread Step, AUTO_PROCESSING_STRAT main thread Step, AUTO_PROCESSING_WAIT main thread Step, and AUTO_PROCESSING_PAUSE main thread Step.

[0055] In this embodiment, the main thread of the AUTO_Thread framework initializes the general parameters used during the execution of the single-step thread and continuously checks the status of other main threads. The main thread AUTO_IDLE Step puts the system software into a waiting state, pausing the automation process. The main thread AUTO_INITIALIZE Step starts logging the current step's start status and sets it to execute the next step. The main thread AUTO_WAIT_INITIALIZE Step logs the start of the current step, sets the device to a Reader state, allows the device to be turned on, and sets it to execute the next step. The main thread AUTO_WAIT_READY_WAIT_SHOTSW Step logs the start of the current step and turns on the device. The main thread AUTO_PROCESSING_STRAT Step logs the start of the current step, completes the loading of general parameters, and sets it to start executing the next step. The main thread AUTO_PROCESSING_WAIT Step turns off the device's internal lighting and checks a flag to determine if a single-step thread needs to be executed. The purpose of AUTO_PROCESSING_PAUSE in the main thread Step is to determine whether there was a timeout in the previous step and whether the set automatic process needs to be stopped or paused. There are two ways to stop: manual stop or alarm pause. When manually stopped, the next device execution status will be set to process end. When alarm or manual pause, the device will be set to paused state, and the next execution process will be the paused pending process.

[0056] Step S220: Obtain the program files and display interface information for multiple single-threaded processes.

[0057] Please see Figure 1As shown, in one embodiment of the present invention, the main thread includes multiple single-step threads, each implemented in a functional program file. The program file name of a single-step thread within the main thread is, for example, represented as Cst_LD_Conv_Thread_Start single-step thread, whose function is to implement the conveying of the outermost loading conveyor belt of the equipment. A single-step thread can also be represented as Cst_LD_Conv_Thread_Start single-step thread, whose function is to raise or lower the loading basket cylinder. A single-step thread can also be represented as Cst_Mv_Conv_Thread_Start single-step thread, whose function is to implement the operation of the conveyor belt. A single-step thread can also be represented as Cst_UD_Lift_Thread_Start single-step thread, whose function is to raise or lower the unloading basket cylinder. A single-step thread can also be represented as Cst_UD_Lift_Thread_Start single-step thread, whose function is to implement the conveying of the outermost unloading conveyor belt of the equipment. A single-step thread, for example represented as LdFd_Feed_Thread_Start, is the feeding nozzle thread, whose function is to remove the material from the basket.

[0058] In one embodiment of the present invention, a single-step thread, for example, is represented as LdFd_Conv_Thread_Start, whose main function is to place materials inside the equipment onto the conveyor belt. A single-step thread, for example, is represented as LdFd_Pick_Thread_Start, whose main function is to move the feeding nozzle on the worktable. A single-step thread, for example, is represented as Pk_Thread_Start, whose main function is to align the camera. A single-step thread, for example, is represented as Wt_Thread_Start, whose main function is to operate the worktable. A single-step thread, for example, is represented as UdFd_Pick_Thread_Start, whose main function is to act as the worktable's unloading gripper thread. A single-step thread, for example, is represented as UdFd_NG_Pick_Thread_Start, whose main function is to unload unqualified materials. A single-step thread, for example, is represented as UdFd_Conv_Thread_Start, whose main function is to run the unloading conveyor belt. A single-step thread, for example, is represented as UdFd_Feed_Thread_Start. Its main function is the feeding nozzle thread, which puts the material into the basket.

[0059] In one embodiment of the present invention, a single-step thread, for example denoted as Wt_Proc_Thread_Start, includes multiple single-step threads. A single-step thread, for example denoted as Wt_PROC_INITIALIZE, initializes the offset value and sets the process state to the next step. A single-step thread, for example denoted as Wt_Proc_WAIT_PROC_INITIALIZE, sets the process state to the next step. A single-step thread, for example denoted as Wt_PROC_WAIT_PROC_START, determines whether the stage preparation for marking has timed out and sets the process state to the next step. A single-step thread, for example denoted as Wt_PROC_WORK_READY, determines whether the marking conditions meet the marking requirements; if the marking conditions meet the requirements, the process state is set to the next step; otherwise, the marking conditions are re-initialized. A single-step thread, for example denoted as Wt_PROC_PROC_START, starts marking. A single-step thread, for example, denoted as Wt_PROC_PROC_START_END_WAIT, waits for the marking to finish. A single-step thread, for example, denoted as Wt_PROC_WAIT_PROC_END, upon completion of marking, transmits the marking completion status to the laser control system and switches to the next marking wait state.

[0060] In one embodiment of the present invention, the main thread and the single thread are initialized and shut down in the main program file, and the handle of the laser control interface is initialized in the main program file or in the program file of the laser control interface.

[0061] In step S230, multiple single-threaded program files call multiple general parameters and process the multiple general parameters to obtain multiple global variables.

[0062] In one embodiment of the present invention, the main program file obtains multiple general parameters and calls multiple single-threaded program files, i.e., multiple functional program files, to call and process the multiple general parameters, thereby obtaining multiple global variables. These multiple global variables can be called by multiple functional functions.

[0063] Step S240: Based on the information in the main program file, obtain multiple global handles and the program file handle of the laser control interface.

[0064] In one embodiment of the present invention, in the main program file, the function program file handles, communication initialization action program file handles, and parameter loading program file handles of each single-step thread are initialized, and the initialization assignments of multiple global handles are obtained. The program file handle of the laser control interface is also obtained, and its initialization is performed in either the main program file or the laser control interface program file, obtaining the initialization assignment of its program file handle. The initialization assignments of the multiple global handles and the laser control interface program file handle are the identifiers of the program files, and the global handles and the laser control interface program file handles are obtained based on these initialization assignments.

[0065] In step S250, the laser control interface is displayed on the display by calling the program file handle and multiple global handles of the laser control interface through the interface information of the display. The program file of the laser control interface calls multiple global variables and displays multiple global variables on the laser control interface.

[0066] Please see Figure 1 As shown, in one embodiment of the present invention, based on the interface information of the display, the program file handle and multiple global handles of the laser control interface are invoked to display the laser control interface on the display. The program file of the laser control interface loads multiple global variables, and the parameters, i.e., the corresponding global variables, are displayed on the dialog box of the laser control interface through functions such as the ParameterRefresh function in the program file of the laser control interface. The parameters on the laser control interface corresponding to these global variables include, for example, process name, backlight brightness, minimum width for damage detection, minimum height for damage detection, center point deviation, working range setting, laser movement speed, laser power, laser frequency, camera position, material position, camera calibration position, and laser origin position.

[0067] Please see Figure 3 As shown, in one embodiment of the present invention, the method for obtaining a laser control interface provided in this application further includes the following steps:

[0068] Step S310: Change the parameters displayed on the laser control interface and obtain the changed global variables.

[0069] In one embodiment of the present invention, the parameters displayed on the laser control interface correspond to the results of single-step thread processing the general parameters, i.e., global variables. The main thread and the single-step thread continuously monitor whether the global variables change. After changing the parameters displayed on the laser control interface, the corresponding global variables change, and thus the changed global variables are obtained.

[0070] Step S320: Determine whether the modified global variables match the information in the main program file.

[0071] In one embodiment of the present invention, the modified global variable may not conform to the parameter information specified in the main program file in terms of format, precision or range. In this case, it is necessary to determine whether the modified global variable conforms to the information in the main program file. If the modified global variable conforms to the information in the main program file, step S321 is executed. If the modified global variable does not conform to the information in the main program file, step S322 is executed.

[0072] Step S321: Obtain the modified general parameters.

[0073] In one embodiment of the present invention, if the modified global variable matches the information in the main program file, the main program file loads the modified global variable to obtain the modified general parameters.

[0074] Step S322: Display an error warning on the laser control interface.

[0075] In one embodiment of the present invention, if the modified global variable does not conform to the information in the main program file, a corresponding error warning is displayed on the laser control interface. For example, if the modified parameter is not within the set range, the message "This parameter is not within the set range" is displayed.

[0076] In step S330, multiple single-threaded program files call and process multiple general parameters to obtain multiple new global variables.

[0077] In step S340, the program file of the laser control interface calls multiple new global variables and displays these new global variables on the laser control interface.

[0078] Please see Figure 1 As shown, in one embodiment of the present invention, the information in the program file of the laser control interface loads multiple new global variables, and then displays multiple new global variables on the laser control interface. That is, when a parameter on the laser control interface is changed, the laser control system 120 responds to the parameter change of the laser control interface in a timely manner and displays multiple new parameters on the laser control interface 130.

[0079] Please see Figure 4As shown, in one embodiment of the present invention, a laser control interface acquisition device provided in this application includes a file acquisition module 410, an interface information acquisition module 420, a global variable acquisition module 430, a handle acquisition module 440, and a laser control interface display module 450. The file acquisition module 410 is used to acquire information about the main program file of the laser control system, the program file of the laser control interface, and multiple general parameters. The interface information acquisition module 420 is used to acquire multiple single-threaded program files and the interface information of the display. The global variable acquisition module 430 is used to acquire multiple global variables by calling and processing multiple general parameters in the program files of multiple single-threaded programs. The handle acquisition module 440 is used to acquire multiple global handles and the handle of the program file of the laser control interface based on the information of the main program file. The laser control interface display module 450 is used to display the laser control interface on the display by calling the program file handle and multiple global handles of the laser control interface through the interface information of the display, and the program file of the laser control interface calls multiple global variables to display multiple global variables on the laser control interface.

[0080] Figure 5 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 5 The computer system 500 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0081] like Figure 5 As shown, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 502 or programs loaded from storage portion 508 into Random Access Memory (RAM) 503, such as performing the methods described in the above embodiments. The RAM 503 also stores various programs and data required for system operation. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An Input / Output (I / O) interface 505 is also connected to the bus 504.

[0082] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. Removable media 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 510 as needed so that computer programs read from them can be installed into storage section 508 as needed.

[0083] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs various functions defined in the system of this application.

[0084] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and application structures according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0086] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0087] Another aspect of this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the laser control interface acquisition method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.

[0088] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the laser control interface acquisition method provided in the various embodiments described above.

[0089] In summary, the laser control interface acquisition method, apparatus, device, and medium disclosed in this invention separate and standardize the laser control interface and functions. The laser control interface is only used to display data, while the functional threads can be rewritten in the code file. This method makes the architecture of the laser control system clear, the programming development and maintenance convenient, and the implementation code concise, thereby improving the scalability, flexibility, and portability of software development.

[0090] In the description of this specification, the references to terms such as "this embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0091] The embodiments of the present invention disclosed above are merely illustrative of the invention. The embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for acquiring a laser control interface, characterized in that, Includes the following steps: Obtain information about the main program file of the laser control system, the program file of the laser control interface, and several general parameters; Obtain the interface information of the program files and monitor for multiple single-threaded processes; The program files of multiple single-step threads call multiple general parameters and process the multiple general parameters to obtain multiple global variables; Based on the information in the main program file, obtain multiple global handles and the program file handle of the laser control interface; as well as Using the interface information of the display, the program file handle of the laser control interface and multiple global handles are called to display the laser control interface on the display, and the program file of the laser control interface calls multiple global variables to display multiple global variables on the laser control interface. Change the parameters displayed on the laser control interface and obtain the changed global variables; Determine whether the modified global variable conforms to the information in the main program file. If the modified global variable does not conform to the information in the main program file, display an error warning on the laser control interface. If the modified global variable meets the parameter requirements in the main program file, obtain the modified general parameter; as well as Multiple program files of the single-step thread call and process the modified general parameters to obtain multiple new global variables; The program file of the laser control interface calls multiple new global variables and displays multiple new global variables on the laser control interface. The process of obtaining information about the main program file of the laser control system includes obtaining multiple functional program files; obtaining the communication initialization program file; and obtaining the parameter loading program file.

2. The method for obtaining a laser control interface according to claim 1, characterized in that, Obtaining multiple global handles includes the following steps: Obtain handles to multiple function program files; Obtain the file handle of the communication initialization program; and Get the parameter loader file handle.

3. The method for obtaining a laser control interface according to claim 2, characterized in that, It also includes the following steps: In the main program file, the handles of multiple function program files, the handle of the communication initialization program file, and the handle of the parameter loading program file are initialized, and the initialization values ​​of multiple global handles are obtained. as well as In the main program file or the program file of the laser control interface, the program file handle of the laser control interface is initialized, and the initialization assignment of the program file handle of the laser control interface is obtained.

4. A device for acquiring a laser control interface, characterized in that, include: The file acquisition module is used to acquire information about the main program file of the laser control system, the program file of the laser control interface, and multiple general parameters, as well as to acquire the modified general parameters if the modified global variables meet the parameter requirements in the main program file. The interface information acquisition module is used to acquire interface information of program files and displays for multiple single-step threads; The global variable acquisition module is used for multiple single-step thread program files to call multiple general parameters and process the multiple general parameters to acquire multiple global variables, and for multiple single-step thread program files to call the modified general parameters and process them to acquire multiple new global variables. The handle acquisition module is used to acquire multiple global handles and the program file handle of the laser control interface based on the information of the main program file. as well as A laser control interface display module is used to call the program file handle and multiple global handles of the laser control interface through the interface information of the display, display the laser control interface on the display, and the program file of the laser control interface calls multiple global variables to display multiple global variables on the laser control interface, and changes the parameters displayed on the laser control interface, obtains the changed global variables, determines whether the changed global variables conform to the information of the main program file, and if the changed global variables do not conform to the information of the main program file, displays an error warning on the laser control interface, and the program file of the laser control interface calls multiple new global variables to display multiple new global variables on the laser control interface. The process of obtaining information about the main program file of the laser control system includes obtaining multiple functional program files; obtaining the communication initialization program file; and obtaining the parameter loading program file.

5. An electronic device, characterized in that, The electronic device includes: At least one processor; A storage device for storing at least one program, which, when executed by the at least one processor, causes the electronic device to implement the laser control interface acquisition method of any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by the computer's processor, causes the computer to perform the laser control interface acquisition method according to any one of claims 1 to 3.