Laser engraving method, laser device and computer readable storage medium

By monitoring the position signal fed back by the optical or magnetic ruler in real time, closed-loop control of the laser head is achieved, which solves the problem of engraving misalignment caused by mechanical lag in laser engraving and improves the accuracy and quality of engraving.

CN117182326BActive Publication Date: 2025-12-26SHENZHEN RUIDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311256190.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-12-26
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

In existing laser engraving technology, mechanical lag causes a mismatch between the laser head position and the control signal, resulting in engraving misalignment.

Method used

By monitoring the position signal fed back by the optical or magnetic ruler in real time, the position information of the laser head in the engraving coordinate system is determined, and the laser head is controlled to engrave when the laser energy is not empty, thus realizing closed-loop control of the laser head.

Benefits of technology

It improves the accuracy and quality of laser engraving, avoids light output lag caused by mechanical lag, and ensures the accuracy of laser landing point.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117182326B_ABST
    Figure CN117182326B_ABST
Patent Text Reader

Abstract

The application discloses a laser engraving method, a laser device and a computer readable storage medium, wherein the method comprises the following steps: determining a motion track of the laser device according to received laser engraving data, and moving a laser head based on the motion track; acquiring a position signal fed back by a grating ruler or a magnetic grating ruler when the laser head moves, and determining position information of the laser head in an engraving coordinate system according to the position feedback signal; when laser energy corresponding to the position information is not empty, controlling the laser head to engrave a material to be engraved based on the laser energy. The application can avoid light emission lag caused by mechanical hysteresis of a laser processing device by monitoring a laser emission position of the laser head in real time, and can improve the quality of the engraving processing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of laser engraving, in particular to a laser engraving method, a laser device and a computer readable storage medium. BACKGROUND

[0002] In the existing laser engraving processing control, a control mode of directly outputting laser control signals and motion control signals is usually adopted, and the control system controls the laser light emission according to the design drawing while outputting the motion control signals to control the laser emission position.

[0003] However, when the motor and the module and other motion execution mechanisms control the laser head to move, there is a lag state relative to the motion signal given by the control system, for example, when the control system responds to the motion signal, it needs to control the operation of each transmission member, and the rotation time between hardware is much longer than the propagation time of the electrical signal. In the case of high load and high speed of the device, the actual position of the laser head lags behind the motion control command, and the laser light emission processing position does not correspond to the actual processing position, resulting in the problem of engraving misplacement during laser engraving.

[0004] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY

[0005] The main purpose of the present application is to provide a laser engraving method, a laser device and a computer readable storage medium, which solves the problem that the laser light emission processing position does not correspond to the actual processing position in the prior art, resulting in the problem of engraving misplacement during laser engraving.

[0006] To achieve the above purpose, the present application provides a laser engraving method, which comprises the following steps:

[0007] According to the received laser engraving data, the motion trajectory of the laser device is determined, and the laser head is moved based on the motion trajectory;

[0008] The position signal fed back by the grating ruler or the magnetic grating ruler when the laser head moves is obtained, and the position information of the laser head in the engraving coordinate system is determined according to the position feedback signal;

[0009] When the laser energy corresponding to the position information is not empty, the laser head is controlled to engrave the material to be engraved based on the laser energy.

[0010] Optionally, before the step of controlling the laser head to engrave based on the laser energy when the laser energy corresponding to the position information is not empty, the method further comprises:

[0011] determine, according to the laser engraving data, an engraving position of the material to be engraved in the engraving coordinate system and energy information corresponding to the engraving position;

[0012] when it is detected that the position information is at the engraving position, the energy information is used as the laser energy.

[0013] Optionally, the step of determining, according to the laser engraving data, the engraving position of the material to be engraved in the engraving coordinate system and the energy information corresponding to the engraving position comprises:

[0014] determining, according to the laser engraving data, an engraving region of the material to be engraved, coordinate information in the engraving coordinate system, and using the coordinate information as the engraving position;

