Laser marking method, device, equipment, storage medium and product

By receiving the marking image in the CO2 laser marking machine and generating laser marking points, adjusting the galvanometer and controlling the laser source to form a smaller marking unit, the problem of excessively large marking unit in the prior art is solved. Extend application scenarios and improve efficiency.

CN119187898APending Publication Date: 2024-12-27SHENZHEN TETELASER TECH CO LTD

Patent Information

Application Number
CN202411491734.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing CO2 laser marking machines are unable to complete the marking processing of smaller-sized objects or patterns due to the large minimum marking unit, which limits their application scenarios.

Method used

By receiving the marked image, a laser marking point on the object to be marked is generated, and the galvanometer is adjusted to the target attitude, and the laser source is controlled to emit laser light to form a marking unit. After traversing each point, a pattern corresponding to the marking image is formed.

Benefits of technology

It realizes a smaller marking unit size, expands the application scenarios of laser marking machines, reduces operating steps, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119187898A_ABST
    Figure CN119187898A_ABST
Patent Text Reader

Abstract

The invention discloses a laser marking method and device, equipment, a storage medium and a product, and relates to the technical field of laser. After a marking image is received, all laser marking point positions are generated based on the marking image, and a galvanometer is adjusted to the target posture of all the laser marking point positions. The laser source is controlled to emit the laser, the laser is guided by the galvanometer to irradiate the laser marking point positions to form the marking units, and after the laser marking point positions are traversed, all the marking units on the to-be-marked object can form the pattern corresponding to the to-be-marked image. The marking unit is obtained by irradiating a laser marking point position with laser, so that the size of the marking unit is far smaller than that of a marking unit formed in a mode that a galvanometer guides the laser to draw a circle or line in a traditional scheme, and correspondingly, under the condition that the marking unit is smaller, the marking efficiency is greatly improved. And marking processing of objects or patterns with smaller sizes can be completed, so that the application scene of the laser marking machine is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser technology, and in particular to a laser marking method, device, equipment, storage medium and product. Background Art

[0002] A CO2 laser is a gas laser that generates laser light by discharging in a gas mixture filled with carbon dioxide, helium, and nitrogen. The laser light generated by a CO2 laser can be absorbed by many materials, especially organic materials, so it is very suitable for marking and cutting. The basic principle of CO2 laser marking is to use the high energy density of the laser to locally irradiate the surface of the material, causing the material in the irradiated area to undergo physical or chemical changes, thereby forming a mark to complete the marking operation. At present, when a CO2 laser marking machine equipped with a CO2 laser performs marking processing, most of them form the minimum marking unit by controlling the galvanometer in the CO2 laser marking machine to guide the laser to draw a circle or draw a line, and then the marking image is formed by each minimum marking unit. However, the minimum unit formed by drawing a circle or drawing a line is generally relatively large, so it is impossible to complete the marking processing of smaller objects or patterns, which limits the application scenarios of laser marking machines.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a laser marking method, device, equipment, storage medium and product, aiming to solve the technical problem that the current minimum marking unit of the laser marking machine is large and cannot mark objects or patterns of smaller sizes, thereby limiting the application scenarios of the laser marking machine.

[0005] To achieve the above object, the present application proposes a laser marking method, which is applied to a laser marking machine, wherein the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source. The laser marking method includes:

[0006] Receiving a marking image, and generating laser marking points on the object to be marked based on the marking image;

[0007] For any one of the laser marking points, adjusting the galvanometer to a target posture corresponding to the laser marking point;

[0008] The laser source is controlled to emit laser, and the galvanometer in the target posture is used to guide the laser to irradiate the laser marking point to form a marking unit, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

[0009] Optionally, a focusing mirror is provided between the laser source and the galvanometer, and the step of controlling the laser source to emit laser light comprises:

[0010] Controlling the laser source to emit laser light for a preset duration;

