A method and system for optimizing transmission speed and printing accuracy of variable data inkjet printer

By dividing the image to be printed into a carrier image and a variable data area, and using ping-pong operation and an improved DDWS method to adjust the driving voltage in real time, the problem of low transmission efficiency of variable data inkjet printers and untimely adjustment of the driving voltage is solved, achieving A higher quality high-speed printing effect.

CN116572655BActive Publication Date: 2024-09-17FOSHAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310548086.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2024-09-17
Estimated Expiration
2043-05-15

AI Technical Summary

Technical Problem

When printing continuously at high speed, existing variable data inkjet printers have low transmission efficiency and cannot adjust the driving voltage in real time, resulting in unstable printing quality.

Method used

The image to be printed is divided into a carrier image and a variable data area. The carrier image is pre-stored in the memory of the inkjet printer, and the variable data image is generated by the host computer for transmission. The variable data area is modified online using ping-pong operation, based on the improved DDWS The method generates a trapezoidal driving voltage and adjusts the nozzle voltage in real time.

Benefits of technology

It improves the printing transmission speed and accuracy, realizes real-time driving voltage adjustment under high-speed printing, and improves the quality and efficiency of printed images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116572655B
    Figure CN116572655B
Patent Text Reader

Abstract

The present invention provides a method and system for optimizing the transmission speed and printing accuracy of a variable data inkjet printer, the method comprising the following steps: obtaining an image to be printed; dividing the image to be printed into a carrier image and a variable data area, pre-storing the carrier image in the inkjet printer memory SDRAM, and a host computer generating a variable data image based on the variable data area and transmitting it to the inkjet printer; using a ping-pong operation to online change the variable data area of ​​the carrier image in the SDRAM based on the variable data image; generating a trapezoidal drive voltage based on an improved DDWS method, and adjusting the trapezoidal drive voltage in real time when the nozzle is printing. The present invention can not only realize hardware acceleration of variable data inkjet printer data, but also adjust various parameters of the drive voltage in real time before each printing of the nozzle, solving the problem of low variable data transmission efficiency of variable data inkjet printer equipment and the inability to adjust the drive voltage in real time under high-speed printing conditions.
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 method and system for optimizing the transmission speed and printing accuracy of a variable data inkjet printer. Background Art

[0002] A variable data inkjet printer is a digital inkjet printing device that has the characteristics of non-contact and non-platemaking. The device can quickly change part of the data in each printed image to realize the printing of variable data images. Therefore, it is widely used in small-batch printing industrial scenarios such as packaging printing, label printing, and book printing. For industrial production lines, variable data inkjet printers not only need to achieve high-speed printing, but also must ensure the stability and accuracy of printing quality. Especially in the case of high-speed continuous printing, variable data inkjet printers need to have excellent image data acceleration transmission methods and the function of adjusting the driving voltage to correct ink droplet errors to ensure the efficiency and clarity of the printed image.

[0003] In the prior art, variable data inkjet printers generally use a host computer to create a complete print image, which is then transmitted to the printer. The image data processing part in the control circuit board uses a ping-pong operation to cache the transmitted complete print image, and fails to implement the online modification function of the variable data area in the memory; in addition, in the existing variable data inkjet printers, the various parameters of the drive voltage can only be changed by transmitting waveform data points through the host computer, and it is impossible to realize the control board to change the parameters of the drive waveform in real time. Summary of the invention

[0004] Based on this, in order to solve the technical problems existing in the prior art, the present invention provides a method and system for optimizing the transmission speed and printing accuracy of a variable data inkjet printer, and its specific technical solution is as follows:

[0005] A method for optimizing transmission speed and printing accuracy of a variable data inkjet printer comprises the following steps:

[0006] Acquire the image to be printed;

[0007] The image to be printed is divided into a carrier image and a variable data area, the carrier image is pre-stored in the SDRAM memory of the inkjet printer, and the host computer generates a variable data image according to the variable data area and transmits it to the inkjet printer;

[0008] According to the variable data image, the variable data area of ​​the carrier image in the SDRAM is changed online by using a ping-pong operation;

[0009] The trapezoidal driving voltage is generated based on the improved DDWS method, and the trapezoidal driving voltage is adjusted in real time when the nozzle is printing.