[0015] obtaining an engraving type corresponding to the engraving position, and determining the energy information based on the engraving type.

[0016] Optionally, the step of determining the energy information based on the engraving type comprises:

[0017] when the engraving type is slope engraving, determining the energy information according to a slope value of the engraving position;

[0018] when the engraving type is gray-scale engraving, determining, based on an image analysis module, filling values of all pixel points of the engraving position in a three-primary-color complementary model, and determining the energy information according to sizes of the filling values;

[0019] when the engraving type is slope engraving and gray-scale engraving, determining a slope engraving position corresponding to the slope engraving and a gray-scale engraving position corresponding to the gray-scale engraving;

[0020] determining slope energy information of the slope engraving position according to a slope value of the slope engraving position, and determining gray-scale energy information of the gray-scale engraving position according to sizes of filling values of the gray-scale engraving position in a three-primary-color complementary model.

[0021] Optionally, the step of, when the laser energy corresponding to the position information is not empty, controlling the laser head to engrave the material to be engraved based on the laser energy comprises:

[0022] when the laser energy corresponding to the position information is not empty, determining an engraving type corresponding to the position information;

[0023] when the engraving type is gray-scale engraving, controlling the laser device to perform gray-scale engraving in the engraving region according to the laser energy; or

[0024] When the engraving type is slope engraving, according to the laser energy, the laser device is controlled to perform slope engraving in the engraving area.

[0025] Optionally, after the step of acquiring the position signal fed back by the grating ruler or magnetic grating ruler when the laser head moves, and determining the position information of the laser head in the engraving coordinate system according to the position feedback signal, the method further comprises:

[0026] When the laser energy corresponding to the position information is not empty and the laser emission instruction is detected, the laser energy is buffered.

[0027] In addition, to achieve the above-mentioned purposes, the present application further provides a laser device, which comprises a memory, a processor and a laser engraving program stored in the memory and executable on the processor, and the laser engraving program implements the steps of the laser engraving method when executed by the processor.

[0028] In addition, to achieve the above-mentioned purposes, the present application further provides a computer readable storage medium, which stores a laser engraving program, and the laser engraving program implements the steps of the laser engraving method when executed by a processor.

[0029] The laser engraving method, laser device and computer readable storage medium provided by the embodiments of the present application can control the movement of the laser head according to the received laser engraving data, and monitor the position information of the laser head in the engraving coordinate system in real time based on the position signal fed back by the grating ruler or magnetic grating ruler. When the laser energy corresponding to the position information is not empty, it indicates that the laser head has reached the engraving position corresponding to the laser engraving data, and at this time, the laser head is directly controlled to emit laser for engraving. As can be seen, the laser emission position of the laser head is monitored in real time, and whether the laser energy corresponding to the current position information is empty or not is used as a comparison method between the current position information and other positions. When the laser energy is not empty, it indicates that the current laser head has reached the engraving position, and at this time, the laser device is controlled to perform engraving, which can guarantee the accuracy of the laser landing point and avoid the light emission lag caused by the mechanical hysteresis of the device. Through the comparison of the position relationship, the closed-loop control of the laser head of the laser device is realized, and the quality of the engraving process is improved. BRIEF DESCRIPTION OF DRAWINGS

[0030] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate one embodiment consistent with the present application and, together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced as follows. Obviously, those skilled in the art can obtain other drawings according to these drawings without any creative effort.

[0031] Figure 1 Flowchart of the first embodiment of the laser engraving method of the present application;

[0032] Figure 2 Engraving diagram corresponding to the design drawing of the laser engraving method of the present application;

[0033] Figure 3 Engraving misalignment diagram of the laser engraving method of the present application;

[0034] Figure 4 Flowchart before step S30 of the laser engraving method of the present application;

[0035] Figure 5 Flowchart of the second embodiment of the laser engraving method of the present application;