[0011] The distance between the focus of the laser and the laser marking point is controlled by the focusing mirror so that the distance between the focus and the laser marking point is consistent with a preset defocus amount.

[0012] Optionally, the marking image is a two-dimensional code, and before the step of controlling the laser source to emit laser light, the method includes:

[0013] Searching for a target defocus amount corresponding to the size of the two-dimensional code from a first preset mapping table, and using the target defocus amount as the preset defocus amount;

[0014] A target duration corresponding to the material property of the object to be marked and the preset defocus amount is searched in a second preset mapping table, and the target duration is used as the preset duration.

[0015] Optionally, the step of generating laser marking points on the object to be marked based on the marking image includes:

[0016] Converting the marked image into a dot matrix image;

[0017] Each matrix point in the dot matrix image is mapped to an actual coordinate system corresponding to the laser marking machine, wherein the coordinate data of each matrix point in the actual coordinate system is each laser marking point.

[0018] Optionally, the step of adjusting the galvanometer to a target posture corresponding to the laser marking point includes:

[0019] Determining the target posture based on the laser marking points;

[0020] In the case where there is a posture difference between the current posture of the galvanometer and the target posture, generating a deflection parameter of the galvanometer based on the posture difference;

[0021] generating a control signal of a drive motor of the galvanometer based on the deflection parameter;

[0022] The control signal is sent to the drive motor, and the galvanometer is adjusted to the target posture by the drive motor.

[0023] Optionally, the step of traversing the laser marking points includes:

[0024] Dividing the laser marking points into local sets, wherein adjacent laser marking points are divided into the same local set;

[0025] For any local set to be marked in the local sets, after traversing the laser marking points in the local set to be marked in turn to form marking units, the local set to be marked closest to the local set to be marked will be used as the next local set to be marked, wherein the local set to be marked is a local set that has not been marked.

[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a laser marking device, which is applied to a laser marking machine, wherein the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source, and the laser marking device includes:

[0027] A generating module, used for receiving a marking image, and generating laser marking points on the object to be marked based on the marking image;

[0028] An adjustment module, for adjusting the galvanometer to a target posture corresponding to any one of the laser marking points;

[0029] A control module is used to control the laser source to emit laser, and guide the laser to irradiate the laser marking point to form a marking unit through the galvanometer in the target posture, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

[0030] In addition, to achieve the above objectives, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the laser marking method described above.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the laser marking method described above are implemented.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the laser marking method described above are implemented.

[0033] One or more technical solutions proposed in this application have at least the following technical effects:

[0034] In an embodiment of the present application, a marking image is received, and each laser marking point on the object to be marked is generated based on the marking image; for any one of the laser marking points, the galvanometer is adjusted to a target posture corresponding to the laser marking point; the laser source is controlled to emit laser, and the galvanometer in the target posture guides the laser to irradiate the laser marking point to form a marking unit, wherein, after traversing the laser marking points, each marking unit on the object to be marked constitutes a pattern corresponding to the marking image. That is, in an embodiment of the present application, a marking image is received, each laser marking point is generated based on the marking image, and the galvanometer is adjusted to the target posture of each laser marking point. When the laser source is controlled to emit laser, the laser is irradiated on the laser marking point under the guidance of the galvanometer to form a marking unit, and after traversing each laser marking point, each marking unit on the object to be marked can constitute a pattern corresponding to the image to be marked. It is understandable that in the embodiment of the present application, the marking unit is obtained by irradiating the laser marking point with laser, so the size of the marking unit in the present application is much smaller than the marking unit formed by the traditional solution of drawing a circle or drawing a line by guiding the laser with a galvanometer. Accordingly, in the case of a smaller marking unit, the marking process of objects or patterns of smaller sizes can be completed, thereby expanding the application scenarios of the laser marking machine. At the same time, since in the embodiment of the application, there is no need to control the rotation or movement of the galvanometer to form the marking unit, on the one hand, the marking unit does not need to be affected by the accuracy of the galvanometer, and on the other hand, the operation steps of forming the marking unit are reduced, thereby improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 This is a schematic diagram of the process of the first embodiment of the laser marking method of the present application;

[0038] Figure 2 This is a schematic diagram of the process of the second embodiment of the laser marking method of the present application;

[0039] Figure 3 This is a schematic diagram of a pattern in the laser marking method of this application;

[0040] Figure 4This is a schematic diagram of the structure of the laser marking device in the laser marking method of this application;

[0041] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the laser marking method in the embodiment of the present application.

[0042] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0044] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The main solution of the embodiment of the present application is: receiving a marking image, and generating laser marking points on the object to be marked based on the marking image; for any one of the laser marking points, adjusting the galvanometer to a target posture corresponding to the laser marking point; controlling the laser source to emit laser, and guiding the laser to irradiate the laser marking point through the galvanometer in the target posture to form a marking unit, wherein, after traversing the laser marking points, the marking units on the object to be marked form a pattern corresponding to the marking image.

