CN117021767A - Printing error correction method, electronic equipment and storage medium - Google Patents

Printing error correction method, electronic equipment and storage medium Download PDF

Info

Publication number
CN117021767A
CN117021767A CN202310977975.9A CN202310977975A CN117021767A CN 117021767 A CN117021767 A CN 117021767A CN 202310977975 A CN202310977975 A CN 202310977975A CN 117021767 A CN117021767 A CN 117021767A
Authority
CN
China
Prior art keywords
printing
pulse signal
accumulated error
error compensation
accumulated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310977975.9A
Other languages
Chinese (zh)
Inventor
徐进
江兴椿
徐必业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinxin Technology Co ltd
Original Assignee
Shenzhen Jinxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinxin Technology Co ltd filed Critical Shenzhen Jinxin Technology Co ltd
Priority to CN202310977975.9A priority Critical patent/CN117021767A/en
Publication of CN117021767A publication Critical patent/CN117021767A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention discloses a printing error correction method, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a printing pulse signal output by a grating encoder; calculating a frequency reference coefficient for accumulated error compensation; performing accumulated error compensation calculation on the printing pulse signal according to the frequency reference coefficient to obtain accumulated error compensation; and adjusting pulse signals of a grating encoder in the inkjet printer according to the accumulated error compensation so as to correct printing errors of the inkjet printer. The technical scheme of the embodiment of the invention can improve the printing error correction effect of the ink-jet printer, thereby improving the printing precision of the ink-jet printer.

Description

