The present application is based upon and claims the benefit of priority of Japanese Patent Application No. 2016-133522, filed on Jul. 5, 2016, the entire contents of which are incorporated herein by reference.
An aspect of this disclosure relates to a thermal printer.
A known thermal printer includes multiple heating elements that generate heat corresponding to the amounts of energy applied, and forms a multi-gradation image on a recording medium.
In such a thermal printer, gradation levels are determined based on a relationship, which is illustrated in
Japanese Laid-Open Patent Publication No. 04-220358 discloses a thermal printer where the amounts of energy applied to heating elements are determined based on linear approximation of the relationship between the optical density of a printed image and energy applied to the heating elements in a medium density range, in order to reduce the processing load.
The relationship between the optical density and the reflectance indicating brightness of a printed image is represented by a formula below.
Optical density=−log(reflectance)
Accordingly, as illustrated in
As illustrated in
In an aspect of this disclosure, there is provided a thermal printer including heating elements that generate heat according to amounts of applied energy, an energy applier that applies energy to the heating elements, a memory that stores a gradation table where energy levels to be applied to the heating elements are set for gradation levels based on a relationship between dot area ratios of an image and the amounts of energy applied to the heating elements, and a controller that transfers control data multiple times to the energy applier based on the gradation table to control the amounts of energy to be applied by the energy applier to the heating elements, each of the control data corresponding to different amounts of energy.
Embodiments of the present invention are described below with reference to the accompanying drawings. The same reference number is assigned to the same components, and repeated descriptions of those components may be omitted.
<Configuration of Thermal Printer>
As illustrated in
The heating elements R are provided in a thermal head and arranged in a line along the main scanning direction. The respective heating elements R generate heat corresponding to the level of applied energy to heat a recording medium such as thermal paper and form an image on the recording medium. The thermal printer 100 can print 640 dots per print line on a recording medium.
The heating elements R are grouped into printing blocks corresponding to print areas, and the printing blocks are separately controlled. In the present embodiment, the heating elements R1-R640 are grouped into four printing blocks each including 160 heating elements: heating elements R1-R160, heating elements R161-R320, heating elements R321-R480, and heating elements R481-R640. The number of heating elements and the number of printing blocks are not limited to this example.
The MCU 10 is an example of a controller. The MCU 10 sets the amounts of energy to be applied to the heating elements R based on the gradation levels of an image to be printed, and sends various signals to the shift register 14, the latch register 16, and the ICs. The shift register 14, the latch register 16, the ICs, and the power supply 17 forms an energy applier for applying energy to the heating elements R.
The MCU 10 generates a DI signal for controlling the heating elements R based on image data input to the thermal printer 100 and a gradation table stored in the RAM 11, and sends the generated DI signal to the shift register 14 via a clock synchronous serial communication. After transmitting the DI signal for one print line to the shift register 14, the MCU 10 sends a /LAT signal to the latch register 16 to cause the latch register 16 to latch data in the shift register 14.
The RAM 11 is an example of a memory, and stores a gradation table that contains energy values corresponding to gradation levels.
The shift register 14 stores 640-bit data, and includes data areas each of which stores one bit of data. Each bit of the shift register 14 corresponds to one of the heating elements R. For example, bit 0 corresponds to the heating element R1, and bit 639 corresponds to the heating element R640. The data stored in the shift register 14 is used to control the heating elements. When a bit is 1, the corresponding heating element R is turned on; and when a bit is 0, the corresponding heating element R is turned off.
Similarly to the shift register 14, the latch register 16 includes data areas corresponding to the heating elements R. The latch register 16 latches signals sent from the shift register 14 when receiving the /LAT signal from the MCU 10. The signals latched by the latch register 16 are input to the ICs.
Each one of the ICs 1-640 is provided for, and is connected to the corresponding heating elements R1-R640. The ICs are turned on and off by STB signals. When an IC receives a signal “1” from the latch register 16 and receives an STB signal “ON” from the MCU 10, the IC supplies power to the corresponding heating element. Power is supplied to each heating element R while the STB signal is ON. That is, the power-supply period of each heating element R is controlled by the STB signal. The amount of energy supplied to each heating element R increases as the power-supply period increases.
The MCU 10 sends an STB signal for each of the printing blocks. The MCU 10 sends an STB1 signal to the ICs 1-160, an STB2 signal to the ICs 161-320, an STB3 signal to the ICs 321-480, and an STB4 signal to the ICs 481-640, to separately control the printing blocks.
The power supply 17 is connected to, and applies a voltage V to the heating elements R. The MCU obtains amount of the voltage V applied from the power supply 17 to the heating elements R based on a voltage Vin obtained by the voltage dividing circuit 18 by dividing the voltage V. The thermistor 12 is an example of a temperature detector, and measures a temperature of the thermal head where the heating elements R are provided, and sends measured temperature to the MCU 10.
<Gradation Table>
A gradation table used to control the energy to be applied to the heating elements R is described.
To reproduce smooth gradations of an image, a grayscale between white and black is divided based on reflectances. As illustrated in
In the present embodiment, gradation levels are determined based on a relationship between the energy applied to the heating element and the dot area ratio of an image as indicated by
Storing energy values for respective gradation levels in advance as a gradation table eliminates the need to calculate an energy value corresponding to a gradation level of an image to be printed based on a relationship between gradation levels and energy values.
Table 1 includes gradation levels 0-15 used to print a 16-gradation-level image. However, depending on the number of gradation levels of image data to be printed, a different gradation table with 4 gradation levels or 32 gradation levels may be stored in the RAM 11. Also, multiple gradation tables of different gradation levels may be stored. Table 2 is an example of a gradation table with 4 gradation levels. Table 3 is an example of a gradation table with 32 gradation levels.
When printing image data of 16 gradation levels, the MCU 10 sets the amounts of energy to be applied to the heating elements R based on Table 1. The MCU 10 controls the energy value to be applied to each of the heating elements R by changing the time period for supplying power to each heating element.
As illustrated in
As illustrated in
By using a gradation table where energy values are set such that the reflectance of original image data matches the reflectance of a printed image as illustrated in
As described above, by using Table 1 for printing, the gradation reproducibility of a printed image at gradation levels 0 through 15 can be improved as illustrated in
The thermal printer 100 may be configured to store multiple gradation tables in the RAM 11, and to allow a user to select one of the gradation tables for printing. The user can print an image with desired gradation characteristics by selecting a gradation table suitable for the image to be printed.
The RAM 11 may store gradation tables with different numbers of gradation levels as exemplified by Tables 1-3, and/or gradation tables where the same number of gradation levels are defined but different energy values are specified for each of the gradation levels. Further, the RAM 11 may store a gradation table where energy values are set for gradation levels such that gradations are easily recognizable by human eyes, based on a relationship between the gradation level and the reflectance of an image expressed by a logarithmic function (
<Data Transfer>
Next, a method of transferring control data for turning on and off the heating elements from the MCU 10 to the shift register 14 is described.
The MCU 10 transfers control data for controlling the heating elements to the shift register 14 so that energy corresponding to the gradation levels of image data is applied to each heating element.
For example, when printing a 16-gradation-level image by using Table 1, the MCU 10 transfers control data corresponding to gradation levels 1 through 15 for 15 times for each print line to apply energy corresponding to gradation levels to the respective heating elements R.
However, if the control data need to be transferred 15 times for each print line, a data transfer time for each line is 128 us when the data transfer rate of the MCU 10 is 5 MHz. Accordingly, when the resolution of image data is 200 dpi (8 dot/mm), the printing speed is reduced to 60 mm/sec.
In the present embodiment, the number of times data is transferred from the MCU 10 is reduced and the printing speed is increased by using a data transfer method described below.
Energy corresponding to 16 gradation levels can be applied to the heating elements R by setting energy levels 0 through 15 by dividing an energy range of 0% through 100% into 16 equal parts as indicated by Table 4, and a 16-gradation-level image can be printed by transferring control data only four times.
The MCU 10 transfers control data four times to the heating elements to apply energy with energy levels 0 through 15 corresponding to the gradation levels 0 through 15. The MCU 10 firstly sends first control data indicating ON or OFF of 53.3% energy, then sends second control data indicating ON or OFF of 26.7% energy, then sends third control data indicating ON or OFF of 13.3% energy, and finally sends fourth control data indicating ON or OFF of 6.7% energy.
If the heating element R1 is used to print an image of gradation level 7, energy of 46.7% corresponding to energy level 7 needs to be applied to the heating element R1. In this case, the MCU 10 sends the first control data (OFF), the second control data (ON), the third control data (ON), and the fourth control data (ON) for the heating element R1 based on Table 4. As a result, a total of 46.7% energy (26.7%+13.3%+6.7%) is applied to the heating element R1.
Thus, energy corresponding to gradation levels can be applied to the heating elements by transferring control data four times such that control data indicate ON and OFF of different amounts of energy. The data transfer described above can reduce the number of data transfer from the MCU 10 to the shift register 14 and enables high-speed printing.
In Table 1, the minimum difference between energy values set for two adjacent gradation levels is 3.2%. To support the minimum difference of 3.2%, an energy level table of Table 5 is set by dividing the energy range of 0% through 100% into 32 (=25) equal parts such that the energy difference between gradation levels becomes about 3.2%.
With such energy level table, the energy values corresponding to the gradation levels in Table 1 can be associated with energy levels in Table 5 to set a gradation-energy table of Table 6. For example, 25.9% energy corresponding to gradation level 1 in Table 1 is close to 25.8% energy corresponding to energy level 8 in Table 5, and can be associated with energy level 8. Accordingly, a 16-gradation-level image can be printed by using energy values corresponding to the energy levels associated with the gradation levels.
When energy values corresponding to gradation levels in a gradation table are associated with 32 (=25) energy levels, a 16-gradation-level image can be printed by transferring control data five times for each print line. For example, the MCU 10 transfers control data five times based on Table 7 to apply energy corresponding to the gradation levels to the heating elements R.
As indicated by Table 7, to apply energy corresponding to gradation levels of image data, the MCU 10 sends first control data indicating ON or OFF of 51.6% energy, sends second control data indicating ON or OFF of 25.8% energy, sends third control data indicating ON or OFF of 12.9% energy, sends fourth control data indicating ON or OFF of 6.5% energy, and finally sends fifth control data indicating ON or OFF of 3.2% energy for each heating element.
When printing an image of gradation level 4, 38.7% energy corresponding to energy level 12 needs to be applied to the heating element. In this case, the MCU 10 sends the first control data (OFF), the second control data (ON), the third control data (ON), the fourth control data (OFF), and the fifth control data (OFF) based on Table 7. As a result, a total of 38.7% energy (25.8%+12.9%) is applied to the heating element.
Thus, energy corresponding to gradation levels can be applied to the heating elements R by transferring a set of five of control data that correspond to different energy amounts. With the data transfer method described above, the thermal printer 100 can reduce the number of data transfer from the MCU 10 to the shift register 14 and can perform high-speed printing.
When printing an image with Table 2 with four gradation levels, energy corresponding to gradation levels of image data can be applied to the respective heating elements R1-R640 by setting an energy level table including 8 (=23) energy levels and transferring control data three times. When printing an image with Table 3 with 32 gradation levels, energy corresponding to gradation levels can be applied to the respective heating elements R by setting an energy level table including 64 (=26) energy levels and transferring control data six times.
Thus, when an image is to be printed based on a gradation table including 2n gradation levels (n is an integer greater than or equal to 1), an energy level table including 2m energy levels (m is an integer greater than n) is set based on the minimum energy difference between the gradation levels in the gradation table. The MCU 10 can apply energy corresponding to gradation levels to the heating elements R by transferring control data of different amounts of energy “m” times to the shift register 14.
Table 8 indicates an exemplary relationship between the number of times control data is transferred from the MCU 10 to the shift register 14 (transfer count) and the amounts of energy (energy values) represented by respective sets of control data.
An energy value E1 represented by first control data transferred at the first time is obtained by formula (2) below.
Also, an energy value represented by control data transferred at the second or subsequent time is set to one half (½) of the energy value represented by control data transferred at the previous time. Thus, energy corresponding to gradation levels in a gradation table can be applied to the heating elements R by setting the amount of energy applied by each set of control data and transferring the control data for each of the heating elements R.
When energy is applied to a large number of heating elements at the same time, the power consumption may increase. Therefore, the MCU 10 transfers control data separately for each of the printing blocks: heating elements R1-R160 (first block), heating elements R161-R320 (second block), heating elements R321-R480 (third block), and heating elements R481-R640 (fourth block).
When transferring control data five times for each print line, the MCU 10 generates five sets of 640-bit control data (DATA 1 through DATA 5) for the heating elements R as illustrated in
As illustrated in
The MCU 10 also sends STB1 through STB4 in sequence to the ICs at the timings when power is supplied to the respective printing blocks. As a result, power is supplied to each printing block. The amount of energy to be applied to each heating element is controlled by power-supply period for which power is supplied to each heating element. The power-supply period is controlled by an input period for which STB signal is on. STB1 through STB4 are transferred for one printing block in succession by changing the input period based on the control data such that the energy amount set for each data transfer in Table 7 is applied to the corresponding heating elements. Thus, by transferring control data separately for each printing block and applying energy to heating elements, the number of heating elements to which power is supplied at the same time can be reduced to a maximum of 160, and the power consumption can be reduced.
Also, by transferring plural control data to each printing block consecutively, a power-supply interval (a time period between an end of a previous power supply and a start of next power supply) of the heating elements in the printing block can be made constant, and variation in print density due to variation in the power-supply interval can be reduced.
<Energy Amount Correction>
Next, a method of correcting the amount of energy applied to the heating elements R is described.
Even when the same amount of energy is applied to heating elements, the density of a printed image may vary depending on the type of recording medium used. This is because the amount of energy necessary to produce color varies depending on recording media. In the present embodiment, maximum values of energy applied to the heating elements R at the maximum gradation level are set for different types of recording media. By setting maximum energy values for different types of recording media, images with constant quality can be printed regardless of the types of recording media.
Table 9 is an example of an energy table stored in the RAM 11 where maximum energy values E0(P) are set for respective types of paper P. For example, for paper 1, the energy E0 applied to the heating elements R at the maximum gradation level is 23.7 mJ/mm2. The MCU 10 obtains, from the RAM 11, the maximum energy value E0(P) corresponding to the type of paper P to be used. The type of paper P may be determined based on, for example, a parameter preset in the thermal printer 100, or a parameter received by the thermal printer 100 together with print data. Based on the obtained maximum energy value E0(P), the MCU 10 sends various signals to the shift register 14 to apply energy set in a gradation table to the heating elements R.
As described above, energy is applied separately to each of the printing blocks. Still however, when power is supplied to a large number of heating elements at the same time, a voltage drop may occur.
Therefore, one or more voltage correction values kv (V) for correcting the amount of energy applied to the heating elements R are set and stored in the RAM 11. The voltage correction values kv (V) are set based on a voltage V applied by the power supply 17 to the heating elements R.
As described above, the MCU 10 supplies power to heating elements by transferring control data multiple times for each print line. The number of heating elements to which power is supplied may vary each time control data is transferred, and a voltage drop may occur when power is supplied to a large number of heating elements. Therefore, the timing to correct the amount of energy based on the voltage correction value kv (V) needs to be changed depending on the voltage of power supply 17. Because the amount of energy hardly varies in a high-voltage range, the amount of 100% energy is corrected for each print line when the thermal printer 100 is used with a high-voltage system. In contrast, when the thermal printer 100 is used with a low-voltage system such as a battery, the amount of energy varies greatly depending on the voltage, and the amount of energy needs to be corrected based on the number of heating elements to which power is supplied. Accordingly, in this case, the amount of energy is corrected each time power is supplied to the heating elements.
Also, even when the same amount of energy is applied to a heating element, the temperature of the heating element after application of energy may vary due to an influence of the temperature of the thermal head where the heating element is provided. Accordingly, even when image data with the same density is used, images with different density levels may be printed.
Therefore, one or more temperature correction values kT (T) for correcting the energy amount applied to the heating elements R may be set and stored in the RAM 11. The temperature correction values kT (T) are set based on a temperature T of the thermal head measured by the thermistor 12.
Also, even when the same amount of energy is applied to a heating element, the temperature of the heating element after application of energy may vary because the degree to which the heating element radiates heat and cools varies depending on a period of time from an end of power supply for the previous print line to a start of power supply for the next print line (radiation time t). Accordingly, even when image data with the same density is used, images with different density levels may be printed.
Therefore, one or more rate correction values ks (t) for correcting the amounts of energy applied to the heating elements R may be set and stored in the RAM 11. The rate correction values ks (t) are set based on the radiation time t of the heating elements R.
Further, even when the same amount of energy is applied to a heating element, the temperature of the heating element after application of energy may vary depending on whether power is supplied at the previous print line and/or whether power is supplied to an adjacent heating element. Accordingly, even when image data with the same density is used, images with different density levels may be printed.
Therefore, one or more print percentage correction values kD (D) to correct the amount of energy applied to the heating elements R may be set and stored in the RAM 11 in association with print percentages D. The print percentage correction values kD (D) are determined based on a print percentage D.
For example, as illustrated in
The MCU 10 obtains a print percentage correction value kD (D) for each print dot from the RAM 11 based on the calculated print percentage D, and corrects the amount of energy to be applied to the heating element corresponding to the print dot based on the obtained print percentage correction value kD (D). The calculation of the print percentage D is not limited to the above described method.
As described above, in the present embodiment, the amount of energy applied to the heating elements R is corrected based on at least one of the voltage correction value kv (V), the temperature correction value kT (T), the rate correction value ks (t), and the print percentage correction value kD (D). By correcting the amount of energy applied to the heating elements R, images with constant quality can be printed.
Next, an exemplary image data process and an exemplary printing process performed by the thermal printer 100 are described.
<Image Data Process>
At S101, the MCU 10 obtains a maximum energy value E0 (P) corresponding to the type of paper used for printing from Table 9. Next, the MCU 10 repeats S102 through S109 for the number of print lines (print line count Lp) in the image data.
Also, the MCU 10 repeats S103 through S108 for the number of print dots (print dot count) in each print line. In the present embodiment, each print line includes 640 dots, and S103 through S108 are repeated 640 times for each print line because values are calculated for the respective dots. However, when such calculation is not necessary, repetition of those processes may be omitted.
At S104, the MCU 10 calculates, for the corresponding print dot or heating element, a print percentage D of two print lines immediately preceding the print dot. Next, at S105, the MCU 10 obtains a print percentage correction value kD (D) corresponding to the calculated print percentage D from the RAM 11.
At S5106, the MCU 10 corrects the gradation level of the print dot based on kD (D) obtained at S105. For example, when the gradation level of the print dot is 9 and kD (D) is 110%, the MCU 10 corrects the gradation level of the print dot to 10 (≈9×1.1).
At S107, the MCU 10 obtains an energy level corresponding to the gradation level corrected at S106 from the gradation-energy table (Table 6). For example, when the corrected gradation level is 10, the MCU 10 obtains an energy level 18.
In the process described above, the MCU 10 repeats S104 through S107 for the number of dots in each print line and repeats S103 through S108 for the number of print lines to obtain energy levels for all print dots in image data to be printed.
<Printing Process>
In the process of
At S202, the MCU 10 obtains a temperature T of the thermal head from the thermistor 12. Next, at S203, the MCU 10 obtains a temperature correction value kT (T) corresponding to the obtained temperature T from the RAM 11.
At S204, the MCU 10 obtains a power-supply start time. At S205, the MCU 10 calculates a radiation time t from a power-supply end time of a previous print line to the power-supply start time obtained at S204. At S206, the MCU 10 obtains a rate correction value ks (t) corresponding to the calculated radiation time t from the RAM 11.
At S207, the MCU 10 corrects the maximum energy value E0 (P) obtained at S101 based on kT (T) and ks (t) according to formula (3) to obtain a corrected maximum energy value E to be applied to the heating elements R, and converts the corrected maximum energy value E into a power-supply period.
E=E0(P)×kT(T)×ks(t) (3)
Next, the MCU 10 repeats S208 through S215 for the number of times power is supplied to the heating elements R (power supply count). In
At S209, the MCU 10 calculates a power-supply period t1 corresponding to the amount of energy to be supplied to heating elements each time. For example, when the power supply count is five as indicated by Table 7, the MCU 10 calculates t1 such that an amount of energy corresponding to 51.6% of the corrected maximum energy value E obtained at S207 is applied to heating elements at the first time. For the second and subsequent times, the MCU 10 calculates the power-supply period t1 such that amounts of energy corresponding to 25.8%, 12.9%, 6.5%, and 3.2% of the corrected maximum energy value E are applied sequentially to heating elements. The power-supply period is controlled by changing the length of time for which the STB signal is turned on.
At S210, the MCU 10 starts supplying power to the heating elements. At S211, the MCU 10 obtains a voltage V being supplied from the power supply 17 to the heating elements.
At S212, the MCU 10 obtains a voltage correction value kv (V) corresponding to the voltage V from the RAM 11. At S213, the MCU 10 corrects the power-supply period t1 calculated at S209 based on the voltage correction value kv (V) according to formula (4) below.
t1=t1×kv(V) (4)
At S214, the MCU 10 stops supplying power to the heating elements when the corrected power-supply period t1 passes after start of the power supply. The power-supply period t1 corresponds to a length of time for which the STB signal is turned on. Thus, the MCU 10 controls t1 for each time so that the amounts of energy indicated by energy levels corresponding to gradation levels of image data are applied to the corresponding heating elements R1-R640.
When the power is supplied to the heating elements for the predetermined number of times and printing of one print line is completed, the MCU 10 obtains a power-supply end time at S216. The MCU 10 calculates a radiation time t for the next print line at S205 based on the obtained power-supply end time.
S201 through S217 are repeated for the print line count Lp in the image data, and printing of the image data on a recording medium is completed.
Thus, the thermal printer 100 performs the image data process and then performs the printing process described above to print an image on a recording medium.
As described above, in the present embodiment, the amount of energy to be applied to each heating element is set based on a dot area ratio to improve the gradation reproducibility of a printed image. Also in the present embodiment, the number of times control data is transferred is reduced so that a high-resolution image can be printed at a high speed. Further in the present embodiment, the amount of energy to be applied to heating elements is corrected based on at least one of the voltage V applied by the power supply 17 to the heating elements, the temperature T of the thermal head, the radiation time t, and the print percentage D so that images with constant quality can be printed regardless of changes in various conditions.
Next, a second embodiment is described. In the second embodiment, descriptions of components that are the same as the components described in the first embodiment may be omitted.
Assuming that a 16-gradation-level image is printed with Table 7, when a dot with gradation level 8 and a dot with gradation level 7 are consecutively arranged in the sub-scanning direction, printing is performed with energy level 16 and then with energy level 15.
As illustrated in
Thus, during a period that the second control data in the printing with energy level 16 through the first control data in the printing with energy level 15 are output, the amount of energy becomes equivalent to energy level 0 and a non-printed area is formed. Accordingly, in the portion of the image where a dot with gradation level 8 and a dot with gradation level 7 are consecutively arranged, the non-printed area may appear as a white streak in the image.
Further, when a dot with gradation level 7 and a dot with gradation level 8 are consecutively arranged in the sub-scanning direction, the dots are printed with energy level 15 and then with energy level 16.
As illustrated in
Thus, during a period that the second control data in the printing with energy level 15 through the first control data in the printing with energy level 16 are output, the amount of energy becomes equivalent to energy level 31 (gradation level 15) and a printed area is formed. Accordingly, in the portion of the image where a dot with gradation level 7 and a dot with gradation level 8 are consecutively arranged, the printed area may appear as a black streak in the image.
In a gradation-energy table of the second embodiment (Table 10), multiple energy levels are set for each gradation level of the “current” print dot in the current print line in association with gradation levels of the “previous” print dot located in the previous print line in the same position as the current print dot in the main scanning direction so that printing with energy level 15 and printing with energy level 16 are not performed consecutively.
In Table 10, for gradation level 7 of the current print dot, energy level 15 is set in association with the previous print dot with gradation levels 0-7 and 9-15, and energy level 17 is set in association with the previous print dot with gradation level 8. For the current print dot with gradation level 8, energy level 16 is set in association with the previous print dot with gradation levels 0-6 and 8-15, and energy level 14 is set in association with the previous print dot with gradation level 7. For the current print dot with gradation levels 0-6 and 9-15, the same energy levels as those in Table 6 are set regardless of the gradation levels of the previous print dot.
With Table 10, when dots with gradation levels 8, 8, 7, and 7 are arranged consecutively in the sub scanning direction, the energy levels of the dots become 16, 16, 17, and 15. Accordingly, printing of a dot with energy level 15 immediately after printing a preceding dot in the sub scanning direction with energy level 16 is prevented, and a white streak can be prevented.
Also with Table 10, when dots with gradation levels 7, 7, 8, and 8 are arranged consecutively in the sub scanning direction, the energy levels of the dots become 15, 15, 14, and 16. Accordingly, printing a dot with energy level 16 immediately after printing a preceding dot in the sub scanning direction with energy level 15, and a formation of a black streak is prevented.
Thus, white and black streaks is prevented by setting multiple energy levels for the current print dot of certain gradation level in association with gradation levels of the preceding print dots.
A gradation-energy table different from the described gradation-energy table may be used depending on the number of gradation levels of an image to be printed and data transfer conditions in a control table.
Next, a third embodiment is described.
In consecutive printing in
The heat radiation amount of a heating element varies depending on the length of the quiescent period between the end of power supply for the previous print line and the start of power supply for the next print line. Accordingly, even when the same amount of energy is applied to a heating element, the temperature of the heating element after the application of energy varies depending on the length of the quiescent period.
As illustrated in
As illustrated in
As illustrated in
As illustrated in
As described above, due to the influence of residual heat remaining after printing the previous print line, the dot area ratio at a lower energy level may become greater than that at a higher energy level.
In the present embodiment, energy level 16 is omitted from a gradation-energy table of Table 11 among one of energy levels 15 and 16 at which print densities may be reversed depending on printing speeds. Similarly, energy level 19 is omitted from Table 11 among energy levels 19 and 20.
Thus, in the present embodiment, energy levels are set such that the print density gradually changes in accordance with changes in the gradation level regardless of the printing speed. Therefore, an image with high gradation reproducibility can be printed without causing reversal of print densities at any printing speed.
Energy levels different from those in the gradation-energy table of the present embodiment may also be used depending on, for example, the number of gradation levels of an image to be printed and data transfer conditions in a control table.
Next, a fourth embodiment is described.
In the fourth embodiment, when printing multiple images with different gradation scales in the same area, all of the images are printed with a target gradation scale of one of the images by converting the original gradation levels of other images in original gradation scales into target gradation levels in the target gradation scale of the one of the images. For example, when a first image with a 4-level gradation scale and a second image with a 16-level gradation scale are to be printed in the same area, the original gradation levels of the first image in the 4-level gradation scale (original gradation scale) are converted into target gradation levels in the 16-level gradation scale (target gradation scale), and the first image and the second image are printed using the 16-level gradation scale. The original gradation levels of the second image in the 16-level gradation scale (original gradation scale) may be converted into target gradation levels in the 4-level gradation scale (target gradation scale), to print the first and second images using the 4-level gradation scale. For example, gradation levels are converted using formula (5).
As exemplified by Table 12, when converting the original gradation levels of the first image into target gradation levels in the 16-level gradation scale, original gradation level 1 of the first image is converted into target gradation level 5 by using formula (5) “((16−1)×1+(4−2))/(4−1)=5.667” and truncating digits after the decimal point. Similarly, other original gradation levels of the first image are converted into target gradation levels in the 16-level gradation scale as illustrated in Table 12.
Also, as exemplified by Table 13, when converting the original gradation levels of the second image into target gradation levels in the 4-level gradation scale, original gradation level 1 of the second image is converted into target gradation level 1 by using formula (5) “((4−1)×1+(16−2))/(16−1)=1.133” and truncating digits after the decimal point. Similarly, other original gradation levels of the second image can be converted into target gradation levels in the 4-level gradation scale as illustrated in Table 13.
<Image Data Process>
At S301, the MCU 10 obtains the number of gradation levels (set value) used for printing. When the number of gradation levels of a print image is the same as the set value (S302: YES), the MCU 10 proceeds to S308.
When the number of gradation levels of the print image is different from the set value (S302: NO), the MCU 10 repeats S303 through S307 to convert the gradation levels of respective dots in each line of the image. When the height of the image is y and the width of the image is x, process of S303 through S307 are repeated y times, and process of S304 through S306 are repeated x times for each line of the image.
At S305, the MCU 10 obtains a target gradation level for each dot in the image using formula (5).
At S308, the MCU 10 obtains a maximum energy value E0 (P) corresponding to the type of paper used for printing from Table 9. Next, the MCU 10 repeats S309 through S316 for the number of print lines in the image.
The MCU 10 repeats S310 through S315 for the number of print dots in each print line. At S311, the MCU 10 calculates a print percentage D of two print lines immediately preceding the print dot. Next, at S312, the MCU 10 obtains a print percentage correction value kD (D) corresponding to the calculated print percentage D from the RAM 11.
At S313, the MCU 10 corrects the gradation level of the print dot based on kD (D) obtained at S312. At S314, the MCU 10 obtains an energy level corresponding to the gradation level corrected at S313 from a gradation-energy table.
Multiple images with different gradation scales can be printed by performing the process described above before performing a printing process. For example, when a first image with a 4-level gradation scale and a second image with a 16-level gradation scale are to be printed, both of the first image and the second image is printed using the 16-level gradation scale by converting the original gradation levels of the first image into target gradation levels in the 16-level gradation scale. On the other hand, the original gradation levels of the second image may be converted into target gradation levels in the 4-level gradation scale, to print the first and second images with the 4-level gradation scale. This makes it possible to print the images at high speed.
Even when printing three or more images with different gradation scales, all of the images can be printed using a gradation scale of one of the images by converting the original gradation levels of other images into target gradation levels in the gradation scale of the one of the images.
Next, a fifth embodiment is described.
In the fifth embodiment, similar to the fourth embodiment, multiple images with different gradation scales can be printed in the same area, by converting the original energy levels of other images in original energy scales into target energy levels in the target energy scale of the one of the images.
For example, when a first image with a 4-level gradation scale and a second image with a 16-level gradation scale are to be printed, energy levels corresponding to the gradation levels of the first image and energy levels corresponding to the gradation levels of the second image are obtained. Then, the original energy levels of the first image in an 8-level energy scale (original energy scale) are converted into target energy levels in a 32-level energy scale (target energy scale) of the second image, and the first and the second images are printed with the 32-level energy scale. The original energy levels of the second image in the 32-level energy scale (original energy scale) may be converted into target energy levels in the 8-level energy scale (target energy scale) of the first image, and the first and second images are printed with the 8-level energy scale. For example, energy levels are converted using formula (6).
As exemplified by Table 14, when converting the original energy levels of the first image into target energy levels in the 32-level energy scale, original energy level 3 corresponding to gradation level 1 of the first image is converted into target energy level 14 by using formula (6) “((32−1)×3+(8−2))/(8−1)=14.143” and truncating digits after the decimal point. Similarly, other original energy levels of the first image can be converted into target energy levels in the 32-level energy scale as illustrated in Table 14 by using formula (6).
Also, as exemplified by Table 15, when converting the original energy levels of the second image in the 32-level energy scale into target energy levels in the 8-level energy scale, original energy level 8 corresponding to gradation level 1 of the second image is converted into target energy level 2 by using formula (6) “((8−1)×8+(32−2))/(32−1)=2.774” and truncating digits after the decimal point. Similarly, other original energy levels of the second image can be converted into target energy levels in the 8-level energy scale as in Table 15 by using formula (6).
When converting the original gradation levels of the second image in the 16-level gradation scale into target gradation levels in the 4-level gradation scale and obtaining energy levels corresponding to the target gradation levels as in the fourth embodiment, the second image is printed with four energy levels (0, 3, 4, 7). In contrast, when converting the original energy levels of the second image in the 32-level energy scale corresponding to the 16-level gradation scale into target energy levels in the 8-level energy scale as described above, the second image is printed with seven energy levels (0, 2, 3, 4, 5, 6, 7) as in Table 15. Thus, the present embodiment can improve the gradation reproducibility of the second image in a printed image.
<Image Data Process>
At S401, the MCU 10 obtains a maximum energy value E0 (P) corresponding to the type of paper used for printing from Table 9. Next, the MCU 10 converts gradation levels of an image into energy levels. The MCU repeats S402 through S409 for the number of times corresponding to the height of the image. The MCU 10 repeats S403 through S408 for the number of dots in each print line of the image. When the height of the image is y and the width of the image is x, S402 through S409 are repeated y times, and S403 through S408 are repeated x times for each print line.
At S404, the MCU 10 calculates a print percentage D of two print lines immediately preceding the print dot. Next, at S405, the MCU 10 obtains a print percentage correction value kD (D) corresponding to the calculated print percentage D from the RAM 11.
At S406, the MCU 10 corrects the gradation level of the print dot based on kD (D) obtained at S405. At S407, the MCU 10 obtains an energy level corresponding to the gradation level corrected at S406 from a gradation-energy table.
At S410, the MCU 10 obtains the number of energy levels (set value) used for printing. When the number of energy levels of the image is the same as the set value (S411: YES), the MCU 10 ends the process.
When the number of energy levels of the image is different from the set value (S411: NO), the MCU 10 repeats S412 through S416 to convert the energy levels of respective dots in each line of the image. At S414, the MCU 10 obtains a target energy level for each dot in the image using formula (6).
Multiple images with different gradation scales can be printed with the process described above. When image data including a first image with a 4-level gradation scale and a second image with a 16-level gradation scale is to be printed, the entire image can be printed with a 32-level energy scale by converting the original energy levels of the first image in an 8-level energy scale into target energy levels in the 32-level energy scale, or with a 8-level energy scale by converting the original energy levels of the second image in the 32-level energy scale into target energy levels in the 8-level energy scale. The thermal printer of this embodiment can perform high-speed printing. Also, compared with a method where gradation levels are converted, this embodiment improves the gradation reproducibility of the second image.
Even when printing three or more images with different gradation scales onto the same recording medium, all of the images can be printed using an energy scale of one of the images by converting the energy levels of other images into energy levels in the energy scale of the one of the images.
A thermal printer according to embodiments of the present invention is described above. However, the present invention is not limited to the specifically disclosed embodiment, and variations and modifications may be made without departing from the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2016-133522 | Jul 2016 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5142302 | Kano | Aug 1992 | A |
5644351 | Matsumoto | Jul 1997 | A |
6674546 | Nakahara | Jan 2004 | B1 |
7290844 | Takahashi et al. | Nov 2007 | B2 |
8144365 | Kita et al. | Mar 2012 | B2 |
8960839 | Mantell et al. | Feb 2015 | B1 |
9643428 | Uryu | May 2017 | B2 |
20060158683 | Gustafsson | Jul 2006 | A1 |
20090309946 | Saquib | Dec 2009 | A1 |
20130038657 | Viturro et al. | Feb 2013 | A1 |
Number | Date | Country |
---|---|---|
S62-280055 | Dec 1987 | JP |
H04-220358 | Aug 1992 | JP |
2001-277463 | Oct 2001 | JP |
2006-074668 | Mar 2006 | JP |
2006-121153 | May 2006 | JP |
2006-279152 | Oct 2006 | JP |
2006-335009 | Dec 2006 | JP |
Entry |
---|
Office Action dated Nov. 2, 2016 issued with respect to the related U.S. Appl. No. 15/090,816. |
Number | Date | Country | |
---|---|---|---|
20180009233 A1 | Jan 2018 | US |