[0046] A CO2 laser is a gas laser that generates laser light by discharging in a gas mixture filled with carbon dioxide, helium, and nitrogen. The laser light generated by a CO2 laser can be absorbed by many materials, especially organic materials, so it is very suitable for marking and cutting. The basic principle of CO2 laser marking is to use the high energy density of the laser to locally irradiate the surface of the material, causing the material in the irradiated area to undergo physical or chemical changes, thereby forming a mark to complete the marking operation. At present, when a CO2 laser marking machine is used for marking, most of the marking processes are performed by controlling the galvanometer in the CO2 laser marking machine to guide the laser to draw a circle or draw a line to form the minimum marking unit, and then the minimum marking units constitute the marking image. However, the minimum unit formed by drawing a circle or drawing a line is generally relatively large, so it is impossible to complete the marking process of smaller objects or patterns, which limits the application scenarios of laser marking machines.

[0047] The present application provides a solution. In the embodiment of the present application, after receiving the marking image, each laser marking point will be generated based on the marking image, and the galvanometer will be adjusted to the target posture of each laser marking point. When the laser source is controlled to emit laser, the laser is irradiated on the laser marking point under the guidance of the galvanometer to form a marking unit. After traversing each laser marking point, each marking unit on the object to be marked can form a pattern corresponding to the image to be marked. It can be understood that in the embodiment of the present application, the marking unit is obtained by irradiating the laser marking point with laser, so the size of the marking unit in the present application is much smaller than the marking unit formed by the galvanometer guiding the laser to draw a circle or draw a line in the traditional solution. Correspondingly, in the case of a smaller marking unit, the marking processing of objects or patterns of smaller sizes can be completed, thereby expanding the application scenario of the laser marking machine. At the same time, since in the embodiment of the application, there is no need to control the rotation or movement of the galvanometer to form the marking unit, on the one hand, the marking unit does not need to be affected by the accuracy of the galvanometer, and on the other hand, the operation steps of forming the marking unit are reduced, thereby improving the processing efficiency.

[0048] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a cloud platform, a computer, a mobile phone, etc., or an electronic device that can realize the above functions.

[0049] Based on this, the present application embodiment provides a laser marking method, referring to Figure 1 , Figure 1 This is a schematic diagram of the process of the first embodiment of the laser marking method of the present application.

[0050] In this embodiment, the laser marking method is applied to a laser marking machine, the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source, and the laser marking method includes steps S10 to S30:

[0051] Step S10, receiving a marking image, and generating laser marking points on the object to be marked based on the marking image;

[0052] It should be noted that the above-mentioned laser marking method can be applied to a laser marking machine, wherein the laser marking machine can be a CO2 laser marking machine. The laser marking machine includes a laser source (such as the above-mentioned laser) and a galvanometer for guiding the laser emitted by the laser source, that is, the galvanometer can quickly and accurately change the direction of the laser, so that the laser can scan the surface of the object to be marked at high speed to complete the marking. In addition, in actual applications, the user can send the image to be marked to the laser marking machine with the help of a host computer connected to the laser marking machine, wherein the host computer can be an industrial computer connected to the laser marking machine on site, or it can be a cloud server connected to the laser marking machine. In addition, the user can also send the marked image stored on the mobile terminal to the laser marking machine via Bluetooth.

