A printing error correction method, electronic device and storage medium

By calculating the cumulative error compensation frequency reference coefficient of the inkjet printer's raster encoder, the printing pulse signal is adjusted to correct the printing error of the inkjet printer, solving the problem that the existing technology failed to effectively consider the cumulative error and achieving higher printing accuracy.

CN117021767BActive Publication Date: 2025-11-11JIN XIN TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310977975.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2025-11-11
Estimated Expiration
2043-08-04

AI Technical Summary

Technical Problem

Existing printing error correction technologies fail to effectively account for cumulative printing errors, resulting in significant printing errors in inkjet printers.

Method used

By acquiring the printing pulse signal output by the raster encoder, the frequency reference coefficient for cumulative error compensation is calculated, and the cumulative error compensation is calculated on the printing pulse signal based on this coefficient. Finally, the pulse signal of the raster encoder in the inkjet printer is adjusted to correct the printing error.

Benefits of technology

This improves the printing error correction effect of inkjet printers, thereby improving printing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117021767B_ABST
    Figure CN117021767B_ABST
Patent Text Reader

Abstract

This invention discloses a printing error correction method, electronic device, and storage medium. The method includes: acquiring a printing pulse signal output by a raster encoder; calculating a frequency reference coefficient for cumulative error compensation; calculating cumulative error compensation by performing cumulative error compensation calculation on the printing pulse signal according to the frequency reference coefficient; and adjusting the pulse signal of the raster encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer. The technical solution of this invention can improve the printing error correction effect of the inkjet printer, thereby improving the printing accuracy of the inkjet printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of inkjet printing technology, and in particular to a printing error correction method, electronic device and storage medium. Background Technology

[0002] With the continuous development of inkjet printing technology, people have higher requirements for the printing accuracy of inkjet printers.

[0003] Printing error correction technology requires evaluating printing errors using a frequency reference coefficient for cumulative error compensation. Based on the printing error value, adjustments are made to the inkjet printer to improve printing accuracy. Currently, the methods for obtaining the frequency reference coefficient for cumulative error compensation are typically integer direct division and frequency multiplication. Obtaining a relatively accurate frequency reference coefficient is crucial for determining a more precise printing error. This allows for the calculation of printing error compensation, which is then used to correct printing errors in the inkjet printer. Specifically, the integer direct division method obtains the raster ruler resolution and uses integer direct division to obtain the frequency division coefficient and frequency multiplication coefficient of the printing pulse signal. The frequency multiplication method obtains the raster ruler resolution and the target resolution, and uses frequency multiplication to obtain the frequency division coefficient and frequency multiplication coefficient of the printing pulse signal.

[0004] In the process of developing this invention, the inventors discovered that existing printing error correction technologies do not take into account cumulative printing errors, resulting in large printing errors. Summary of the Invention

[0005] This invention provides a printing error correction method, electronic device, and storage medium, which can improve the printing error correction effect of inkjet printers, thereby improving the printing accuracy of inkjet printers.

[0006] According to one aspect of the present invention, a method for correcting printing errors is provided, comprising:

[0007] Obtain the printing pulse signal output by the raster encoder;

[0008] Calculate the frequency reference coefficient for cumulative error compensation;

[0009] The cumulative error compensation is obtained by performing cumulative error compensation calculation on the printing pulse signal based on the frequency reference coefficient;

[0010] The pulse signal of the raster encoder in the inkjet printer is adjusted according to the cumulative error compensation to correct the printing error of the inkjet printer.

[0011] According to another aspect of the present invention, a printing error correction device is provided, comprising:

[0012] The print pulse signal acquisition module is used to acquire the print pulse signal output by the grating encoder;

[0013] The frequency reference coefficient calculation module is used to calculate the frequency reference coefficient for cumulative error compensation.

[0014] The cumulative error compensation calculation module is used to calculate the cumulative error compensation for the printing pulse signal based on the frequency reference coefficient;

[0015] The printing error correction module is used to adjust the pulse signal of the raster encoder in the inkjet printer according to the cumulative error compensation, so as to correct the printing error of the inkjet printer.

[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0017] At least one processor; and

[0018] A memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the printing error correction method according to any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the printing error correction method according to any embodiment of the present invention.