[0036] Figure 6 Schematic diagram of one of the implementation processes of the laser engraving method of the present application;

[0037] Figure 7 Schematic diagram of the terminal hardware structure of each embodiment of the laser engraving method of the present application.

[0038] The implementation of the object, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are merely intended to explain the present application and not to limit the present application.

[0040] In order to better understand the above technical solutions, the exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0041] First embodiment

[0042] Please refer to Figure 1 In the first embodiment, the steps of the laser engraving method of the present application include:

[0043] Step S10, according to the received laser engraving data, determine the motion trajectory of the laser device, and move the laser head based on the motion trajectory;

[0044] In the prior art, please refer to Figure 2 In the need to engrave Figure 2When bidirectional engraving is performed in the area (X5, Y1) to (X16, Y6), the control system outputs motion control signals to control the laser head to output laser signals when it reaches the (X5, Y1) position, and to stop laser output when it reaches the (X16, Y1) position, repeating this process. After receiving the motion signal from the laser head, the laser equipment needs to control the mechanical transmission components such as gears and bearings to work, thereby driving the laser head to move. However, the transmission time between physical hardware is relatively long, and there is a torque delay, meaning that the laser head may not start moving until one or more seconds after the motion control signal is sent.

[0045] For example, the initial position of the laser head is Figure 2 The laser head is positioned at (X1, Y1). When moving from (X1, Y1) to (X5, Y1), the control system calculates an arrival time of 4 seconds. The response time of the laser head's drive assembly is 1 second. Therefore, it can be assumed that the laser head needs 5 seconds to reach the engraving position. However, the laser device ignores the drive assembly's transmission time, meaning it assumes the laser head has reached the target position 4 seconds after the motion control signal is issued, and then controls the laser head to emit laser light. This causes a mismatch between the laser head position and the laser emission position, resulting in issues such as... Figure 3 As shown, the laser head starts emitting laser light and engraving at position (X4, Y1), making the actual engraving area consistent with... Figure 2 The required areas in the product design drawings shown are inconsistent. Therefore, existing laser engraving solutions suffer from mechanical lag, leading to engraving misalignment. It should be noted that the laser head can quickly respond to laser emission commands and emit laser light, with no time loss in the process. The above time data is for illustrative purposes only and is not intended to limit the invention.

[0046] The time characteristics of mechanical hysteresis are related to equipment load, motor drive characteristics, and current speed and acceleration, making it difficult to predict the characteristics of mechanical hysteresis in advance. Therefore, this embodiment introduces position feedback of the laser emission position to perform closed-loop control of the laser head, avoiding engraving misalignment and improving engraving quality.

[0047] Specifically, to avoid engraving misalignment caused by excessively long response times of the laser equipment's drive components, after receiving laser engraving data, the laser equipment needs to control the movement of the laser head and monitor its position in real time, i.e., determine the laser head's position information in real time. Therefore, in this step, upon receiving laser engraving data, it is necessary to determine the laser equipment's motion trajectory based on the laser engraving data. This motion trajectory can be as follows: Figure 2The laser device is controlled to move the laser head based on the motion trajectory. The laser engraving data refers to material processing data input by a worker on the laser device and capable of serving as a basis for laser processing control, and at least includes a motion control trajectory of the laser head, an engraving processing position of the material, and laser energy data required by the laser engraving position.

[0048] In step S20, a position signal fed back by the grating ruler or the magnetic grating ruler when the laser head moves is acquired, and position information of the laser head in the engraving coordinate system is determined according to the position signal.