[0053] Exemplarily, the laser marking machine can receive the image marked by the user through the above-mentioned method, wherein the marked image can be a QR code, or a circuit diagram, etc., and no specific limitation is made here. After receiving the image to be marked, the laser marking machine generates laser marking points on the object to be marked based on the marked image. Among them, the object to be marked can be electronic products, parts and components, and PCB (Printed Circuit Board), etc. The laser marking machine can decompose the marked image into each point, and then determine the coordinates of each point mapped to the object to be marked according to the size ratio of the marking to form each laser marking point. So as to facilitate marking based on each laser marking point.

[0054] Step S20, for any one of the laser marking points, adjusting the galvanometer to a target posture corresponding to the laser marking point;

[0055] It should be noted that, since the marking processes of various laser marking points are basically similar, in this embodiment, one laser marking point is taken as an example for description.

[0056] Exemplarily, for any one of the laser marking points, the galvanometer is adjusted to a target posture corresponding to the laser marking point, and the galvanometer in the target posture can guide the laser to the laser marking point to complete the marking operation. The process of adjusting the galvanometer to the target posture may include adjusting the position of the galvanometer, such as moving the galvanometer; adjusting the posture of the galvanometer, such as deflecting the galvanometer, and the adjustment can be completed by a drive motor corresponding to the galvanometer.

[0057] Step S30, controlling the laser source to emit laser, and guiding the laser to irradiate the laser marking point to form a marking unit through the galvanometer in the target posture, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

[0058] For example, after the galvanometer is in the target posture, the laser source is controlled to emit laser light, so that the laser light emitted by the laser source is guided by the galvanometer to the laser marking point, and the laser marking point is irradiated to form a marking unit. The marking unit is the mark left by the chemical or physical reaction caused by the laser irradiation to the surface of the object to be marked. After traversing each laser marking point, the marking units left on the object to be marked can form a pattern corresponding to the marking image.

[0059] In this embodiment, a marking image is received, and each laser marking point on the object to be marked is generated based on the marking image; for any one of the laser marking points, the galvanometer is adjusted to a target posture corresponding to the laser marking point; the laser source is controlled to emit laser, and the galvanometer in the target posture guides the laser to irradiate the laser marking point to form a marking unit, wherein, after traversing each laser marking point, each marking unit on the object to be marked constitutes a pattern corresponding to the marking image. That is, in the embodiment of the present application, when a marking image is received, each laser marking point is generated based on the marking image, and the galvanometer is adjusted to the target posture of each laser marking point. When the laser source is controlled to emit laser, the laser is irradiated on the laser marking point under the guidance of the galvanometer to form a marking unit, and after traversing each laser marking point, each marking unit on the object to be marked can constitute a pattern corresponding to the image to be marked. It is understandable that in the embodiment of the present application, the marking unit is obtained by irradiating the laser marking point with laser, so the size of the marking unit in the present application is much smaller than the marking unit formed by the traditional solution of drawing a circle or drawing a line by guiding the laser with a galvanometer. Accordingly, in the case of a smaller marking unit, the marking process of objects or patterns of smaller sizes can be completed, thereby expanding the application scenarios of the laser marking machine. At the same time, since in the embodiment of the application, there is no need to control the rotation or movement of the galvanometer to form the marking unit, on the one hand, the marking unit does not need to be affected by the accuracy of the galvanometer, and on the other hand, the operation steps of forming the marking unit are reduced, thereby improving the processing efficiency.

[0060] In a feasible implementation manner, a focusing mirror is provided between the laser source and the galvanometer, and the step of controlling the laser source to emit laser light comprises steps S31 and S32:

[0061] Step S31, controlling the laser source to emit laser light for a preset time period;

[0062] Step S32, controlling the distance between the focus of the laser and the laser marking point by the focusing mirror, so that the distance between the focus and the laser marking point is consistent with a preset defocus amount.

[0063] It should be noted that a focusing mirror may be provided between the laser source and the galvanometer. The focusing mirror is a set of optical elements, which is used to focus the laser beam to a specific point on the surface of the material. By changing the position of the focusing mirror, the focus point of the laser beam on the surface of the material can be adjusted to control the defocus amount, that is, the focus amount is the distance between the focus point and the surface of the material.

[0064] For example, after the galvanometer is adjusted to the target posture corresponding to the laser marking point, the laser marking machine can control the laser source to emit laser light for a preset time. That is, the laser light emitted by the laser source will irradiate the laser marking point for a preset time under the guidance of the galvanometer, wherein the preset time can be a pre-set fixed parameter or a parameter input by the user in real time, which is not limited here.

[0065] Exemplarily, in the process of forming the marking unit, the laser marking machine will also control the distance between the focus of the laser emitted by the laser source and the laser marking point through the focusing mirror, so that the distance is consistent with the preset defocus amount. The specific control process of the focusing mirror can refer to the existing scheme, which will not be repeated here. For the preset defocus amount, similarly, it can be a pre-set fixed parameter or a parameter input by the user in real time, which is not limited here.

[0066] In a feasible implementation manner, the marking image is a two-dimensional code, and before the step of controlling the laser source to emit laser light, the method includes steps S01 and S02:

[0067] Step S01, searching a target defocus amount corresponding to the size of the two-dimensional code from a first preset mapping table, and using the target defocus amount as the preset defocus amount;

[0068] Step S02: searching a second preset mapping table for a target duration corresponding to the material property of the object to be marked and the preset defocus amount, and using the target duration as the preset duration.

[0069] It should be noted that, in this embodiment, the above-mentioned marking image is a QR code. Generally, the QR code engraved on the product by the laser marking machine can be used for product traceability. In addition, the above-mentioned first mapping table and the second mapping table can be obtained by a technician through testing. Among them, the first preset mapping table records the mapping relationship between the size of the QR code and the defocus amount, and the smaller the size of the QR code, the smaller the defocus amount. The second mapping table records the mapping relationship between the duration and the material properties of the object to be marked and the determined preset defocus amount, and the smaller the preset defocus amount, the shorter the duration.

[0070] Exemplarily, the user can set the size of the QR code to be printed and the material attributes of the object to be marked on the laser marking machine. The material attributes can be the material of the object to be marked, such as plastic, metal, or wood, etc. The specific material attributes are not described here. The laser marking machine first searches for the corresponding target defocus amount from the first preset mapping table according to the size of the QR code, and uses the searched target defocus amount as the preset defocus amount. After obtaining the preset defocus amount, the target duration corresponding to the material attributes of the object to be marked and the preset defocus amount is searched from the second preset mapping table, and the target duration is used as the preset duration.

[0071] It is understandable that the determination of the defocus amount and the duration is actually to control the degree of laser burning of the laser marking point. Accordingly, the smaller the focus amount and the longer the duration, the deeper the laser marking point is burned. Since the present application does not need to control the galvanometer to complete the circle drawing or line drawing operation in the process of forming the marking unit, only the focus amount and the duration need to be determined, so the degree of burning of the laser marking point can be accurately controlled, that is, the depth and color of the formed marking unit can be accurately controlled.

[0072] In a feasible implementation manner, the step of generating laser marking points on the object to be marked based on the marking image includes steps S11 to S12:

[0073] Step S11, converting the marked image into a dot matrix image;

[0074] Step S12, mapping each array point in the dot matrix image to an actual coordinate system corresponding to the laser marking machine, wherein the coordinate data of each array point in the actual coordinate system is each laser marking point.