[0010] The variable data inkjet printer transmission speed and printing accuracy optimization method can realize hardware acceleration of variable data inkjet data by first dividing the image to be printed into a carrier image and a variable data area, then pre-storing the carrier image in the inkjet printer memory SDRAM, generating a variable data image based on the variable data area and transmitting it to the inkjet printer, and finally using a ping-pong operation to change the variable data area of ​​the carrier image in the SDRAM online. In addition, based on the improved DDWS method, a trapezoidal drive voltage is generated, and the trapezoidal drive voltage is adjusted in real time when the nozzle is printing. The various parameters of the drive voltage can be adjusted in real time before each printing of the nozzle, solving the problem of low variable data transmission efficiency of the variable data inkjet printer and the inability to adjust the drive voltage in real time under high-speed printing conditions, and obtaining a higher quality print image with a faster printing speed.

[0011] Furthermore, the image to be printed is divided into a carrier image and a variable data area, the carrier image is pre-stored in the SDRAM memory of the inkjet printer, and the host computer generates a variable data image according to the variable data area and transmits it to the inkjet printer. The specific method includes the following steps:

[0012] D1, the host computer transmits the carrier image through the network port, and the FPGA stores the carrier image in SDRAM1 and SDRAM2 for backup;

[0013] D2, before each variable data image is transmitted, the host computer changes the data in the variable data area, and makes the variable data area into a variable data image, which is cached in the host computer;

[0014] D3: The host computer transmits the first variable data image to the FPGA.

[0015] Furthermore, according to the variable data image, the specific method of using the ping-pong operation to online change the variable data area of ​​the carrier image in the SDRAM includes the following steps:

[0016] D4, FPGA modifies the variable data area of ​​the carrier image in SDRAM1 online according to the first variable data image transmitted by the host computer to generate the image to be printed;

[0017] D5, waiting for the substrate to arrive and triggering the photoelectric switch. After the photoelectric switch is triggered, operations 1 and 2 are performed simultaneously;

[0018] Operation 1:

[0019] D6, FPGA reads a column of pixel data of the image to be printed in SDRAM1 and transmits it to the print head;

[0020] D7, after a column of pixel data is transmitted to the print head, the drive voltage generating circuit is enabled, and the drive voltage is generated and transmitted to the print head, so that the print head ejects ink droplets;

[0021] D8, loop operation 1 until the printing of the image to be printed in SDRAM1 is completed;

[0022] Operation 2:

[0023] D9, the next variable data image is transmitted from the host computer;

[0024] D10, FPGA modifies the variable data area of ​​the carrier image in SDRAM2 online according to the variable data image transmitted by the host computer to generate the image to be printed;

[0025] D11, loop operation 2 until the modification of the variable data area of ​​the carrier image in SDRAM2 is completed;

[0026] After completing operations 1 and 2, proceed to step D12:

[0027] Wait for the next photoelectric switch trigger and exchange SDRAM1 and SDRAM2 for operation 1 and operation 2.

[0028] Furthermore, a specific method for generating a trapezoidal driving voltage based on the improved DDWS method and adjusting the trapezoidal driving voltage in real time when the nozzle is printing includes the following steps:

[0029] T1, stores K discrete trapezoidal driving voltage waveform data into the on-chip RAM of FPGA;

[0030] T2, setting a variable n used to count the number of discrete trapezoidal drive voltage waveforms read out;

[0031] T3, determine whether the printing action of the print head is triggered. If it is triggered, set the frequency, amplitude ratio and DAC circuit conversion frequency of the trapezoidal wave R1ˉR5 stage. Otherwise, continue to wait.

[0032] T4, FPGA takes out the nth data a and n+1th data b in the RAM, and enables the counter, which counts once at each rising edge of the system clock;

[0033] T5, determine whether data a belongs to the R2ˉR4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to data a*amplitude ratio; otherwise, set the DAC circuit output voltage value to data a;

[0034] T6, determine whether the counter is equal to the frequency of the segment where data b is located / system clock frequency. If so, the output waiting of a waveform data is completed, or the linear voltage value insertion between two discrete waveform data points is completed, and then proceed to T10, otherwise, proceed to T7;

[0035] T7, determine whether data a is equal to data b, if yes, proceed to T6, wait for a waveform data output to be completed, otherwise, proceed to T8, linearly insert the voltage value;

[0036] T8, determine whether the counter is equal to the multiple of the segment frequency of data b / DAC conversion frequency. If so, the linear insertion point = data b*the segment frequency of data b / DAC conversion frequency. Otherwise, proceed to T6;