Printing error correction method, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of spray printing, in particular to a printing error correction method, electronic equipment and a storage medium.
Background
With the increasing development of inkjet printing technology, there is a higher demand for printing accuracy of inkjet printers.
The printing error correction technology needs to evaluate the printing error by utilizing the frequency reference coefficient of the accumulated error compensation, and adjusts the inkjet printer according to the printing error value so as to improve the printing precision of the printer. At present, the method for obtaining the frequency reference coefficient of the accumulated error compensation is usually an integer direct division method and a frequency division and multiplication method, so that the more accurate frequency reference coefficient is obtained, and then the more accurate printing error can be determined, and the printing error compensation can be obtained according to the printing error calculation, so that the printing error compensation is utilized to correct the printing error of the ink-jet printer. Specifically, the integer direct division method is to obtain the resolution of the grating ruler, and obtain the frequency division coefficient of the printing pulse signal and the frequency multiplication coefficient of the printing pulse signal through the integer direct division. The frequency division and multiplication method is to obtain the resolution of the grating ruler and the target resolution, and obtain the frequency division coefficient of the printing pulse signal and the frequency multiplication coefficient of the printing pulse signal through the frequency division and multiplication method.
The inventor finds that the existing printing error correction technology does not consider the printing accumulated error in the process of realizing the invention, so that the problem of large printing error is caused.
Disclosure of Invention
The embodiment of the invention provides a printing error correction method, electronic equipment and a storage medium, which can improve the printing error correction effect of an inkjet printer and further improve the printing precision of the inkjet printer.
According to an aspect of the present invention, there is provided a printing error correction method including:
acquiring a printing pulse signal output by a grating encoder;
calculating a frequency reference coefficient for accumulated error compensation;
performing accumulated error compensation calculation on the printing pulse signal according to the frequency reference coefficient to obtain accumulated error compensation;
and adjusting pulse signals of a grating encoder in the inkjet printer according to the accumulated error compensation so as to correct printing errors of the inkjet printer.
According to another aspect of the present invention, there is provided a printing error correction apparatus comprising:
the printing pulse signal acquisition module is used for acquiring the printing pulse signal output by the grating encoder;
the frequency reference coefficient calculation module is used for calculating a frequency reference coefficient for accumulated error compensation;
the accumulated error compensation calculation module is used for carrying out accumulated error compensation calculation on the printing pulse signal according to the frequency reference coefficient to obtain accumulated error compensation;
and the printing error revising module is used for adjusting the pulse signal of the grating encoder in the ink-jet printer according to the accumulated error compensation so as to revise the printing error of the ink-jet printer.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the printing error correction method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a printing error correction method according to any one of the embodiments of the present invention.
According to the technical scheme, the printing pulse signals output by the grating encoder are firstly obtained, the frequency reference coefficient of accumulated error compensation is calculated, accumulated error compensation calculation is carried out on the printing pulse signals according to the frequency reference coefficient to obtain accumulated error compensation, and finally pulse signals of the grating encoder in the ink-jet printer are adjusted according to the accumulated error compensation to correct the printing errors of the ink-jet printer, so that the problem that the printing error correction effect is poor in the existing printing error correction method is solved, the printing error correction effect of the ink-jet printer can be improved, and the printing precision of the ink-jet printer is further improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a printing error correction method according to an embodiment of the present invention;
fig. 2 is a flowchart of a printing error correction method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an FPGA processing module in an inkjet printer according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a print pulse signal according to a second embodiment of the present invention;
fig. 5 is a flowchart of pulse signal processing based on an FPGA module according to a second embodiment of the present invention;
fig. 6 is a flowchart of another pulse signal processing based on a high-speed pulse signal processing card according to the second embodiment of the present invention;
fig. 7 is a schematic diagram of a printing error correction device according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the term "object" and the like in the description of the present invention and the claims and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a printing error correction method according to an embodiment of the present invention, where the method may be applied to the case of adjusting a pulse signal of a raster encoder in an inkjet printer by using calculated accumulated error compensation to correct a printing error of the inkjet printer, and the method may be performed by a printing error correction device, which may be implemented by software and/or hardware, and may be generally integrated in an electronic device, and the electronic device may be a printer. Accordingly, as shown in fig. 1, the method includes the following operations:
s110, obtaining a printing pulse signal output by the grating encoder.
The raster encoder may be a device for outputting a print pulse signal in an inkjet printer. The print pulse signal may be a print pulse signal generated by a raster encoder for inkjet printing.
In the embodiment of the invention, the grating encoder can be a grating ruler or an encoder, namely the acquired printing pulse signal can be output by the grating ruler or the encoder. As long as the printing pulse signal can be output, the specific device type of the grating encoder is not limited, and the method for acquiring the printing pulse signal is not particularly limited in the embodiment of the invention.
S120, calculating a frequency reference coefficient of the accumulated error compensation.
The accumulated error compensation may be a compensation parameter indicating that error correction processing is performed on the accumulated error of the print pulse signal. The frequency reference coefficient may be a correlation coefficient for calculating the accumulated error compensation of the print pulse signal.
Correspondingly, the frequency reference coefficient for accumulated error compensation of the printing pulse signal can be calculated according to the obtained printing pulse signal. The frequency reference coefficient may be a frequency division coefficient of the print pulse signal or a frequency multiplication coefficient of the print pulse signal.
For example, the resolution of the grating scale may be obtained, and the frequency division coefficient of the print pulse signal and the frequency multiplication coefficient of the print pulse signal may be obtained by integer direct division. Assuming a resolution of 25400dpi, then 25400/2= 12700.0000, 25400/3= 8466.6667, 25400/23= 1104.3478, 25400/24= 1058.3333 can be obtained by integer direct division calculation, from which the resolution closest to the target resolution 1082.0 can be selected, and therefore the frequency multiplication factor can be selected to be 23, and the frequency division factor 1104.
For example, the resolution of the grating ruler and the target resolution can be obtained, and the frequency division coefficient of the printing pulse signal and the frequency multiplication coefficient of the printing pulse signal are obtained through a frequency division method. Assuming that the resolution of the grating scale is 25400dpi and the target resolution is 1082dpi, the ratio of the resolution of the grating scale to the target resolution can be 25400/1082= 23.4750, and then the ratio of 2 times is 46.9501, the ratio of 3 times is 70.4251, the ratio of 40 times is 939.0018 by using the frequency division method, so that 40 can be selected as the frequency multiplication coefficient of the accumulated error compensation, and 939 can be selected as the frequency division coefficient of the accumulated error compensation.
S130, performing accumulated error compensation calculation on the printing pulse signal according to the frequency reference coefficient to obtain accumulated error compensation.
In the embodiment of the invention, the printing error can be obtained by calculating the printing error according to the frequency division coefficient of the printing pulse signal and the frequency multiplication coefficient of the printing pulse signal, and further, the accumulated error compensation can be obtained by calculating the accumulated error compensation by utilizing the printing error.
And S140, adjusting pulse signals of a grating encoder in the ink-jet printer according to the accumulated error compensation so as to correct printing errors of the ink-jet printer.
Accordingly, the error compensation analysis can be performed on the accumulated error compensation obtained in the above steps, and then the pulse signal of the grating encoder in the inkjet printer is adjusted according to the accumulated error compensation condition, for example, when the accumulated error compensation is null, the pulse signal of the grating encoder in the inkjet printer is forbidden to be adjusted. When the accumulated error is compensated to a negative unit of print pulse signal, the pulse signal of the raster encoder in the ink jet printer is reduced by one unit of print pulse signal. When the accumulated error is compensated into a printing pulse signal of a positive unit, the printing pulse signal of a unit is added to the pulse signal of the grating encoder in the ink-jet printer, so that the printing error of the ink-jet printer is corrected, and the printing accuracy of the ink-jet printer is improved.
According to the technical scheme, the printing pulse signals output by the grating encoder are firstly obtained, the frequency reference coefficient of accumulated error compensation is calculated, accumulated error compensation calculation is carried out on the printing pulse signals according to the frequency reference coefficient to obtain accumulated error compensation, and finally pulse signals of the grating encoder in the ink-jet printer are adjusted according to the accumulated error compensation to correct the printing errors of the ink-jet printer, so that the problem that the printing error correction effect is poor in the existing printing error correction method is solved, the printing error correction effect of the ink-jet printer can be improved, and the printing precision of the ink-jet printer is further improved.
Example two
Fig. 2 is a flowchart of a printing error correction method according to a second embodiment of the present invention, which is embodied based on the above embodiment, and in this embodiment, various specific alternative implementations for calculating the printing accumulated error and the accumulated error compensation are provided. Accordingly, as shown in fig. 2, the method of this embodiment may include:
s210, obtaining a printing pulse signal output by the grating encoder.
S220, calculating a frequency reference coefficient of the accumulated error compensation.
In an alternative embodiment of the present invention, the frequency reference coefficient may include a frequency multiplication coefficient and a frequency division coefficient; the calculating the frequency reference coefficient of the accumulated error compensation may include: acquiring the resolution of a grating ruler and the target resolution; and calculating the frequency multiplication coefficient and the frequency division coefficient according to the ratio of the resolution of the grating ruler to the target resolution.
The resolution of the grating scale may be a pulse interval for representing the pulse signal transmitted by the grating scale. The target resolution may be a pulse interval representing an ideal inkjet printing pulse signal.
In the embodiment of the invention, the printing pulse signal output by the grating encoder is firstly obtained, and then the frequency reference coefficient of the accumulated error compensation of the printing pulse signal is calculated. Specifically, the resolution of the grating ruler and the target resolution can be obtained, and the frequency multiplication coefficient and the frequency division coefficient are obtained through calculation according to the ratio of the resolution of the grating ruler and the target resolution.
In a specific example, the resolution of the grating scale may be 25400dpi, the target resolution may be 1082dpi, then the ratio of the resolution of the grating scale to the target resolution may be 25400/1082= 23.4750, then the ratio of 2 times may be 46.9501, the ratio of 3 times may be 70.4251, the ratio of 40 times may be 939.0018, so 40 may be selected as the frequency multiplication coefficient of the accumulated error compensation, 939 may be easily understood as the frequency division coefficient of the accumulated error compensation, 40 is selected as the frequency multiplication coefficient, 939 may be 939 pulses, that is 939×0.001=0.939 mm, the theoretical printing distance may be (25400/1082) ×40= 0.9390018mm, and the single frequency division error may be 939- (25400/1082) ×40= -0.0018 pulses, that is-0.0000018 mm.
S230, calculating a single pulse printing error of the single printing pulse signal according to the frequency reference coefficient.
In an alternative embodiment, the calculating the single pulse printing error of the single printing pulse signal according to the frequency reference coefficient may include: acquiring the actual output coordinates of the current printing pulse signals; calculating theoretical output coordinates of the current printing pulse signal according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal; and generating a single-pulse printing error of the current printing pulse signal according to the actual output coordinate and the theoretical output coordinate of the current printing pulse signal.
The actual output coordinates may be the actual position of the raster encoder outputting the print pulse signal. The pulse signal number may be a value counted by the output pulse accumulator. The theoretical output coordinates may be ideal positions at which the raster encoder outputs the print pulse signal. The single pulse printing error may be a deviation value between the ideal output coordinates and the actual output coordinates.
Correspondingly, the pulse signal number obtained by the output pulse accumulator can be utilized, the actual output coordinate of the current printing pulse signal is obtained, the ideal output coordinate of the current printing pulse signal is obtained through calculation according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal, and further, the difference value between the actual output coordinate and the theoretical output coordinate of the current printing pulse signal can be used as the single pulse printing error of the current printing pulse signal.
In an alternative embodiment, the calculating the theoretical output coordinates of the current printing pulse signal according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal may include:
calculating theoretical output coordinates of the current printing pulse signal based on the following formula:
Z=Y*INT(D/M)
wherein 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 coordinate of the current printing pulse signal.
In the embodiment of the invention, the theoretical output coordinate of the current printing pulse signal can be obtained by calculation according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal. For example, assuming that the frequency multiplication coefficient is 40 and the frequency division coefficient is 939, the theoretical output coordinate z=1 (939/40) = 23.475 of the print pulse signal can be obtained by calculating the pulse signal number 1 according to the above formula, the theoretical output coordinate z=2 (939/40) = 46.95 of the print pulse signal can be obtained by calculating the pulse signal number 2, the theoretical output coordinate z=3 (939/40) = 70.425 of the print pulse signal can be obtained by calculating the pulse signal number 3.
S240, accumulating and calculating the single pulse printing errors of the printing pulse signals to obtain printing accumulated errors.
In an optional embodiment, the performing an accumulation calculation on the single pulse printing error of each printing pulse signal to obtain a printing accumulated error may include:
calculating the printing accumulated error based on the following formula:
E=Q*(D-(25400/P)*M)
wherein E represents a printing accumulated error, Q represents a count value of an accumulated integral multiple counter, D represents the frequency division coefficient, P represents a printing resolution, and M represents the frequency division coefficient.
Correspondingly, the accumulated frequency division counter can be used for obtaining a count value, and the single pulse printing error of each printing pulse signal is accumulated and calculated according to the printing resolution, the frequency division coefficient, the frequency multiplication coefficient and the count value of the accumulated frequency division counter to obtain the printing accumulated error value.
By way of example, assuming that the printing resolution is 1082dpi, the frequency division coefficient is 939, and the frequency multiplication coefficient is 40, the printing accumulated error that can be obtained may be q×939- (25400/1082) ×40) =q× (-0.0018), it is easy to understand that when the count value of the accumulated frequency division counter is 270, the printing accumulated error may be-0.4991 pulses, and when the count value of the accumulated frequency division counter is 271, the printing accumulated error may be-0.5009 pulses.
S250, calculating the accumulated error compensation for the printing accumulated error.
In an alternative embodiment, said calculating said accumulated error compensation for said printing accumulated error may comprise: determining an accumulated error evaluation index threshold; under the condition that the absolute value of the printing accumulated error is larger than the accumulated error evaluation index threshold, determining the accumulated error compensation according to the value condition of the accumulated error compensation; and determining that the accumulated error compensation is null value when the absolute value of the printing accumulated error is less than or equal to the accumulated error evaluation index threshold.
The accumulated error evaluation index threshold may be an evaluation index for determining whether the accumulated current pulse signal needs to be corrected. Optionally, the value of the accumulated error evaluation index threshold may be specifically set according to actual requirements, such as 0.4, 0.5, or 0.6, and the embodiment of the present invention does not limit the specific value of the accumulated error evaluation index threshold.
In the embodiment of the invention, the accumulated error evaluation index threshold value can be preset, and the absolute value of the accumulated error of printing can be obtained through calculation. When the absolute value of the printing accumulated error is larger than the accumulated error evaluation index threshold, the accumulated error compensation can be determined according to the value condition of the accumulated error compensation. When the absolute value of the printing error is less than or equal to the accumulated error evaluation index threshold, it may be determined that the accumulated error compensation is null, that is, the printing error is not error-corrected.
In a specific example, the accumulated error evaluation index threshold may be preset to be 0.5, and when the absolute value of the accumulated error is printed to be 0.6, the accumulated error compensation needs to be determined according to the value condition of the accumulated error compensation. When the absolute value of the printing accumulated error is 0.5 or less than 0.5, the accumulated error compensation value is determined to be a null value, namely, error correction is not carried out on the printing error.
In an alternative embodiment, the determining the accumulated error compensation according to the value of the accumulated error compensation may include: under the condition that the value of the accumulated error compensation is positive, taking the printing pulse signal of a negative unit as the accumulated error compensation; and taking the printing pulse signal of one positive unit as the accumulated error compensation under the condition that the value of the accumulated error compensation is determined to be negative.
In the embodiment of the invention, if the value of the accumulated error compensation is positive, the printing pulse signal of one negative unit can be used as the accumulated error compensation, and if the value of the accumulated error compensation is negative, the printing pulse signal of one positive unit can be used as the accumulated error compensation. For example, if the value of the accumulated error compensation is 0.5001, the print pulse signal of one negative unit may be taken as the accumulated error compensation, and if the value of the accumulated error compensation is-0.5001, the print pulse signal of one positive unit may be taken as the accumulated error compensation.
And S260, adjusting pulse signals of a grating counter in the ink-jet printer according to the accumulated error compensation so as to correct printing errors of the ink-jet printer.
In an alternative embodiment, the adjusting the pulse signal of the grating counter in the inkjet printer according to the accumulated error compensation to correct the printing error of the inkjet printer may include: under the condition that the accumulated error compensation is determined to be null, prohibiting the pulse signal of a grating encoder in the inkjet printer from being adjusted; reducing the pulse signal of a raster encoder in the inkjet printer by one unit of printing pulse signal under the condition that the accumulated error is determined to be compensated as the printing pulse signal of one negative unit; and adding a printing pulse signal of one unit to the pulse signal of the grating encoder in the inkjet printer under the condition that the accumulated error compensation is determined to be a printing pulse signal of one positive unit.
Accordingly, when the accumulated error compensation is null, it means that the error correction of the raster encoder is not needed, and the adjustment of the pulse signal of the raster encoder in the inkjet printer is prohibited. When the accumulated error is compensated into a printing pulse signal of a negative unit, the error correction of the grating encoder is needed, and the pulse signal of the grating encoder in the ink-jet printer is reduced by one unit. When the accumulated error is compensated into a printing pulse signal of a positive unit, the error correction of the grating encoder is needed, and the printing pulse signal of a unit is added to the pulse signal of the grating encoder in the ink-jet printer.
Illustratively, if the accumulated error of printing is 0.4991, it may be determined that the accumulated error compensation is null, which indicates that error correction is not required for the raster encoder, and the adjustment of the pulse signal of the raster encoder in the inkjet printer is prohibited. If the accumulated printing error is calculated to be 0.5001, the accumulated printing error can be determined to be compensated to be a negative unit printing pulse signal, the pulse signal of the grating encoder in the ink-jet printer can be reduced by one unit printing pulse signal, and when the accumulated printing error is easy to understand, the accumulated printing error after compensation is-0.4999. If the accumulated printing error is-0.5001, the accumulated printing error can be determined to be compensated into a printing pulse signal of a positive unit, and the pulse signal of the grating encoder in the ink-jet printer can be added with a printing pulse signal of a unit, so that when the accumulated printing error is easy to understand, the accumulated printing error after compensation is 0.4999.
Fig. 3 is a schematic diagram of an FPGA processing module in an inkjet printer according to a second embodiment of the present invention, where, as shown in fig. 3, the FPGA processing module in the inkjet printer includes an FPGA logic signal processing unit and an on-board memory unit, and further includes an encoder or a raster signal input interface, an ethernet interface, a power interface, and a print synchronization signal output interface. The encoder or the grating signal input interface is used for being connected with the encoder or the grating ruler to receive the pulse signals. The power interface is used for connecting a power supply to supply power for the FPGA module. The print synchronization signal output interface may be used to connect a print control card.
Table 1 is a printing error table provided in an embodiment of the present invention, in a specific example, first, a printing pulse signal output from a grating encoder is obtained, and a frequency reference coefficient of accumulated error compensation is calculated, including a frequency division coefficient 939 and a frequency multiplication coefficient 40. Further, the single-pulse printing error of the single printing pulse signal can be calculated according to the frequency division coefficient and the frequency multiplication coefficient.
TABLE 1 printing error table
Printing pulse number Print pulse actual output coordinates (um) Printing pulse ideal coordinates (um) Printing error (um)
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
The advantages of this arrangement are that: the printing error of the ink-jet printer can be smaller than the high-precision printing of half of the pulse signals of the grating encoder within the frequency division coefficient.
Fig. 4 is a schematic diagram of a print pulse signal according to a second embodiment of the present invention, and as shown in fig. 4, the first line may be an encoder pulse signal output by a raster encoder, and the second line may be a print clock pulse signal. Furthermore, the single pulse printing error of the printing pulse signal can be calculated in an accumulated way to obtain a printing accumulated error, the printing accumulated error is calculated to obtain an accumulated error compensation, and the pulse signal of the grating encoder in the ink-jet printer is adjusted according to the accumulated error compensation so as to correct the printing error of the ink-jet printer.
Fig. 5 is a flowchart of pulse signal processing based on an FPGA module according to a second embodiment of the present invention, where, as shown in fig. 5, a pulse signal may be output by an encoder or a grating ruler, and sent to a motion control card and a print control card, and then sent to a nozzle after being processed by a nozzle card. The FPGA module can process and convert pulse signals and can be integrated in a printing control card.
Fig. 6 is a flowchart of pulse signal processing based on a high-speed pulse signal processing card according to a second embodiment of the present invention, as shown in fig. 6, pulse signals may be output by an encoder or a grating ruler, and sent to a motion control card and the high-speed pulse signal processing card, then processed by the high-speed pulse signal processing card and sent to a print control card, and after the print control card processes, sent to a nozzle driving card, and finally sent to a nozzle. The independent pulse signal processing card can be independent of the printing control card, and the printing control card with weak pulse signal processing capability or the third-party nozzle driving card can be used for reducing the requirement of the nozzle driving card on the synchronous processing capability of the high-speed pulse signal without being limited by the function of the nozzle driving card.
According to the technical scheme, the printing pulse signals output by the output grating encoder are firstly obtained, the frequency reference coefficient of accumulated error compensation is calculated, the single pulse printing error of a single printing pulse signal is calculated according to the frequency parameter, accumulated calculation is carried out on the single pulse printing error of the printing pulse signals to obtain printing accumulated errors, then the accumulated error compensation is calculated on the printing accumulated errors, finally the pulse signals of the grating encoder in the ink-jet printer are adjusted according to the accumulated error compensation, so that the printing errors of the ink-jet printer are corrected, the problem that the printing error correction effect of the existing printing error correction method is poor is solved, the printing error correction effect of the ink-jet printer can be improved, and the printing precision of the ink-jet printer is further improved.
Example III
Fig. 7 is a schematic diagram of a printing error correction device according to a third embodiment of the present invention, as shown in fig. 7, where the device includes: a print pulse signal acquisition module 310, a frequency reference coefficient calculation module 320, an accumulated error compensation calculation module 330, and a print error correction module 340, wherein:
a print pulse signal acquisition module 310, configured to acquire a print pulse signal output by the raster encoder;
a frequency reference coefficient calculation module 320, configured to calculate a frequency reference coefficient for accumulated error compensation;
the accumulated error compensation calculating module 330 is configured to perform accumulated error compensation calculation on the print pulse signal according to the frequency reference coefficient to obtain accumulated error compensation;
and the printing error revising module 340 is configured to adjust the pulse signal of the grating counter in the inkjet printer according to the accumulated error compensation, so as to revise the printing error of the inkjet printer.
According to the technical scheme, the printing pulse signals output by the grating encoder are firstly obtained, the frequency reference coefficient of accumulated error compensation is calculated, accumulated error compensation calculation is carried out on the printing pulse signals according to the frequency reference coefficient to obtain accumulated error compensation, and finally pulse signals of the grating encoder in the ink-jet printer are adjusted according to the accumulated error compensation to correct the printing errors of the ink-jet printer, so that the problem that the printing error correction effect is poor in the existing printing error correction method is solved, the printing error correction effect of the ink-jet printer can be improved, and the printing precision of the ink-jet printer is further improved.
Optionally, the frequency reference coefficient includes a frequency multiplication coefficient and a frequency division coefficient; the frequency reference coefficient calculating module 320 is specifically configured to obtain a resolution of the grating ruler and a target resolution; and calculating the frequency multiplication coefficient and the frequency division coefficient according to the ratio of the resolution of the grating ruler to the target resolution.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to calculate a single pulse printing error of the single printing pulse signal according to the frequency reference coefficient; accumulating and calculating the single pulse printing error of each printing pulse signal to obtain a printing accumulated error; the accumulated error compensation is calculated for the printing accumulated error.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to obtain an actual output coordinate of the current print pulse signal; calculating theoretical output coordinates of the current printing pulse signal according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal; and generating a single-pulse printing error of the current printing pulse signal according to the actual output coordinate and the theoretical output coordinate of the current printing pulse signal.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to calculate the theoretical output coordinates of the current print pulse signal based on the following formula:
Z=Y*INT(D/M)
wherein 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 coordinate of the current printing pulse signal.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to calculate the printing accumulated error based on the following formula:
E=Q*(D-(25400/P)*M)
where P represents the printing resolution, Q represents the count value of the integral multiple counter, and E represents the printing accumulated error.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to determine an accumulated error evaluation index threshold; under the condition that the absolute value of the printing accumulated error is larger than the accumulated error evaluation index threshold, determining the accumulated error compensation according to the value condition of the accumulated error compensation; and determining that the accumulated error compensation is null value when the absolute value of the printing accumulated error is less than or equal to the accumulated error evaluation index threshold.
Optionally, the accumulated error compensation calculating module 330 is specifically configured to take the printing pulse signal of a negative unit as the accumulated error compensation when it is determined that the value of the accumulated error compensation is positive; and taking the printing pulse signal of one positive unit as the accumulated error compensation under the condition that the value of the accumulated error compensation is determined to be negative.
The printing error correction device can execute the printing error correction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be seen in the printing error correction method provided in any embodiment of the present invention.
Example IV
Fig. 8 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, 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 meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 8, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having 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 specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as a printing error correction method.
In some embodiments, the printing error correction method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the printing error correction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the printing error correction method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.