[0075] Exemplarily, the above-mentioned marking image can be a vector graphic, a bitmap or other types of images, and an image parsing tool can be built into the laser marking machine. For a marking image of the vector type, the image parsing tool can parse it into a path represented by a mathematical equation, and then convert the lines or curves corresponding to the path into a set of pixel points. For a bitmap or other types of marking images, the image parsing tool can directly convert the marking image into a set of pixel points, and the set of pixel points is also a dot matrix image. Then, according to the resolution of the laser marking machine, the parameters of the dot matrix image are adjusted, such as adjusting the size of the dots, the spacing between dots, etc.

[0076] After obtaining the dot matrix image, each matrix point in the dot matrix image is mapped to the actual coordinate system corresponding to the laser marking machine, where the actual coordinate system corresponding to the laser marking machine is the mechanical coordinate system of the laser marking machine in the actual environment. A conversion matrix is ​​set between the image coordinate system of the dot matrix image and the actual coordinate system. Through the conversion matrix, each matrix point in the image coordinate system can be mapped to the actual coordinate system, and the coordinate data of each matrix point in the actual coordinate system is the laser marking point.

[0077] In a feasible implementation manner, the step of adjusting the galvanometer to a target posture corresponding to the laser marking point includes steps S21 to S24:

[0078] Step S21, determining the target posture based on the laser marking point;

[0079] Step S22, when there is a posture difference between the current posture of the galvanometer and the target posture, generating a deflection parameter of the galvanometer based on the posture difference;

[0080] Step S23, generating a control signal of a driving motor of the galvanometer based on the deflection parameter;

[0081] Step S24: sending the control signal to the drive motor, and adjusting the galvanometer to the target posture through the drive motor.

[0082] Exemplarily, for the above-mentioned laser marking point, the target position of the galvanometer corresponding to the laser marking point can be determined first, wherein the galvanometer can guide the laser to irradiate the corresponding laser marking point at the target point. For example, the laser marking machine can calculate the target posture (i.e., the deflection angle of the galvanometer) to guide the laser to irradiate the above-mentioned laser marking point through a pre-set geometric formula. If there is a posture difference between the current posture of the galvanometer and the target posture, the deflection parameter of the galvanometer, i.e., the deflection angle, is generated according to the posture difference. A control signal of the drive motor of the galvanometer is generated according to the deflection parameter, such as the number of rotations of the drive motor shaft. Accordingly, the control signal is sent to the drive motor so that the drive motor adjusts the galvanometer to the target posture according to the control signal.

[0083] Reference Figure 2 , is a flow chart of a second embodiment proposed based on the first embodiment of the present application. For the same or similar contents as the above embodiment in this embodiment, please refer to the above introduction and will not be repeated hereafter. The steps of traversing the laser marking points include steps A10 to A20:

[0084] Step A10, dividing the laser marking points into local sets, wherein adjacent laser marking points will be divided into the same local set;

[0085] Step A20, for any local set to be marked in the local sets, after traversing the laser marking points in the local set to be marked in turn to form marking units, the local set to be marked closest to the local set to be marked is used as the next local set to be marked, wherein the local set to be marked is a local set that has not been marked.

[0086] It should be noted that in order to improve the overall marking speed, the sequence of laser marking points will be planned in the embodiment of the present application.

[0087] Exemplarily, each laser marking point is divided into each local set, wherein, when dividing, adjacent laser marking points will be divided into the same local set. Figure 3 As shown, Figure 3 is a pattern composed of various marking units in this application, Figure 3 The middle circles are the marking units, and the marking units in the dotted boxes are one of the local sets.

[0088] Since the labeling process of each local set is similar, one of the local sets will be taken as an example for explanation.

[0089] Exemplarily, for any local set to be marked in each local set, the local set to be marked refers to a local set that has not been marked. After traversing the laser marking points in the local set to be marked in sequence to form a marking unit, the local set to be marked closest to the local set to be marked is used as the next local set to be marked, until the local sets to be marked in each local set are traversed.