[0021] The technical solution of this invention first obtains the printing pulse signal output by the grating encoder, calculates the frequency reference coefficient for cumulative error compensation, then calculates the cumulative error compensation by performing cumulative error compensation on the printing pulse signal according to the frequency reference coefficient, and finally adjusts the pulse signal of the grating encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer. This solves the problem of poor printing error correction effect in existing printing error correction methods, improves the printing error correction effect of inkjet printers, and thus improves the printing accuracy of inkjet printers.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of a printing error correction method provided in Embodiment 1 of the present invention;

[0025] Figure 2 This is a flowchart of a printing error correction method provided in Embodiment 2 of the present invention;

[0026] Figure 3 This is a schematic diagram of an FPGA processing module in an inkjet printer according to Embodiment 2 of the present invention;

[0027] Figure 4 This is a schematic diagram of a printing pulse signal provided in Embodiment 2 of the present invention;

[0028] Figure 5 This is a flowchart of a pulse signal processing method based on an FPGA module provided in Embodiment 2 of the present invention;

[0029] Figure 6 This is a flowchart of another pulse signal processing method based on a high-speed pulse signal processing card provided in Embodiment 2 of the present invention;

[0030] Figure 7 This is a schematic diagram of a printing error correction device provided in Embodiment 3 of the present invention;

[0031] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0032] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "target," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0034] Example 1

[0035] Figure 1 This is a flowchart of a printing error correction method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where the pulse signal of the raster encoder in an inkjet printer is adjusted by calculating cumulative error compensation to correct printing errors in the inkjet printer. This method can be executed by a printing error correction device, which can be implemented by software and / or hardware, and is generally integrated into an electronic device, such as a printer. The present invention does not limit the specific type of electronic device. Accordingly, as... Figure 1 As shown, the method includes the following operations:

[0036] S110: Obtain the printing pulse signal output by the grating encoder.

[0037] The raster encoder can be a device used in inkjet printers to output printing pulse signals. The printing pulse signal can be generated by the raster encoder and is used for inkjet printing.

[0038] In this embodiment of the invention, the grating encoder can be either a grating ruler or an encoder; that is, the acquired printing pulse signal can be output by either the grating ruler or the encoder. As long as the printing pulse signal can be output, it is acceptable. This embodiment of the invention does not limit the specific type of grating encoder or the method of acquiring the printing pulse signal.

[0039] S120. Calculate the frequency reference coefficient for cumulative error compensation.

[0040] The cumulative error compensation can be a compensation parameter used to represent the error correction processing of the cumulative error of the printing pulse signal. The frequency reference coefficient can be a correlation coefficient used to calculate the cumulative error compensation of the printing pulse signal.

[0041] Accordingly, the frequency reference coefficient for cumulative error compensation of the printing pulse signal can be calculated based on the acquired printing pulse signal. The frequency reference coefficient can be either a frequency division coefficient or a frequency multiplication coefficient of the printing pulse signal.

[0042] For example, the resolution of the grating ruler can be obtained, and the frequency division coefficient and frequency multiplication coefficient of the printing pulse signal can be obtained by direct integer division. Assuming the resolution of the grating ruler is 25400 dpi, then by direct integer division, we can obtain 25400 / 2 = 12700.0000, 25400 / 3 = 8466.6667, ..., 25400 / 23 = 1104.3478, 25400 / 24 ​​= 1058.3333. The resolution closest to the target resolution of 1082.0 can be selected from these. Therefore, the frequency multiplication coefficient can be selected as 23, and the frequency division coefficient as 1104.

[0043] For example, the resolution of the grating ruler and the target resolution can also be obtained, and the frequency division coefficient and frequency multiplication coefficient of the printing pulse signal can be obtained through the frequency multiplication method. Assuming the resolution of the grating ruler is 25400 dpi and the target resolution is 1082 dpi, then the ratio of the grating ruler resolution to the target resolution can be 25400 / 1082 = 23.4750. Using the frequency multiplication method, the ratio can be 46.9501 for 2x, 70.4251 for 3x, ..., and 939.0018 for 40x. Therefore, 40 can be selected as the frequency multiplication coefficient for cumulative error compensation, and 939 can be selected as the frequency division coefficient for cumulative error compensation.