[0049] In the embodiment, the engraving coordinate system can be Figure 2 The coordinate system shown in the figure includes coordinates of an engraving position and positions without engraving. To ensure that the specific position of the laser head can be accurately monitored in real time when the laser head moves, a position signal fed back by the grating ruler or the magnetic grating ruler installed on the guide rail can be read based on a high-speed acquisition channel, and then the position information of the laser head in the engraving coordinate system is calculated according to the position signal. To improve the accuracy of the detection of the laser emission position, the acquisition period of the position feedback signal needs to be shortened, so the high-speed acquisition channel is used to acquire the feedback position signal, and the control system can calculate the position information of the laser head in the engraving coordinate system according to the position signal, which refers to the laser emission position. Alternatively, the position information can also be determined through the position feedback signal of the drive with an encoder and the motor. It should be noted that the control system of the laser device can monitor the specific position information of the laser head in real time when the laser head moves through the position signal fed back by the grating ruler or the magnetic grating ruler.

[0050] Alternatively, after the real-time position information of the laser head in the engraving coordinate system is acquired, when the laser energy corresponding to the position information is not empty and the laser emission instruction is detected, the laser energy is cached to avoid the direct light emission of the laser head when the laser head does not reach the engraving position, which leads to the engraving misplacement. The caching of the laser energy refers to stopping the emission of the laser when the device reaches the preset light emission time, pausing the emission of the laser for a corresponding time, until the laser emission position of the laser head reaches the engraving area, that is, until the laser energy corresponding to the current position information is not empty, the laser is emitted and the calculation of the laser emission time is resumed. It should be noted that when the laser device moves the laser head and performs engraving, the influence of the mechanical hysteresis of the laser head on the engraving misplacement is ignored, the laser energy is cached, and the laser head is controlled to emit the laser energy when the laser energy corresponding to the position information of the laser head is not empty, which improves the quality of the laser engraving.

[0051] In step S30, when the laser energy corresponding to the position information is not empty, the laser head is controlled to engrave the material to be engraved based on the laser energy.

[0052] In the embodiment, please continue to refer to Figure 2 When controlling the movement of the laser head, the laser head needs to constantly go back and forth between the non-engraving position and the engraving position until the engraving task is completed. In the non-engraving position in the engraving coordinate system, the corresponding laser energy is empty or zero, and in the engraving position, the corresponding laser energy is not empty or zero. Therefore, the position information of the laser head corresponds to the default laser energy which is empty or zero. When the laser energy corresponding to the position information is not empty, it means that the laser head has moved to the position that needs to be engraved, and at this time, the material to be engraved needs to be engraved based on the laser energy corresponding to the engraving position. Wherein, the material to be engraved refers to the object that needs to be engraved.

[0053] The laser energy corresponding to the engraving position needs to be determined according to the received laser engraving data, so please refer to Figure 4 Before step S30, it also includes:

[0054] Step S40, according to the laser engraving data, determine the engraving position of the material to be engraved in the engraving coordinate system, and the energy information corresponding to the engraving position;

[0055] In the embodiment, the laser energy information corresponding to the engraving position of the material to be engraved can be directly determined according to the laser energy data required by the laser engraving position and the laser engraving position in the laser engraving data. The laser energy information includes the size or power of laser emission and the like. That is, the laser engraving data contains the information of the required engraving position of the material to be engraved, and the laser energy information required by each position. For example, in the material to be engraved, the laser energy information corresponding to the engraving position A is 50%, the laser energy information corresponding to the engraving position B is 80%, and the laser energy information corresponding to the engraving position C is 50%-80%.

[0056] It should be noted that the engraving position is not a certain engraved point, but a continuous engraving area, for example Figure 2 (X5, Y1)~(X16, Y1) shown in the figure is an engraving position.

[0057] Step S50, when detecting that the position information is in the engraving position, the energy information is used as the laser energy.

[0058] After the engraving position is obtained, the engraving position needs to be compared with the real-time monitored position information of the laser head, and then it is judged whether the laser head reaches the engraving position. When the position information is in the engraving position, it is judged that the laser head reaches the engraving position, and the energy information corresponding to the engraving position is taken as the laser energy, so as to guarantee the accuracy of the laser landing point and avoid the condition of engraving misplacement during engraving. The judgment can be made by coordinate comparison. That is, when it is detected that the coordinate of the position information is a subset of the coordinate set corresponding to the engraving position, it is judged that the current position reaches the engraving position.