[0037] T9, determine whether data b belongs to the R2ˉR4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to the linear insertion point * amplitude ratio. Otherwise, set the DAC circuit output voltage value to the linear insertion point. After the DAC circuit outputs the voltage value, proceed to T6.

[0038] T10, after completing the waiting of a discrete waveform data point, or completing the linear voltage value insertion between two discrete waveform data points, prepare to output the next discrete waveform, set n = n + 1, and clear the counter;

[0039] T11, determine whether n=K+1 is true, if not, proceed to T4, take out the next two discrete waveform data points, otherwise, complete the generation of a drive voltage, set n=1, proceed to T3, and wait for the next printing action of the print head to be triggered.

[0040] A variable data inkjet printer transmission speed and printing precision optimization system comprises a host computer and an inkjet printer.

[0041] The host computer is used to obtain the image to be printed, divide the image to be printed into a carrier image and a variable data area, pre-store the carrier image in the printer memory SDRAM, generate a variable data image according to the variable data area and transmit it to the printer.

[0042] The inkjet printer is used to online change the variable data area of ​​the carrier image in the SDRAM by using ping-pong operation according to the variable data image, and to generate a trapezoidal driving voltage based on the improved DDWS method, and to adjust the trapezoidal driving voltage in real time when the nozzle is printing.

[0043] Furthermore, the host computer communicates with the inkjet printer via TCP.

[0044] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the variable data inkjet printer transmission speed and printing accuracy optimization method. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.

[0046] Figure 1 It is a schematic diagram of the overall process of a method for optimizing the transmission speed and printing accuracy of a variable data inkjet printer in one embodiment of the present invention;

[0047] Figure 2 Schematic diagram of an image to be printed in one embodiment of the present invention.

[0048] Figure 3 It is a schematic diagram of the overall structure of a variable data inkjet printer transmission speed and printing accuracy optimization system in one embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of the overall process of a method for optimizing the transmission speed and printing accuracy of a variable data inkjet printer in another embodiment of the present invention;

[0050] Figure 5 It is a structural diagram of FPGA in the prior art;

[0051] Figure 6 It is a flowchart of a specific method for generating a trapezoidal driving voltage based on an improved DDWS method and adjusting the trapezoidal driving voltage in real time when the nozzle is printing in another embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with its embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the protection scope of the present invention.

[0053] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0055] The “first” and “second” mentioned in the present invention do not represent specific quantities and orders, but are merely used to distinguish names.

[0056] In the existing variable data inkjet printer, there are the following technical problems:

[0057] 1. The variable data is first embedded into the carrier image in the host computer, and then the embedded image is transmitted to the slave computer for printing. The carrier image is repeatedly stored in the host computer, which not only wastes the storage space of the host computer, but also requires the transmission of the entire image each time it is printed, which consumes a lot of time and reduces the transmission efficiency.

[0058] 2. The image transmitted from the host computer is only cached through a memory and cannot be stored and read at the same time. The waiting time when SDRAM synchronizes data is long, the data throughput rate of the inkjet printer is insufficient, and the transmission speed of the print data stream is low.

[0059] 3. The various parameters of the trapezoidal driving voltage (frequency, amplitude, high potential time, slope, etc.) are only transmitted from the host computer to the inkjet printer as discrete waveform data points before each image printing to generate the driving voltage. It is impossible to adjust the various parameters in real time each time the nozzle prints.

[0060] 4. After the discrete trapezoidal drive voltage generated by the inkjet printer is converted by DAC, the pulse width of the step-shaped part on the rising and falling edges is large. After filtering, the linear part of the rising and falling edges cannot be well realized, resulting in large distortion of the drive voltage.

[0061] In order to solve at least one of the above-mentioned technical problems, Figure 1 As shown, the present invention provides a method and system for optimizing the transmission speed and printing accuracy of a variable data inkjet printer.

[0062] In one embodiment, the variable data inkjet printer transmission speed and printing accuracy optimization method and system comprises the following steps:

[0063] S1, obtaining the image to be printed.

[0064] S2, such as Figure 2 As shown, the image to be printed is divided into a carrier image and a variable data area, the carrier image is pre-stored in the inkjet printer memory SDRAM, and the host computer generates a variable data image according to the variable data area and transmits it to the inkjet printer.

[0065] Specifically, if Figure 4As shown, in step S2, the image to be printed is divided into a carrier image and a variable data area, the carrier image is pre-stored in the inkjet printer memory SDRAM, and the host computer generates a variable data image according to the variable data area and transmits it to the inkjet printer. The specific method includes the following steps:

[0066] D1, the host computer transmits the carrier image through the network port, and the FPGA stores the carrier image in SDRAM1 and SDRAM2 for standby use.

[0067] D2, before transmitting each variable data image, the host computer changes the data in the variable data area, and makes the variable data area into a variable data image, which is cached in the host computer.

[0068] D3: The host computer transmits the first variable data image to the FPGA.

[0069] S3, based on the variable data image, using ping-pong operation to online change the variable data area of ​​the carrier image in the SDRAM.

[0070] In step S3, Figure 4 As shown, according to the variable data image, the specific method of using the ping-pong operation to online change the variable data area of ​​the carrier image in the SDRAM includes the following steps:

[0071] D4, FPGA modifies the variable data area of ​​the carrier image in SDRAM1 online according to the first variable data image transmitted by the host computer to generate the image to be printed.

[0072] D5, wait for the arrival of the substrate to trigger the photoelectric switch. After the photoelectric switch is triggered, operation 1 and operation 2 are performed simultaneously.

[0073] Operation 1:

[0074] D6, FPGA reads out a column of pixel data of the image to be printed in SDRAM1 and transmits it to the print head.

[0075] D7, after transmitting a column of pixel data to the print head, enables the drive voltage generating circuit, generates a drive voltage and transmits it to the print head, causing the print head to eject ink droplets.

[0076] D8, loop operation 1 until the printing of the image to be printed in SDRAM1 is completed.

[0077] Operation 2:

[0078] D9, transfer the next variable data image from the host computer.

[0079] D10, FPGA modifies the variable data area of ​​the carrier image in SDRAM2 online according to the variable data image transmitted by the host computer to generate the image to be printed.

[0080] D11, loop operation 2 until the modification of the variable data area of ​​the carrier image in SDRAM2 is completed.

[0081] After completing operations 1 and 2, proceed to step D12:

[0082] Wait for the next photoelectric switch trigger and exchange SDRAM1 and SDRAM2 for operation 1 and operation 2.

[0083] S4, generates a trapezoidal driving voltage based on the improved DDWS method, and adjusts the trapezoidal driving voltage in real time when the nozzle is printing.

[0084] The variable data inkjet printer transmission speed and printing accuracy optimization method can realize hardware acceleration of variable data inkjet data by first dividing the image to be printed into a carrier image and a variable data area, then pre-storing the carrier image in the inkjet printer memory SDRAM, generating a variable data image based on the variable data area and transmitting it to the inkjet printer, and finally using a ping-pong operation to change the variable data area of ​​the carrier image in the SDRAM online. In addition, based on the improved DDWS method, a trapezoidal drive voltage is generated, and the trapezoidal drive voltage is adjusted in real time when the nozzle is printing. The various parameters of the drive voltage can be adjusted in real time before each printing of the nozzle, solving the problem of low variable data transmission efficiency of the variable data inkjet printer and the inability to adjust the drive voltage in real time under high-speed printing conditions, and obtaining a higher quality print image with a faster printing speed.

[0085] In one embodiment, if Figure 6 As shown, the specific method of generating a trapezoidal driving voltage based on the improved DDWS method and adjusting the trapezoidal driving voltage in real time when the nozzle is printing includes the following steps:

[0086] T1, stores K discrete trapezoidal driving voltage waveform data into the on-chip RAM of the FPGA.

[0087] T2, set the variable n used to count the number of discrete trapezoidal drive voltage waveforms read out. The initial value of n is set to 0.

[0088] T3, determine whether the printing action of the print head is triggered. If triggered, set the frequency of the trapezoidal wave R1ˉR5 stage (the inverse of the time of each stage of the trapezoidal wave), amplitude ratio, and DAC circuit conversion frequency (the inverse of the DAC circuit conversion time). Otherwise, continue waiting.

[0089] T4, FPGA takes out the nth data a and n+1th data b in the RAM and enables the counter, which counts once at each rising edge of the system clock.

[0090] T5, determine whether data a belongs to the R2ˉR4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to data a*amplitude ratio; otherwise, set the DAC circuit output voltage value to data a.

[0091] T6, determine whether the counter is equal to the frequency of the segment where data b is located / system clock frequency, that is, determine whether it is time to output the next discrete waveform data point. If it is equal, the output waiting of a waveform data is completed, or the linear voltage value insertion between two discrete waveform data points is completed, and then proceed to T10, otherwise, proceed to T7.

