1. Field of technology
The present invention relates to a thermal printer and to a control method for the thermal printer.
2. Description of Related Art
Thermal printers hold the thermal paper between the thermal print head and a platen roller and advance the paper by rotating the platen roller. The thermal print head has heating elements (dots) arrayed in a line (one dot line) across the width of the paper, and applies current to selected or all of the heating elements in this dot line to produce heat and cause the thermal paper to change color. The thermal printer prints “dots” by energizing the thermal print head while advancing the thermal paper. Torque for rotating the platen roller is transferred from a rotational drive source such as a stepping motor through a transfer mechanism (a gear train) to the platen roller.
The printing speed of a thermal printer is determined by various parameters, including the energizing voltage applied to the thermal print head, the print duty (the ratio of printed dots to the number of total dots in one dot line), the temperature of the print head, printing pattern, print data communication speed, and the amount of time required for internal data processing. These parameters are hereinafter referred to individually or collectively as “print speed control factors”. A change in one or more of the print speed control factors changes the print head energizing time and print speed. The print head energizing time and print speed are adjusted according to change in these print speed control factors in order to achieve the best print quality. The print speed of a thermal printer is equal to the paper feed rate because printing occurs while the paper is advanced.
Various control methods have been proposed for assuring good print quality when the print speed is changed based on changes in the print speed determination factors.
The control method taught in Japanese Unexamined Patent Appl. Pub. H03-231869 supplies more electrical energy to the thermal print head when the print speed is increasing or decreasing than when the print speed is constant.
The control method taught in Japanese Unexamined Patent Appl. Pub. H10-193664 measures the print head temperature and determines the print speed to control the pulse width (the thermal print head energize time and electrical energy) of a strobe signal comprising the thermal print head temperature and print speed.
The print quality of the dots printed on the thermal paper is affected by the accumulation of heat in each heating element in the print head preceding the printing of current dots. It has been discovered that by controlling the setting of the hysteresis coefficient of the thermal print head according to print speed and by changing the print speed based on the energizing history of each printed dot superior print quality can be achieved. The hysteresis coefficient can be set at multiple values based on the history of the energy applied over a period of forming multiple dots but it is preferred to set the hysteresis coefficient based on the immediately preceding application of energy to each heating element in the print head and to change the setting during the period of print deceleration.
It has been discovered that print quality varies particularly easily when the print speed decreases. When the print duty of the content to be printed is high (such as when printing solid black or during logo printing as described below), the print speed is reduced in order to avoid overheating the thermal print head and a drop in the energizing voltage, but this can also result in the print density varying.
When printing a receipt with a thermal printer in a POS terminal, for example, the store name, purchase information including the name and price of each purchased product, and a logo for the store or sales campaign are typically printed. In this case text such as the store name and the purchase information may be printed first at the beginning of the receipt, and then followed by printing a logo for a sales campaign, for example. The print duty differs greatly during logo printing of graphic data as compared to printing text, and the print speed therefore also changes. More specifically, the print duty is low and the print speed is high when printing text, and the print duty is high and the print speed is low during logo printing. There is therefore a transition from printing text to logo printing when printing both text and a logo continuously on a receipt, and the print speed decreases (gradually) at this transition from text to logo printing. As a result, when the print duty is high, the print speed is reduced so that the energizing interval (non-energized time) increases. This may be accomplished by increasing the pulse width of the strobe signal (drive signal). As shown in
The print quality is easily affected by change in heat accumulation when the print speed is changed. More specifically, the cooling time of the thermal print head is shortened because the energizing interval is short during the high print speed period preceding deceleration, and because heat accumulation from the previously energized dot affects energization of the heating element in the formation of the next dot. During deceleration, however, the thermal print head cooling time increases because the energizing interval increases, and the effect of heat accumulation from the previously energized dot on the formation of the next dot is small. Controlling printing with consideration for the effect of heat accumulation has therefore been found to be necessary while the print speed is decreasing.
The present invention is directed to a thermal printer and a thermal printer control method for enabling printing with good print quality while reducing the print speed without causing streaks and uneven print density in the printed output.
The thermal printer of the present invention controls print speed based on print speed control factors and comprises a hysteresis coefficient setting unit for setting a hysteresis coefficient based on a thermal print head energizing history; an energizing time calculation unit for calculating an energizing time of a drive signal applied to the thermal print head based on the hysteresis coefficient setting; a print head control unit for applying the drive signal generated based on the calculated energizing time to the thermal print head; a speed change acquisition unit for determining change in the print speed; and a coefficient changing unit for setting the hysteresis coefficient used when the print speed is decreasing to a value greater than the hysteresis coefficient used immediately before deceleration when the speed change acquisition unit determines that the print speed is decreasing.
The control method of the present invention controls the print speed of a thermal printer based on print speed control factors and comprises the steps of: setting a hysteresis coefficient based on a thermal print head energizing history; calculating an energizing time of a drive signal applied to the thermal print head based on the hysteresis coefficient setting; determining change in the print speed; and changing the hysteresis coefficient used when the print speed is decreasing to a value greater than the hysteresis coefficient used immediately before deceleration when the print speed is determined to be decreasing.
When the print speed is decreasing, the hysteresis coefficient is increased and the adjustment in the energizing time of the drive signal(s) applied to the thermal print head is decreased. The effect of heat accumulation is smaller when the print speed is slowing, and the energizing time of the drive signal applied to the dot addressed by the hysteresis coefficient is therefore increased compared with the value of the hysteresis coefficient immediately before the deceleration (when the print speed is high (constant) or accelerating). Printing with good quality and no white streaks or uneven print density is therefore possible when the print speed is decreasing.
The hysteresis coefficient is a coefficient for controlling the amount of electrical energy applied to each dot of the thermal print head to print based on the preceding energizing history (print history) of the thermal print head. For example, if the energization of the print head used to print each dot is the same used to print the previous line (one dot before), each energized heating element forming the dot will not cool sufficiently because the supplied electrical energy accumulates heat, and the temperature of the heating element forming the dot rises and does not return to the temperature before the electrical energy was applied. If electrical energy is applied for the same energizing time to print the next dot, the thermal printer generally overheats excessively, and the accumulated heat contributes to a drop in print quality appearing as bleeding and malformed dots in the printed text. To prevent this, the amount of electrical energy used to energize the next dot is adjusted (decreased) based on the accumulation of heat in the thermal print head due to being previously energized. The hysteresis coefficient is the coefficient that determines this adjustment.
In a preferred aspect of the invention the energizing time calculation unit calculates the energizing time based on the product of the hysteresis coefficient and a predetermined reference energizing time that is a reference for the energizing time; and the reference energizing time is constant during deceleration and the period immediately before deceleration.
This aspect of the invention assures good print quality during the deceleration period by simply increasing the value of the hysteresis coefficient to increase the energizing time of the drive signal for the dot addressed by the hysteresis coefficient without also controlling the reference energizing time. High quality printing can therefore be assured without the complexity of changing the reference energizing time based on the print speed determination factors, also changing the hysteresis coefficient, and then recalculating the energizing time.
Further preferably, the thermal printer also has a print duty calculation unit for calculating the print duty, which is a print speed determination factor, based on print data, and the hysteresis coefficient setting unit sets the hysteresis coefficient based on the calculated print duty.
When a thermistor or other temperature detection device is used to measure heat accumulation by the thermal print head, that is, the print head temperature, it is difficult for the temperature detection device to measure the temperature without a time lag from the actual temperature change. Setting the hysteresis coefficient may therefore be delayed from the actual temperature change. The print duty (representing the ratio of printed dots to the number of total dots in one dot line or print data) is indicative of the total applied electrical energy, and can therefore be used instead of actually measuring the temperature of the thermal print head. Therefore, by setting the hysteresis coefficient based on the print duty, this aspect of the invention can suitably control setting the hysteresis coefficient applied to the thermal print head with no delay between the actual temperature change and setting the hysteresis coefficient.
In this aspect of the invention the speed change acquisition unit preferably gets the speed change based on the print speed determination factors.
This aspect of the invention enables predicting the speed change. As a result, setting the hysteresis coefficient applied to the thermal print head when the print speed is decreasing can be suitably controlled with no delay between the actual decrease (deceleration) in the print speed and resetting of the hysteresis coefficient.
Other advantages and attainments of the invention will become apparent and appreciated by referring to the following description and claims taken in conjunction with the accompanying drawings.
Print Speed Variation State
The thermal printer and control method of the present invention assures good print quality by monitoring the print speed variation state particularly during print speed deceleration. The print speed variation state as used herein is the state in which the print speed V (see
Energizing time
The reference energizing time T (see
Hysteresis Coefficient
Plural hysteresis coefficients can be desirably preset according to the characteristics and use of the thermal printer 1.
Plural hysteresis coefficients can be set according to the history of energizing heating elements in the print head for forming a particular dot or plural dots before forming a current dot. However, because the energy applied to the immediately preceding dot has the greatest effect on the print quality of the current dot, only one hysteresis coefficient (Q or Q′) is set according to the energy applied to the immediately preceding dot in this embodiment of the invention.
As shown in
The hysteresis coefficient is preferably set according to the printing pattern or print duty. Suitable hysteresis coefficients are also preferably set and stored according to the rate of decrease in the print speed V. This enables a suitable hysteresis coefficient to be determined and applied quickly.
The example shown in
The example shown in
A thermal printer 1 according to the present invention is described hereafter in more detail with reference particularly to
The thermal printer 1 comprises a thermal print head 35, hysteresis coefficient setting unit 2, energizing time calculation unit 3, printing control device (print head control unit) 4, print speed determination unit (also referred to as the speed change acquisition unit) 5, and coefficient changing unit 6.
Based on the print duty and other print speed determination factors, the print speed determination unit 5 determines the print speed V and the state of change in the print speed V. The print speed determination unit 5 interprets commands and print data sent from the host computer 29, and calculates the print duty (counts the number of dots that actually print on each dot line) to acquire these parameters. The print speed V or change in the print speed can also be set by a command, for example, in which case the print speed V indicated by the command is stored in the print speed determination unit 5.
This is described more specifically using a printing pattern having a transition from a text printing area where the print duty is low to a printing area having a high print duty, such as when printing a logo or a solid black area where the print duty is greatest. The acquired print speed V and print speed change are high speed and constant in the text printing area (see high speed period I in
The print data and commands can also be interpreted to determine the printing pattern. More specifically, graphic data (such as a logo or printing a solid black area) and text data (text information) can be differentiated based on the print data and commands.
The hysteresis coefficient setting unit 2 reads and sets the hysteresis coefficient stored in ROM 17 described below based on the print duty acquired by the print speed determination unit 5.
The energizing time calculation unit 3 calculates the energizing time of the drive signals applied to each dot of the thermal print head 35 based on the reference energizing time T and hysteresis coefficient Q (Q′). More specifically, the energizing time is calculated as the product of the reference energizing time T and hysteresis coefficient Q (Q′). Q is 0.7 and Q′ is 0.9, for example. By thus setting the hysteresis coefficient based on the print duty (print data), the thermal print head 35 energizing time can be appropriately controlled with no delay between setting the hysteresis coefficient and the temperature change. A hysteresis coefficient is applied to all of the heating elements in the thermal print head 35 to print uniform dots. Alternatively, the energizing history of each dot can be acquired from the print data stored in memory or from the host computer 29 and the hysteresis coefficient can be set separately for each dot. Further alternatively, a combination of plural hysteresis coefficients can be used.
The printing control device 4 generates the drive signals based on the calculated energizing time, and applies the resulting drive signals to the thermal print head 35. Each driven dot heats for a time determined by the energizing time of the drive signal (the strobe signal pulse width), and causes the thermal paper 37 held between the thermal print head 35 and platen roller 33 described below to change color.
When the print speed determination unit 5 determines that the print speed is decreasing, that is, the transition zone (deceleration period 11) described above is detected, the coefficient changing unit 6 changes the hysteresis coefficient used in the deceleration period to a value Q′ that is greater than the hysteresis coefficient Q used when the print speed is constant, such as when printing text (in high speed period 1).
The values of reference energizing time T, and hysteresis coefficients Q, Q′ can be predetermined and stored in memory, or set by a command and stored for use.
Referring to
RAM 19 temporarily stores commands and print data sent from the host computer 29 over a network 27 (such as the Internet or an intranet) and received by a suitable interface 26.
The print speed calculation circuit 13 analyzes the print data and commands stored in RAM 19 based on a control program stored in a specific area in ROM 17, and determines the print speed V from the start of printing to the end of printing.
ROM 17 stores the reference energizing time T and the hysteresis coefficients Q and Q′. Rewritable nonvolatile memory such as flash ROM can be used instead of ROM 17.
The motor driver 21 controls driving the stepping motor 31 of the 30 to achieve the print speed V determined by the print speed calculation circuit 13. Drive torque from the stepping motor 31 is transferred through a transfer mechanism 32 comprising a gear train to the platen roller 33.
The strobe signal calculation circuit 15 reads the reference energizing time T and hysteresis coefficient Q (Q′) from RAM 19 based on the print speed V calculated by the print speed calculation circuit 13. The strobe signal calculation circuit 15 then corrects the reference energizing time T based on the hysteresis coefficient, and adjusts the drive signal energizing time. Based on this drive signal, the thermal print head driver 23 causes specific dots of the thermal print head 35 to heat and print a dot on the thermal paper 37.
The thermometer 24 is a thermistor, for example, for measuring the temperature of the thermal print head 35. The temperature of the thermal print head 35 is an important parameter (print speed determination factor) used to control the print speed V, and the print speed V determined by analyzing the print data is preferably corrected based on the temperature of the thermal print head 35 measured by the thermometer 24.
The thermal printer 1 drive status and other information useful to the user is displayed on the display 25. The display 25 may be a liquid crystal display panel or LEDs, for example.
The control method of this thermal printer 1 is described next. The reference energizing time T is preset based on the print speed determination factors. As described above, the hysteresis coefficient is set based on the print duty calculated from the print data and commands (S1 in
This control method can reduce the adjustment (decrease) in the energizing time of the drive signal applied to each dot of the thermal print head 35. More specifically, good print quality can be assured by appropriately changing the hysteresis coefficient when the print speed changes. As a result, unstable print quality can be prevented when the print speed is slowing because the dots of the thermal print head 35 will not overheat or overcool, and variations in print density and the appearance of white streaks can be prevented. Good print quality can therefore be assured even in areas where the thermal paper 37 is decelerating.
As shown in
As shown in
Although the present invention has been described in connection with the preferred embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications will be apparent to those skilled in the art. Such changes and modifications are to be understood as included within the scope of the present invention as defined by the appended claims, unless they depart therefrom.
Number | Date | Country | Kind |
---|---|---|---|
2005-213800 | Jul 2005 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5184150 | Sugimoto | Feb 1993 | A |
5483273 | Fujimoto et al. | Jan 1996 | A |
6057870 | Monnier et al. | May 2000 | A |
7271818 | Mason | Sep 2007 | B2 |
Number | Date | Country |
---|---|---|
03-231869 | Oct 1991 | JP |
06-127012 | May 1994 | JP |
08-011342 | Jan 1996 | JP |
10-129029 | May 1998 | JP |
10-193664 | Jul 1998 | JP |
Number | Date | Country | |
---|---|---|---|
20070019062 A1 | Jan 2007 | US |