Area array laser control method, computer equipment, storage medium and program product
By receiving and processing the configuration data of the surface array laser, the channel energy output of the control plane array laser is identified according to the laser function, which solves the problem of inaccurate laser control in the traditional method, and realizes partition control and large-area precision processing.
Patent Information
- Application Number
- CN202510724279.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-07-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional surface array laser control methods cannot achieve accurate partition control and large-area processing, and laser control is not accurate.
By receiving the surface array laser configuration data at the application end, including the laser function identifier, the target surface array channel energy data is determined from the database according to the laser function identifier, and the target surface array channel energy data is sent to the associated surface array laser in response to the laser enable instruction at the application end, so as to control each channel to emit light according to the target surface array channel energy data.
It realizes partition control in different areas and large-area precision processing. Users do not need to calculate and output the specific surface array laser. They can realize one-click switching function, which improves the accuracy and efficiency of laser processing.
Smart Images

Figure CN120276342A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of laser control, and particularly to a method for controlling a matrix laser, a computer device, a storage medium, and a program product. Background Art
[0002] As a high-density light source integrated by multiple laser units, the matrix laser has shown broad application prospects in fields such as industrial processing in recent years. Its core advantage lies in the ability to achieve functions such as high-resolution scanning, fast dynamic modulation, and large-area processing through the collaborative operation of multiple beams. The traditional method for controlling a matrix laser controls the on / off of each laser channel to control the matrix laser. This method has the problem of inaccurate laser control in laser processing. Summary of the Invention
[0003] Based on this, in view of the above technical problems, it is necessary to provide a method for controlling a matrix laser, a computer device, a storage medium, and a program product, which can achieve zonal control of different regions and precise processing of large areas.
[0004] In a first aspect, this application provides a method for controlling a matrix laser, including:
[0005] Receiving matrix laser configuration data sent by an application end; the matrix laser configuration data includes a laser function identifier;
[0006] Determining corresponding target matrix channel energy data from a database according to the laser function identifier;
[0007] In response to a laser enabling instruction triggered by the application end, sending the target matrix channel energy data to an associated matrix laser to control each channel in the associated matrix laser to emit light according to the target matrix channel energy data.
[0008] In a second aspect, this application also provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of each method for controlling a matrix laser are implemented.
[0009] In a third aspect, this application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of each method for controlling a matrix laser are implemented.
[0010] In a fourth aspect, this application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of each method for controlling a matrix laser are implemented.
[0011] The above-mentioned area array laser control method, computer device, storage medium and program product receive the area array laser configuration data sent by the application end, including laser function identifiers, and can provide a unified management function for the area array laser for the application end; determine the corresponding target area array channel energy data from the database according to the laser function identifiers, and in response to the laser enabling instruction triggered by the application end, send the target area array channel energy data to the associated area array laser to control each channel in the associated area array laser to emit light according to the target area array channel energy data. A large number of and complete area array channel energy data stored in the database are used for energy control, and area control of different regions and large-area precise processing can be achieved. Description of the Drawings
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0013] Figure 1 It is an application environment diagram of the area array laser control method in an embodiment;
[0014] Figure 2 It is a flowchart of the area array laser control method in an embodiment;
[0015] Figure 3 It is a structural flowchart of the control method of the area array laser in an embodiment;
[0016] Figure 4 It is a schematic diagram of the light emission result of each channel of the area array laser in an embodiment;
[0017] Figure 5 It is an interface schematic diagram of the current value and voltage value of each channel in an embodiment;
[0018] Figure 6 It is a schematic diagram of the closed-loop feedback process in an embodiment;
[0019] Figure 7 It is a schematic diagram of the overall architecture of the area array laser system in an embodiment;
[0020] Figure 8 It is a flowchart of the device synchronous partition control in an embodiment;
[0021] Figure 9 It is a structural block diagram of the area array laser control device in an embodiment;
[0022] Figure 10Internal structure diagram of a computer device in an embodiment. Detailed implementation
[0023] In order to make the objectives, technical solutions, and advantages of this application clearer and more understandable, the following further details this application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0024] The method for controlling a surface array laser provided by the embodiment of this application can be applied to, for example, Figure 1 the application environment shown. Among them, the application terminal 102 communicates with the control terminal 104 through a network, and the control terminal 104 communicates with the device terminal 106 through a network. The application terminal 102 and the control terminal 104 can be, but are not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The device terminal 106 includes a connected repeater, a central control module, and a surface array laser. The entire device terminal 106 can be regarded as a laser system. A central control module is connected to one surface array laser or can also be connected to multiple surface array lasers. One repeater can be connected to multiple central control modules. The central control module can be built into the surface array laser or can be external to the laser controller. The control terminal 104 can uniformly access and manage multiple surface array lasers through the repeater. The number of application terminals 102 is not limited, and multiple application terminals can be used to control the same associated surface array laser.
[0025] In an exemplary embodiment, as Figure 2 shown, a method for controlling a surface array laser is provided. Taking the control terminal in Figure 1 as an example, the method includes the following steps 202 to 206. Among them:
[0026] Step 202, receiving the surface array laser configuration data sent by the application terminal; the surface array laser configuration data includes a laser function identifier.
[0027] Among them, the surface array laser configuration data includes some basic configuration data, such as a laser function identifier. The laser function identifier is used to uniquely represent the function to be completed. The laser function identifier can be a laser function name, such as ternary lithium battery processing, lithium titanate battery processing, lithium manganate battery processing, A circuit board printing, B circuit board printing, etc.; it can also be a laser function number, such as No. 1, No. 2, No. 3, etc., which is not limited to this. Each laser function identifier corresponds to surface array channel energy data.
[0028] Exemplarily, the user can call the external control interface of the area array laser he manages through the area array laser control interface on the application side. The application side calls the external control interface through the Ethernet communication protocol. After receiving the call, the external control module interface starts to establish a heartbeat mechanism, establish a connection with the control side, and send the area array laser configuration data to the control side through the encapsulated database interface. The control side receives the area array laser configuration data sent by the authorized application side. The area array laser configuration data includes a laser function identifier, and may also include laser enabling, energy adjustment data, laser protection, energy limitation, etc. Among them, laser enabling is used to control the turning on or off of the area array laser. Laser protection is used to detect whether the protection of the laser is turned on, such as whether the coolant is sufficient. Energy limitation is used to limit the maximum energy of the area array laser.
[0029] Step 204, determine the corresponding target area array channel energy data from the database according to the laser function identifier.
[0030] Among them, the type of the database is not limited, and it can be but is not limited to MySQL, SQL, etc.
[0031] An area array laser has M×N channels, such as 7×211 channels, and each channel can emit light. The area array channel energy data is used to represent and adjust the energy of each channel of the area array laser, and may include but is not limited to parameters such as wavelength, pulse width, frequency, duty cycle, energy density, etc. The target area array channel energy data is the area array channel energy data corresponding to the laser function identifier sent by the application side. The target area array channel energy data may contain the channel energy data of multiple area array lasers. The target area array channel energy data may specifically be data in a format supported by the laser.
[0032] Exemplarily, the laser function identifier and the corresponding target area array channel energy data are stored in the database. The control side determines the target area array channel energy data corresponding to the laser function identifier from the database according to the laser function identifier.
[0033] Step 206, in response to the laser enabling instruction triggered by the application side, send the target area array channel energy data to the associated area array laser to control each channel in the associated area array laser to emit light according to the target area array channel energy data.
[0034] Among them, the associated area array laser may be all area array lasers under the control side, or the area array lasers associated with the target area array channel energy data, or all area array lasers that the application side can control.
[0035] Exemplarily, in response to the laser enabling instruction triggered by the application side, the control side sends the target area array channel energy data to the associated area array laser through a repeater. After receiving it, each channel of the associated area array laser emits light according to the target area array channel energy data for laser processing of the target object.
[0036] In the above method for controlling a planar array laser, the configuration data of the planar array laser sent by the application end is received, including a laser function identifier, which can provide a unified management function for the planar array laser for the application end; according to the laser function identifier, the corresponding target planar array channel energy data is determined from the database, and in response to the laser enabling instruction triggered by the application end, the target planar array channel energy data is sent to the associated planar array laser to control each channel in the associated planar array laser to emit light according to the target planar array channel energy data. A large number of and complete planar array channel energy data stored in the database is used for energy control, which can achieve zoning control of different regions and precise processing of large areas; in addition, users can implement a one-key switching function. From the user's perspective, there is no need to calculate and control the specific planar array laser. By inputting the laser function identifier according to the specific requirements of the product, the control end can control the planar array laser for processing.
[0037] In an exemplary embodiment, as Figure 3 shown, it is a schematic structural flowchart of a method for controlling a planar array laser in an embodiment. Figure 3 It includes an application end, a control end, and a device end. The application end can intervene in different ways provided by the communication interface, including but not limited to the Modbus protocol, EtherCAT (Ethernet for Control Automation Technology), Fins / TCP (Factory Interface Network Service over TCP / IP), etc. The application end also includes an internal control module. The control end includes four software modules, an external control module, database management, laser control, and a Modbus485 module. The device end includes a repeater, a plurality of central control modules connected to the repeater, and a planar array laser connected to the central control module.
[0038] The user can call the external control interface of the laser system (device end) managed by the application end through the interface of the application end, calculate and send down the zoning control data. The standard interfaces include: laser enabling, energy adjustment, laser protection, energy limitation, etc.
[0039] 1. The application end will call the external control interface through the Ethernet communication protocol. After receiving the call, the external control module interface starts to establish a heartbeat mechanism and sends it to the database through the encapsulated database interface to match the configuration data of the planar array laser.
[0040] 2. The database management module will update the received configuration data, convert the decimal reference planar array channel energy data to hexadecimal data according to the laser function identifier, then query all the planar array lasers associated with the laser system / control end, and send the configuration to the laser control module according to the laser-recognizable data.
[0041] 3. After the laser control module receives the data, it converts the hexadecimal data into binary target plane array channel energy data through the laser control class control program, and sends the data to be executed (target plane array channel energy data) to the Modbus458 module through the execution interface.
[0042] 4. Modbus458 communicates with the Modbus interface of the relay to send the target plane array channel energy data to the central control module and the plane array laser to achieve zoning. Thus, a network configuration is sent successfully.
[0043] In this embodiment, through the above steps, the drying and laser heating control methods can be carried out according to the plane array heating zoning control method. Before laser drying and heating, retrieval can be performed through the MySQL database for one-key model change. Different recipes can be displayed simultaneously to achieve the purpose of zoning control and frequency conversion control. The built-in standard packaging interface control technology opens the interface of PLC (Programmable Logic Controller) communication for custom links, realizing external control without debugging. An external IP (Internet Protocol) configuration interface is provided for the customer from the dimension of the customer's usage scenario, and it is ensured that the IP port changes and can be configured to intervene in the system according to requirements to achieve external control by the customer. A complete configuration scheme is provided for the entire system. From the user's perspective, there is no need to perform calculation output and asynchronous control on specific devices. All laser feedback and execution are automatic, and the control end service is responsible for inputting the laser configuration data according to the industrial requirements of the product. At the same time, it can also be compatible with the differences of different product recipes, and is presented and managed through a unified platform retrieved from the database, realizing data management and calculation and subsequent invocation of zoning control.
[0044] In an exemplary embodiment, sending the target plane array channel energy data to the associated plane array lasers includes:
[0045] Determining a plurality of associated plane array lasers for the target channel energy data;
[0046] Sending the target plane array channel energy data to the repeater, so that the repeater sends the corresponding target plane array channel energy data to the plurality of associated plane array lasers in parallel.
[0047] Among them, the number of associated plane array lasers is multiple. One repeater can be connected to multiple plane array lasers.
[0048] Exemplarily, the target area array channel energy data includes the channel energy data of multiple associated area array lasers. The control terminal sends the target area array channel energy data to the repeater, so that the repeater sends the corresponding target area array channel energy data to multiple associated area array lasers in parallel.
[0049] In this embodiment, the control terminal can be associated with multiple area array lasers at the same time. By sending the target area array channel energy data to the repeater, the corresponding target area array channel energy data can be sent to each associated area array laser respectively. The control terminal sends the data once, and the repeater sends the data to the area array lasers in parallel, which can reduce data delay and improve laser processing accuracy.
[0050] In an exemplary embodiment, the area array laser configuration data includes energy adjustment data;
[0051] Determining the corresponding target area array channel energy data from the database according to the laser function identifier includes:
[0052] Obtaining the corresponding reference area array channel energy data from the database according to the laser function identifier;
[0053] Determining the corresponding target area array channel energy data according to the energy adjustment data and the reference area array channel energy data.
[0054] Among them, the energy adjustment data is used to adjust the current power of the laser. For example, if the energy adjustment data is 90%, then the reference area array channel energy data is adjusted according to 90% to obtain the target area array channel energy data. The reference area array channel energy data is the data directly stored in the database. The reference area array channel energy data can be in decimal format specifically and is displayed on the application terminal for the user to view the data conveniently.
[0055] Exemplarily, the control terminal obtains the corresponding reference area array channel energy data of the laser function identifier from the database, and calculates the corresponding target area array channel energy data according to the energy adjustment data and the reference area array channel energy data.
[0056] In this embodiment, obtaining the corresponding reference area array channel energy data from the database according to the laser function identifier, and determining the corresponding target area array channel energy data according to the energy adjustment data and the reference area array channel energy data can uniformly control the energy of all associated lasers at the application terminal and realize some customized requirements.
[0057] In an exemplary embodiment, determining the corresponding target area array channel energy data from the database according to the laser function identifier includes:
[0058] Obtaining the corresponding reference area array channel energy data from the database according to the laser function identifier;
[0059] Verify the reference area array channel energy data. After the verification passes, perform byte conversion on the reference area array channel energy data to obtain the target area array channel energy data.
[0060] Exemplarily, the control end obtains the reference area array channel energy data corresponding to the laser function identifier from the database. The reference area array channel energy data can be in decimal and can be displayed on the application end for users to view. Verify the reference area array channel energy data, such as CRC (Cyclic Redundancy Check). The data of each channel is verified. After the verification passes, convert the decimal reference area array channel energy data into binary target area array channel energy data for use by the associated area array laser.
[0061] Exemplarily, the control end first retrieves the data of 211 channels of 7 modules of the area array laser, and performs data table verification on each channel. After the verification is normal, the laser control module will perform byte conversion and pre-allocate for the channel execution. The PWM data of the enabled channels is sequentially sent separately according to the used lasers, and is sent mutually exclusive with the module of the thermometer to avoid confusing temperature data and energy data.
[0062] In this embodiment, obtain the corresponding reference area array channel energy data from the database according to the laser function identifier, verify the reference area array channel energy data, and perform byte conversion on the reference area array channel energy data after the verification passes to obtain the target area array channel energy data, which can obtain the data for the laser to use and prevent data errors.
[0063] In an exemplary embodiment, the method for controlling the area array laser further includes:
[0064] Obtain the execution data returned by the associated area array laser;
[0065] Determine the light output result of the associated area array laser according to the execution data, and send the light output result to the application end for display.
[0066] Wherein, the execution data includes a current value and may also include a channel temperature, etc.
[0067] Exemplarily, obtain the execution data returned by the associated area array laser, such as the laser state and the current value, and determine the light output result of the associated area array laser according to the execution data. The laser state is used to indicate whether the channel is operating. The area array laser generally uses a constant voltage power supply, and the current value can characterize its light output result. For example, if the current is lower than the current threshold, the light output of this channel fails; if it is higher than or equal to the current threshold, it belongs to normal light output, etc.
[0068] Such as Figure 4As shown, it is a schematic diagram of the light output results of each channel of a planar array laser in an embodiment. Figure 4 Light has not yet been output from each channel. Figure 4 It includes 3 planar array lasers. The numbers 1234567 refer to the modules of the planar array laser. Each module has 16 channels, that is, 16 rectangular frames. The light output results indicate whether light has been output or not. As Figure 5 As shown, it is a schematic diagram of the interface of the current value and voltage value of each channel in an embodiment. Figure 5 Each channel has not been turned on yet, so the voltage value and current value of each channel are both 0. When the planar array laser is turned on, the voltage value is a constant voltage, and the current value will fluctuate by 3 - 5 mV. When the current value is lower than 3 mV, it is determined that the light output of this channel fails.
[0069] In this embodiment, by obtaining the execution data returned by the associated planar array laser, determining the light output result of the associated planar array laser according to the execution data, sending the light output result to the application end for display, the function of retrieving the laser is realized, and the current state of the laser can be intuitively displayed at the application end, etc., making the control of the planar array laser more accurate.
[0070] In an exemplary embodiment, the configuration data of the planar array laser includes the configured temperature;
[0071] This method for controlling the planar array laser further includes:
[0072] Obtaining the current light output temperature of the associated planar array laser;
[0073] When the current light output temperature does not match the configured temperature, adjusting the target planar array channel energy data according to the current light output temperature to obtain the adjusted planar array channel energy data;
[0074] Sending the adjusted planar array channel energy data to the associated planar array laser to control each channel in the associated planar array laser to output light according to the adjusted planar array channel energy data.
[0075] Among them, the current light output temperature can be collected by an external temperature sensor, or it can be the temperature sensor built in the associated planar array laser, etc. The current light output temperature represents the processing temperature of the laser.
[0076] Exemplarily, a standard temperature sensor is already operating in the area array laser. For the new energy industry, if the area array laser cannot reach the required heating temperature, the traditional method is to use external hot air to heat and dry the product, and at this time, the energy cannot be concentrated in a certain area. By obtaining the current light output temperature of the associated area array laser, when the current light output temperature does not match the configured temperature, if the current light output temperature is lower than the configured temperature, the energy data of the target area array channel is increased; when the current light output temperature is higher than the configured temperature, the energy data of the target area array channel is decreased, and the adjusted area array channel energy data is obtained. The control end sends the adjusted area array channel energy data to the associated area array laser through a repeater to control each channel in the associated area array laser to output light according to the adjusted area array channel energy data.
[0077] Exemplarily, frequency conversion control can be implemented at the application end. As Figure 6 shown, it is a schematic diagram of the closed-loop feedback process in an embodiment. At this time, when externally controlling the area array laser, temperature setting is required, and it is realized by calculating the cumulative PWM laser parameters (energy data of the target area array channel) according to the configured temperature and comparing with the current temperature value. The automatic adjustment of temperature is achieved through the closed-loop feedback of the area array laser, and at the same time, the output PWM is automatically adjusted to save the temperature, and the current temperature value is fed back asynchronously.
[0078] 1. Parameter setting: The application end directly sends the parameter configuration (area array laser configuration data) to the device end according to the product requirements.
[0079] 2. Execute data for closed-loop feedback: The application end triggers the interface and calls the data feedback function of the closed-loop feedback.
[0080] 3. Control the device end to execute: The control device end realizes the closed-loop feedback function.
[0081] 4. Call the external control interface for device operation: The application end calls the external control interface, and the laser control module retrieves the data data table in MYSQL for byte integration and conversion to obtain the energy data of the target area array channel.
[0082] 5. Issue key verification: After the device completes system configuration and initialization (including key verification), it executes partition control, and the control end controls to start the thread pool to control the area array laser to execute.
[0083] 6. Execute laser system data: At the same time, Modbus controls asynchronous feedback of data to the application end. For example, when the current light output temperature does not match the configured temperature, the control end adjusts the energy data of the target area array channel according to the current light output temperature to control each channel in the associated area array laser to output light according to the adjusted area array channel energy data.
[0084] In this embodiment, when the area array laser cannot reach or exceed the configured temperature, the traditional method requires external air blowing to dry the product. However, according to the current light output temperature, the target area array channel data can be adjusted to obtain the adjusted area array channel energy data and sent to control the light output. The warming, drying, and frequency conversion temperature increase of the product can be completed with simple steps.
[0085] In an exemplary embodiment, receive the area array laser configuration data sent by the application side, including:
[0086] When receiving the user key generation request sent by the application side, call the key generation method according to the user key generation request, and generate the user key based on the public key of the application side;
[0087] Send the user key to the application side so that the application side can establish a connection according to the user key to obtain an authorized application side;
[0088] Obtain the area array laser configuration data sent by the authorized application side.
[0089] Among them, the situations of sending the user key generation request may include detecting an expired user key and needing to update the expired key, or the control side needs to issue the user key to the joined user terminal, etc. The user key generation request can customize the key usage limit period or area array laser identification information, etc.
[0090] The key generation method is not limited. For example, it can be the RSA encryption algorithm, which is currently the most influential public key encryption algorithm. It can resist the vast majority of known cryptographic attacks so far. The RSA algorithm is based on a very simple number theory fact: multiplying two large prime numbers is very easy, but factoring their product is extremely difficult. Therefore, the product can be made public as the encryption key.
[0091] Exemplarily, for the key management module of the control side, through the decryption public key provided by the soft encryption management platform of the application side, the key usage limit period or area array laser identification information can be customized. The soft encryption management platform will generate the public key and send it to the function calculation engine of the key management module of the control side. When the event of generating the key is triggered (receiving the user key generation request sent by the application side), it will automatically call the generation function corresponding to the key generation method to generate a.dll file. Then, the control side decrypts the corresponding area array laser through the ciphertext matching machine number. Then, send the user key to the application side, and the application side can establish a connection with the control side according to the user key, and the control side is connected to the area array laser. This application side is an authorized application side. This authorized application side can send the area array laser configuration data. At the same time, the key management module of the control side also provides functions such as key decryption function, key recording and protection, etc., which are sent to the function calculation engine for execution in the same way.
[0092] In this embodiment, when a user key generation request sent by the application side is received, a user key is generated based on the public key of the application side, so that the application side can establish a connection according to the user key to obtain an authorized application side, and the configuration data of the area array laser sent by the authorized application side is obtained. Through the key, multiple application sides can access simultaneously to control the area array laser, while preventing unauthorized terminals from accessing and controlling, thus improving security.
[0093] In an exemplary embodiment, the method for controlling the area array laser further includes:
[0094] Among them, the threshold of the number of times can be configured as needed. For example, it can be 1 time, 2 times, 3 times, and is not limited to this.
[0095] Exemplarily, when the transmission of the target area array channel energy data fails, the control end resends the target area array channel energy data to the associated area array laser that has failed to send. For the associated area array laser that has failed to send, the control end counts the number of times of resending the target area array channel energy data. When the number of times reaches the threshold of the number of times, an alarm message is issued for the associated area array laser whose counted number of times reaches the threshold of the number of times. The alarm message includes but is not limited to issuing an alarm on the control end, issuing an alarm on the central control module, issuing an alarm on the application side, etc. For example, when the control end fails to send the target area array channel energy data to the associated area array laser A, it resends the target area array channel energy data to the associated area array laser A and counts the number of times of resending the target area array channel energy data. When the number of times of resending reaches 3 times, it means that the previous 2 times of sending have both failed, then an alarm is triggered for the associated area array laser A.
[0096] Exemplarily, during the process of data distribution to the area array laser, there may be differences in transmission time, and in extreme cases, the transmission may also fail. Usually, a single control end is associated with more than one area array laser. The control mode of the control end uses multiple methods to ensure that the data is distributed to the program control end. 1) After the distribution to the area array laser fails or times out, retransmission is performed up to three times. 2) If all three times fail, the application side or the control end is notified to report an alarm message, and the user is required to check the connection status of the device. 3) The control end periodically collects the current laser information reported by the device system, and the laser control redistributes the control instruction (including the configuration data of the area array laser) for the status of the area array laser. When the control end successfully receives and distributes to the device end and the verification parameter is successful, the application side can obtain a successful result return, and the control end ensures the execution of the device, enhancing the user experience.
[0097] In this embodiment, when the transmission of the target area array channel energy data fails, it is resent and the number of retransmissions is counted. The retransmission mechanism can ensure that the information is sent to the area array laser. When the number of retransmissions reaches the threshold, it indicates that there may be a problem with the associated area array laser, or the associated area array laser is not online, etc. An alarm needs to be triggered for the user to check the operating status of the associated area array laser.
[0098] In an exemplary embodiment, the traditional control of the area array laser can only perform on-off control according to a certain area, and cannot perform detailed zoning control and analyze data for self-protection. The traditional laser control system needs to be manually connected and used, and can only be controlled on a single computer device, and cannot perform system control on multiple devices simultaneously. As Figure 7 shown, it is a schematic diagram of the overall architecture of the area array laser system in an embodiment. Figure 7 It includes an application end, a control end, and a device end.
[0099] The application end can intervene in various different ways provided by the communication interface, including but not limited to Modbus, EtherCAT, Fins / TCP, etc.
[0100] 2. The control end services mainly include database management, key management, laser control, and closed-loop feedback collection.
[0101] a. Database management is responsible for the configuration management of the entire system. When the system issues a wireless configuration, it is issued for a certain hardware part, and the control end will automatically synchronize the configuration to all area array lasers under the system. The system configuration includes: laser address, thermometer address, flowmeter address, power supply port, application end IP, login password configuration, etc.
[0102] b. Key management is responsible for generating keys according to rules and ensuring the uniqueness of keys within a set of devices. The keys include device ID numbers, usage dates, remaining times, etc. Different keys have their own decryption permissions, terminal connection restrictions, etc., and users can configure them through the internal.exe.
[0103] c. Laser control provides the operation and monitoring execution of the zoning control algorithm, including monitoring the execution status of the device, retrieving the database to calculate PWM data, calculating execution parameters, and parsing and reporting parameter records in the data data table. At the same time, it provides an external control level configuration interface for the application side, and users can perform external control for zoning control of heating and drying.
[0104] d. Closed-loop feedback collection records the outgoing light temperature of the device. When the temperature is too high or too low, temperature closed-loop rapid compensation is performed, and laser frequency conversion is used to achieve a constant temperature effect.
[0105] Based on the above system architecture, as Figure 8As shown in the figure, it is a schematic diagram of the process for device synchronization partition control in an embodiment. The laser system port configuration requires that all device hardware under this system have non-conflicting address configurations. However, during the use of the device, due to hardware or human factors, laser configuration conflicts may occur. At this time, it is necessary to manually configure and modify the current serial port configuration information of the device, and the control end reconnects to the laser device during operation to achieve partition light output. Therefore, Figure 8 It can also be used for the application side to change the configuration data of the area array laser. Figure 8 The steps are as follows:
[0106] 1. The application side issues an instruction (area array laser configuration data) to the control end through the Fins interface according to the process effect of the product.
[0107] 2. The communication interface uploads it to the laser control module. After being triggered, the callback function is started to retrieve database data and calculate the reference area array channel energy data required to implement the laser function identifier or to complete partition control;
[0108] 3. After calculating the required PWM data (reference area array channel energy data), it is sent to the communication module through the communication interface.
[0109] 4. The relay needs to customize the protocol, perform byte conversion after retrieving the MySQL, and calculate the target area array channel energy data required for each channel.
[0110] 5. After the data calculation is completed, the data reaches the relay, and the relay distributes it to the central control. The central control finally sends it to the device module end, and the device executes the corresponding partition laser control.
[0111] 6. The device end finally reports the execution result to the Modbus module for parsing the algorithm.
[0112] 7. After the parsing is completed, the laser control module is called to match the data value.
[0113] 8. Upload it to the communication module to integrate the result.
[0114] 9. The closed-loop acquisition detects in real time whether the execution result mutates and the partition light output is not completed.
[0115] 10. Report it to the application side to manage the application side data.
[0116] The beneficial effects of this embodiment are:
[0117] ① Provide a complete configuration plan for the entire laser system. From the user's perspective, there is no need to perform calculation output and asynchronous control on specific devices. All laser feedback and executions are automatic. The control terminal service is responsible for inputting the temperature value and laser function identifier according to the industrial requirements of the product to achieve area control of the area array laser. Provide an external IP configuration interface for the customer from the dimension of the customer's usage scenario, and ensure that the IP port can change and can be configured to access the system according to requirements to achieve external control by the customer. And it can be connected to the external control application end across different PLC manufacturers to achieve the mode of area control for heating and drying.
[0118] ② The device end realizes automatic temperature adjustment through closed-loop feedback, and at the same time automatically adjusts the output PWM to save the temperature, and uses asynchronous feedback to obtain the current temperature value.
[0119] ③ Before laser drying and heating, it can be retrieved through the MySQL database for one-key tool change, and different recipes can be displayed simultaneously to achieve the purpose of area control and frequency conversion control; it is compatible with the differences of different product recipes, and is presented and managed through a unified platform retrieved from the database to realize data management and calculation and subsequent call of area control.
[0120] ④ Built-in standard package interface control technology, open the interface of PLC communication to open custom links to achieve external control without debugging.
[0121] ⑤ The external control function can be completed through the Ethernet protocol, and problems such as exceptions and configuration loss during device use are recorded and alarmed.
[0122] In an exemplary embodiment, a control method for an area array laser includes:
[0123] Step (a1), when receiving a user key generation request sent by the application end, call the key generation method according to the user key generation request, and generate a user key based on the public key of the application end.
[0124] Step (a2), send the user key to the application end so that the application end can establish a connection according to the user key to obtain an authorized application end.
[0125] Step (a3), receive the area array laser configuration data sent by the authorized application end; the area array laser configuration data includes a laser function identifier.
[0126] Step (a4), obtain the corresponding reference area array channel energy data from the database according to the laser function identifier.
[0127] Step (a5), verify the reference area array channel energy data. After the verification passes, perform byte conversion according to the energy adjustment data and the reference area array channel energy data to determine the corresponding target area array channel energy data.
[0128] Step (a6), in response to the laser enabling instruction triggered by the application end, send the target area array channel energy data to the repeater, so that the repeater sends the corresponding target area array channel energy data to multiple associated area array lasers in parallel, to control each channel in the associated area array lasers to emit light according to the target area array channel energy data.
[0129] Step (a7), obtain the execution data returned by the associated area array lasers. The execution data includes the current light-emitting temperature.
[0130] Step (a8), determine the light-emitting result of the associated area array lasers according to the execution data, send the light-emitting result to the application end and display it.
[0131] Step (a9), when the current light-emitting temperature does not match the configured temperature, adjust the target area array channel energy data according to the current light-emitting temperature to obtain the adjusted area array channel energy data.
[0132] Step (a10), send the adjusted area array channel energy data to the associated area array lasers, to control each channel in the associated area array lasers to emit light according to the adjusted area array channel energy data.
[0133] Step (a11), when the transmission of the target area array channel energy data fails, re-send the target area array channel energy data to the associated area array lasers where the transmission fails.
[0134] Step (a12), count the number of times of re-sending the target area array channel energy data for the associated area array lasers where the transmission fails.
[0135] Step (a13), when the number of times reaches the number threshold, trigger an alarm for the associated area array lasers whose counted number of times reaches the number threshold.
[0136] In this embodiment, receive the area array laser configuration data sent by the application end, which includes the laser function identifier, and can provide the application end with the unified management function of the area array lasers; determine the corresponding target area array channel energy data from the database according to the laser function identifier, and in response to the laser enabling instruction triggered by the application end, send the target area array channel energy data to the associated area array lasers, to control each channel in the associated area array lasers to emit light according to the target area array channel energy data. A large number of and complete area array channel energy data stored in the database are used for energy control, which can realize the partition control of different regions and large-area precise processing; in addition, the user can realize the one-key replacement function. From the user's perspective, there is no need to calculate and control the specific area array lasers. By inputting the laser function identifier according to the specific requirements of the product, the control end can control the area array lasers to perform processing.
[0137] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0138] Based on the same inventive concept, an embodiment of the present application also provides a planar array laser control device for implementing the planar array laser control method described above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions recorded in the above method. Therefore, the specific limitations in one or more embodiments of the planar array laser control device provided below can refer to the limitations on the planar array laser control method in the above text, and will not be repeated here.
[0139] In an exemplary embodiment, as Figure 9 shown, a planar array laser control device is provided, including: a configuration data receiving module 902, an energy data determining module 904, and an energy data sending module 906, where:
[0140] The configuration data receiving module 902 is configured to receive the planar array laser configuration data sent by the application end; the planar array laser configuration data includes a laser function identifier;
[0141] The energy data determining module 904 is configured to determine the corresponding target planar array channel energy data from the database according to the laser function identifier;
[0142] The energy data sending module 906 is configured to, in response to the laser enabling instruction triggered by the application end, send the target planar array channel energy data to the associated planar array laser, so as to control each channel in the associated planar array laser to emit light according to the target planar array channel energy data.
[0143] In an exemplary embodiment, the energy data sending module 906 is configured to send the target planar array channel energy data to the repeater, so that the repeater parallelly sends the corresponding target planar array channel energy data to multiple associated planar array lasers respectively.
[0144] In an exemplary embodiment, the planar array laser configuration data includes energy adjustment data; the energy data determining module 904 is configured to obtain the corresponding reference planar array channel energy data from the database according to the laser function identifier;
[0145] Determine the corresponding target area array channel energy data according to the energy adjustment data and the reference area array channel energy data.
[0146] In an exemplary embodiment, the energy data determination module 904 is configured to obtain the corresponding reference area array channel energy data from the database according to the laser function identifier;
[0147] Verify the reference area array channel energy data. After the verification passes, perform byte conversion on the reference area array channel energy data to obtain the target area array channel energy data.
[0148] In an exemplary embodiment, the area array laser control device further includes a data acquisition module, and the data acquisition module is configured to acquire the execution data returned by the associated area array laser;
[0149] Determine the light output result of the associated area array laser according to the execution data, and send the light output result to the application end for display.
[0150] In an exemplary embodiment, the area array laser control device further includes a data acquisition module, and the data acquisition module is configured to acquire the current light output temperature of the associated area array laser;
[0151] When the current light output temperature does not match the configured temperature, adjust the target area array channel energy data according to the current light output temperature to obtain the adjusted area array channel energy data;
[0152] Send the adjusted area array channel energy data to the associated area array laser to control each channel in the associated area array laser to output light according to the adjusted area array channel energy data.
[0153] In an exemplary embodiment, the area array laser control device further includes a key module. The key module is configured to, when receiving a user key generation request sent by the application end, call a key generation method according to the user key generation request, and generate a user key based on the public key of the application end;
[0154] Send the user key to the application end so that the application end can establish a connection according to the user key to obtain an authorized application end;
[0155] Receive the area array laser configuration data sent by the authorized application end.
[0156] In an exemplary embodiment, the area array laser control device further includes an alarm module. The alarm module is configured to, when the transmission of the target area array channel energy data fails, re-send the target area array channel energy data to the associated area array laser whose transmission fails;
[0157] Count the number of times of re-sending the target area array channel energy data for the associated area array laser whose transmission fails;
[0158] When the number of times reaches the number threshold, an alarm is triggered for the associated area array laser whose counted number of times reaches the number threshold.
[0159] Each module in the above area array laser control device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor in the computer device in hardware form or independent of it, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0160] In an exemplary embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 10 shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be achieved through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. The computer program, when executed by the processor, implements a method for controlling an area array laser. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0161] Those skilled in the art can understand that Figure 10 the structure shown in
[0162] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout. A computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of each area array laser control method are implemented.
[0163] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method for each area array laser are implemented.
[0164] A computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the control method for each area array laser are implemented.
[0165] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0166] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0167] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in the present application.
[0168] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for controlling a planar array laser, characterized in that The method is applied to a control end and includes: Receiving area array laser configuration data sent by an application end; the area array laser configuration data includes a laser function identifier; Determining corresponding target area array channel energy data from a database according to the laser function identifier; In response to a laser enabling instruction triggered by the application end, sending the target area array channel energy data to an associated area array laser to control each channel in the associated area array laser to emit light according to the target area array channel energy data.
2. The method according to claim 1, characterized in that The sending the target area array channel energy data to the associated area array laser includes: Sending the target area array channel energy data to a repeater, so that the repeater sends the corresponding target area array channel energy data to the multiple associated area array lasers in parallel.
3. The method according to claim 1, wherein The area array laser configuration data includes energy adjustment data; The determining corresponding target area array channel energy data from a database according to the laser function identifier includes: Obtaining corresponding reference area array channel energy data from a database according to the laser function identifier; Determining corresponding target area array channel energy data according to the energy adjustment data and the reference area array channel energy data.
4. The method according to claim 1, wherein The determining corresponding target area array channel energy data from a database according to the laser function identifier includes: Obtaining corresponding reference area array channel energy data from a database according to the laser function identifier; Verifying the reference area array channel energy data, and when the verification passes, performing byte conversion on the reference area array channel energy data to obtain target area array channel energy data.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtaining execution data returned by the associated area array laser; Determining the light emission result of the associated area array laser according to the execution data, and sending and displaying the light emission result to the application end.
6. The method according to claim 1, wherein The area array laser configuration data includes a configured temperature; The method further includes: Obtaining the current light emission temperature of the associated area array laser; When the current light emission temperature does not match the configured temperature, adjusting the target area array channel energy data according to the current light emission temperature to obtain adjusted area array channel energy data; Sending the adjusted area array channel energy data to the associated area array laser to control each channel in the associated area array laser to emit light according to the adjusted area array channel energy data.
7. The method according to claim 1, characterized in that The receiving the area array laser configuration data sent by the application end includes: When receiving a user key generation request sent by the application end, calling a key generation method according to the user key generation request and generating a user key based on the public key of the application end; Sending the user key to the application end so that the application end establishes a connection according to the user key to obtain an authorized application end; Receiving the area array laser configuration data sent by the authorized application end.
8. The method according to claim 1, wherein The method further includes: When the sending of the target area array channel energy data fails, resending the target area array channel energy data to the associated area array laser where the sending fails; Counting the number of times of resending the target area array channel energy data for the associated area array laser where the sending fails; When the number of times reaches the number threshold, an alarm is triggered for the associated surface array laser whose counted number of times reaches the number threshold.
9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Real-time energy-feedback laser physiotherapy device
CN105031829A
Intelligent laser processing system and processing method thereof
CN106853554A
Process route generation method, equipment, storage medium and device
CN115511348A
Digital processing system, production system and production method
CN115587579A
Optical shutter / optical coupler integrated laser electric control system and control method thereof
CN117175336A