[0044] S130. The cumulative error compensation is obtained by performing cumulative error compensation calculation on the printing pulse signal according to the frequency reference coefficient.

[0045] In this embodiment of the invention, the printing error can be calculated based on the frequency division coefficient and the frequency multiplication coefficient of the printing pulse signal. Furthermore, the cumulative error compensation can be calculated using the printing error.

[0046] S140. Adjust the pulse signal of the raster encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer.

[0047] Accordingly, error compensation analysis can be performed on the cumulative error compensation obtained in the above steps. Based on the cumulative error compensation, the pulse signal of the raster encoder in the inkjet printer can be adjusted. For example, when the cumulative error compensation is empty, adjustment of the pulse signal of the raster encoder in the inkjet printer is prohibited. When the cumulative error compensation is a negative unit of print pulse signal, the pulse signal of the raster encoder in the inkjet printer is reduced by one unit. When the cumulative error compensation is a positive unit of print pulse signal, the pulse signal of the raster encoder in the inkjet printer is increased by one unit to correct the printing error of the inkjet printer and improve the printing accuracy.

[0048] The technical solution of this invention first obtains the printing pulse signal output by the grating encoder, calculates the frequency reference coefficient for cumulative error compensation, then calculates the cumulative error compensation by performing cumulative error compensation on the printing pulse signal according to the frequency reference coefficient, and finally adjusts the pulse signal of the grating encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer. This solves the problem of poor printing error correction effect in existing printing error correction methods, improves the printing error correction effect of inkjet printers, and thus improves the printing accuracy of inkjet printers.

[0049] Example 2

[0050] Figure 2 This is a flowchart of a printing error correction method provided in Embodiment 2 of the present invention. This embodiment is a specific embodiment based on the above embodiment, and provides several specific optional implementation methods for calculating cumulative printing error and cumulative error compensation. Accordingly, as... Figure 2 As shown, the method in this embodiment may include:

[0051] S210. Obtain the printing pulse signal output by the grating encoder.

[0052] S220. Calculate the frequency reference coefficient for cumulative error compensation.

[0053] In an optional embodiment of the present invention, the frequency reference coefficient may include a frequency doubling coefficient and a frequency division coefficient; the frequency reference coefficient for calculating cumulative error compensation may include: obtaining the grating ruler resolution and the target resolution; and calculating the frequency doubling coefficient and the frequency division coefficient based on the ratio of the grating ruler resolution to the target resolution.

[0054] The grating ruler resolution can be used to represent the pulse interval of the pulse signal transmitted by the grating ruler. The target resolution can be used to represent the pulse interval of the ideal inkjet printing pulse signal.

[0055] In this embodiment of the invention, the printing pulse signal output by the grating encoder is first acquired, and then the frequency reference coefficient for the cumulative error compensation of the printing pulse signal is calculated. Specifically, the grating ruler resolution and the target resolution can be acquired, and the frequency multiplication factor and frequency division factor are calculated based on the ratio of the grating ruler resolution to the target resolution.

[0056] In a specific example, the resolution of the grating ruler can be 25400 dpi, and the target resolution can be 1082 dpi. Therefore, the ratio of the grating ruler resolution to the target resolution is 25400 / 1082 = 23.4750. Using the frequency multiplication method, we can obtain a 2x ratio of 46.9501, a 3x ratio of 70.4251, ..., and a 40x ratio of 939.0018. Therefore, 40 can be selected as the frequency multiplication factor for cumulative error compensation. As for the frequency division coefficient used for cumulative error compensation, it is easy to understand that if 40 is chosen as the multiplication factor and 939 as the division factor, then the distance of a single multiplication can be 939 pulses, that is, 939*0.001=0.939mm. The theoretical printing distance can be (25400 / 1082)*40=0.9390018mm. The error of a single multiplication is 939-(25400 / 1082)*40=-0.0018 pulses, that is, -0.0000018mm.

[0057] S230. Calculate the single-pulse printing error of a single printing pulse signal based on the frequency reference coefficient.