[0092] T7, determine whether data a is equal to data b, that is, determine whether linear insertion voltage is required. If yes, proceed to T6 and wait for a waveform data output to be completed. Otherwise, proceed to T8 and linearly insert the voltage value.

[0093] T8, determine whether the counter is equal to a multiple of the segment frequency of data b / DAC conversion frequency, that is, determine whether there is a DAC conversion time between them. If so, the linear insertion point = data b*segment frequency of data b / DAC conversion frequency. Otherwise, proceed to T6.

[0094] T9, determine whether the data b belongs to the R2ˉR4 stage of the trapezoidal wave. If it does, set the DAC circuit output voltage value to the linear insertion point * amplitude ratio. Otherwise, set the DAC circuit output voltage value to the linear insertion point. After the DAC circuit outputs the voltage value, proceed to T6.

[0095] T10, after completing the waiting of a discrete waveform data point, or completing the linear voltage value insertion between two discrete waveform data points, prepare to output the next discrete waveform, set n=n+1, and clear the counter.

[0096] T11, determine whether n=K+1 is true, if not, proceed to T4, take out the next two discrete waveform data points, otherwise, complete the generation of a drive voltage, set n=1, proceed to T3, and wait for the next printing action of the print head to be triggered.

[0097] In the prior art, Figure 5As shown, the FPGA of the inkjet printer includes a DDWS generation module for generating a discrete trapezoidal drive voltage, a DAC circuit for converting the discrete trapezoidal drive voltage into an analog voltage, an in-phase proportional amplifier circuit for performing in-phase proportional amplification on the analog voltage, and a filter circuit for filtering the drive voltage. The FPGA generates a discrete trapezoidal drive voltage S1 by improving the DDWS method and using the DDWS generation module, converts the discrete trapezoidal drive voltage into an analog drive voltage S2 through the DAC circuit, then amplifies the drive voltage S2 into a drive voltage S3 using the in-phase proportional amplifier circuit, and finally smoothes the step-shaped portion of the rising and falling edges of the drive voltage S3 through the filter circuit to form a drive voltage 4, which is supplied to the nozzle to spray ink droplets. As shown in FIG. Figure 5 As shown, it can be seen that the discrete trapezoidal driving voltage generated by the DDWS generation module will inevitably form step-like mutations at the rising and falling edges, and the larger the pulse width of each step, the more serious the distortion of the driving voltage after filtering.

[0098] The present invention is based on an improved DDWS method and utilizes DDWS to generate a trapezoidal driving voltage with adjustable parameters such as frequency, amplitude, high potential time, slope, etc. Before the driving voltage changes, a corresponding voltage value can be linearly inserted every DAC conversion time interval to reduce the pulse width of the step-shaped part of the analog driving voltage generated by the DAC circuit, thereby effectively reducing the distortion of the trapezoidal driving voltage.

[0099] The improved DDWS method is used to generate a trapezoidal driving voltage. Not only can the various parameters of the driving voltage be adjusted in real time before each printing of the nozzle, but also the voltage values ​​of the rising and falling edges of the discrete trapezoidal driving voltage can be linearly interpolated, the pulse width of the step-shaped parts of the rising and falling edges of the discrete trapezoidal driving voltage after DAC conversion can be reduced, and the distortion of the trapezoidal driving voltage after filtering can be reduced. The problems of low variable data transmission efficiency of variable data inkjet equipment and the inability to adjust the driving voltage in real time under high-speed printing can be solved, and higher quality printing images can be obtained at a faster printing speed.

[0100] In one embodiment, if Figure 3 As shown, a variable data inkjet printer transmission speed and printing accuracy optimization system includes a host computer and an inkjet printer.

[0101] The host computer is used to obtain the image to be printed, divide the image to be printed into a carrier image and a variable data area, pre-store the carrier image in the printer memory SDRAM, generate a variable data image according to the variable data area and transmit it to the printer.

[0102] The inkjet printer is used to online change the variable data area of ​​the carrier image in the SDRAM by using ping-pong operation according to the variable data image, and to generate a trapezoidal driving voltage based on the improved DDWS method, and to adjust the trapezoidal driving voltage in real time when the nozzle is printing.