[0059] Correspondingly, the laser energy of the laser head at the current position is not empty, at this time, the to-be-engraved material can be directly engraved according to the energy size or energy power of the laser energy.

[0060] In the embodiment, the contents to be engraved and the visual effects of engraving of different to-be-engraved materials are different, so that different engraving positions in the obtained laser engraving data correspond to different engraving energies, so that the control system of the laser equipment can control the laser head to output laser energy meeting the design requirements, and the quality of the engraving processing is improved.

[0061] Therefore, after the laser energy is obtained, the engraving needs to be performed according to different laser engraving types. That is, when the laser energy corresponding to the position information is not empty, the engraving type corresponding to the position information is determined, wherein the engraving type includes gray scale engraving and slope engraving. The gray scale engraving is an engraving for realizing different gray scale effects by adjusting the power of the laser, and the slope engraving is an engraving for realizing different slope effects on the surface of an object by analyzing a slope value and then adjusting the power of the laser according to the slope value. When the engraving type is gray scale engraving, the laser equipment is controlled to perform gray scale engraving in the engraving area according to the laser energy. Or when the engraving type is slope engraving, the laser equipment is controlled to perform engraving in the engraving area according to the laser energy. The laser energy includes not only a specific range but also a specific change trend. For example, the engraving type corresponding to the engraving position is gray scale engraving, the laser energy is 40%-80%, and the change trend is 40%-60%-50%-80%. At this time, the laser equipment can flexibly adjust the laser energy corresponding to the specific position. It should be noted that the above parameters are only used for explanation and are not a limitation of the present application.

[0062] In the technical solution disclosed in the embodiment, after receiving the engraving data and controlling the movement of the laser head, the real-time position information of the laser head is obtained by acquiring the position signal fed back by the grating ruler or the magnetic grating ruler in real time, and the engraving position and the energy information corresponding to the engraving position can be determined according to the engraving data. By comparing the real-time position information with the engraving position, it is determined that the laser head reaches the point to be engraved when the position information is at the engraving position. At this time, the material to be engraved is engraved based on the energy information corresponding to the engraving position and the engraving type of the engraving position. Based on this, the light output lag caused by the mechanical hysteresis of the laser equipment can be avoided. By comparing the real-time position information with the engraving position and buffering the laser information when the laser head does not reach the engraving position, the closed-loop control of the laser head of the laser equipment is realized, and the processing quality of the engraving is improved.

[0063] Second embodiment

[0064] Please refer to Figure 5 In the second embodiment, based on the first embodiment, step S40 specifically includes:

[0065] Step S41, according to the laser engraving data, determining the engraving area of the material to be engraved, the coordinate information in the engraving coordinate system, and taking the coordinate information as the engraving position;

[0066] Step S42, acquiring the engraving type corresponding to the engraving position, and determining the energy information based on the engraving type.

[0067] In the embodiment, the current engraving position can be represented by coordinate information, thereby improving the comparison efficiency of the engraving position and the real-time monitored position information of the laser head. The energy information corresponding to the engraving position is usually an engraving energy region, for example, the energy information of the engraving position D is 10% to 100%, at this time, the energy required by a specific engraving point can be determined based on the engraving type bound to the engraving area.

[0068] Specifically, when the engraving type is slope engraving, the energy information is determined according to the slope value of the engraving position, wherein the current engraving position of the material to be engraved is analyzed by the image analysis module, and then the specific slope value is obtained, and then the specific engraving energy required by a specific point is selected according to the slope value.