[0058] In an optional embodiment, calculating the single-pulse printing error of a single printing pulse signal based on the frequency reference coefficient may include: obtaining the actual output coordinates of the current printing pulse signal; calculating the theoretical output coordinates of the current printing pulse signal based on the frequency multiplication factor, the frequency division factor, and the pulse signal number of the current printing pulse signal; and generating the single-pulse printing error of the current printing pulse signal based on the actual output coordinates and the theoretical output coordinates.

[0059] The actual output coordinates can be the actual position of the printing pulse signal output by the grating encoder. The pulse signal number can be a value obtained by counting the output pulses using an output pulse accumulator. The theoretical output coordinates can be the ideal position of the printing pulse signal output by the grating encoder. The single-pulse printing error can be the deviation between the ideal output coordinates and the actual output coordinates.

[0060] Correspondingly, the pulse signal number obtained from the output pulse accumulator can be used to obtain the actual output coordinates of the current printing pulse signal. The ideal output coordinates of the current printing pulse signal can be calculated based on the multiplication factor, the division factor, and the pulse signal number of the current printing pulse signal. Furthermore, the difference between the actual output coordinates and the theoretical output coordinates of the current printing pulse signal can be used as the single-pulse printing error of the current printing pulse signal.

[0061] In an optional embodiment, calculating the theoretical output coordinates of the current printing pulse signal based on the frequency multiplication factor, the frequency division factor, and the pulse signal number of the current printing pulse signal may include:

[0062] The theoretical output coordinates of the current printing pulse signal are calculated based on the following formula:

[0063] Z = Y * INT(D / M)

[0064] Where Y represents the pulse signal number of the current printing pulse signal, D represents the frequency division coefficient, M represents the frequency division coefficient, and Z represents the theoretical output coordinates of the current printing pulse signal.

[0065] In this embodiment of the invention, the theoretical output coordinates of the current printing pulse signal can be calculated based on the multiplication factor, the division factor, and the pulse signal number of the current printing pulse signal. For example, assuming the multiplication factor is 40 and the division factor is 939, then according to the above formula, the theoretical output coordinates of the printing pulse signal with pulse signal number 1 are calculated as Z = 1 * (939 / 40) = 23.475; the theoretical output coordinates of the printing pulse signal with pulse signal number 2 are calculated as Z = 2 * (939 / 40) = 46.95; and the theoretical output coordinates of the printing pulse signal with pulse signal number 3 are calculated as Z = 3 * (939 / 40) = 70.425, and so on.

[0066] S240. The single-pulse printing error of each of the printing pulse signals is accumulated and calculated to obtain the cumulative printing error.

[0067] In an optional embodiment, the step of accumulating the single-pulse printing errors of each of the printing pulse signals to obtain the cumulative printing error may include:

[0068] The cumulative printing error is calculated based on the following formula:

[0069] E = Q * (D - (25400 / P) * M)

[0070] Where E represents the cumulative printing error, Q represents the count value of the cumulative frequency multiplier counter, D represents the frequency division coefficient, P represents the printing resolution, and M represents the frequency division coefficient.

[0071] Correspondingly, the count value can be obtained by using an accumulator frequency multiplier counter. Based on the printing resolution, frequency division coefficient, frequency multiplication coefficient, and the count value of the accumulator frequency multiplier counter, the single-pulse printing error of each printing pulse signal can be accumulated to obtain the cumulative printing error value.

[0072] For example, assuming the printing resolution is 1082 dpi, the frequency division factor is 939, and the frequency multiplication factor is 40, the cumulative printing error can be Q*(939-(25400 / 1082)*40)=Q*(-0.0018). It is easy to understand that when the count value of the cumulative frequency division and multiplication counter is 270, the cumulative printing error can be -0.4991 pulses, and when the count value of the cumulative frequency division and multiplication counter is 271, the cumulative printing error can be -0.5009 pulses.

[0073] S250, Calculate the cumulative error compensation for the cumulative printing error.

[0074] In an optional embodiment, calculating the cumulative error compensation for the cumulative printing error may include: determining a cumulative error evaluation index threshold; determining the cumulative error compensation based on the value of the cumulative error compensation if the absolute value of the cumulative printing error is greater than the cumulative error evaluation index threshold; and determining the cumulative error compensation as a null value if the absolute value of the cumulative printing error is less than or equal to the cumulative error evaluation index threshold.