[0103] Specifically, if Figure 3 As shown, the inkjet printer includes FPGA, memory SDRAM, print head and photoelectric switch. The memory SDRAM includes SDRAM1 and SDRAM2. The host computer communicates with the inkjet printer via TCP.

[0104] The hardware circuit framework of the inkjet printer of the present invention is as follows Figure 3 As shown in the figure, FPGA is used as the control core, and the communication with the host computer is carried out through the TCP protocol network port. The data first-in-first-out feature of the asynchronous FIFO module is used to simplify the SDRAM memory interface package. When writing data, the data is first written to the write FIFO, and then cached from the write FIFO to the SDRAM; when reading data, the data in the SDRAM is first written to the read FIFO, and then read from the read FIFO to the FPGA. Using asynchronous FIFO as a buffer between SDRAM and FPGA not only reduces the complexity of the entire system, but also solves the problem of cross-clock domain between FPGA and SDRAM.

[0105] Since there are many types of power supplies required by various modules in the hardware circuit of the inkjet printer, the input external power supply is DC-DC stepped down to weak power supplies such as 3V, 2.5V, and 1.2V through the power conversion module, and the external power supply is boosted into a driving power supply using a DC-DC chip, which is supplied to the driving voltage generation circuit to generate a high-power driving voltage for inkjet printing. Every time the photoelectric switch is triggered (i.e., the substrate arrives once), the FPGA reads the image in the SDRAM and enables the driving voltage generation circuit, generating a trapezoidal driving voltage with adjustable trapezoidal wave parameters and easy filtering to supply the nozzle with ink droplets.

[0106] In one embodiment, the present invention provides a computer-readable storage medium storing a computer program, which implements the variable data inkjet printer transmission speed and printing accuracy optimization method when the computer program is executed by a processor.

[0107] In summary, the variable data inkjet printer transmission speed and printing accuracy optimization method of the present invention has the following beneficial effects:

[0108] 1. The image is divided into a carrier image and a variable data area. The carrier image is pre-stored in SDRAM once. The host computer only needs to generate a variable data image from the variable data area and pass it to the FPGA, which reduces the redundancy of image transmission and improves the data transmission efficiency of the inkjet printer.

[0109] 2. Using asynchronous FIFO as a buffer between SDRAM and FPGA simplifies the SDRAM interface, overcomes the cross-clock domain problem caused by the FPGA reference clock speed being lower than the SDRAM reference clock speed, balances the speed difference between different clock domains, and reduces signal delays and losses caused by timing problems, which helps improve system stability and reliability.

[0110] 3. Based on the variable data image passed in, FPGA implements online real-time modification of the image data in the variable data area of ​​the carrier image in SDRAM to generate a print image, and uses ping-pong operation to accelerate the reception and printing of the image in parallel, thereby improving the overall data processing rate of the system.

[0111] 4. The improved DDWS method generates a trapezoidal driving voltage. The parameters such as the frequency (time), high potential amplitude, rising and falling slopes of the trapezoidal driving voltage can be adjusted in real time when the nozzle is printing. Each time an ink drop is printed, these parameters can be adjusted to compensate for the change in the position of the substrate caused by the vibration of the conveyor belt, the difference in the conveyor belt speed at each moment, and the change in ink temperature caused by continuous printing of the nozzle.

[0112] 5. Between every two discrete waveform data points of the rising and falling edges of the trapezoidal drive voltage, and every DAC conversion time interval, a voltage value is linearly inserted to reduce the step-shaped pulse width of the rising and falling edges of the discrete trapezoidal drive voltage after DAC conversion, which can reduce the requirements on the filter circuit parameters, facilitate the generation of the trapezoidal drive voltage after filtering, and reduce the distortion of the linear part of the waveform.

