A laser marking machine and a control method thereof
Patent Information
- Application Number
- CN202511456368.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-13
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2045-10-13
AI Technical Summary
[0003]然而,上述方式在进行打标时,可能会存在移动路径迂回的现象,特别是对于复杂图案,若打标区域过于分散则可能会出现大量不必要的往返移动,且会使得激光在多行之间多次往返移动,会增加无效行程时间,降低打标效率
本发明将图像拆分为多条图像线条,并将图像线条区分为打标区域和非打标区域,从而确定了需要进行激光刻蚀的位置,在此基础上,对每个图像线条中最靠近两端的打标区域进行定位,分别定义为第一区域和第二区域。通过确定第一区域和第二区域靠近端部的一侧是否存在非打标区域确定激光的起始速度和结束速度。最后,结合第一速度、第二速度和最大移动速度生成效率最优的打标方案。激光根据效率最优的打标方案进行移动,显著提升了打标效率与稳定性。
Smart Images

Figure CN120962150B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of laser welding technology, specifically relating to a laser marking machine and its control method. Background Technology
[0002] Laser marking machines are devices used for high-precision marking or engraving on material surfaces. Traditional laser marking machines suffer from inefficiency when there are gaps in the pattern; the traditional line-by-line marking path traverses these ineffective areas. To improve the efficiency of laser marking machines, existing technologies have proposed solutions, such as Chinese patent document CN113634905A, which discloses a laser marking control method, device, and computer storage medium. This method proposes dividing the pattern to be marked into multiple line segments. After identifying the first and second line segments in the same line, if the distance between them exceeds a threshold, the nearest third line segment in the next line is prioritized as the next marking target, avoiding jumping across gaps. This strategy, combined with inter-line priority scheduling logic and conditional judgment mechanisms, significantly optimizes the path sequence and improves overall marking efficiency.
[0003] However, the above method may result in a detour in the movement path when marking, especially for complex patterns. If the marking area is too dispersed, there may be a lot of unnecessary back-and-forth movement, and the laser will move back and forth between multiple rows, which will increase the invalid travel time and reduce the marking efficiency. Summary of the Invention
[0004] To address the aforementioned problems, this invention provides a laser marking machine and its control method, thereby resolving the issues present in the background art.
[0005] To achieve the aforementioned objectives, this invention proposes a laser marking machine control method, comprising: The conversion module acquires the input first label image and converts the first label image into a second label image based on the print resolution; The segmentation module divides the second label image into multiple parallel image lines, and divides the image lines into labeled areas and unlabeled areas; The positioning module locates the marking areas closest to both ends of the image lines, and defines them as the first area and the second area, respectively; The analysis module determines the first speed and the second speed based on whether the unmarked area exists on the side of the first region and the second region away from each other's ends; The maximum moving speed of the laser is obtained based on the equipment parameters. The non-marking area between the first area and the second area is defined as the third area, and the marking area is defined as the fourth area. The marking scheme with the highest efficiency is generated based on the maximum moving speed, the first speed, and the second speed. The control module adjusts the laser movement speed and performs marking in the first to fourth regions based on the marking scheme.
[0006] Further, determining the first speed and the second speed includes the following steps: Both the first speed and the second speed include a starting speed and an ending speed. If there is no unmarked area on the side of the first region away from the end of the second region, the starting speed is defined as the speed of the laser when it accelerates to the end of the first region near the end of the second region with a first acceleration, based on the length of the first region. An initial speed is calculated based on the length of the first region, such that the laser decelerates from the initial speed with the first acceleration until it reaches the end of the first region away from the end of the second region. The initial speed is defined as the ending speed. If there is no unmarked area on the side of the second region away from the end of the first region, the starting speed and the ending speed under the second speed are calculated based on the length of the second region. If the unmarked area exists on the side of the first region or the second region away from each other's ends, the corresponding starting velocity and ending velocity are calculated based on the length of the unmarked area and the second acceleration, wherein the second acceleration is greater than the first acceleration.
[0007] Furthermore, generating the most efficient marking scheme includes the following steps: In the second label image, select the image line located in the first row and define the ends on both sides as the first starting point and the second starting point, respectively. Generate a first movement scheme for laser to move and mark starting from the first starting point and a second movement scheme for laser to move and mark starting from the second starting point. Calculate the first duration and the second duration required for laser to mark based on the first movement scheme and the second movement scheme, respectively. Define the movement scheme with the smaller value between the first duration and the second duration as the marking scheme with the highest efficiency.
[0008] Furthermore, generating the first movement scheme in which the laser begins to move and mark from the first starting point includes the following steps: Based on the first starting point, the direction of laser movement in the image line is determined, and the corresponding starting velocity and ending velocity are obtained according to the direction of movement. The ends of the third region are numbered from smallest to largest along the direction of movement. Starting from the direction of laser movement, the laser is accelerated in the third region based on the second acceleration on the basis of the initial speed to obtain the laser movement speed at the end of each third region, which is defined as the base speed. The length required to reduce the base speed to the end speed with the second acceleration is calculated and defined as the first length. The length of the third region after the end is defined as the second length. The end with the second length less than the first length and the largest number is located and defined as the first point. The end with the position adjacent to the first point and the number less than the first point is defined as the second point. A third site is located between the first site and the second site, wherein the second length corresponding to the third site is the same as the first length corresponding to the second site; In the first movement scheme, before the second position, the laser accelerates with the second acceleration in each of the third regions; between the second position and the third position, the laser moves at a constant speed with the base speed at the second position; after the third position, the laser decelerates with the second acceleration in each of the third regions; and in each of the fourth regions, the laser moves at a constant speed with the base speed at which it entered the fourth region.
[0009] Furthermore, if variable speed movement is performed in the first region or the second region, and the length of the first region and the second region exceeds the limit length, then the starting speed and the ending speed are calculated based on the limit length, and uniform movement is performed at the starting speed and the ending speed in the portion of the first region and the second region that exceeds the limit length.
[0010] Furthermore, if the speed is accelerated to the maximum speed in the third region, the acceleration stops and the movement continues at a constant speed until the third position is reached.
[0011] Further, dividing the image lines into marked and unmarked areas includes the following steps: The second label image is divided into etched points and non-etched points. The etched points are the positions where the laser needs to irradiate and etch. Adjacent etched points are merged into the marking area, and adjacent non-etched points are merged into the non-marking area.
[0012] Furthermore, the control module includes a first clock signal and a second clock signal, the signal interval of the second clock signal being less than that of the first clock signal. It locates the etching points in the image lines, calculates the first time point at which the laser reaches each etching point based on the marking scheme, locates the clock signal in the first clock signal that is closest to but later than the first time point, calculates the deviation value between the second time point of the clock signal and the first time point, locates a trigger signal in the second clock signal based on the deviation value and the signal interval of the second clock signal, and performs laser emission based on the trigger signal.
[0013] The present invention also provides a laser marking machine, which is used to implement the above-described method, the system comprising: The conversion module acquires the input first label image and converts the first label image into a second label image based on the print resolution. The segmentation module divides the second label image into multiple parallel image lines, and divides the image lines into labeled areas and unlabeled areas; The positioning module locates the marking areas closest to both ends of the image lines, which are defined as the first area and the second area, respectively. The analysis module determines a first speed and a second speed based on whether the non-marking area exists on the side of the first region and the second region away from each other. It obtains the maximum moving speed of the laser based on the device parameters, defines the non-marking area between the first region and the second region as a third region, and defines the marking area as a fourth region. Based on the maximum moving speed, the first speed and the second speed, it generates the marking scheme with the highest efficiency. The control module adjusts the laser movement speed and performs marking in the first to fourth regions based on the marking scheme.
[0014] The beneficial effects of this invention are as follows: This invention divides an image into multiple image lines, and further distinguishes these lines into marked and unmarked areas to determine the locations requiring laser etching. Based on this, the marked areas closest to both ends of each image line are located and defined as the first and second regions, respectively. The starting and ending speeds of the laser are determined by identifying whether unmarked areas exist on the end side of both the first and second regions. Finally, the first speed, the second speed, and the maximum moving speed are combined to generate the most efficient marking scheme. The laser moves according to this optimal marking scheme, significantly improving marking efficiency and stability. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating the steps of a laser marking machine control method according to the present invention; Figure 2 This is a schematic diagram illustrating the principle of dividing the first and second regions in this invention; Figure 3 This is a schematic diagram illustrating the principle of setting a length limit in this invention. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0017] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are used only to distinguish one element from another. For example, without departing from the scope of this application, a first script may be referred to as a second script, and similarly, a second script may be referred to as a first script.
[0018] like Figure 1 As shown, a laser marking machine control method includes: S1: The conversion module obtains the first label image as input and converts it into a second label image based on the print resolution.
[0019] By converting the first label image into a second label image, the image resolution is matched to that of the laser marking machine, avoiding image distortion or blurring. This can be achieved through interpolation algorithms, such as bilinear interpolation or cubic interpolation, which are existing technologies and will not be described here.
[0020] S2: The segmentation module divides the second label image into multiple parallel image lines, and then divides the image lines into labeled and unlabeled areas.
[0021] Specifically, dividing the image lines into marked and unmarked areas includes the following steps: The second label image is divided into etched points and non-etched points. The etched points are the locations where the laser needs to irradiate and etch. Adjacent etched points are merged into a marking area, and adjacent non-etched points are merged into a non-marking area.
[0022] For example, a row of pixels in the second label image is treated as an image line. Then, the etched and non-etched points of each image line are determined. Etched points are pixels with color texture in the pattern, i.e., the points that need to be illuminated by the laser during the actual marking process. Non-etched points are blank points, such as pixels belonging to the background color in the pattern. Finally, adjacent etched points are merged into a marking area, and adjacent non-etched points are merged into a non-marking area. Figure 2 In the image lines shown, the shaded areas are marked areas, and the unshaded areas are unmarked areas.
[0023] S3: The positioning module locates the marking areas closest to both ends of the image lines, which are defined as the first area and the second area, respectively.
[0024] S4: The analysis module determines the first speed and the second speed based on whether there is an unmarked area on the side of the first region and the second region that is far from each other's ends.
[0025] In this embodiment, the first velocity and the second velocity are calculated based on the following method: Both the first speed and the second speed include a starting speed and an ending speed. If there is no unmarked area on the side of the first region away from the end of the second region, the speed of the laser when it is at zero speed and accelerates with the first acceleration to the point where the first region is close to the end of the second region is calculated based on the length of the first region. This speed is defined as the starting speed. An initial speed is calculated based on the length of the first region, and the laser decelerates from this initial speed with the first acceleration until it reaches zero when it reaches the point where the first region is away from the end of the second region. This initial speed is defined as the ending speed. If there is no unmarked area on the side of the second region away from the end of the first region, the starting speed and the ending speed under the second speed are calculated based on the length of the second region.
[0026] If there is an unmarked area on the side of the first or second region away from each other's ends, the corresponding starting and ending velocities are calculated based on the length of the unmarked area and the second acceleration, where the second acceleration is greater than the first acceleration.
[0027] like Figure 2 As shown, in the image line, the marked area A1 is located at the leftmost end of the image line, and is the marked area closest to the end on the left. Therefore, marked area A1 is defined as the first area, and marked area A2 is the marked area closest to the right end. Therefore, marked area A2 is defined as the second area. Marked area A1 is at the leftmost end of the image line, and there is no unmarked area on its left side (the side away from the end of the second area). There is an unmarked area on the right side of marked area A2. In this embodiment, both the first speed and the second speed include a starting speed and an ending speed. The first speed corresponds to the left side of the image line, and the second speed corresponds to the right side of the image line. The following is an example of the process of obtaining the first speed. The first speed includes the starting speed and the ending speed. For the starting speed, assuming the laser moves from left to right, the laser speed at the leftmost end of the image line is 0. A first acceleration and a second acceleration are preset, with the first acceleration being less than the second acceleration. Since the leftmost side is the marking area, the laser must accelerate within this area. Acceleration is performed using the first acceleration, resulting in a process of marking while accelerating. Therefore, a smaller acceleration is used to ensure smooth marking as much as possible. The values of the first and second accelerations are preset according to the equipment parameters.
[0028] After determining the first region, that is Figure 2 After determining the length of the marking area A1, it can be calculated that, with an initial velocity of 0, the laser moves with a first acceleration to the end of the first area near the second area. Figure 2 At position B1, the laser will accelerate to a certain speed, which is defined as the initial speed under the first speed.
[0029] When the laser moves from right to left, it needs to decelerate in the marking area A1. At this time, it is necessary to calculate the initial velocity of the laser at B1, and decelerate the initial velocity with the first acceleration. When it reaches the left edge of the marking area A1, the initial velocity just drops to 0. The initial velocity and the final velocity can be obtained by the calculation formula of acceleration and displacement. This is the prior art, and the calculation process will not be given in the embodiment.
[0030] Figure 2 If there is a non-marked area to the right of the marked area, the principle for calculating the starting and ending speeds is the same as above. If the laser moves from right to left, it is necessary to calculate the starting speed at position B2 when the laser accelerates with the second acceleration. If the laser moves from left to right, it is necessary to calculate the initial speed required at position B2, i.e., the ending speed, when the laser decelerates with the second acceleration.
[0031] S5: Based on the equipment parameters, obtain the maximum moving speed of the laser, define the non-marking area between the first and second areas as the third area, and define the marking area as the fourth area. Generate the marking scheme with the highest efficiency based on the maximum moving speed, the first speed and the second speed.
[0032] S6: The control module adjusts the laser movement speed and performs marking in the first to fourth zones based on the marking scheme.
[0033] If the laser's movement speed is too fast, the laser irradiation time will be too short, failing to effectively etch the material surface. Therefore, the maximum movement speed needs to be determined based on the laser's emission power. The specific calculation method is based on existing technology and will not be described here. Next, the non-marking area between the first and second regions is defined as the third region, and the marking area between the first and second regions is defined as the fourth region. A marking scheme with the highest efficiency is generated using the first speed, the second speed, and the maximum movement speed. The marking scheme includes the laser's movement direction in each image line and its movement speed from the first region to the fourth region. The marking scheme improves efficiency by maximizing the movement speed to shorten the marking time. The specific calculation process will be described later. Finally, the control module controls the laser's movement on the material surface based on the generated marking scheme to perform etching and marking.
[0034] This invention first divides an image into multiple image lines, and then distinguishes these lines into marked and unmarked areas to determine the locations requiring laser etching. Based on this, the marked areas closest to both ends of each image line are located and defined as the first and second regions, respectively. The starting and ending speeds of the laser are determined by checking whether there are unmarked areas on the end side of both the first and second regions. Finally, the optimal marking scheme is generated by combining the first speed, the second speed, and the maximum moving speed. This invention, through precise division and dynamic speed adjustment, improves marking efficiency without ineffective back-and-forth motion, significantly enhancing both marking efficiency and stability.
[0035] In this embodiment, generating the most efficient marking scheme includes the following steps: In the second label image, select the image line located in the first row and define the two ends of it as the first starting point and the second starting point, respectively. Generate a first movement scheme for laser to move and mark starting from the first starting point and a second movement scheme for laser to move and mark starting from the second starting point. Calculate the first duration and the second duration required for laser to mark based on the first movement scheme and the second movement scheme, respectively. Define the movement scheme with the smaller value between the first duration and the second duration as the marking scheme with the highest efficiency.
[0036] In laser marking, the movement typically begins from either the upper left or upper right corner of the image. Therefore, in the second label image, the first line is positioned, with its two ends defined as the upper left and upper right corners, respectively, and thus the first and second starting points. If the laser marks from the first starting point, it moves from left to right in the first line and from right to left in the second line. Conversely, if it marks from the second starting point, it moves from right to left in the first line and from left to right in the second line. Because of the different directions of movement, the starting and ending speeds used to generate the subsequent movement scheme will also differ, resulting in different times required to complete the movement scheme. Therefore, starting from the first starting point generates the first movement scheme, and starting from the second starting point generates the second movement scheme.
[0037] The first and second movement schemes include whether the laser accelerates or moves at a constant speed in each region. In this embodiment, the speed change process only involves constant speed motion and uniformly accelerated motion. Therefore, the time required for the laser to pass through each pattern line can be calculated, and the total time required to complete the first movement scheme, i.e., the first duration, and the total time required to complete the second movement scheme, i.e., the second duration, can be calculated. In this embodiment, the movement scheme is selected with the highest movement efficiency as the goal. Therefore, the movement scheme with the smaller value between the first duration and the second duration is selected as the marking scheme with the highest efficiency.
[0038] In this embodiment, generating a first movement scheme for laser marking starting from a first starting point includes the following steps: The direction of laser movement in the image lines is determined based on the first starting point, and the corresponding starting and ending velocities are obtained according to the direction of movement.
[0039] The ends of the third region are numbered from smallest to largest along the direction of movement. Starting from the direction of laser movement, the laser is accelerated in the third region based on the initial velocity and the second acceleration. The laser movement velocity at the end of each third region is obtained and defined as the base velocity. The length required to reduce the base velocity to the end velocity with the second acceleration is calculated and defined as the first length. The length of the third region after the end is defined as the second length. The end with the second length less than the first length and the largest number is located and defined as the first point. The end with the position adjacent to the first point and the number less than the first point is defined as the second point.
[0040] Based on the previous introduction, the direction of laser movement in each subsequent image line can be determined by whether the laser moves from the first starting point or the second starting point. Then, the starting speed and ending speed at both ends under the moving direction can be obtained. For example, if the laser moves from left to right in the image line, the starting speed is extracted from the first speed calculated in advance for that image line, and the ending speed is extracted from the second speed.
[0041] Continue to refer to Figure 2 Assuming the laser moves from left to right, each end in the third region is sequentially numbered 1, 2, 3, 4, 5, and 6. To ensure the stability of laser etching, the laser moves at a constant speed in the fourth region, that is, in... Figure 2 The laser moves at a constant speed between ends 2 and 3, between ends 4 and 5, and between end 6 and position B2. This area is the marking area, and the constant speed movement ensures the marking accuracy of the laser. Since the initial speed, i.e. the speed of the laser at position B1, has been calculated, and the laser is accelerated with the second acceleration in the third region, the maximum speed that the laser can reach at the end of each third region can be calculated. For example, for end 2, the acceleration time is calculated based on the length of the third region between ends 1 and 2, the second acceleration, and the initial speed. Multiplying the acceleration time by the second acceleration and adding it to the initial speed gives the base speed at end 2. When calculating end 4, the base speed at end 2 is used as the starting speed, and the base speed when the laser moves to end 4 can be calculated.
[0042] For end 2, calculate the length required to decelerate its base velocity to the final velocity using the second acceleration, define this as the first length, and then obtain the length of the remaining third region after end 2. Figure 2 The sum of the lengths of ends 3 and 4, and ends 5 and 6, is defined as the second length. If the second length is greater than or equal to the first length, it means that there is still enough length after end 2 to reduce the base velocity to the final velocity, and acceleration can continue in the next third region. If the second length is less than the first length, it indicates that there is not enough length after end 2 to reduce the base velocity to the final velocity, meaning that continuous acceleration between ends 1 and 2 is not possible. Assuming that the second length of end 4 is less than the first length, end 4 is defined as the first point. Since the number of end 2 is adjacent to end 4 and less than end 4, end 3 is defined as the second point.
[0043] A third site is located between the first and second sites, and the second length corresponding to the third site is the same as the first length corresponding to the second site.
[0044] In the first movement scheme, before the second position, the laser accelerates with a second acceleration in each third region. Between the second and third positions, the laser moves at a constant speed with the base speed at the second position. After the third position, the laser decelerates with a second acceleration in each third region. In each fourth region, the laser moves at a constant speed with the base speed when it enters the fourth region.
[0045] Then, a third site is located between the first and second sites. In this embodiment, the third site is located based on the following steps, referring to... Figure 2 First, the base velocity of the second point is obtained, which is the base velocity of end 3. Then, the first length required to decelerate this base velocity to the final velocity using the second acceleration is calculated. Based on this first length, the third point is located between ends 3 and 4. The remaining length of the third region at the third point is the same as the first length. That is, when decelerating at the third point using the base velocity at end 3, the final velocity is reached at end 6. At this point, the movement scheme of the image line is generated. Figure 2 The position at point Z is the third point. Therefore, the final movement pattern is as follows: before end point 1, accelerate with the first acceleration; between end points 1 and 2, accelerate with the second acceleration; between end point 2 and the third point Z, move at a constant speed using the base speed of end point 2; between the third point Z and end point 4, decelerate with the second acceleration; between end points 4 and 5, move at a constant speed using the base speed of end point 4; between end points 5 and 6, decelerate with the second acceleration; between end point 6 and position B2, move at a constant speed using the base speed of end point 6; and after position B2, decelerate with the first acceleration.
[0046] By repeating the above process, the movement scheme of each image line can be obtained, and then the overall movement scheme corresponding to the first starting point can be obtained, that is, the first movement scheme.
[0047] In particular, in this embodiment, if the length of the non-marked area is short, for example, less than the set critical threshold, then acceleration or deceleration will not be performed to avoid frequent speed changes.
[0048] In this embodiment, if variable speed movement is performed in the first region or the second region, and the length of the first region and the second region exceeds the limit length, the starting speed and the ending speed are calculated based on the limit length, and uniform speed movement is performed in the part of the first region and the second region that exceeds the limit length at the starting speed and the ending speed.
[0049] By setting a limited length, the duration of variable-speed movement in the first and second regions is restricted, preventing the laser from affecting etching accuracy due to prolonged variable-speed movement within the marking area. Figure 3As shown, if the length of the first region A3 is too long, exceeding the limit length (the portion between the first region A3 and position D1), then acceleration only occurs within the limit length. The portion exceeding the limit length moves at a constant initial speed, which is the speed at which it accelerated to position D1, until it reaches the right end of the first region A3. Similarly, if the length of the second region A4 exceeds the limit length... Figure 3 The middle part is the portion between position D2 and the right end of the second region A4. When calculating the end velocity, the limit length is used as a parameter for calculation. Between the left end of the second region A4 and position D2, the laser moves at a constant speed with the end velocity.
[0050] In this embodiment, if the speed is accelerated to the maximum in the third region, the acceleration is stopped and the vehicle moves at a constant speed until it reaches the third position.
[0051] This step helps prevent the unmarked area from becoming too long, which could cause the laser speed to exceed the maximum moving speed.
[0052] In this embodiment, the control module includes a first clock signal and a second clock signal. The signal interval of the second clock signal is smaller than that of the first clock signal. It locates the etching points in the image lines, calculates the first time point when the laser reaches each etching point based on the marking scheme, locates the clock signal in the first clock signal that is closest to but later than the first time point, calculates the deviation value between the second time point and the first time point of the clock signal, locates the trigger signal in the second clock signal based on the deviation value and the signal interval of the second clock signal, and performs laser emission based on the trigger signal.
[0053] To improve the accuracy of the marking position when the laser moves at varying speeds within the marking area, this invention proposes the following method. First, two clock circuits are set up in the marking equipment. These circuits generate a first clock signal and a second clock signal, respectively. The first clock signal serves as a reference clock, used during uniform-speed marking. The time interval between adjacent high levels in the first clock signal is a first value, and the time interval between adjacent high levels in the second clock signal is a second value. For example, the first value is 10 μs, and the second value is less than the first value, being 1 μs. Then, based on the selected movement scheme, the first time point at which the laser reaches each etching point is determined. The high level in the first clock signal that is closest to but later than the first time point is located; this is defined as the first high level. The deviation between the second time point where the first high level is located and the first time point is calculated. For example, if the deviation is 5 μs, a trigger signal is located in the second clock signal. The trigger signal is a second high level in the second clock signal that is 5 times later than the first high level. During subsequent marking, when this second high level is reached, the equipment is controlled to emit the laser.
[0054] In the above technical solution, the uniformity of the laser pulse is ensured by the first clock signal. During the uniform speed process, the first clock signal can be referenced to uniformly etch the workpiece surface, ensuring that the edges of images and text are clear and without distortion. The second clock signal provides a more detailed time resolution and realizes compensation for minute speed changes.
[0055] The present invention also provides a laser marking machine, which is used to implement the above-described method, the system comprising: The conversion module acquires the input first label image and converts it into a second label image based on the print resolution. The segmentation module divides the second label image into multiple parallel image lines, and then divides the image lines into labeled and unlabeled regions. The positioning module locates the marking areas closest to both ends of the image lines, which are defined as the first area and the second area, respectively. The analysis module determines the first speed and the second speed based on whether there is a non-marking area on the side of the first region and the second region away from each other. It obtains the maximum moving speed of the laser based on the equipment parameters, defines the non-marking area between the first region and the second region as the third region, and defines the marking area as the fourth region. It generates the marking scheme with the highest efficiency based on the maximum moving speed, the first speed and the second speed. The control module adjusts the laser movement speed and performs marking in the first to fourth zones based on the marking scheme.
[0056] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0057] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this patent should be determined by the appended claims.
[0058] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A control method for a laser marking machine, characterized in that, include: The conversion module acquires the input first label image and converts the first label image into a second label image based on the print resolution; The segmentation module divides the second label image into multiple parallel image lines, and divides the image lines into labeled areas and unlabeled areas; The positioning module locates the marking areas closest to both ends of the image lines, and defines them as the first area and the second area, respectively; The analysis module determines a first speed and a second speed based on whether the non-marking area exists on the side of the first region and the second region away from each other. It obtains the maximum moving speed of the laser based on the equipment parameters, defines the non-marking area between the first region and the second region as a third region, and defines the marking area as a fourth region. Based on the maximum moving speed, the first speed and the second speed, it generates the marking scheme with the highest efficiency. Determining the first speed and the second speed includes the following steps: Both the first speed and the second speed include a starting speed and an ending speed. If there is no unmarked area on the side of the first region away from the end of the second region, the starting speed is defined as the speed of the laser when it accelerates to the end of the first region near the end of the second region with a first acceleration, based on the length of the first region. An initial speed is calculated based on the length of the first region, such that the laser decelerates from the initial speed with the first acceleration until it reaches the end of the first region away from the end of the second region. The initial speed is defined as the ending speed. If there is no unmarked area on the side of the second region away from the end of the first region, the starting speed and the ending speed under the second speed are calculated based on the length of the second region. If the unmarked area exists on the side of the first region or the second region away from each other's ends, the corresponding starting velocity and ending velocity are calculated based on the length of the unmarked area and the second acceleration, wherein the second acceleration is greater than the first acceleration. The control module adjusts the laser movement speed and performs marking in the first to fourth regions based on the marking scheme.
2. The method according to claim 1, characterized in that, The steps to generate the most efficient marking scheme are as follows: In the second label image, select the image line located in the first row and define the ends on both sides as the first starting point and the second starting point, respectively. Generate a first movement scheme for laser to move and mark starting from the first starting point and a second movement scheme for laser to move and mark starting from the second starting point. Calculate the first duration and the second duration required for laser to mark based on the first movement scheme and the second movement scheme, respectively. Define the movement scheme with the smaller value between the first duration and the second duration as the marking scheme with the highest efficiency.
3. The method according to claim 2, characterized in that, The first moving scheme for generating a laser to move and mark starting from the first starting point includes the following steps: Based on the first starting point, the direction of laser movement in the image line is determined, and the corresponding starting velocity and ending velocity are obtained according to the direction of movement. The ends of the third region are numbered from smallest to largest along the direction of movement. Starting from the direction of laser movement, the laser is accelerated in the third region based on the second acceleration on the basis of the initial speed to obtain the laser movement speed at the end of each third region, which is defined as the base speed. The length required to reduce the base speed to the end speed with the second acceleration is calculated and defined as the first length. The length of the third region after the end is defined as the second length. The end with the second length less than the first length and the largest number is located and defined as the first point. The end with the position adjacent to the first point and the number less than the first point is defined as the second point. A third site is located between the first site and the second site, wherein the second length corresponding to the third site is the same as the first length corresponding to the second site; In the first movement scheme, before the second position, the laser accelerates with the second acceleration in each of the third regions; between the second position and the third position, the laser moves at a constant speed with the base speed at the second position; after the third position, the laser decelerates with the second acceleration in each of the third regions; and in each of the fourth regions, the laser moves at a constant speed with the base speed at which it entered the fourth region.
4. The method according to claim 3, characterized in that, If variable speed movement is performed in the first region or the second region, and the length of the first region and the second region exceeds the limit length, then the starting speed and the ending speed are calculated based on the limit length, and uniform speed movement is performed at the starting speed and the ending speed in the portion of the first region and the second region that exceeds the limit length.
5. The method according to claim 4, characterized in that, If the maximum moving speed is accelerated in the third region, the acceleration is stopped and the maximum moving speed is maintained at a constant speed until the third position is reached.
6. The method according to claim 1, characterized in that, Dividing the image lines into marked and unmarked areas includes the following steps: The second label image is divided into etched points and non-etched points. The etched points are the positions where the laser needs to irradiate and etch. Adjacent etched points are merged into the marking area, and adjacent non-etched points are merged into the non-marking area.
7. The method according to claim 6, characterized in that, The control module includes a first clock signal and a second clock signal, the signal interval of the second clock signal being smaller than that of the first clock signal. It locates the etching points in the image lines, calculates the first time point when the laser reaches each etching point based on the marking scheme, locates the clock signal in the first clock signal that is closest to but later than the first time point, calculates the deviation value between the second time point of the clock signal and the first time point, locates a trigger signal in the second clock signal based on the deviation value and the signal interval of the second clock signal, and performs laser emission based on the trigger signal.
8. A laser marking machine for implementing the method as described in any one of claims 1-7, characterized in that, The device includes: The conversion module acquires the input first label image and converts the first label image into a second label image based on the print resolution. The segmentation module divides the second label image into multiple parallel image lines, and divides the image lines into labeled areas and unlabeled areas; The positioning module locates the marking areas closest to both ends of the image lines, which are defined as the first area and the second area, respectively. The analysis module determines the first speed and the second speed based on whether the unmarked area exists on the side of the first region and the second region furthest from each other. The maximum moving speed of the laser is obtained based on the equipment parameters. The non-marking area between the first area and the second area is defined as the third area, and the marking area is defined as the fourth area. The marking scheme with the highest efficiency is generated based on the maximum moving speed, the first speed, and the second speed. Determining the first speed and the second speed includes the following steps: Both the first speed and the second speed include a starting speed and an ending speed. If there is no unmarked area on the side of the first region away from the end of the second region, the starting speed is defined as the speed of the laser when it accelerates to the end of the first region near the end of the second region with a first acceleration, based on the length of the first region. An initial speed is calculated based on the length of the first region, such that the laser decelerates from the initial speed with the first acceleration until it reaches the end of the first region away from the end of the second region. The initial speed is defined as the ending speed. If there is no unmarked area on the side of the second region away from the end of the first region, the starting speed and the ending speed under the second speed are calculated based on the length of the second region. If the unmarked area exists on the side of the first region or the second region away from each other's ends, the corresponding starting velocity and ending velocity are calculated based on the length of the unmarked area and the second acceleration, wherein the second acceleration is greater than the first acceleration. The control module adjusts the laser movement speed and performs marking in the first to fourth regions based on the marking scheme.
Citation Information
Patent Citations
Laser marking control method and device and computer storage medium
CN113634905A
Laser marking method and system
CN108340077A
Control method for high-speed printing and high resolution of laser marker and laser marker
JP2004216392A