[0075] The cumulative error evaluation index threshold can be used to determine whether the current pulse signal needs correction. Optionally, the value of the cumulative error evaluation index threshold can be set according to actual needs, such as 0.4, 0.5, or 0.6. This embodiment of the invention does not limit the specific value of the cumulative error evaluation index threshold.

[0076] In this embodiment of the invention, a cumulative error evaluation index threshold can be preset, and the absolute value of the cumulative printing error can be calculated. When the absolute value of the cumulative printing error is greater than the cumulative error evaluation index threshold, cumulative error compensation can be determined based on the value of the cumulative error compensation. When the absolute value of the printing error is less than or equal to the cumulative error evaluation index threshold, the cumulative error compensation can be determined to be null, that is, no error correction is performed on the printing error.

[0077] In a specific example, the cumulative error evaluation threshold can be preset to 0.5. Then, when the absolute value of the cumulative printing error is 0.6, the cumulative error compensation needs to be determined based on the value of the cumulative error compensation. When the absolute value of the cumulative printing error is 0.5 or less, the cumulative error compensation value is determined to be empty, that is, no error correction is performed on the printing error.

[0078] In an optional embodiment, determining the cumulative error compensation based on the value of the cumulative error compensation may include: if the value of the cumulative error compensation is determined to be positive, using the printing pulse signal of a negative cell as the cumulative error compensation; if the value of the cumulative error compensation is determined to be negative, using the printing pulse signal of a positive cell as the cumulative error compensation.

[0079] In this embodiment of the invention, if the cumulative error compensation value is positive, the printing pulse signal of a negative unit can be used as the cumulative error compensation; if the cumulative error compensation value is negative, the printing pulse signal of a positive unit can be used as the cumulative error compensation. For example, if the cumulative error compensation value is 0.5001, then the printing pulse signal of a negative unit can be used as the cumulative error compensation; if the cumulative error compensation value is -0.5001, then the printing pulse signal of a positive unit can be used as the cumulative error compensation.

[0080] S260. Adjust the pulse signal of the raster counter in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer.

[0081] In an optional embodiment, adjusting the pulse signal of the raster counter in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer may include: prohibiting the adjustment of the pulse signal of the raster encoder in the inkjet printer when the cumulative error compensation is determined to be null; reducing the pulse signal of the raster encoder in the inkjet printer by one unit when the cumulative error compensation is determined to be a negative unit of printing pulse signal; and increasing the pulse signal of the raster encoder in the inkjet printer by one unit when the cumulative error compensation is determined to be a positive unit of printing pulse signal.

[0082] Correspondingly, when the cumulative error compensation is empty, it indicates that no error correction is needed for the raster encoder, and adjustment of the pulse signal of the raster encoder in the inkjet printer is prohibited. When the cumulative error compensation is a negative unit of print pulse signal, it indicates that error correction is needed for the raster encoder, and the pulse signal of the raster encoder in the inkjet printer is reduced by one unit of print pulse signal. When the cumulative error compensation is a positive unit of print pulse signal, it indicates that error correction is needed for the raster encoder, and the pulse signal of the raster encoder in the inkjet printer is increased by one unit of print pulse signal.

[0083] For example, if the calculated cumulative printing error is 0.4991, then the cumulative error compensation is null, meaning no error correction is needed for the raster encoder, and adjustment of the pulse signal of the raster encoder in the inkjet printer is prohibited. If the calculated cumulative printing error is 0.5001, then the cumulative error compensation is one negative unit of the printing pulse signal, and the pulse signal of the raster encoder in the inkjet printer can be reduced by one unit. In other words, the compensated cumulative printing error is -0.4999. If the calculated cumulative printing error is -0.5001, then the cumulative error compensation is one positive unit of the printing pulse signal, and the pulse signal of the raster encoder in the inkjet printer can be increased by one unit. In other words, the compensated cumulative printing error is 0.4999.