[0069] Optionally, when the engraving type is gray scale engraving, based on the image analysis module, the filling value of all pixel points of the engraving position in the three primary color complementary model is determined, and the energy information is determined according to the size of the filling value. When engraving on a material to be engraved, 0% energy corresponds to white color, and 100% energy corresponds to pure black color, so that the pixel points of the engraving position in the three primary color complementary model can be determined to have a gray effect, and then the control system can determine the corresponding energy information according to the size of the filling value. For example, the three primary color values of the sub-region E are RGB(128, 128, 128), and the three primary color values of the sub-region F are RGB(0, 0, 0), at this time, it is considered that the energy required by the sub-region E is 50%, and the energy required by the sub-region F is 100%.

[0070] Optionally, when the engraving type is slope engraving and gray scale engraving, the slope engraving position corresponding to the slope engraving is determined, and the gray scale engraving position corresponding to the gray scale engraving is determined, and the slope energy information of the slope engraving position is determined according to the slope value of the slope engraving position, and the gray scale energy information of the gray scale engraving position is determined according to the size of the filling value of the gray scale engraving position in the three primary color complementary model. It should be noted that when there are two kinds of engraving requirements combined in the same engraving position, the gray scale engraving region and the slope engraving region corresponding to the two kinds of engraving methods are determined respectively, and then the corresponding laser energy is selected according to the corresponding region, and the selection method is as described above, which will not be repeated here.

[0071] In the technical scheme disclosed in the embodiment, the engraving position is determined by the coordinate information, and the energy size corresponding to the specific engraving point position is selected according to the engraving type required by the engraving position. When the control system controls the laser head of the laser equipment to engrave, the corresponding laser energy can be accurately output, the engraving efficiency is improved, and the engraved product meets the product design requirements, and the engraving quality of the product is improved.

[0072] Third embodiment

[0073] Please refer to Figure 6In this embodiment, an optional implementation flow of the laser engraving method of the present invention is proposed. The position of the laser head is monitored in real time using position feedback signals from a grating ruler, magnetic grating ruler, or a driver and motor with an encoder. Simultaneously, based on the data to be processed, i.e., laser engraving data such as motion trajectory, engraving position, and laser parameters, the resulting motion control signal is fed back to the laser device to control the movement of the laser head. After analyzing the engraving position and obtaining the real-time position of the laser head, a comparison between positions is made to determine whether the current real-time position has reached the required engraving position. If the required engraving position has been reached, and the laser energy corresponding to that position is not empty, the control system controls the laser head to output that laser energy. This process is repeated until the engraving of the current material is completed.

[0074] In the technical solution disclosed in this embodiment, motion control signals are obtained by parsing processing data. Based on the motion control information, the laser head is moved in real time, and the position information of the laser head is acquired in real time. Then, the real-time position information is compared with the position to be engraved. Laser energy is output only when the engraving position is reached to engrave the material. Based on this, by comparing the real-time position, the mechanical lag of the control system that causes the light output position to lag can be avoided, that is, engraving misalignment is avoided, and the quality of engraving processing is improved.

[0075] Reference Figure 7 , Figure 7 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention.

[0076] like Figure 7 As shown, the terminal may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. The communication bus 1002 is used to enable communication between these components. The network interface 1003 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1004 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. Alternatively, the memory 1004 may be a storage device independent of the aforementioned processor 1001.

[0077] Those skilled in the art will understand that Figure 7 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0078] likeFigure 7 As shown, the memory 1004 as a computer storage medium can include an operating system, a data storage module, a network communication module, and a laser engraving program.

[0079] In Figure 7 In the terminal shown, the network interface 1003 is mainly used for connecting a background server and communicating data with the background server; the processor 1001 can call the laser engraving program stored in the memory 1004 and perform the following operations:

[0080] According to the received laser engraving data, the motion trajectory of the laser device is determined, and the laser head is moved based on the motion trajectory;

[0081] When the laser head moves, the position signal fed back by the grating ruler or the magnetic grating ruler is acquired, and the position information of the laser head in the engraving coordinate system is determined according to the position signal;

[0082] When the position information corresponds to non-empty laser energy, the laser head is controlled to engrave the material to be engraved based on the laser energy.