[0090] The present application provides a laser marking device, referring to Figure 4 , applied to a laser marking machine, the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source, and the laser marking device includes:

[0091] A generating module 10, for receiving a marking image, and generating laser marking points on the object to be marked based on the marking image;

[0092] An adjustment module 20, for adjusting the galvanometer to a target posture corresponding to any one of the laser marking points;

[0093] The control module 30 is used to control the laser source to emit laser, and guide the laser to irradiate the laser marking point to form a marking unit through the galvanometer in the target posture, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

[0094] Optionally, the control module 30 is further used for:

[0095] Controlling the laser source to emit laser light for a preset duration;

[0096] The distance between the focus of the laser and the laser marking point is controlled by the focusing mirror so that the distance between the focus and the laser marking point is consistent with a preset defocus amount.

[0097] Optionally, the control module 30 is further used for:

[0098] Searching for a target defocus amount corresponding to the size of the two-dimensional code from a first preset mapping table, and using the target defocus amount as the preset defocus amount;

[0099] A target duration corresponding to the material property of the object to be marked and the preset defocus amount is searched in a second preset mapping table, and the target duration is used as the preset duration.

[0100] Optionally, the generating module 10 is further used for:

[0101] Converting the marked image into a dot matrix image;

[0102] Each matrix point in the dot matrix image is mapped to an actual coordinate system corresponding to the laser marking machine, wherein the coordinate data of each matrix point in the actual coordinate system is each laser marking point.

[0103] Optionally, the adjustment module 20 is further used for:

[0104] Determining the target posture based on the laser marking points;

[0105] In the case where there is a posture difference between the current posture of the galvanometer and the target posture, generating a deflection parameter of the galvanometer based on the posture difference;

[0106] generating a control signal of a drive motor of the galvanometer based on the deflection parameter;

[0107] The control signal is sent to the drive motor, and the galvanometer is adjusted to the target posture by the drive motor.

[0108] Optionally, the laser marking device further includes a scheduling module 40, and the scheduling module 40 is used to:

[0109] Dividing the laser marking points into local sets, wherein adjacent laser marking points are divided into the same local set;

[0110] For any local set to be marked in the local sets, after traversing the laser marking points in the local set to be marked in turn to form marking units, the local set to be marked closest to the local set to be marked will be used as the next local set to be marked, wherein the local set to be marked is a local set that has not been marked.

[0111] The laser marking device provided in the present application adopts the laser marking method in the above embodiment, aiming to solve the technical problem that the minimum marking unit of the current laser marking machine is too large to mark objects or patterns of smaller sizes, thereby limiting the application scenarios of the laser marking machine. Compared with the prior art, the beneficial effects of the laser marking device provided in the embodiment of the present application are the same as the beneficial effects of the laser marking method provided in the above embodiment 1, and the other technical features of the laser marking device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0112] The present application provides an electronic device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the laser marking method in the above-mentioned embodiment 1.

[0113] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0114] like Figure 5As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0115] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0116] The electronic device provided by the present application adopts the laser marking method in the above embodiment, which can solve the technical problem that the minimum marking unit of the current laser marking machine is too large and cannot mark objects or patterns of smaller sizes, thereby limiting the application scenarios of the laser marking machine. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the laser marking method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0117] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0119] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the laser marking method in the above-mentioned embodiment.

[0120] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0121] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0122] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: receives a marking image, and generates laser marking points on the object to be marked based on the marking image; for any one of the laser marking points, adjusts the galvanometer to a target posture corresponding to the laser marking point; controls the laser source to emit laser, and guides the laser to irradiate the laser marking point through the galvanometer in the target posture to form a marking unit, wherein, after traversing the laser marking points, the marking units on the object to be marked form a pattern corresponding to the marking image.

[0123] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0126] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned laser marking method, and can solve the technical problem that the existing data display method is difficult to intuitively and clearly complete data visualization. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the laser marking method provided in the above-mentioned embodiment, and will not be repeated here.