[0084] Figure 3 This is a schematic diagram of an FPGA processing module in an inkjet printer according to Embodiment 2 of the present invention, as shown below. Figure 3 As shown, the FPGA processing module in the inkjet printer includes an FPGA logic signal processing unit and an onboard memory unit, as well as an encoder or raster signal input interface, an Ethernet interface, a power interface, and a print synchronization signal output interface. The encoder or raster signal input interface is used to connect an encoder or raster ruler to receive pulse signals. The power interface is used to connect a power supply to power the FPGA module. The print synchronization signal output interface can be used to connect a print control card.

[0085] Table 1 is a printing error table provided by an embodiment of the present invention. In a specific example, the printing pulse signal output by the raster encoder is first obtained, and the frequency reference coefficient for cumulative error compensation is calculated, including a frequency division coefficient of 939 and a frequency multiplication coefficient of 40. Furthermore, the single-pulse printing error of a single printing pulse signal can be calculated based on the frequency division coefficient and the frequency multiplication coefficient.

[0086] Table 1 Printing Error Table

[0087] Print pulse number Actual output coordinates (µm) of the printed pulse Print the ideal coordinates of the pulse (um). Printing error (µm) 1 23 23.5 0.4750 2 47 47.0 -0.0499 3 70 70.4 0.4251 4 94 93.9 -0.0998 5 117 117.4 0.3752 6 141 140.9 -0.1497 7 164 164.3 0.3253 8 188 187.8 -0.1996 9 211 211.3 0.2754 10 235 234.8 -0.2495 11 258 258.2 0.2255 12 282 281.7 -0.2994 13 305 305.2 0.1756 14 329 328.7 -0.3494

[0088] The advantage of this setting is that it enables high-precision printing where the printing error of the inkjet printer can be less than half a grating encoder pulse signal within the frequency division coefficient.

[0089] Figure 4 This is a schematic diagram of a printing pulse signal provided in Embodiment 2 of the present invention, as shown below. Figure 4 As shown, the first row can be the encoder pulse signal output by the raster encoder, and the second row can be the printing clock pulse signal. Furthermore, the single-pulse printing error of the printing pulse signal can be cumulatively calculated to obtain the cumulative printing error. Then, cumulative error compensation is calculated based on the cumulative error compensation. The pulse signal of the raster encoder in the inkjet printer is adjusted according to the cumulative error compensation to correct the printing error of the inkjet printer.

[0090] Figure 5 This is a flowchart of a pulse signal processing method based on an FPGA module provided in Embodiment 2 of the present invention, as follows: Figure 5 As shown, pulse signals can be output from an encoder or grating ruler and sent to the motion control card and print control card, and then processed by the printhead card before being sent to the printhead. The FPGA module can process and convert the pulse signals, and can also be integrated into the print control card.

[0091] Figure 6 This is a flowchart of another pulse signal processing method based on a high-speed pulse signal processing card provided in Embodiment 2 of the present invention, as follows: Figure 6 As shown, an encoder or grating ruler can also output pulse signals, which are sent to a motion control card and a high-speed pulse signal processing card. The high-speed pulse signal processing card then processes the signals and sends them to a print control card. After processing, the print control card sends the signals to a printhead driver card, and finally to the printhead. The independent pulse signal processing card can operate independently of the print control card. For print control cards with weak pulse signal processing capabilities, or third-party printhead driver cards, the technical solution of this embodiment is not limited by the functionality of the printhead driver card and can reduce the synchronous processing capability requirements of the printhead driver card for high-speed pulse signals.

[0092] The technical solution of this invention first acquires the printing pulse signal output by the output grating encoder and calculates the frequency reference coefficient for cumulative error compensation. Based on the frequency parameters, the single-pulse printing error of a single printing pulse signal is calculated. Then, the single-pulse printing errors of the printing pulse signals are accumulated to obtain the cumulative printing error. Next, cumulative error compensation is calculated for the cumulative printing error. Finally, the pulse signal of the grating encoder in the inkjet printer is adjusted according to the cumulative error compensation to correct the printing error of the inkjet printer. This solves the problem of poor printing error correction effect in existing printing error correction methods, improves the printing error correction effect of inkjet printers, and thus improves the printing accuracy of inkjet printers.

[0093] Example 3