[0083] Further, the processor 1001 can call the laser engraving program stored in the memory 1004 and further perform the following operations:

[0084] According to the laser engraving data, the engraving position of the material to be engraved in the engraving coordinate system and the energy information corresponding to the engraving position are determined;

[0085] When it is detected that the position information is at the engraving position, the energy information is taken as the laser energy.

[0086] Further, the processor 1001 can call the laser engraving program stored in the memory 1004 and further perform the following operations:

[0087] According to the laser engraving data, the engraving region of the material to be engraved and the coordinate information in the engraving coordinate system are determined, and the coordinate information is taken as the engraving position;

[0088] The engraving type corresponding to the engraving position is acquired, and the energy information is determined based on the engraving type.

[0089] Further, the processor 1001 can call the laser engraving program stored in the memory 1004 and further perform the following operations:

[0090] When the engraving type is slope engraving, the energy information is determined according to the slope value of the engraving position;

[0091] When the engraving type is gray-scale engraving, based on the image analysis module, filling values of all pixel points of the engraving position in a three-primary-color complementary model are determined, and the energy information is determined according to the size of the filling values;

[0092] When the engraving type is slope engraving and gray-scale engraving, slope engraving positions corresponding to the slope engraving are determined, and gray-scale engraving positions corresponding to the gray-scale engraving are determined.

[0093] According to the slope values of the slope engraving positions, slope energy information of the slope engraving positions is determined, and according to the size of the filling values of the gray-scale engraving positions in the three-primary-color complementary model, gray-scale energy information of the gray-scale engraving positions is determined.

[0094] Further, the processor 1001 can call a laser engraving program stored in the memory 1004, and further perform the following operations:

[0095] When the laser energy corresponding to the position information is not empty, the engraving type corresponding to the position information is determined.

[0096] When the engraving type is gray-scale engraving, the laser device is controlled to perform gray-scale engraving in the engraving area according to the laser energy; or

[0097] When the engraving type is slope engraving, the laser device is controlled to perform engraving in the engraving area according to the laser energy.

[0098] Further, the processor 1001 can call a laser engraving program stored in the memory 1004, and further perform the following operations:

[0099] When the laser energy corresponding to the position information is not empty, and a laser emission instruction is detected, the laser energy is cached.

[0100] In addition, those skilled in the art can understand that all or part of the processes in the method for implementing the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the control terminal to implement the process steps of the above-mentioned embodiment of the method.

[0101] Therefore, the application further provides a computer readable storage medium, which stores a laser engraving program. The laser engraving program is executed by a processor to implement each step of the laser engraving method according to the above-mentioned embodiment.

[0102] It should be noted that the storage medium provided by the embodiments of the present application is a storage medium used for implementing the method of the embodiments of the present application, and therefore, based on the method introduced in the embodiments of the present application, the specific structure and deformation of the storage medium can be understood by those skilled in the art, and therefore, will not be described here. Any storage medium used by the method of the embodiments of the present application belongs to the scope of protection of the present application.

[0103] Those skilled in the art will appreciate that embodiments of the application can be supplied as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0104] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system) and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams can be implemented by computer program instructions, and the combination of flows and / or blocks in the flowcharts and / or block diagrams. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in one or more flows and / or blocks.

[0105] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing devices to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including instruction devices, which implement the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in one or more flows and / or blocks.

[0106] These computer program instructions can also be loaded into a computer or other programmable data processing device, so that a series of operation steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in one or more flows and / or blocks.

[0107] It should be noted that in the claims the reference signs placed between parentheses shall not be construed as limiting the claim. The word 'comprising' does not exclude the presence of elements or steps other than those listed in a claim. The word 'a' or 'an' preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unitary claim, several of the devices, components or steps can be implemented by means of one and the same item of hardware. The use of the words 'first','second' and 'third', etc. do not imply any order. The use of the terms 'first','second', 'third', and the like, is merely intended to differentiate between similar entities but is not intended to imply any order or sequence.

