Laser printing control method, device and system
By performing Taylor processing on the coordinate values of the printed point in the laser galvanometer scanning system, a simplified mapping function is obtained, which solves the problem of complex mapping function calculation in the prior art, and improves the efficiency and accuracy of laser printing.
Patent Information
- Application Number
- CN202410801053.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the existing laser galvanometer scanning system, the mapping function of the established target printing point to the laser galvanometer motor value is complex to calculate, resulting in the computer being unable to complete accurate printing in a short time, and the printing efficiency is inefficient.
By performing Taylor processing on the coordinate value of any printed point on the printing plane, a simplified mapping function is obtained, and the laser galvanometer motor control value is calculated instead of the original mapping function, reducing the calculation complexity and improving printing efficiency.
While achieving accurate printing, it significantly improves printing efficiency and ensures printing accuracy while reducing calculation complexity.
Smart Images

Figure CN118617866B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser printing, and in particular to a laser printing control method, device and system. Background Art
[0002] Generally, the laser galvanometer scanning system controls the deflection of multiple laser galvanometers to realize the printing of patterns on the printing plane after the laser beam is reflected by multiple laser galvanometers. Figure 1 As shown, it includes a plane focusing mirror, laser galvanometers X, Y, respective driving motors and a computer (not shown in the figure), the plane focusing mirror is used to focus the light beams reflected by the laser galvanometers X, Y onto the printing plane; the laser galvanometers X, Y are respectively connected to their respective driving motors and deflect under the action of their respective driving motors, and their driving motors convert the corresponding binary digital quantities into their respective corresponding motor values through their respective analog-to-digital converters; the computer is respectively connected to the respective driving motors of the laser galvanometers X, Y, and controls the deflection of the laser galvanometers according to the respective motor values of the driving motors.
[0003] During the operation of the laser galvanometer scanning system, the laser galvanometers X and Y scan along the X-axis and Y-axis respectively. The laser beam is incident on the laser galvanometer X parallel to the X-axis, and is reflected to the laser galvanometer Y by the action of the laser galvanometer X. It is further reflected by the action of the laser galvanometer Y, and the laser beam is focused to the printing plane by the plane focusing mirror, so that the pattern is printed on the printing plane. When the laser beam is focused to the printing plane by the reflection of the laser galvanometers X and Y, the printing pattern is formed in the printing plane by controlling the deflection of the laser galvanometers X and Y.
[0004] In the prior art, accurate printing of the laser galvanometer scanning system is achieved by establishing a mapping function between the printing point and the laser galvanometer motor value. However, the mapping function between the target printing point and the laser galvanometer motor value established by the mapping function is complex in calculation, which makes it impossible for the computer to complete the accurate printing of the target pattern in a short time, and the printing efficiency is low. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a laser printing control method, which performs Taylor processing on the mapping function between the printing point and the laser galvanometer motor value through the coordinate value of any printing point on the printing plane to obtain a simplified mapping function corresponding to the printing point, and uses the corresponding simplified mapping function to replace the original mapping function to calculate the laser galvanometer motor control value, thereby reducing the calculation complexity, achieving accurate printing of the target pattern, and improving printing efficiency.
[0006] In one embodiment, the present invention provides a laser printing control method, comprising the steps of:
[0007] S1: Get a printing point in the printing plane as the origin;
[0008] S2A: Taylor processing is performed on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; based on the simplified mapping function between the origin and the laser galvanometer motor value, the laser galvanometer motor control value of the origin is calculated;
[0009] S3: Control the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
[0010] Furthermore, the method further comprises the steps of:
[0011] S2B: Determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all printing points in the printing area; calculate the standard value of the laser galvanometer motor for all printing points in the printing area according to the mapping function between the printing point and the laser galvanometer motor value;
[0012] S2C: Calculate the laser galvanometer motor control values of all printing points in the printing area according to the simplified mapping function between the origin of the printing area and the laser galvanometer motor value;
[0013] S2D: Determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold; if not, reduce the preset distance D and return to step S2B; if yes, execute step S3.
[0014] Furthermore, when the judgment in step S2D is yes, the method further executes the steps:
[0015] S2E: Determine whether the corresponding laser galvanometer motor control values have been calculated for all printing points in the printing plane; if so, execute step S3; if not, execute the following steps:
[0016] S2F: determine a preliminary origin adjacent to the origin at a preset distance D;
[0017] S2G: With the preparation origin not involved in the calculation of the laser galvanometer motor control value as the center and the preset distance D as the side length, multiple square preparation printing areas adjacent to the printing area are determined, and all printing points in each preparation printing area are determined;
[0018] S2I: Replace the origins one by one with the prepared origins, use the prepared printing area as the printing area, and then return to step S2A.
[0019] Furthermore, after executing step S2G, the method further executes the following steps:
[0020] S2H: Determine whether the coordinates of all printing points in the pre-printing area are within the printing plane; if so, execute step S2I; if not, execute step 2J: intercept the area within the printing plane as the pre-printing area, and then execute step S2I.
[0021] Furthermore, in the method, in step S2D, four boundary points on the diagonal of the square printing area are selected to determine whether the errors between the laser galvanometer motor control values corresponding to the four boundary points and the laser galvanometer motor standard values are all less than a boundary threshold.
[0022] Furthermore, the boundary threshold is (1, 1).
[0023] Furthermore, the origin is the center point of the printing plane.
[0024] In one embodiment, the present invention further provides a laser printing control device, comprising:
[0025] An acquisition module, used for acquiring a printing point in the printing plane as an origin;
[0026] A calculation module is used to perform Taylor processing on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; and calculate the laser galvanometer motor control value of the origin according to the simplified mapping function between the origin and the laser galvanometer motor value;
[0027] The control module is used to control the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
[0028] Furthermore, in the control device,
[0029] The acquisition module is further used to determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all printing points in the printing area;
[0030] The calculation module is further used to calculate the standard values of the laser galvanometer motors for all the printing points in the printing area according to the mapping function between the printing points and the laser galvanometer motor values; and to calculate the laser galvanometer motor control values for all the printing points in the printing area according to the simplified mapping function between the origin of the printing area and the laser galvanometer motor values;
[0031] The control module is also used to determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold, and control the laser galvanometer to perform deflection printing according to the determination result.
[0032] In one embodiment, the present invention also provides a laser printing control system, including a laser galvanometer, a motor connected to the laser galvanometer, and a controller connected to the motor, wherein the controller is used to control the laser galvanometer to perform deflection printing according to the laser printing control method described in the above embodiment.
[0033] In the present invention, each printing point on the printing plane is calculated by using a simplified mapping function obtained after Taylor processing of the printing point instead of the original mapping function. The simplified mapping function does not need to perform complex calculations such as trigonometric functions, inverse trigonometric functions, and root opening, which reduces the calculation complexity and improves the printing efficiency. Moreover, the error between the motor control value calculated by the calculation and the motor standard value obtained by the original mapping function is very small, which reduces the calculation complexity while ensuring the printing accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a structural schematic diagram of a laser printing control system in the prior art;
[0035] Figure 2 A comparison diagram of laser scanning distortion effects in one embodiment;
[0036] Figure 3 A schematic diagram of a flow chart of a laser printing control method in one embodiment;
[0037] Figure 4 A schematic diagram of printing area division in one embodiment;
[0038] Figure 5 FIG. 4 is a schematic diagram of the structure of a laser printing control device in an embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0040] In the conventional technology, the accurate printing of the laser galvanometer scanning system is realized by establishing the mapping function between the printing point and the laser galvanometer motor value. The mapping function between the printing point and the laser galvanometer deflection angle and the mapping function between the laser galvanometer deflection angle and the laser galvanometer motor value are first established, and then the mapping function between the printing point and the laser galvanometer motor value is obtained according to the mapping function between the printing point and the laser galvanometer deflection angle and the mapping function between the laser galvanometer deflection angle and the laser galvanometer motor value.
[0041] Specifically, the process of establishing the mapping function between the printing point and the laser galvanometer motor value is as follows:
[0042] It can be understood that in a laser scanning system, when the laser beam is irradiated to the printing plane, the laser beam is reflected after passing through the laser galvanometer X, and is reflected twice after passing through the laser galvanometer Y. When the laser beam is irradiated to any printing point (x, y) on the printing plane after the second reflection, the scanning trajectory of the laser beam on the plane can be obtained. Among them, (x, y) represents the coordinate value of any printing point on the plane when the laser beam passes through the laser galvanometers X and Y. In general, when the laser galvanometers X and Y are deflected along their axes respectively Angle, the corresponding laser beam will shift accordingly ω x ,ω y , so when the angle between the outgoing light of the laser beam after secondary reflection by the laser galvanometer X and Y and the Z axis is θ, it can be concluded that:
[0043] cos(θ)=cos(ω x )·cos(ω y )
[0044] θ=arccos(cos(ω x )·cos(ω y ))
[0045] Furthermore, the angle between the projection of the outgoing light on the printing plane and the X-axis is set to θ x , the angle between it and the Y axis is θ y ,but:
[0046]
[0047] Specifically, in the laser galvanometer scanning system, the laser beam after secondary reflection by the galvanometer is focused by a plane focusing mirror, and the plane focusing mirror can make the transmitted laser beam be focused on the same plane after being reflected to any printing point on the plane. In this embodiment, the plane focusing mirror adopts an f-θ lens. For the f-θ lens, it has the following fixed offset formula:
[0048] R=f·θ
[0049] Among them, f represents the effective focal length of the plane focusing mirror, R represents the offset distance of the outgoing light, and θ represents the angle between the outgoing light and the Z axis, that is, the offset angle of the outgoing light.
[0050] Therefore, when the laser beam passes through the laser galvanometer X and Y and irradiates the coordinate value of any printing point on the printing plane as (x, y), it can be obtained that:
[0051]
[0052] Therefore, it can be concluded that:
[0053] but:
[0054] Likewise,
[0055]
[0056] Therefore, it can be concluded that:
[0057] but:
[0058] Therefore, the mapping function between the printing point and the deflection angle of the laser galvanometer is as follows:
[0059]
[0060] In addition, in the laser scanning system, the driving motor controls the deflection of the galvanometer mirror by converting the corresponding binary digital quantity into the corresponding motor value through the respective analog-to-digital converter. In fact, the laser galvanometer mirror controls the deflection of the laser galvanometer mirror by setting the corresponding motor value. The deflection angle of the laser galvanometer mirror completely corresponds to the motor value. Specifically, the motor value of the laser galvanometer mirror is represented by the dac value of its corresponding sensor. The dac range of the galvanometer mirror is 0X000-0X ffff. When the dac value is 0X8000, the deflection angle of the laser galvanometer mirror is 0; when the offset angle of the outgoing light beam is ω, the deflection angle of the laser galvanometer mirror is
[0061] Therefore, the mapping function between the laser galvanometer deflection angle and the corresponding laser galvanometer motor value can be obtained as follows:
[0062]
[0063] Therefore, according to the mapping function between the printing point and the laser galvanometer deflection angle, and the mapping function between the laser galvanometer deflection angle and the laser galvanometer motor value, the mapping function between the printing point and the laser galvanometer motor value is established as follows:
[0064]
[0065] Among them, dacx and dacy represent the motor values of the laser galvanometer X and Y respectively, and x and y are the coordinate values of any printing point respectively. They represent the deflection angles of the X and Y galvanometers respectively, and f represents the effective focal length of the lens.
[0066] Therefore, when the laser scanning system needs to irradiate the laser beam at a certain printing point on the printing plane, the deflection angle of the laser galvanometer and the corresponding motor standard value can be obtained according to the mapping function between the printing point and the laser galvanometer motor value established above, and the laser galvanometer can be controlled to deflect by the obtained motor value, thereby achieving accurate printing of the laser beam. Figure 2 As shown, the square pattern in the outer frame in the left figure is the original pattern. Due to the pincushion distortion, the square area in the pincushion area is the maximum printable square area when the laser beam is scanned. In the right figure, after the distortion correction is performed by the mapping function between the print point and the laser galvanometer motor value established above, the square pattern in the outer frame is the maximum printable area when the laser beam is scanned, achieving accurate printing of the original pattern. However, in actual work, the computer usually updates the print point position information every 10us for the galvanometer control, and the mapping function established above requires complex calculations such as trigonometric functions, inverse trigonometric functions, and root opening, which are difficult for the controller to complete within 10us.
[0067] Therefore, in order to achieve accurate printing of the laser beam while reducing the computational complexity, please refer to Figure 3 , this embodiment provides a laser printing control method, comprising the steps of:
[0068] S1: Get a printing point in the printing plane as the origin;
[0069] S2A: Taylor processing is performed on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; based on the simplified mapping function between the origin and the laser galvanometer motor value, the laser galvanometer motor control value of the origin is calculated;
[0070] S3: Control the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
[0071] In order to reduce errors and improve accuracy, in this embodiment, after obtaining the above mapping function, when the laser beam is scanning, a printing point on the printing plane is obtained as the origin, and the mapping function between the printing point and the laser galvanometer motor value is Taylor processed according to the coordinate value of the origin on the printing plane to obtain a simplified mapping function corresponding to each origin. The controller obtains the motor control value corresponding to the origin according to the simplified mapping function, and uses the motor control value to control the deflection of the laser galvanometer, thereby reducing the computational complexity and improving the printing efficiency. The origin is any printing point in the printing plane.
[0072] Understandably, by applying Taylor processing to the binary function f(x,y), we can obtain:
[0073]
[0074] Specifically, after obtaining the mapping function between the printing point and the laser galvanometer motor value, when a printing point needs to be accurately printed on the printing plane, the mapping functions corresponding to the laser galvanometers X and Y are Taylor processed according to the coordinate value of the printing point. For example, the following mapping function of the laser galvanometer X is Taylor processed:
[0075]
[0076] Optionally, assuming that the coordinate value (x0, y0) of the printing point obtained on the working plane is (100, 100), and the effective focal length f of the plane focusing mirror is set to 500, by taking partial derivatives of the above mapping function of the laser galvanometer X, it can be obtained that:
[0077] f(100,100)=32896.3598 f' x (100,100)=92.96949884
[0078] f' y (100,100) = -1.263188260 f" xx (100,100)=-0.0006255424112
[0079] f” yy (100,100)=-0.01252373439f” xy (100,100)=-0.01303561354
[0080] The specific method of calculating partial derivatives is an existing technology and will not be described here. After obtaining the above partial derivative results, substitute the above partial derivative results into the mapping function of the laser galvanometer X to obtain the simplified function of the mapping function of the laser galvanometer X after Taylor processing at the printing point (100, 100) as follows:
[0081] dacx=32896.35988+92.96949884(x-100)
[0082] -1.263188260(y-100)-0.0003127712056(x-100) 2
[0083] -0.006261867193(y-100) 2 -0.01203561354(x-100)(y-100)
[0084] Similarly, when the coordinate value (x0, y0) of the printing point obtained on the printing plane is (100, 100) and the effective focal length f of the plane focusing mirror is 500, Taylor processing is performed on the following mapping function of the laser galvanometer Y:
[0085]
[0086] The correction function of the mapping function of the laser galvanometer Y after Taylor processing at the printing point (100, 100) is as follows:
[0087] dacy=32514.42925+2.556529904(x-100)
[0088] +94.86018674(y-100)+0.01360006309(x-100) 2
[0089] -0.0003106112591(y-100) 2 +0.02512817160(x-100)(y-100)
[0090] In this embodiment, a simplified mapping function corresponding to the printing point obtained when the printing point coordinates are (100, 100) is given. Each printing point on the printing plane is calculated by using the simplified mapping function obtained after Taylor processing of the printing point instead of the original mapping function. The simplified mapping function obtained does not need to perform complex calculations such as trigonometric functions, inverse trigonometric functions, and root opening, which reduces the calculation complexity and improves printing efficiency. Moreover, the error between the motor control value calculated and the motor standard value obtained by the original mapping function is very small, which reduces the calculation complexity while ensuring the printing accuracy.
[0091] Furthermore, the mapping function between the origin and the laser galvanometer motor value is Taylor processed according to the coordinate value of each origin, which reduces the calculation complexity of the mapping function while ensuring the printing accuracy. However, the solution requires Taylor processing for each printing point in the printing plane, and the amount of calculated data is large.
[0092] Therefore, in order to further reduce the amount of data calculated when Taylor processing is performed on each printing point, in this embodiment, the printing area is further divided outward with the origin as the center, and all printing points in each printing area whose errors are less than the boundary threshold use the simplified mapping function corresponding to the center point to replace the simplified mapping function of all printing points in the area, thereby further reducing the amount of data calculated. In addition, the error between the motor control value calculated using the simplified mapping function and the corresponding motor standard value is very small, thereby ensuring the printing accuracy. Therefore, in this embodiment, in order to further reduce the amount of data calculated while ensuring the printing accuracy and reducing the calculation complexity, further refer to Figure 3 The present invention provides a laser printing control method, which further includes the steps of:
[0093] S2B: Determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all the printing points in the printing area; calculate the standard values of the laser galvanometer motors of all the printing points in the printing area according to the mapping function between the printing points and the laser galvanometer motor values;
[0094] Specifically, after obtaining a printing point on the printing plane as the origin, the mapping function between the printing point and the laser galvanometer motor value is Taylor processed with the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value. In order to further reduce the amount of calculated data, the printing plane is divided into multiple printing areas with the origin as the center and expanded outward. Specifically, in the present embodiment, after obtaining the coordinate value of the origin, a square printing area is divided with a preset distance D as the side length based on the origin as the center. Specifically, when determining the printing area for the first time, a preset distance D is initially set, and the square printing area is determined with the initially set preset distance D as the side length. Among them, the initially set preset distance D can be preliminarily set according to the different accuracy requirements for different occasions and the density of the center point taken, and is not limited here.
[0095] Specifically, the origin is preferably the center point of the printing plane. Using the center point of the printing plane to divide the printing plane into multiple printing areas can more quickly determine multiple printing areas with the center point as the origin, further reducing the amount of calculation data. Figure 4 , taking the center point (100, 100) of the printing plane as the origin and an initially set preset distance 40 as the side length, a corresponding square printing area is determined. At the same time, after determining the square printing area divided by the origin as the center point, all printing points in the square printing area are determined.
[0096] Furthermore, after dividing a square printing area with a preset distance D as the side length based on the origin as the center, the standard value of the laser galvanometer motor corresponding to all the printing points in the printing area is calculated according to the mapping function between the printing points and the laser galvanometer motor values. It can be understood that the standard value of the laser galvanometer is an ideal value that can achieve accurate printing of the laser beam on the printing plane, and accurate printing of the laser beam can be achieved based on the standard value of the laser galvanometer.
[0097] S2C: Calculate the laser galvanometer motor control values of all printing points in the printing area according to the simplified mapping function between the origin of the printing area and the laser galvanometer motor value;
[0098] Further references Figure 4, taking the center point (100, 100) as the origin and a preset distance 40 as the side length to determine a square printing area, Taylor processing the mapping function according to the coordinate value of the center point (100, 100) to obtain a simplified mapping function corresponding to the center point (100, 100). At the same time, all the printing points of the square printing area are determined, and all the printing points of the square printing area use the simplified mapping function corresponding to the center point (100, 100) to calculate the laser galvanometer motor control value corresponding to each printing point. It can be understood that the laser galvanometer motor control value is an actual value calculated based on the simplified mapping function obtained according to the center point, and the error between the above ideal value and the actual value is used to determine whether the divided printing area is within the allowable error range.
[0099] S2D: Determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold; if not, reduce the preset distance D and return to step S2B; if yes, execute step S3;
[0100] Specifically, after dividing a square printing area, the laser galvanometer motor standard value and the laser galvanometer motor control value of all printing points in the printing area are calculated respectively by the original mapping function and the simplified processing function after Taylor processing of the center point coordinate value, and it is determined whether the errors of the laser galvanometer motor standard value and the laser galvanometer motor control value are both less than a boundary threshold. If so, it means that the printing area divided by the preset distance D is reasonable, that is, the error between the motor control value and the motor standard value corresponding to all printing points in the printing area is within the allowable range, and the preset distance D is also reasonable. Therefore, when determining the printing area of the next round, the preset distance D corresponding to the printing area with the error currently determined to be within the allowable range is used to further divide the printing area of the next round. At the same time, when the error between the motor control value and the motor standard value corresponding to all printing points in the printing area determined in this round is within the allowable range, the laser galvanometer motor control values of all printing points in the printing area are stored, and the laser galvanometer deflection printing can be controlled according to the stored laser galvanometer motor control values of all printing points.
[0101] It can be understood that in order to further reduce the amount of calculated data, optionally, in this step S2D, four boundary points on the diagonal of the square printing area can be selected, and by judging whether the errors between the laser galvanometer motor control values corresponding to the four boundary points and the laser galvanometer motor standard values are all less than a boundary threshold, it can be determined whether the errors between the laser galvanometer motor control values corresponding to all the printing points in the printing area and the laser galvanometer motor standard values are all within the allowable range.
[0102] Furthermore, when it is determined that the error between the laser galvanometer motor control value corresponding to the four boundary points and the laser galvanometer motor standard value is not less than a boundary threshold, it means that the divided printing area is unreasonable, and the errors of some printing points in the printing area are not within the allowable range. At this time, it is necessary to adjust the preset distance D and re-divide the printing area. Specifically, reduce the preset distance D, return to execute step S2B, take the origin as the center point, re-divide the printing area with the reduced preset distance D, and re-compare the motor standard value and motor control value of all printing points in the printing area until their errors are less than a boundary threshold. Among them, it can reduce the preset distance D according to actual experience, or it can be reduced one by one in an arithmetic progression, and it can be adjusted according to actual conditions, which is not limited here.
[0103] Further, when it is determined that the errors between the laser galvanometer motor control values corresponding to the four boundary points and the laser galvanometer motor standard values are all less than a boundary threshold, it means that the divided printing area is reasonable. At this time, the errors of all printing points in the printing area are within the allowable range. At this time, S3 is executed to control the laser to deflect and print according to the calculated laser galvanometer motor control values corresponding to the printing points. Figure 4 , taking the center point (100, 100) as the origin and a preset distance 40 as the side length, determine a square printing area with the X and Y coordinate value intervals in the range of [80-120]. At this time, determine the four boundary points (80, 80), (120, 80), (80, 120), (120, 120) on the diagonal of the printing area. Taking the above-mentioned boundary point (120, 120) as an example, according to the simplified mapping function corresponding to its center point (100, 100), the motor control value obtained is (43893.27304, 442A9.80231), and according to the original mapping function, the motor standard value obtained is (43892.69464, 44220.88400), and the error is very small, so it is reasonable to divide the above-mentioned printing area with the preset distance 40 in this round. Preferably, its boundary threshold can be (1, 1).
[0104] Furthermore, when the step S2D is judged to be yes, the method further executes the steps:
[0105] S2E: Determine whether the corresponding laser galvanometer motor control values have been calculated for all printing points in the printing plane; if so, execute step S3; if not, execute the following steps:
[0106] S2F: determine a preliminary origin adjacent to the origin at a preset distance D;
[0107] Specifically, when it is determined that the errors between the laser galvanometer motor control values and the laser galvanometer motor standard values of all printing points in the printing area are less than a boundary threshold, it means that the divided printing area is reasonable, and the laser galvanometer motor control values corresponding to all printing points in the printing area have been stored. At this time, step S3 can be executed to control the laser galvanometer to deflect and print with the laser galvanometer motor standard values corresponding to the printing points, and then S2E can be executed at the same time to further determine whether all printing points in the printing plane have calculated their corresponding laser galvanometer motor control values; or when it is determined that the errors between the laser galvanometer motor control values and the laser galvanometer motor standard values of all printing points in the printing area are less than a boundary threshold, S3 is not executed, and S2E is continued to be executed, and the overall printing is performed after it is determined that all printing points in the printing plane have calculated their corresponding laser galvanometer motor control values.
[0108] Furthermore, when it is determined that all the printing points in the printing plane have not yet calculated the corresponding laser galvanometer motor control values, it means that there are other printing points in the printing plane that have not been printed. At this time, enter S2F, and further determine the preliminary origin adjacent to the origin according to the preset distance D determined in the previous round to continue dividing the preliminary printing area for the next round. Among them, when the printing area divided according to the preset distance D is reasonable, it means that the printing area determined by the current round is reasonable, and the final adjusted preset distance D is reasonable. At this time, when determining the printing area for the next round, the preset distance D determined after the final adjustment of the current round is used to determine multiple preliminary origins adjacent to the origin. Further refer to Figure 4 In the above example, when the printing area is first determined, the printing area divided by the preset distance 40 with the origin (100, 100) as the center point is reasonable. Therefore, in the next round, the four preliminary origins (60, 100), (100, 60), (140, 100), and (100, 140) adjacent to the center point (100, 100) are determined by the preset distance 40 determined after the final adjustment of the current round, and the corresponding preliminary printing areas are continued to be divided by these multiple preliminary origins.
[0109] S2G: With the preparation origin not involved in the calculation of the laser galvanometer motor control value as the center and the preset distance D as the side length, multiple square preparation printing areas adjacent to the printing area are determined, and all printing points in each preparation printing area are determined;
[0110] Specifically, when multiple preliminary origins adjacent to the origin are determined, a preliminary origin that does not participate in the calculation of the laser galvanometer motor control value is further obtained, and multiple square preliminary printing areas adjacent to the printing area are determined with the preliminary origin that does not participate in the calculation of the laser galvanometer motor control value as the center and the preset distance D determined above as the side length, and all printing points in each preliminary printing area are determined. It can be understood that the preset distance D here is the preset distance D corresponding to the printing area with an error within a reasonable range determined previously, and further refer to Figure 4 , with the four preparation origins (60, 100), (100, 60), (140, 100), (100, 140) adjacent to the center point (100, 100), if the aforementioned are not involved in the calculation of the laser galvanometer motor control value, at this time, the four preparation origins are respectively taken as the center, and the preset distance 40 corresponding to the printing area with the error determined last time within a reasonable range is taken as the side length, and four preparation printing areas adjacent to the printing area with X and Y coordinate value intervals in the range of [80-120] are determined. When (60, 100) is further taken as the origin and multiple preparatory origins adjacent to (60, 100) are determined with a preset distance 40, since the adjacent preparatory origin (100, 100) has been involved in the calculation of the laser galvanometer motor control value, the adjacent (100, 100) is no longer selected as the preparatory origin. Only other preparatory origins that have not participated in the calculation of the galvanometer motor control value are selected as the center, and multiple other adjacent preparatory printing areas are determined with the preset distance D as the side length.
[0111] S2I: Replace the origins one by one with the prepared origins, use the prepared printing area as the printing area, and then return to step S2A.
[0112] Specifically, after determining multiple square preparatory printing areas adjacent to the printing area, the origins are replaced by the preparatory origins one by one, and the preparatory printing areas are used as the printing areas. The process then returns to step S2A, and a corresponding simplified mapping function is performed based on the coordinate value of the origin in the printing area. The laser galvanometer motor control values of all printing points in the printing area are determined based on the corresponding simplified mapping function. It is determined whether the errors of the laser galvanometer motor control values corresponding to all printing points in the printing area are within the boundary threshold, and the corresponding steps are looped based on the judgment results to complete the calculation and print.
[0113] Furthermore, in this embodiment, the method further performs the steps of:
[0114] S2H: Determine whether the coordinates of all printing points in the pre-printing area are within the printing plane; if so, execute step S2I; if not, execute step 2J: intercept the area within the printing plane as the pre-printing area, and then execute step S2I.
[0115] Specifically, after determining a plurality of adjacent pre-printing areas, it is further determined whether the coordinates of all printing points in the pre-printing areas are within the printing plane. Figure 4 If the determined pre-printing area is a printing area with an X coordinate value of [80-120] and a Y coordinate value of [120-160], it means that the coordinates of all printing points in the pre-printing area are within the printing plane. At this time, S2I is executed, the origin is replaced by the pre-printing origin, and the pre-printing area is used as the printing area. Return to execute S2A, and Taylor processing is performed on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin again to obtain a simplified mapping function between the origin and the laser galvanometer motor value. The laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are further calculated, and it is determined whether their errors are all less than a boundary threshold to determine whether the error of the printing area is within the allowable range, until it is determined that all printing points in the printing plane have calculated the corresponding laser galvanometer motor control value. At this time, it can be understood that in this round, the preset distance D will be further re-determined according to whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the determined printing range are all less than a boundary threshold, and the printing area of the next round will be divided by the re-determined preset distance D; if the determined preliminary printing area is a printing area with an X coordinate value of [160-200] and a Y coordinate value of [80-120], at this time, some of the printing points in the preliminary printing area exceed the printing plane, indicating that some of the printing points exceeding the printing plane do not need to be printed, and step 2J is executed at this time: the area within the printing plane is intercepted as the preliminary printing area, and then step S2I is executed;
[0116] Specifically, when it is determined that some printing points in a certain pre-printing area exceed the printing plane, it means that some printing points exceeding the printing plane do not need to be printed. At this time, the area within the printing plane is intercepted as the pre-printing area, and step S2I is executed. The original origin is replaced by the center point of the pre-printing area as the pre-origin, and the pre-printing area is used as the printing area. Then return to execute S2A, and Taylor process the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value, and further calculate the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area, and determine whether their errors are all less than a boundary threshold to determine whether the error of the printing area is within the allowable range, until it is determined that all printing points in the printing plane have calculated the corresponding laser galvanometer motor control value.
[0117] In the above embodiment, the printing plane is divided into multiple printing areas with each printing point as the center point, and each printing area divided by a preset distance D is re-determined in each round according to whether the errors between the laser galvanometer motor control values and the laser galvanometer motor standard values of all printing points in the printing area are less than a boundary threshold. Therefore, the errors between the laser galvanometer motor control values and the laser galvanometer motor standard values of all printing points in each printing area determined in each round are less than a boundary threshold. Therefore, in each printing area, the simplified mapping function after Taylor processing of its center point is used to replace the original mapping function for approximate calculation, that is, the original mapping function of the printing point and the laser galvanometer motor value is expanded in sections to form multiple different section functions in different printing areas, and the error between the laser galvanometer motor control value calculated by the simplified mapping function corresponding to the center point of all printing points in each printing area and the laser galvanometer motor standard value calculated by the original mapping function is very small. Therefore, the present invention further replaces the original complex mapping function with each section function, thereby reducing the error and improving the printing accuracy while greatly reducing the amount of calculated data, thereby further improving the printing efficiency.
[0118] Based on the same inventive concept, in one embodiment, Figure 5 The present invention also provides a laser printing control device, comprising:
[0119] An acquisition module 51 is used to acquire a printing point in the printing plane as an origin;
[0120] A calculation module 52 is used to perform Taylor processing on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; and calculate the laser galvanometer motor control value of the origin according to the simplified mapping function between the origin and the laser galvanometer motor value;
[0121] The control module 53 is used to control the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
[0122] Furthermore, the acquisition module 51 is also used to determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all printing points in the printing area;
[0123] The calculation module 52 is further used to calculate the laser galvanometer motor standard value of all printing points in the printing area according to the mapping function between the printing point and the laser galvanometer motor value; and calculate the laser galvanometer motor control value of all printing points in the printing area according to the simplified mapping function between the origin of the printing area and the laser galvanometer motor value;
[0124] The control module 53 is also used to determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold, and control the laser galvanometer to perform deflection printing according to the determination result.
[0125] In one embodiment, the present invention also provides a laser printing control system, including a laser galvanometer, a motor connected to the laser galvanometer, and a controller connected to the motor, wherein the controller is used to control the laser galvanometer to perform deflection printing according to the laser printing control method described in the above embodiment.
[0126] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, 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.
[0127] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A laser printing control method, characterized in that: Includes steps: S1: Get a printing point in the printing plane as the origin; S2A: Taylor processing is performed on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; according to the simplified mapping function between the origin and the laser galvanometer motor value, the laser galvanometer motor control value of the origin is calculated; wherein the laser galvanometer motor value is the motor DAC value corresponding to the laser galvanometer, and corresponds to the deflection angle of the laser galvanometer; S3: Controlling the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
2. The control method according to claim 1, characterized in that: Also includes the steps: S2B: Determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all printing points in the printing area; calculate the standard value of the laser galvanometer motor for all printing points in the printing area according to the mapping function between the printing point and the laser galvanometer motor value; S2C: Calculate the laser galvanometer motor control values of all printing points in the printing area according to the simplified mapping function between the origin of the printing area and the laser galvanometer motor value; S2D: Determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold; if not, reduce the preset distance D and return to step S2B; if yes, execute step S3.
3. The control method according to claim 2, characterized in that: When the step S2D is judged to be yes, the following steps are executed: S2E: Determine whether the corresponding laser galvanometer motor control values have been calculated for all printing points in the printing plane; if so, execute step S3; if not, execute the following steps: S2F: determine a preliminary origin adjacent to the origin at a preset distance D; S2G: With the preparation origin not involved in the calculation of the laser galvanometer motor control value as the center and the preset distance D as the side length, multiple square preparation printing areas adjacent to the printing area are determined, and all printing points in each preparation printing area are determined; S2I: Replace the origins one by one with the prepared origins, use the prepared printing area as the printing area, and then return to step S2A.
4. The printing control method according to claim 3, characterized in that: After executing step S2G, further execute the steps: S2H: Determine whether the coordinates of all printing points in the pre-printing area are within the printing plane; if so, execute step S2I; if not, execute step 2J: intercept the area within the printing plane as the pre-printing area, and then execute step S2I.
5. The control method according to any one of claims 2 to 4, characterized in that: In the step S2D, four boundary points on the diagonal of the square printing area are selected to determine whether the errors between the laser galvanometer motor control values corresponding to the four boundary points and the laser galvanometer motor standard values are all less than a boundary threshold.
6. The control method according to claim 5, characterized in that: The boundary threshold is (1, 1).
7. The control method according to claim 2, characterized in that: The origin is the center point of the printing plane.
8. A laser printing control device, characterized in that: include: An acquisition module, used for acquiring a printing point in the printing plane as an origin; A calculation module is used to perform Taylor processing on the mapping function between the printing point and the laser galvanometer motor value according to the coordinate value of the origin to obtain a simplified mapping function between the origin and the laser galvanometer motor value; according to the simplified mapping function between the origin and the laser galvanometer motor value, calculate the laser galvanometer motor control value of the origin; wherein the laser galvanometer motor value is a motor DAC value corresponding to the laser galvanometer, and corresponds to the deflection angle of the laser galvanometer; The control module is used to control the laser galvanometer to perform deflection printing according to the laser galvanometer motor control value.
9. The control device according to claim 8, characterized in that: The acquisition module is further used to determine a square printing area with the origin as the center and a preset distance D as the side length, and determine all printing points in the printing area; The calculation module is further used to calculate the laser galvanometer motor standard values of all printing points in the printing area according to the mapping function between the printing points and the laser galvanometer motor values; and calculating the laser galvanometer motor control values of all printing points in the printing area according to a simplified mapping function between the origin of the printing area and the laser galvanometer motor value; The control module is also used to determine whether the errors between the laser galvanometer motor control value and the laser galvanometer motor standard value of all printing points in the printing area are less than a boundary threshold, and control the laser galvanometer to perform deflection printing according to the determination result.
10. A laser printing control system, characterized in that: It comprises a laser galvanometer, a motor connected to the laser galvanometer and a controller connected to the motor, wherein the controller is used to control the laser galvanometer to perform deflection printing according to the laser printing control method according to any one of claims 1 to 7.
