This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2017-019530, filed Feb. 6, 2017, the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a thermal printer with a heat controller.
A thermal printer used for a POS (point-of-sale) terminal controls the transport speed of a recording medium such as a receipt paper according to the print rate of print data printed on the recording medium. Also, the thermal printer includes a plurality of heat generating elements arrayed in a direction orthogonal to the transport direction, and drives the heat generating elements, based on a pulse signal with a predetermined pulse width corresponding to the transport speed.
The thermal printer needs to properly control the heat generating elements until a target transport speed is reached. If control information for the heat generating elements is provided for each available transport speed in combination with a target transport speed, the number of pieces of control information of the heat generating elements increases as the number of available transport speeds increases. For example, if there are three available transport speeds, six pieces of control information are needed.
In view of the foregoing, a transport speed control device that can reduce the number of pieces of control information of the heat generating elements until a target transport speed is reached, while maintaining the number of available transport speeds, is desirable.
A thermal printer according to an embodiment includes a communication interface that receives print data from an external device. A thermal print head thermally prints on a sheet, line by line according to the received print data. A motor drives a roller to transport the sheet, line by line according to the received print data. A processor determines, for a current print line, a target transport speed for transporting the sheet, and retrieves one or more intermediate speeds that are defined in advance and are between a current transport speed of transporting the sheet and the target transport speed. The processor also retrieves, for each determined intermediate speed, predetermined heating control information for heating the thermal print head. The processor controls the motor to transport the sheet at each determined intermediate speed and the target transport speed, sequentially. The thermal print head is heated in accordance with the predetermined heating control information corresponding to the determined intermediate speed closest to the current speed.
Hereinafter, an embodiment will be described with reference to the drawings. A thermal printer with a heat generation controller according to this embodiment is used for a POS (point of sales) terminal. In the drawings, the same or equivalent parts are denoted by the same reference signs.
As illustrated in
The thermal printer 1 controls the transport speed of the paper according to the print rate of print data representing the transaction statement information. The thermal printer 1 also has a plurality of heat generating elements arrayed in a line in a direction (main scanning direction) orthogonal to the transport direction (sub scanning direction). The thermal printer 1 controls the heat generating elements according to the transport speed.
As illustrated in
The operation unit 103 may be an input interface operated by the user, such as a cover open-close button for loading and removing the roll paper PR, a power button for switching on and off the power of the thermal printer 1, a feed button for transporting a paper P, or a cut button for cutting the paper.
The display unit 104 includes a display device such as a liquid crystal display, and a lighting device such as an LED (light emitting diode). The display unit 104 displays information showing various states of the thermal printer 1. For example, the display unit 104 displays the state of print execution, the open-close state of the cover, the amount of paper remaining in the roll paper PR, and the like.
The communication unit 105 is a communication interface which communicates with an external device such as a POS (point of sales) terminal. The communication unit 105 receives print data representing information such as transaction details from the external device via a network. The communication unit 105 supplies the received print data to the control unit 101. The communication unit 105 may communicate with the external device vie either wired or wireless communication.
The motor drive unit 106 supplies a transport pulse signal to the stepping motor 107 under the control of the control unit 101, and thus drives the stepping motor 107.
The stepping motor 107 receives the transport pulse signal from the motor drive unit 106 and rotates by an amount per pulse that is defined in advance, according to the received transport pulse signal.
The speed changing unit 108 includes a speed reduction mechanism including a plurality of gears or the like. The speed changing unit 108 is provided between the stepping motor 107 and the platen roller 109. The speed changing unit 108 transmits the rotational force of the stepping motor 107 to the platen roller 109 and thus causes the platen roller 109 to rotate.
The platen roller 109 rotates by the rotational force of the stepping motor 107 transmitted thereto via the speed changing unit 108. Also, the platen roller 109 is provided at a position that faces the thermal head 111, as shown in
The head drive unit 110 supplies a heat generation pulse signal (strobe signal) to the thermal head 111 under the control of the control unit 101 and thus drives a plurality of heat generating elements 111a provided in the thermal head 111.
The thermal head 111 receives the heat generation pulse signal from the head drive unit 110 and prints one dot line on the paper P at a position that faces the platen roller 109, in response to the received heat generation pulse signal.
The respective heat generating elements 111a are arrayed in a line in the direction (main scanning direction) orthogonal to the transport direction, as shown in
The storage unit 102 is a storage device such as an HDD (hard disk drive), a ROM (read only memory), or a flash memory. The storage unit 102 stores programs and data for the control unit 101 to carry out various kinds of processing, and data generated and acquired by the execution of various kinds of processing by the control unit 101.
Also, the storage unit 102 stores data (transport speed data) associating a range of print rate, a transport speed and a transport frequency (PPS (pulse rate)), as shown in
Also, the storage unit 102 stores control data for constant-speed phase associating a transport speed, a heat generating element energizing pulse width, and the number of energized heat generating element, as shown in
The transport speed refers to an available speed at which the paper P can be carried. Here, seven transport speeds are provided, including 14.0, 10.0, 8.0, 6.0, 4.0, 2.0, and 1.0 inches per second (IPS). The heat generating element energizing pulse width refers to the pulse width of the heat generation pulse (strobe time) supplied to the thermal head 111 from the head drive unit 110. The number of energized heat generating element blocks refers to the number of blocks of heat generating elements 111a driven by the head drive unit 110.
Also, the storage unit 102 stores control data for variable-speed phase associating transport speed ranges with heat generating element control information, as shown in
The transport speed ranges include at least one or more intermediate speeds between a minimum value and a maximum value of the transport speed. Here, the available transport speed expressed by the transport speed data shown in
The heat generating element control information includes a heat generating element energizing pulse width and the number of energized heat generating element blocks. The number of energized heat generating element blocks refers to the number of blocks of heat generating elements 111a driven by the head drive unit 110, as in the control data for constant-speed phase.
The heat generating element energizing pulse width refers to the pulse width of the heat generation pulse signal (strobe time) supplied to the thermal head 111 from the head drive unit 110, and is predetermined according to an arithmetic formula. Here, the arithmetic formula multiplies the ratio of the transport frequency corresponding to the maximum value in the range of the current transport speed and the current transport frequency, by the pulse width of the heat generation pulse signal corresponding to that maximum value, and thus finds the pulse width of the heat generation pulse signal. For example, if the current transport speed is 10.0 IPS, which is included in the transport speed range of 10.0 to 14.0 IPS shown in
Furthermore, instead of an arithmetic formula, information for changing in stages the pulse width of the pulse signal which drives the heat generating elements 111a may be provided, as shown in
Turning back to
The control unit 101 also functions as a print rate acquisition unit 101a, a target speed setting unit 101b, an intermediate speed acquisition unit 101c, and a heat generation control unit 101d, by executing a program stored in the storage unit 102. That is, in one embodiment, the control unit 101 is a processor that is programmed to carry out the functions of the print rate acquisition unit 101a, the target speed setting unit 101b, the intermediate speed acquisition unit 101c, and the heat generation control unit 101d. In another embodiment, the control unit 201 is a hardware controller, e.g., an ASIC or an FPGA, that is configured to carry out the functions of the print rate acquisition unit 101a, the target speed setting unit 101b, the intermediate speed acquisition unit 101c, and the heat generation control unit 101d.
The heat generation control carried out by the thermal printer 1 configured as described above will be described below, with reference to
The control unit 101 of the thermal printer 1 executes a program stored in the storage unit 102 in response to the operation of turning on the power of the thermal printer 1. Accordingly, the control unit 101 functions as the print rate acquisition unit 101a, the target speed setting unit 101b, the intermediate speed acquisition unit 101c, and the heat generation control unit 101d.
The print rate acquisition unit 101a acquires print data from an external device such as a POS terminal via the communication unit 105. The print rate acquisition unit 101a sets N expressing the current dot line to “N=0” (ACT11) at the timing when the print data is acquired, and subsequently sets N to “N=N+1” (ACT12).
The print rate acquisition unit 101a acquires the print rate of the N-th line of the print data (ACT13). The print rate in this case is the ratio of the number of print dots to the total number of dots in the dot line, i.e., a ratio of the number of heat generating elements 111a to be used to print the current line and the total number of heat generating elements 111a. In an initialization process after acquisition of the print data (N=1), the print rate acquisition unit 101a acquires the print rate of the first line of the print data.
The target speed setting unit 101b sets the transport speed and the transport pulse frequency corresponding to the print rate acquired by the print rate acquisition unit 101a, as the target transport speed and the transport pulse frequency, according to the transport speed data shown in
The target speed setting unit 101b determines whether the set target transport speed is different from the current transport speed (ACT15). In the initialization processing (N=1) after the acquisition of the print data, the current transport speed is 0 (IPS) and therefore the target speed setting unit 101b determines that the transport speed needs to be changed (YES in ACT15). In this case, the intermediate speed acquisition unit 101c executes heat generation for variable-speed phase (ACT16).
The heat generation for variable-speed phase process of Act is illustrated in
The heat generation control unit 101d selects each of the ranges between the current transport speed to the target transport speed corresponding to the intermediate speeds acquired by the intermediate speed acquisition unit 101c, referring to the control data for variable-speed phase shown in
Then, the heat generation control unit 101d selects the heat generating element control information corresponding to the range including the current transport speed, from among the heat generating element control information acquired in ACT162 (ACT163). If the current transport speed is 0 (IPS), the heat generation control unit 101d selects the heat generating element control information corresponding to the range No. 7.
The heat generation control unit 101d controls the heat generating elements 111a, based on the selected heat generating element control information (ACT164). Specifically, the heat generation control unit 101d finds the pulse width of the heat generation pulse signal (strobe time) corresponding to the range No. 7 by the arithmetic formula “(MF7/Current MF)×ET7”. Also, the number of energized heat generating element blocks in the range No. 7 is “4”. Therefore, the heat generation control unit 101d drives the heat generating elements 111a corresponding to four (all) blocks, based on the heat generation pulse signal with the pulse width thus found.
The heat generation control unit 101d determines whether the target transport speed or the final speed of the target range is reached or not (ACT165, ACT166). If it is determined that the final speed of the target range is reached (YES in ACT166), the heat generation control unit 101d returns to ACT163. In this case, the heat generation control unit 101d selects the heat generating element control information corresponding to the next range (range including the current transport speed) and carries out processing similar to the above, in ACT164. For example, if 1.0 IPS, which is the final speed of the range No. 7, is reached, the heat generation control unit 101d carries out processing to control the heat generating elements 111a, based on the heat generating element control information corresponding to the range No. 2.
The heat generation control unit 101d repeats the processing of ACT163 to ACT166 and thus controls the heat generating elements 111a, based on the heat generating element control information corresponding to each range, until the transport speed of the paper P reaches the target transport speed (8.0 (IPS)). Then, if the target transport speed is reached (YES in ACT165), the heat generation control unit 101d shifts to ACT16 shown in
Back to
Subsequently, the heat generation control unit 101d determines whether N is the final line or not (ACT18). If N is not the final line, the heat generation control unit 101d returns to ACT12, increments N, and carries out processing similar to the above (NO in ACT18). Meanwhile, if N is the final line, the heat generation control unit 101d ends the heat generation control (YES in ACT18).
The thermal printer 1 according to the embodiment acquires at least one or more predetermined intermediate speeds between a target transport speed and the current transport speed, and controls the heat generating elements 111a until the transport speed of the paper P reaches the target transport speed, based on the heat generating element control information for each of the ranges from the current transport speed to the target transport speed, divided by the acquired intermediate speeds. Thus, the number of pieces of heat generating element control information processed until the target transport speed is reached can be reduced while the number of available transport speeds is maintained.
The embodiment is an example and various changes and applications are possible.
For example, the heat controller according to the embodiment may be configured as a device which is independent of the heat generating elements 111a. Also, the heat generation controller may be provided with a POS terminal or an ATM (automated teller machine) terminal.
In the embodiment, an example in which all of the available transport speeds are defined as intermediate speeds is described. However, it is possible to employ a part of these available transport speeds. For example, 4.0, 6.0, and 10.0 IPS shown in
In the arithmetic formula to find the heat generating element energizing pulse width in the embodiment, the transport frequency corresponding to the maximum value of the transport speed and the pulse width of the heat generation pulse signal (strobe time) are used. However, a transport frequency and a pulse width corresponding to a value (minimum value or average value) other than the maximum value of the transport speed may be used.
In the embodiment, an example in which a target transport speed is decided according to the print rate is described. However, the target transport speed may be set, based on the combination of the print rate and another criterion, or based on a criterion that does not include the print rate. As another criterion, for example, the number of driven blocks when the heat generating elements 111a of the thermal head 111 are driven on a block basis may be employed.
In the embodiment, the thermal printer with the roll paper PR stored therein is described as an example. However, the heat generation control device may be configured to control heat generating elements which print on a regular-sized paper or a folded continuous sheet.
While the embodiment is described above, the embodiment is presented as an example and not intended to limit the scope of the invention. This novel embodiment can be carried out in various other configurations. Various omission, replacements, and changes can be made without departing from the spirit of the invention. The embodiment and modifications thereof are included in the scope and spirit of the invention and also included in the scope of the invention and equivalents thereof described in the claims.
Number | Date | Country | Kind |
---|---|---|---|
2017-019530 | Feb 2017 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
8179409 | Saga | May 2012 | B2 |
8670010 | Kano | Mar 2014 | B2 |
20090009579 | Yamazaki | Jan 2009 | A1 |
Number | Date | Country |
---|---|---|
H10-193664 | Jul 1998 | JP |
2009-113445 | May 2009 | JP |
2012132987 | Oct 2012 | WO |
Entry |
---|
Computer-generated translation of JP 2009-113445, published on May 2009. |
Number | Date | Country | |
---|---|---|---|
20180222222 A1 | Aug 2018 | US |