[0108] Although the preferred embodiments of the application have been described, those skilled in the art will recognize changes and modifications which can be made to the preferred embodiments without departing from the spirit and scope of the application. Accordingly, it is intended to include all such changes and modifications in the scope of the application as set forth in the following claims.

[0109] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.

[0110] The above merely illustrates the preferred embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation made according to the content of the specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method of laser engraving, characterized by, The laser engraving method comprises: According to the received laser engraving data, the motion trajectory of the laser device is determined, and the laser head is moved based on the motion trajectory; Obtain the position signal fed back by the grating ruler or the magnetic grating ruler when the laser head moves, and determine the position information of the laser head in the engraving coordinate system according to the position signal; When the laser energy corresponding to the position information is not empty, control the laser head to engrave the material to be engraved based on the laser energy; When the laser energy corresponding to the position information is not empty and the laser emission instruction is detected, the laser energy is cached, wherein caching the laser energy means stopping emitting laser when reaching the preset light emitting time of the device, and pausing the laser emission time until the laser emission position of the laser head reaches the engraving area, that is, until the laser energy corresponding to the current position information is not empty, the laser is emitted and the laser emission time is resumed.

2. The laser engraving method of claim 1, wherein, Before the step of controlling the laser head to engrave based on the laser energy when the laser energy corresponding to the position information is not empty, the method further comprises: According to the laser engraving data, the engraving position of the material to be engraved in the engraving coordinate system is determined, and the energy information corresponding to the engraving position is determined; When it is detected that the position information is in the engraving position, the energy information is taken as the laser energy.

3. The laser engraving method of claim 2, wherein, The step of determining the engraving position of the material to be engraved in the engraving coordinate system according to the laser engraving data, and determining the energy information corresponding to the engraving position comprises: According to the laser engraving data, the engraving region of the material to be engraved is determined, the coordinate information in the engraving coordinate system is determined, and the coordinate information is taken as the engraving position; Obtain the engraving type corresponding to the engraving position, and determine the energy information based on the engraving type.

4. The laser engraving method of claim 3, wherein, The step of determining the energy information based on the engraving type comprises: When the engraving type is slope engraving, the energy information is determined according to the slope value of the engraving position; When the engraving type is gray scale engraving, the filling value of all pixel points of the engraving position in the three primary color complementary model is determined based on the image analysis module, and the energy information is determined according to the size of the filling value; When the engraving type is slope engraving and gray scale engraving, the slope engraving position corresponding to the slope engraving is determined, and the gray scale engraving position corresponding to the gray scale engraving is determined; According to the slope value of the slope engraving position, the slope energy information of the slope engraving position is determined, and according to the size of the filling value of the gray scale engraving position in the three primary color complementary model, the gray scale energy information of the gray scale engraving position is determined.

5. The laser engraving method of claim 1, wherein, The step of controlling the laser head to engrave the material to be engraved based on the laser energy when the laser energy corresponding to the position information is not empty comprises: When the laser energy corresponding to the position information is not empty, the engraving type corresponding to the position information is determined; When the engraving type is gray scale engraving, the laser device is controlled to perform gray scale engraving in the engraving region according to the laser energy; or When the engraving type is slope engraving, the laser device is controlled to engrave in the engraving area according to the laser energy.

6. A laser apparatus, characterized by, The laser device comprises a memory, a processor, and a laser engraving program stored in the memory and executable on the processor, and the laser engraving program, when executed by the processor, implements the steps of the laser engraving method according to any one of claims 1 to 5.

7. A computer readable storage medium characterized in that, The computer readable storage medium stores a laser engraving program, and the laser engraving program, when executed by the processor, implements the steps of the laser engraving method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Three-dimensional laser bitmap marking method and device, and computer readable storage medium

    CN112108774A

  • Lithographic plate laser engraving system based on double scanning tracks and engraving method of lithographic plate laser engraving system

    CN116689979A