[0113] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0114] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for optimizing transmission speed and printing accuracy of a variable data inkjet printer, characterized in that: The transmission speed and printing accuracy optimization method of the variable data inkjet printer comprises the following steps: Acquire the image to be printed; The image to be printed is divided into a carrier image and a variable data area, the carrier image is pre-stored in the SDRAM memory of the inkjet printer, and the host computer generates a variable data image according to the variable data area and transmits it to the inkjet printer; According to the variable data image, the variable data area of ​​the carrier image in the SDRAM is changed online by using a ping-pong operation; Generate trapezoidal driving voltage based on the improved DDWS method, and adjust the trapezoidal driving voltage in real time when the nozzle is printing; The specific method of dividing the image to be printed into a carrier image and a variable data area, pre-storing the carrier image in the SDRAM memory of the printer, and generating a variable data image according to the variable data area and transmitting it to the printer comprises the following steps: D1, the host computer transmits the carrier image through the network port, and the FPGA stores the carrier image in SDRAM1 and SDRAM2 for backup; D2, before each variable data image is transmitted, the host computer changes the data in the variable data area, and makes the variable data area into a variable data image, which is cached in the host computer; D3: The host computer transmits the first variable data image to the FPGA; The specific method of online changing the variable data area of ​​the carrier image in the SDRAM by using the ping-pong operation according to the variable data image comprises the following steps: D4, FPGA modifies the variable data area of ​​the carrier image in SDRAM1 online according to the first variable data image transmitted by the host computer to generate the image to be printed; D5, waiting for the substrate to arrive and triggering the photoelectric switch. After the photoelectric switch is triggered, operations 1 and 2 are performed simultaneously; Operation 1: D6, FPGA reads a column of pixel data of the image to be printed in SDRAM1 and transmits it to the print head; D7, after a column of pixel data is transmitted to the print head, the drive voltage generating circuit is enabled, and the drive voltage is generated and transmitted to the print head, so that the print head ejects ink droplets; D8, loop operation 1 until the printing of the image to be printed in SDRAM1 is completed; Operation 2: D9, the next variable data image is transmitted from the host computer; D10, FPGA modifies the variable data area of ​​the carrier image in SDRAM2 online according to the variable data image transmitted by the host computer to generate the image to be printed; D11, loop operation 2 until the modification of the variable data area of ​​the carrier image in SDRAM2 is completed; After completing operations 1 and 2, proceed to step D12: Wait for the next photoelectric switch trigger, and exchange SDRAM1 and SDRAM2 to perform operation 1 and operation 2; The specific method of generating a trapezoidal driving voltage based on the improved DDWS method and adjusting the trapezoidal driving voltage in real time when the nozzle is printing includes the following steps: T1, stores K discrete trapezoidal driving voltage waveform data into the on-chip RAM of FPGA; T2, setting a variable n used to count the number of discrete trapezoidal drive voltage waveforms read out; T3, determine whether the printing action of the print head is triggered. If it is triggered, set the frequency, amplitude ratio and DAC circuit conversion frequency of the trapezoidal wave R1 to R5 stages. Otherwise, continue to wait; T4, FPGA takes out the nth data a and n+1th data b in the RAM, and enables the counter, which counts once at each rising edge of the system clock; T5, determine whether data a belongs to the R2-R4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to data a*amplitude ratio; otherwise, set the DAC circuit output voltage value to data a; T6, determine whether the counter is equal to the frequency of the segment where data b is located / system clock frequency. If so, the output waiting of a waveform data is completed, or the linear voltage value insertion between two discrete waveform data points is completed, and then proceed to T10, otherwise, proceed to T7; T7, determine whether data a is equal to data b, if yes, proceed to T6, wait for a waveform data output to be completed, otherwise, proceed to T8, linearly insert the voltage value; T8, determine whether the counter is equal to the multiple of the segment frequency of data b / DAC conversion frequency. If so, the linear insertion point = data b*the segment frequency of data b / DAC conversion frequency. Otherwise, proceed to T6; T9, determine whether data b belongs to the R2-R4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to the linear insertion point * amplitude ratio. Otherwise, set the DAC circuit output voltage value to the linear insertion point. After the DAC circuit outputs the voltage value, proceed to T6; T10, after completing the waiting of a discrete waveform data point, or completing the linear voltage value insertion between two discrete waveform data points, prepare to output the next discrete waveform, set n = n + 1, and clear the counter; T11, determine whether n=K+1 is true, if not, proceed to T4, take out the next two discrete waveform data points, otherwise, complete the generation of a drive voltage, set n=1, proceed to T3, and wait for the next printing action of the print head to be triggered.