[0127] The present application also provides a computer program product, including a computer program, which implements the steps of the laser marking method as described above when executed by a processor.

[0128] The computer program product provided in this application can solve the technical problem of laser marking. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the laser marking method provided in the above embodiment, which will not be repeated here.

[0129] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A laser marking method, characterized in that: Applied to a laser marking machine, the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source, and the laser marking method includes: Receiving a marking image, and generating laser marking points on the object to be marked based on the marking image; For any one of the laser marking points, adjusting the galvanometer to a target posture corresponding to the laser marking point; The laser source is controlled to emit laser, and the galvanometer in the target posture is used to guide the laser to irradiate the laser marking point to form a marking unit, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

2. The laser marking method according to claim 1, characterized in that: A focusing mirror is provided between the laser source and the galvanometer, and the step of controlling the laser source to emit laser light comprises: Controlling the laser source to emit laser light for a preset duration; The distance between the focus of the laser and the laser marking point is controlled by the focusing mirror so that the distance between the focus and the laser marking point is consistent with a preset defocus amount.

3. The laser marking method according to claim 2, characterized in that: The marking image is a two-dimensional code. Before the step of controlling the laser source to emit laser light, the method includes: Searching for a target defocus amount corresponding to the size of the two-dimensional code from a first preset mapping table, and using the target defocus amount as the preset defocus amount; A target duration corresponding to the material property of the object to be marked and the preset defocus amount is searched in a second preset mapping table, and the target duration is used as the preset duration.

4. The laser marking method according to claim 1, characterized in that: The step of generating laser marking points on the object to be marked based on the marking image comprises: Converting the marked image into a dot matrix image; Each matrix point in the dot matrix image is mapped to an actual coordinate system corresponding to the laser marking machine, wherein the coordinate data of each matrix point in the actual coordinate system is each laser marking point.

5. The laser marking method according to claim 1, characterized in that: The step of adjusting the galvanometer to a target posture corresponding to the laser marking point comprises: Determining the target posture based on the laser marking points; In the case where there is a posture difference between the current posture of the galvanometer and the target posture, generating a deflection parameter of the galvanometer based on the posture difference; generating a control signal of a drive motor of the galvanometer based on the deflection parameter; The control signal is sent to the drive motor, and the galvanometer is adjusted to the target posture by the drive motor.

6. The laser marking method according to claim 1, characterized in that: The steps of traversing the laser marking points include: Dividing the laser marking points into local sets, wherein adjacent laser marking points are divided into the same local set; For any local set to be marked in the local sets, after traversing the laser marking points in the local set to be marked in turn to form marking units, the local set to be marked closest to the local set to be marked will be used as the next local set to be marked, wherein the local set to be marked is a local set that has not been marked.

7. A laser marking device, characterized in that: Applied to a laser marking machine, the laser marking machine includes a laser source and a galvanometer for guiding the laser emitted by the laser source, and the laser marking device includes: A generating module, used for receiving a marking image, and generating laser marking points on the object to be marked based on the marking image; An adjustment module, for adjusting the galvanometer to a target posture corresponding to any one of the laser marking points; A control module is used to control the laser source to emit laser, and guide the laser to irradiate the laser marking point to form a marking unit through the galvanometer in the target posture, wherein after traversing each laser marking point, each marking unit on the object to be marked forms a pattern corresponding to the marking image.

8. An electronic device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the laser marking method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the laser marking method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the laser marking method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Laser lattice code printing method

    CN101100138A

  • Laser marking machine control method and device

    CN104999812A

  • Laser marking machine and marking method thereof

    CN108436283A

  • Laser marking method, system and equipment and storage medium

    CN112692440A

  • Laser marking method and device, terminal equipment and storage medium

    CN117245225A

Cited By

  • Control optimization method and system of battery combination cover plate laser marking equipment

    CN120587682A