Claims (10)

1. A printing error correction method, characterized by being applied to a processor module in an inkjet printer, comprising:
acquiring a printing pulse signal output by a grating encoder;
calculating a frequency reference coefficient for accumulated error compensation;
performing accumulated error compensation calculation on the printing pulse signal according to the frequency reference coefficient to obtain accumulated error compensation;
and adjusting pulse signals of a grating counter in the inkjet printer according to the accumulated error compensation to correct printing errors of the inkjet printer.
2. The method of claim 1, wherein the frequency reference coefficients comprise a multiplication coefficient and a division coefficient; the calculating the frequency reference coefficient of the accumulated error compensation includes:
acquiring the resolution of a grating ruler and the target resolution;
and calculating the frequency multiplication coefficient and the frequency division coefficient according to the ratio of the resolution of the grating ruler to the target resolution.
3. The method of claim 1, wherein performing a cumulative error compensation calculation on the print pulse signal based on the frequency reference coefficient to obtain a cumulative error compensation comprises:
calculating a single pulse printing error of a single printing pulse signal according to the frequency reference coefficient;
accumulating and calculating the single pulse printing error of each printing pulse signal to obtain a printing accumulated error;
the accumulated error compensation is calculated for the printing accumulated error.
4. A method according to claim 3, wherein said calculating a single pulse printing error of a single said printing pulse signal from said frequency reference coefficients comprises:
acquiring the actual output coordinates of the current printing pulse signals;
calculating theoretical output coordinates of the current printing pulse signal according to the frequency multiplication coefficient, the frequency division coefficient and the pulse signal number of the current printing pulse signal;
and generating a single-pulse printing error of the current printing pulse signal according to the actual output coordinate and the theoretical output coordinate of the current printing pulse signal.
5. The method of claim 4, wherein calculating theoretical output coordinates of the current print pulse signal based on the multiplication factor, the division factor, and a pulse signal number of the current print pulse signal comprises:
calculating theoretical output coordinates of the current printing pulse signal based on the following formula:
Z=Y*INT(D/M)
wherein 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 coordinate of the current printing pulse signal.
6. A method according to claim 3, wherein said accumulating the single pulse printing errors of each of said printing pulse signals to obtain a printing accumulated error comprises:
calculating the printing accumulated error based on the following formula:
E=Q*(D-(25400/P)*M)
wherein E represents a printing accumulated error, Q represents a count value of an accumulated integral multiple counter, D represents the frequency division coefficient, P represents a printing resolution, and M represents the frequency division coefficient.
7. A method according to claim 3, wherein said calculating said accumulated error compensation for said printing accumulated error comprises:
determining an accumulated error evaluation index threshold;
under the condition that the absolute value of the printing accumulated error is larger than the accumulated error evaluation index threshold, determining the accumulated error compensation according to the value condition of the accumulated error compensation;
and determining that the accumulated error compensation is null value when the absolute value of the printing accumulated error is less than or equal to the accumulated error evaluation index threshold.
8. The method of claim 7, wherein said determining said accumulated error compensation based on a value of said accumulated error compensation comprises:
under the condition that the value of the accumulated error compensation is positive, taking the printing pulse signal of a negative unit as the accumulated error compensation;
and taking the printing pulse signal of one positive unit as the accumulated error compensation under the condition that the value of the accumulated error compensation is determined to be negative.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the printing error correction method of any one of claims 1-7.
10. A computer storage medium having stored thereon computer instructions for causing a processor to perform the printing error correction method of any of claims 1-7.
CN202310977975.9A 2023-08-04 2023-08-04 Printing error correction method, electronic equipment and storage medium Pending CN117021767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310977975.9A CN117021767A (en) 2023-08-04 2023-08-04 Printing error correction method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310977975.9A CN117021767A (en) 2023-08-04 2023-08-04 Printing error correction method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117021767A true CN117021767A (en) 2023-11-10