2. A variable data inkjet printer transmission speed and printing accuracy optimization system, characterized in that: The variable data inkjet printer transmission speed and printing accuracy optimization system comprises: The host computer is used to obtain the image to be printed, divide the image to be printed into a carrier image and a variable data area, pre-store the carrier image in the SDRAM memory of the printer, generate a variable data image according to the variable data area and transmit it to the printer; The inkjet printer is used to change the variable data area of ​​the carrier image in the SDRAM online by using the ping-pong operation according to the variable data image, and to generate the trapezoidal driving voltage based on the improved DDWS method, and to adjust the trapezoidal driving voltage in real time when the nozzle is printing; The specific method of dividing the image to be printed into a carrier image and a variable data area, pre-storing the carrier image in the SDRAM memory of the printer, and generating a variable data image according to the variable data area and transmitting it to the printer comprises the following steps: D1, the host computer transmits the carrier image through the network port, and the FPGA stores the carrier image in SDRAM1 and SDRAM2 for backup; D2, before each variable data image is transmitted, the host computer changes the data in the variable data area, and makes the variable data area into a variable data image, which is cached in the host computer; D3: The host computer transmits the first variable data image to the FPGA; The specific method of online changing the variable data area of ​​the carrier image in the SDRAM by using the ping-pong operation according to the variable data image comprises the following steps: D4, FPGA modifies the variable data area of ​​the carrier image in SDRAM1 online according to the first variable data image transmitted by the host computer to generate the image to be printed; D5, waiting for the substrate to arrive and triggering the photoelectric switch. After the photoelectric switch is triggered, operations 1 and 2 are performed simultaneously; Operation 1: D6, FPGA reads a column of pixel data of the image to be printed in SDRAM1 and transmits it to the print head; D7, after a column of pixel data is transmitted to the print head, the drive voltage generating circuit is enabled, and the drive voltage is generated and transmitted to the print head, so that the print head ejects ink droplets; D8, loop operation 1 until the printing of the image to be printed in SDRAM1 is completed; Operation 2: D9, the next variable data image is transmitted from the host computer; D10, FPGA modifies the variable data area of ​​the carrier image in SDRAM2 online according to the variable data image transmitted by the host computer to generate the image to be printed; D11, loop operation 2 until the modification of the variable data area of ​​the carrier image in SDRAM2 is completed; After completing operations 1 and 2, proceed to step D12: Wait for the next photoelectric switch trigger, and exchange SDRAM1 and SDRAM2 to perform operation 1 and operation 2; The specific method of generating a trapezoidal driving voltage based on the improved DDWS method and adjusting the trapezoidal driving voltage in real time when the nozzle is printing includes the following steps: T1, stores K discrete trapezoidal driving voltage waveform data into the on-chip RAM of FPGA; T2, setting a variable n used to count the number of discrete trapezoidal drive voltage waveforms read out; T3, determine whether the printing action of the print head is triggered. If it is triggered, set the frequency, amplitude ratio and DAC circuit conversion frequency of the trapezoidal wave R1 to R5 stages. Otherwise, continue to wait; T4, FPGA takes out the nth data a and n+1th data b in the RAM, and enables the counter, which counts once at each rising edge of the system clock; T5, determine whether data a belongs to the R2-R4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to data a*amplitude ratio; otherwise, set the DAC circuit output voltage value to data a; T6, determine whether the counter is equal to the frequency of the segment where data b is located / system clock frequency. If so, the output waiting of a waveform data is completed, or the linear voltage value insertion between two discrete waveform data points is completed, and then proceed to T10, otherwise, proceed to T7; T7, determine whether data a is equal to data b, if yes, proceed to T6, wait for a waveform data output to be completed, otherwise, proceed to T8, linearly insert the voltage value; T8, determine whether the counter is equal to the multiple of the segment frequency of data b / DAC conversion frequency. If so, the linear insertion point = data b*the segment frequency of data b / DAC conversion frequency. Otherwise, proceed to T6; T9, determine whether data b belongs to the R2-R4 stage of the trapezoidal wave. If so, set the DAC circuit output voltage value to the linear insertion point * amplitude ratio. Otherwise, set the DAC circuit output voltage value to the linear insertion point. After the DAC circuit outputs the voltage value, proceed to T6; T10, after completing the waiting of a discrete waveform data point, or completing the linear voltage value insertion between two discrete waveform data points, prepare to output the next discrete waveform, set n = n + 1, and clear the counter; T11, determine whether n=K+1 is true, if not, proceed to T4, take out the next two discrete waveform data points, otherwise, complete the generation of a drive voltage, set n=1, proceed to T3, and wait for the next printing action of the print head to be triggered.

3. A variable data inkjet printer transmission speed and printing accuracy optimization system as claimed in claim 2, characterized in that: The host computer and the inkjet printer communicate via TCP.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for optimizing the transmission speed and printing accuracy of a variable data inkjet printer as claimed in claim 1 is implemented.