[0094] Figure 7 This is a schematic diagram of a printing error correction device provided in Embodiment 3 of the present invention, as shown below. Figure 7 As shown, the device includes: a printing pulse signal acquisition module 310, a frequency reference coefficient calculation module 320, a cumulative error compensation calculation module 330, and a printing error correction module 340, wherein:

[0095] The printing pulse signal acquisition module 310 is used to acquire the printing pulse signal output by the grating encoder;

[0096] Frequency reference coefficient calculation module 320 is used to calculate the frequency reference coefficient for cumulative error compensation;

[0097] The cumulative error compensation calculation module 330 is used to calculate the cumulative error compensation for the printing pulse signal based on the frequency reference coefficient;

[0098] The printing error correction module 340 is used to adjust the pulse signal of the raster counter in the inkjet printer according to the cumulative error compensation, so as to correct the printing error of the inkjet printer.

[0099] The technical solution of this invention first obtains the printing pulse signal output by the grating encoder, calculates the frequency reference coefficient for cumulative error compensation, then calculates the cumulative error compensation by performing cumulative error compensation on the printing pulse signal according to the frequency reference coefficient, and finally adjusts the pulse signal of the grating encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer. This solves the problem of poor printing error correction effect in existing printing error correction methods, improves the printing error correction effect of inkjet printers, and thus improves the printing accuracy of inkjet printers.

[0100] Optionally, the frequency reference coefficient includes a frequency multiplication factor and a frequency division factor; the frequency reference coefficient calculation module 320 is specifically used to obtain the grating ruler resolution and the target resolution; and to calculate the frequency multiplication factor and the frequency division factor based on the ratio of the grating ruler resolution to the target resolution.

[0101] Optionally, the cumulative error compensation calculation module 330 is specifically used to calculate the single-pulse printing error of a single printing pulse signal based on the frequency reference coefficient; to accumulate the single-pulse printing errors of each printing pulse signal to obtain the cumulative printing error; and to calculate the cumulative error compensation for the cumulative printing error.

[0102] Optionally, the cumulative error compensation calculation module 330 is specifically used to obtain the actual output coordinates of the current printing pulse signal; calculate the theoretical output coordinates of the current printing pulse signal based on the frequency multiplication coefficient, the frequency division coefficient, and the pulse signal number of the current printing pulse signal; and generate the single-pulse printing error of the current printing pulse signal based on the actual output coordinates and the theoretical output coordinates.

[0103] Optionally, the cumulative error compensation calculation module 330 is specifically used to calculate the theoretical output coordinates of the current printing pulse signal based on the following formula:

[0104] Z = Y * INT(D / M)

[0105] Where Y represents the pulse signal number of the current printing pulse signal, D represents the frequency division coefficient, M represents the frequency division coefficient, and Z represents the theoretical output coordinates of the current printing pulse signal.

[0106] Optionally, the cumulative error compensation calculation module 330 is specifically used to calculate the cumulative printing error based on the following formula:

[0107] E = Q * (D - (25400 / P) * M)

[0108] Where P represents the printing resolution, Q represents the count value of the cumulative frequency multiplier counter, and E represents the cumulative printing error.

[0109] Optionally, the cumulative error compensation calculation module 330 is specifically used to determine the cumulative error evaluation index threshold; when the absolute value of the cumulative printing error is determined to be greater than the cumulative error evaluation index threshold, the cumulative error compensation is determined according to the value of the cumulative error compensation; when the absolute value of the cumulative printing error is determined to be less than or equal to the cumulative error evaluation index threshold, the cumulative error compensation is determined to be a null value.

[0110] Optionally, the cumulative error compensation calculation module 330 is specifically used to use the printing pulse signal of a negative unit as the cumulative error compensation when the cumulative error compensation is determined to be a positive number; and to use the printing pulse signal of a positive unit as the cumulative error compensation when the cumulative error compensation is determined to be a negative number.

[0111] The above-described printing error correction device can execute the printing error correction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in this embodiment can be found in the printing error correction method provided in any embodiment of the present invention.

[0112] Example 4

[0113] Figure 8 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0114] like Figure 8 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0115] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0116] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as printing error correction methods.

[0117] In some embodiments, the printing error correction method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the printing error correction method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the printing error correction method by any other suitable means (e.g., by means of firmware).