Family

ID=88629250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310977975.9A Pending CN117021767A (en) 2023-08-04 2023-08-04 Printing error correction method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117021767A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117465135A (en) * 2023-11-24 2024-01-30 广州市森扬电子科技有限公司 Spray nozzle voltage output self-correction method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117465135A (en) * 2023-11-24 2024-01-30 广州市森扬电子科技有限公司 Spray nozzle voltage output self-correction method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111965624A (en) Calibration method, device and equipment for laser radar and camera and readable storage medium
CN113048920B (en) Method and device for measuring flatness of industrial structural part and electronic equipment
CN117021767A (en) Printing error correction method, electronic equipment and storage medium
CN113554712A (en) Registration method and device of automatic driving vehicle, electronic equipment and vehicle
CN113029136A (en) Method, apparatus, storage medium, and program product for positioning information processing
CN109101466A (en) Weibull distribution parameter estimation method based on distribution function logarithm transformation
CN104166985A (en) Star sensor demarcation method based on region division
CN115903658A (en) Coordinate compensation method, apparatus, electronic device, storage medium, and program product
CN115758071A (en) Clock error prediction method, device, equipment and storage medium of atomic clock
CN114912390A (en) Method, device and equipment for calculating chip power consumption and storage medium
CN117119115B (en) Calibration method and device based on machine vision, electronic equipment and storage medium
CN114987497A (en) Backward lane line fitting method and device, electronic equipment and storage medium
CN117246044A (en) Precision compensation method and device for jet printer, electronic equipment and storage medium
US10372842B2 (en) Method and device for calibrating and updating a power model
CN117021813A (en) Printing compensation method, device, equipment and medium
CN116749647A (en) Method, device, equipment and medium for correcting jet printing position of PCB
CN118037864A (en) Color following method and device for ink-jet printer, electronic equipment and storage medium
CN115775279B (en) Dispensing positioning method and device and electronic equipment
CN117289686B (en) Parameter calibration method and device, electronic equipment and storage medium
CN115642978A (en) System clock synchronization method, device, equipment and storage medium
CN115712322B (en) Proportional valve chip adjusting method and device, electronic equipment and medium
CN117087331A (en) Adjustment method and device of printing head piece, electronic equipment and storage medium
CN117994807A (en) Workpiece plane point position correction method and device, electronic equipment and storage medium
CN112433846B (en) Resource scheduling method and system for edge computing
CN116631318A (en) Display panel and debugging method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 518000, Building 101 and 201, Runheng Industrial Plant, Fuyuan 1st Road, Zhancheng Community, Fuhai Street, Bao'an District, Shenzhen City, Guangdong Province, China

Applicant after: Shenzhen Jinxin Technology Co.,Ltd.

Address before: 518000 1st floor, factory building, Fanda Industrial Park, Langxin community, Shiyan street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN JINXIN TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information