The present application is based on, and claims priority from JP Application Serial Number 2020-192512, filed Nov. 19, 2020, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure relates to a printing device and a method for controlling a printing device.
According to the related art, a printing device in which an electrifying time and a non-electrifying time for a printing unit such as a thermal head are decided in the form of ratio is known, as described in JP-A-8-258314.
The printing unit may deteriorate if a non-electrifying time equal to or longer than a predetermined time is not secured. However, in the printing device described in JP-A-8-258314, depending on the ratio to the electrifying time, the non-electrifying time equal to or longer than the predetermined time may not be able to be secured and therefore the printing unit may deteriorate.
A printing device includes: a printing unit printing on a recording paper; a feeder unit having a roller that rotates about a shaft and feeds the recording paper and a motor that rotates the shaft; a detection unit detecting the rotation of the shaft; and a control unit controlling the printing unit. The control unit calculates an electrifying time during which the printing unit is electrified and a non-electrifying time during which the printing unit is not electrified following the electrifying time, based on a detection signal from the detection unit. When the calculated non-electrifying time is less than a predetermined time, the control unit corrects the non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time, and causes the printing unit to print.
A method for controlling a printing device is provided. The printing device includes: a printing unit printing on a recording paper; a feeder unit having a roller that rotates about a shaft and feeds the recording paper and a motor that rotates the shaft; a detection unit detecting the rotation of the shaft; and a control unit controlling the printing unit. The method includes: calculating an electrifying time during which the printing unit is electrified and a non-electrifying time during which the printing unit is not electrified following the electrifying time, based on a detection signal from the detection unit; and when the calculated non-electrifying time is less than a predetermined time, correcting the non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time, and causing the printing unit to print.
1-1. Configuration of Printing Device 1
A printing device 1 shown in
The control unit 10 has a CPU. The CPU is also referred to as a processor. The control unit 10 reads out and executes a program such as firmware stored in the storage unit 20 and thus controls each part of the printing device 1.
The printing unit 30 has a head 31, as shown in
The feeder unit 40 is configured in such a way that a motor 41 rotates under the control of the control unit 10, transmits the rotation thereof to a shaft 44 while reducing the speed via a gear 42, and thus causes the roller 43 to rotate about the shaft 44 and feed the recording paper P, as shown in
The motor 41 is, for example, a DC motor. The control unit 10 takes in a detection signal from the detection unit 50, described later, detects the speed of the motor 41, and performs PWM (pulse-width modulation) control on the motor 41 to rotate at a predetermined speed.
The recording paper P is accommodated in the printing device 1 as a paper roll 90 formed by rolling the recording paper P. The roller 43, together with the head 31 opposite the roller 43, nips the recording paper P due to the pressing by the pressing mechanism. When rotating, the roller 43 generates a feeding force F and thus draws out and feeds the recording paper P from the paper roll 90. The direction in which the roller 43 rotates when feeding the recording paper P is a clockwise CW direction.
The control unit 10 causes the printing unit 30 to print, while causing the feeder unit 40 to feed the recording paper P.
The detection unit 50 is a so-called rotary encoder detecting the rotational position of the shaft 44. The detection unit 50 is an optical encoder formed of a disk 52, which is a scale having slits formed at a predetermined interval, and a transmission-type photosensor 51 detecting the slits in the disk 52, as shown in
The photosensor 51 is formed of a light-emitting element and a light-receiving element. The light-emitting element and the light-receiving element are arranged at positions sandwiching the disk 52. The disk 52 is attached in such a way as to rotate about the shaft 44. When the motor 41 causes the shaft 44 to rotate, the disk 52 rotates, too. When the position of a slit provided in the disk 52 coincides with a position on the optical path of the light-emitting element, the light passes through the slit and reaches the light-receiving element, and the light-receiving element detects the light. At this point, the light-receiving element generates a predetermined current. Therefore, a detection signal with a high-level voltage can be taken out. Meanwhile, when the positions of the slits do not coincide with a position on the optical path of the light-emitting element, the light is blocked by the disk 52 and the light-receiving element does not detect the light. At this point, the light-receiving element does not generate a predetermined current. Therefore, a detection signal with a low-level voltage can be taken out.
1-2. Control by Control Unit
Control on the printing unit 30 performed by the control unit 10, based on a detection signal inputted from the detection unit 50, will now be described with reference to a flowchart shown in
The control unit 10 starts control (START) and acquires a detection signal from the detection unit 50 (step S101). The detection signal is outputted from the detection unit 50 as a predetermined pulse formed of a signal with a high-level voltage and a signal with a low-level voltage, as the disk 52 rotates. In the description below, a pulse that is a detection signal is simply referred to as a pulse.
The control unit 10 acquires a pulse as an interrupt signal from an interrupt terminal. Specifically, the control unit 10 starts interrupt processing in response to a rise or a fall of the acquired pulse as a trigger. In the interrupt processing, the control unit 10 acquires time when an interrupt is generated, via a built-in timer. The control unit 10 stores the acquired time in the storage unit 20.
In the storage unit 20, the order of a pulse and time when the pulse is generated including such time in the past are stored. The control unit 10 compares the acquired time with the time in the past read out from the storage unit 20 and thus can calculate the period of an arbitrary pulse or the period between arbitrary pulses.
The control unit 10 can electrify the head 31 or start non-electrification in which the control unit 10 does not electrify the head 31, based on the timing when an interrupt by a pulse is generated. In the description below, a time during which the control unit 10 electrifies the head 31 is referred to as an electrifying time, and a time during which the control unit 10 does not electrify the head 31 is referred to as a non-electrifying time.
A pulse is generated based on the rotation of the disk 52 having slits opened with a predetermined interval.
Therefore, the control unit 10 can calculate the rotational speed of the shaft 44, based on the calculated period of the arbitrary pulse or the calculated period between the arbitrary pulses. Since the roller 43 rotates about the shaft 44 and feeds the recording paper P, the rotational speed of the shaft 44 is the feeding speed for the recording paper P as well. The control unit 10 can calculate the feeding speed for the recording paper P, based on the detection signal acquired from the detection unit 50.
When the head 31 is a line head such as a line thermal head, the control unit 10 can set a print cycle, which is the cycle of printing one dot line, based on a predetermined number of pulses of the detection signal.
In an example, in the detection unit 50, the resolution of the detection signal is set to 1440 pulses per inch. That is, the detection unit 50 is set in such a way that one pulse of the detection signal is outputted from the detection unit 50 every time the recording paper P is fed by the length of 1/1440 inches by the feeder unit 40. Meanwhile, in an example, the resolution of the head 31 is 180 dpi (dots per inch), that is, one dot every 1/180 inches. When the recording paper P is fed by the feeder unit 40 by the same length of 1/180 inches as the resolution of the head 31, eight pulses of the detection signal are outputted from the detection unit 50.
Therefore, the control unit 10 controls the head 31 on such a cycle as to print one dot line on the recording paper P during a period when eight pulses of the detection signal are inputted thereto from the detection unit 50. Thus, the head 31 prints one dot line on the recording paper P.
The value of the resolution of the detection signal and the value of the resolution of the head 31 are stored in the storage unit 20. The control unit 10 reads out and processes these values.
The control unit 10 controls the head 31 to print one dot line on the recording paper P, based on a set of an electrifying time and a non-electrifying time corresponding to the feeding speed for the recording paper P. For example, a calculation formula for calculating an electrifying time for the head 31 and a non-electrifying time for the head 31 corresponding to the feeding speed for the recording paper P is stored in the storage unit 20.
Specifically, a reference electrifying time and a reference non-electrifying time corresponding to a reference feeding speed are stored in the storage unit 20. Also, the ratios of the electrifying time and the non-electrifying time corresponding to the calculated feeding speed to the reference electrifying time and the reference non-electrifying time, respectively, are stored in the storage unit 20.
The control unit 10 calculates an electrifying time and a non-electrifying time for the head 31, referring to the storage unit 20 and based on the calculation formula corresponding to the calculated feeding speed for the recording paper P (step S102). Specifically, the control unit 10 acquires the ratio of each of the electrifying time and the non-electrifying time corresponding to the calculated feeding speed for the recording paper P and also acquires the reference electrifying time and the reference non-electrifying time, referring to the storage unit 20. The control unit 10 multiplies the reference electrifying time and the reference non-electrifying time by the acquired ratios, respectively, and thus calculates the electrifying time and the non-electrifying time.
Also, the electrifying time and the non-electrifying time for the head 31 corresponding to the feeding speed may be stored in advance in the form of a table in the storage unit 20. The control unit 10 can acquire the electrifying time and the non-electrifying time from the table, referring to the storage unit and based on the feeding speed. This acquisition of the electrifying time and the non-electrifying time from the table in the storage unit 20 is included in the control calculated by the control unit 10.
Incidentally, due to its characteristics, the head 31 may deteriorate and malfunction if a non-electrifying time equal to or longer than a predetermined time is not secured. As described above, the control unit 10 calculates the electrifying time and the non-electrifying time for the head 31, based on the feeding speed. When the feeding speed becomes faster, the non-electrifying time calculated by the control unit 10 may become shorter than the predetermined time. When the head 31 is controlled with this calculated value itself, the head 31 may deteriorate.
Therefore, a threshold to be compared with the calculated non-electrifying time is stored in the storage unit 20. The control unit 10 acquires the threshold from the storage unit and compares the calculated non-electrifying time with the threshold. When it is determined that the non-electrifying time is less than the threshold (NO in step S103), the control unit 10 corrects the non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time in order to restrain the deterioration of the head 31 (step S105). Meanwhile, when it is determined that the calculated non-electrifying time is more than the threshold (YES in step S103), the control unit 10 uses the calculated non-electrifying time as it is and does not correct the non-electrifying time.
In the description below, for the sake of convenience, a short time, period or cycle is expressed by using a term “small” and a long time, period or cycle is expressed by using a term “large”.
The control unit 10 electrifies the head 31, based on the calculated electrifying time and at a timing when a pulse is generated. When the calculated non-electrifying time is smaller than the threshold, the control unit 10 corrects the non-electrifying time in such a way that the non-electrifying time becomes larger. When the calculated non-electrifying time is equal to or larger than the threshold, the control unit 10 does not correct the non-electrifying time, and prints one dot line on the recording paper P (step S104) after a period during which the head 31 is not electrified based on the non-electrifying time. The control unit 10 then ends the processing (END).
In this way, the control unit 10 secures a non-electrifying time equal to or longer than a predetermined time for the head 31 and therefore can restrain the deterioration of the head 31.
Even after correcting the non-electrifying time, the control unit 10 may also correct the electrifying time when the feeding speed becomes faster.
As described above, the control unit 10 sets the print cycle, based on a predetermined number of pulses such as eight pulses. When the feeding speed becomes faster and the period of the pulse becomes smaller, the print cycle, which is the period of eight pulses, becomes smaller, too.
The print cycle is formed of a set of the electrifying time and the non-electrifying time. When the control unit 10 corrects the calculated non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time and the feeding speed becomes faster, the print cycle becomes smaller. Therefore, the calculated electrifying time may not be able to be secured within one print cycle.
When the control unit 10 corrects the calculated non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time and the electrifying time following the corrected non-electrifying time cannot be secured within the print cycle, the control unit 10 corrects the electrifying time following the corrected non-electrifying time in such a way that the electrifying time becomes smaller. Thus, the corrected electrifying time and the corrected non-electrifying time fall within one print cycle. In this case, the timing of starting the electrification may not match the timing of starting the print cycle. Even in this case, there is no change to one print cycle formed of a set of the electrifying time and the non-electrifying time.
1-3. Electrification Control by Control Unit
Electrification control performed on the printing unit 30 by the control unit 10, based on a detection signal DS inputted from the detection unit 50, will now be specifically described, using time charts shown in
First,
When the voltage of the detection signal DS at the top of
The detection signal DS from the detection unit 50 is outputted as a predetermined pulse. One cycle of the detection signal DS from the detection unit 50 is equivalent to one pulse. This pulse corresponds to the rotation of the shaft 44 of the feeder unit 40 and corresponds to the rotation of the roller 43. The number of pulses represents the amount of rotation of the shaft 44 and the roller 43.
The control unit 10 prints one dot line, taking a period when the detection signal inputted from the detection unit 50 is eight pulses, as one cycle of printing. The one cycle of printing is referred to as a print cycle. In
A drive circuit installed in the head 31 is low-active. Therefore, when the electrification signal S1 at the bottom has the low-level voltage, the electrification signal S1 represents the electrifying time during which the head 31 is electrified. When the electrification signal S1 has the high-level voltage, the electrification signal S1 represents the non-electrifying time during which the head 31 is not electrified.
The control unit 10 causes the head 31 to print on the recording paper P, while causing the roller 43 to rotate in the CW direction via the shaft 44 of the feeder unit 40 and thus feed the recording paper P.
As an interrupt due to the rise of the first pulse is generated at the time point t0, the control unit 10 starts interrupt processing, based on the timing of this interrupt. The control unit 10 acquires, by the timer, the time of the first pulse when the interrupt is generated, and stores the acquired time in the storage unit 20. Next, the control unit 10 turns the voltage of the electrification signal S1 to low-level and starts to electrify the head 31.
The control unit 10 starts interrupt processing in response to the rise of the second pulse at the time point t1 and acquires, by the timer, the time of the second pulse when the interrupt is generated. The control unit 10 reads out the time of the first pulse from the storage unit 20, compares the acquired time of the second pulse with the time of the first pulse, and thus can calculate the period of one pulse, based on the difference between the times of the two pulses.
When the resolution of the detection signal DS is 1440 pulses per inch, as described above, the recording paper P is fed by the length of 1/1440 inches by the feeder unit 40 during the period of one pulse. The control unit 10 divides the length of 1/1440 inches by which the recording paper P is fed during the period of one pulse of the detection signal DS, by the period of the first pulse calculated as described above, and thus can acquire the feeding speed for the recording paper P corresponding to the first pulse.
The value of the length of the recording paper P fed during the period of one pulse of the detection signal DS is stored in the storage unit 20. The control unit 10 reads out and processes this value.
The control unit 10 acquires the ratio of each of the electrifying time and the non-electrifying time to the calculated feeding speed for the recording paper P and also acquires the reference electrifying time and the reference non-electrifying time, referring to the storage unit 20. The control unit 10 multiplies the reference electrifying time and the reference non-electrifying time by the acquired ratios, respectively, and thus calculates the electrifying time and the non-electrifying time. In the example of the electrification signal S1 shown in
In the storage unit 20, T0, which is the same value as a minimum non-electrifying time to restrain the deterioration of the head 31, is stored as a threshold. The control unit 10 acquires the threshold T0 from the storage unit 20 and compares the calculated non-electrifying time T12 with the threshold T0. In the example shown in
It is now assumed that the threshold T0 to determine the non-electrifying time has a value 1.5 times the predetermined time period T shown in
The control unit 10 can determine that the calculated non-electrifying time T12 is larger than the threshold T0, and therefore can determine that there is no risk of deterioration of the head 31. The control unit 10 uses the calculated value of the non-electrifying time T12 as it is and does not correct the non-electrifying time T12.
As shown in the electrification signal S1 in
The control unit 10 performs control similar to the above from the time point t5 onward and prints the next (n+1)th dot line.
Control by the control unit 10 when the feeding speed for the recording paper P is higher than in the case of
The related-art example shown in
In the case of
The control unit 10 calculates the feeding speed corresponding to the first pulse, based on the period of the first pulse and the length by which the recording paper P is fed during one pulse of the detection signal DS stored in the storage unit 20.
The control unit 10 reads out the ratio of each of the electrifying time and the non-electrifying time corresponding to the calculated feeding speed, and each reference time, from the storage unit 20, and calculates the electrifying time and the non-electrifying time. As shown in the electrification signal S4 in
In this way, according to the related art, it can be said that the control unit 10 preferentially secures the electrifying time within one print cycle and allocates the rest of the time to the non-electrifying time.
The threshold T0 for the control unit 10 to determine the length of the non-electrifying time is a value 1.5 times the predetermined time period T. As shown in the electrification signal S4 in
According to the related-art control, even when the calculated non-electrifying time T42 is less than the threshold T0, the control unit 10 controls the head 31, using the value as it is. Therefore, a sufficient non-electrifying time cannot be secured, posing a risk of deterioration of the head 31.
The example shown in
Therefore, in the case of
Specifically, in the case of an electrification signal S2 shown in
The non-electrifying time calculated by the control unit 10 has the same value as the non-electrifying time T42 in the case of
In the case of
The control unit 10 corrects the initially calculated non-electrifying time T42 to a non-electrifying time T0 having the same value as the threshold so as to increase the non-electrifying time T42, as shown in the electrification signal S2 in
In this way, the control unit 10 can secure a sufficient non-electrifying time equal to or more than the threshold T0 for the head 31 and therefore can restrain the deterioration of the head 31.
As described above, the control unit 10 corrects the initially calculated non-electrifying time T42 to the non-electrifying time T0 so as to increase the non-electrifying time T42, for the n-th dot line. Therefore, as shown in the electrification signal S2 in
When the control unit 10 determines that the electrifying time T21 following the corrected non-electrifying time T0 cannot be secured, the control unit 10 corrects the electrifying time T21 following the corrected non-electrifying time T0 to an electrifying time T22 so as to reduce the electrifying time T21 for the (n+1)th dot line.
Specifically, the electrifying time T21 following the corrected non-electrifying time T0 is equivalent to the period from the time point t0 to the time point t3 of the electrification signal S2 shown in
The corrected value of the electrifying time is stored in the storage unit 20. The control unit 10 reads out and processes this value.
Consequently, as shown in the (n+1)th dot line in
In the case where the head 31 is a line thermal head, heat is stored in the head 31 due to the electrification for the n-th dot line and therefore a temperature to develop color for the (n+1)th dot line on the recording paper P can be secured even when the electrifying time for the (n+1)th dot line is reduced. Thus, a good print result can be achieved.
Another example of the electrification control by the control unit 10 at a high speed according to the embodiment will now be described, referring to a time chart shown in
Therefore, in the case of
Specifically, in the case of
The non-electrifying time calculated by the control unit 10 has the same value as the initially calculated non-electrifying time T42 of the electrification signal S2 in the case of
In the case of
As shown in the electrification signal S3 in
As described above, the control unit 10 corrects the initially calculated non-electrifying time T42 to the non-electrifying time T0 so as to increase the non-electrifying time T42, for the n-th dot line. Therefore, as shown in the electrification signal S3 in
However, the (n+1)th dot line is a part where no printing is performed, such as a blank, and the control unit 10 does not perform electrification for the (n+1)th dot line, unlike in the case of the electrification signal S2 in
In this way, the control unit 10 can secure the period T32 during which electrification is not performed following the non-electrifying time T0 for the head 31 as shown in the electrification signal S3, and therefore can sufficiently restrain the deterioration of the head 31.
For the (n+2)th dot line of the electrification signal S3 shown in
The electrifying time for the (n+2)th dot line of the electrification signal S3 is the electrifying time T31 calculated by the control unit 10 and is not correctively reduced. This electrifying time T31 is the same as for the n-th dot line.
In the case where the head 31 is a line thermal head, since the temperature of the head 31 is lowered due to the non-electrification for the (n+1)th dot line, the control unit 10 does not reduce the electrifying time for the (n+2)th dot line and secures a temperature to develop color on the recording paper P. Thus, a good print result can be achieved.
The foregoing embodiment can achieve the effects described below.
The printing device 1 according to the one embodiment includes: the printing unit 30 printing on the recording paper P; the feeder unit 40 having the roller 43, which rotates about the shaft 44 and feeds the recording paper P, and the motor 41, which rotates the shaft 44; the detection unit 50 detecting the rotation of the shaft 44; and the control unit 10 controlling the printing unit 30. The control unit 10 calculates an electrifying time during which the printing unit 30 is electrified and a non-electrifying time during which the printing unit 30 is not electrified following the electrifying time, based on a detection signal from the detection unit 50. When the calculated non-electrifying time is less than a predetermined time, the control unit 10 corrects the non-electrifying time in such a way that the non-electrifying time becomes equal to or longer than the predetermined time, and causes the printing unit 30 to print.
According to the above configuration, a non-electrifying time equal to or longer than a predetermined time can be secured and the deterioration of the printing unit 30 can be restrained.
The embodiment has been described in detail with reference to the drawings. However, the present disclosure is not limited to any specific configuration in the embodiment. Any change, replacement, deletion or the like can be made without departing from the spirit and scope of the present disclosure.
For example, while the printing device 1 is described referring to an example where the head 31 is a line thermal head, the type of the head 31 is not limited. For example, a heat-generating inkjet head may be employed. Also, a serial head installed in a carriage so as to scan may be employed.
Also, while an example where the motor 41 is a DC motor is described, other types of motors such as a step motor may be employed.
Also, while an example where the detection unit 50 is an encoder is described, other detection systems such as a tachogenerator may be employed.
Also, while the recording paper P is described as being rolled as the paper roll 90, a cut paper of A4 size or the like may be employed.
Moreover, while an example where the disk 52 of the detection unit 50 is attached to the shaft 44 is described, the disk 52 may be attached to the shaft of the gear 42 or the shaft of the motor 41, provided that the detection unit 50 can directly or indirectly detect the rotational position of the shaft 44.
Number | Date | Country | Kind |
---|---|---|---|
2020-192512 | Nov 2020 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
20140210932 | Chen | Jul 2014 | A1 |
Number | Date | Country |
---|---|---|
H08258314 | Oct 1996 | JP |
Number | Date | Country | |
---|---|---|---|
20220153043 A1 | May 2022 | US |