[0118] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0119] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0120] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0121] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0122] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0123] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

Claims

1. A method for correcting printing errors, characterized in that, The processor module used in inkjet printers includes: Obtain the printing pulse signal output by the raster encoder; Calculate the frequency reference coefficient for cumulative error compensation; The cumulative error compensation is obtained by performing cumulative error compensation calculation on the printing pulse signal based on the frequency reference coefficient; Adjusting the pulse signal of the raster encoder in the inkjet printer according to the cumulative error compensation to correct the printing error of the inkjet printer includes: if the cumulative error compensation is determined to be null, then prohibiting the adjustment of the pulse signal of the raster encoder in the inkjet printer; if the cumulative error compensation is determined to be a negative unit of printing pulse signal, then reducing the pulse signal of the raster encoder in the inkjet printer by one unit of printing pulse signal; if the cumulative error compensation is determined to be a positive unit of printing pulse signal, then increasing the pulse signal of the raster encoder in the inkjet printer by one unit of printing pulse signal. The frequency reference coefficients include harmonic coefficients and frequency division coefficients; the frequency reference coefficients for calculating cumulative error compensation include: Obtain the grating ruler resolution and target resolution; The frequency multiplication factor and the frequency division factor are calculated based on the ratio of the grating ruler resolution to the target resolution. The step of calculating the cumulative error compensation based on the frequency reference coefficient for the printed pulse signal includes: The single-pulse printing error of a single printing pulse signal is calculated based on the frequency reference coefficient. The cumulative printing error is obtained by summing the single-pulse printing errors of each of the aforementioned printing pulse signals; Calculate the cumulative error compensation for the cumulative printing error.

2. The method according to claim 1, characterized in that, The calculation of the single-pulse printing error of a single printing pulse signal based on the frequency reference coefficient includes: Obtain the actual output coordinates of the current printing pulse signal; The theoretical output coordinates of the current printing pulse signal are calculated based on the frequency multiplication factor, the frequency division factor, and the pulse signal number of the current printing pulse signal. The single-pulse printing error of the current printing pulse signal is generated based on the actual output coordinates and the theoretical output coordinates of the current printing pulse signal.

3. The method according to claim 2, characterized in that, The step of calculating the theoretical output coordinates of the current printing pulse signal based on the frequency multiplication factor, the frequency division factor, and the pulse signal number of the current printing pulse signal includes: The theoretical output coordinates of the current printing pulse signal are calculated based on the following formula: Z = Y * INT(D / M) Where Y represents the pulse signal number of the current printing pulse signal, D represents the frequency division coefficient, M represents the frequency division coefficient, and Z represents the theoretical output coordinates of the current printing pulse signal.

4. The method according to claim 1, characterized in that, The step of accumulating the single-pulse printing errors of each of the printing pulse signals to obtain the cumulative printing error includes: The cumulative printing error is calculated based on the following formula: E = Q * (D - (25400 / P) * M) Where E represents the cumulative printing error, Q represents the count value of the cumulative frequency multiplier counter, D represents the frequency division coefficient, P represents the printing resolution, and M represents the frequency division coefficient.

5. The method according to claim 1, characterized in that, The calculation of the cumulative error compensation for the cumulative printing error includes: Determine the threshold for the cumulative error evaluation index; If the absolute value of the cumulative printing error is greater than the cumulative error evaluation index threshold, the cumulative error compensation is determined based on the value of the cumulative error compensation. If the absolute value of the cumulative printing error is less than or equal to the threshold value of the cumulative error evaluation index, the cumulative error compensation is determined to be null.

6. The method according to claim 5, characterized in that, Determining the cumulative error compensation based on the value of the cumulative error compensation includes: If the cumulative error compensation is determined to be a positive number, the printing pulse signal of a negative unit is used as the cumulative error compensation. If the cumulative error compensation is determined to be a negative number, the printing pulse signal of a positive cell is used as the cumulative error compensation.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the printing error correction method according to any one of claims 1-6.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute and implement the printing error correction method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Compensation method, device and equipment for ink drop point deviation in bidirectional printing and medium

    CN113829755A

  • Printing method and device of ink-jet printing system and ink-jet printing system

    CN114771114A