Background of the Invention
This invention relates to a line thermal printer, and more particularly to power supply control technology of a line thermal head the number of printing dots.
A line thermal printer includes generally a line thermal head having a plurality of heat generation elements that are arranged on a line. Dots are printed by driving selectively a plurality of heat generation elements in line sequence for each line on the basis of printing dot data representing image data. Conventionally, power is supplied simultaneously to selected heat generation elements and dot printing is made in line sequence irrespective of the printing dot number for each line.
Brief Summary of the Invention
The number of printing dots for each line changes greatly in accordance with image data. In a conventional line thermal printer, therefore, the capacity of a current supply source is set in accordance with the capacity necessary when power is supplied simultaneously to all the heat generation elements. This arrangement has the drawbacks that the current capacity is set to be considerably greater than a mean current quantity consumed for printing line-by-line in line sequence and the utilization efficiency of the power source is low. Since a power source having an excessively greater current capacity in comparison with the printing capacity of the line thermal printer must be used, there is another problem that a great limitation is imposed on setting of the power source capacity.
Brief Description of the Drawings
FIG. 1 is a circuit block diagram showing an embodiment of a line thermal printer;
FIG. 2 is a flowchart useful for explaining the operation of the line thermal printer; and
FIG. 3A-3E are schematic views useful for explaining the function of the line thermal printer.
Detailed Description of the Inventions
FIG. 1 is a schematic circuit diagram showing an embodiment of a line thermal printer in accordance with the present invention. As shown in the drawing, the line thermal printer includes a line thermal head 1. The line thermal head 1 has physical blocks B1, B2, B3, B4 that are divided into four blocks in a line direction. Each block B has a predetermined number of heat generation elements to which power is applied selectively for effecting dot printing on a line. A driving circuit 2 is connected to the line thermal head 1. The driving circuit 2 has four driving blocks DST1, DST2, DST3, DST4 that are divided in such a manner as to correspond to the physical blocks B, respectively. Each driving block DST selectively applies power to the heat generation elements contained in the physical block corresponding thereto in line sequence for each line in accordance with printing dot data allocated thereto.
A printing dot data memory 3 is connected to the driving circuit 2. The printing dot data memory 3 supplies printing dot data to the driving circuit 2 in synchronism with a line engagement timing. The printing dot data memory 3 has four memory blocks M1, M2, M3, M4 that are divided in such a manner as to correspond to the driving blocks, respectively. Each memory block M supplies the allocated printing dot data to the corresponding driving block DST. A printing dot counter 4 is connected to the printing dot data memory 3. The printing dot counter 4 has four counter blocks D1, D2, D3, D4 that are divided in such a manner as to correspond to the memory blocks of the printing dot data memory 3, respectively. Each counter block D reads the printing dot data held by the corresponding memory block M and counts the printing dot number in synchronism with line sequence timing for each line. This printing dot number represents the number of the heat generation elements to which power is applied practically in the corresponding physical block B.
Control means comprising a CPU 5, for example, is connected between the printing dot counter 4 and the driving circuit 2. The CPU 5 combines a plurality of physical blocks B and forms a logic block on the basis of the printing dot number countered by each counter block D within the range which does not exceed a maximum allowable number of simultaneous power supply of heat generation elements that is determined in advance. Furthermore, the CPU 5 controls the driving circuit 2, lets it supply power to the heat generation elements dividedly in accordance with the logic block that is formed logically, and executes one line sequence dot printing. Set input means 6 comprising a keyboard, for example, is connected to the CPU 5, and sets and inputs a predetermined maximum allowable number N of heat generating elements which can simultaneously be supplied with electric power based on the capacity of the power supply. A power source 7 is connected to the driving circuit 2 and supplies a current for each line sequence printing to the driving circuit 2. The power source 7 has a current capacity which is in match with the maximum allowable number N of simultaneous power supply which is set by the set input means 6. Since a power source having a desired capacity can be used in accordance with the number N which is set appropriately, a suitable power source can be selected economically.
Next, the operation will be explained in detail with reference to the flowchart shown in FIG. 2. To begin with, an execution command of one line sequence dot printing or power supply processing is given from an external host computer to the CPU 5 at Step 101. The printing dot data per line, that is sent from the host computer, is transferred to the printing dot data memory 3 or to the head buffer memory at Step 102. An index m is set to 1 at Step 103. This index m represents the number of the physical blocks of the line thermal head and can take the numbers of from 1 to 4. At the next Step 104, the number of printing dot data given to the mth physical block Bm designated by the index m or in other words, the power supply dot number, is counted and the count value is applied to the corresponding counter block Dm. The index m is incremented at Step 105 and whether or not the index m exceeds 4 is judged at Step 106. Count of the power supply dot number of each physical block is repeated until the index m exceeds 4.
After the counting operation is completed four times, the index m is set to 1 at Step 107 and a variable D is set to 0. Next, whether or not power has already been supplied to the physical block Bm designated by the index m is judged at Step 108. If power has already been supplied to the physical block Bm, the flow proceeds to Step 109, where the index m is incremented. If power has not yet been supplied to the physical block Bm, the flow proceeds to Step 110. Whether or not the sum of the variable D and the count value Dm for the physical block Bm is greater than a predetermined maximum allowable number N of simultaneous power supply is judged at Step 110. If it is greater, the flow proceeds to Step 109, where the index m is incremented. If it is not, the flow proceeds to Step 111, where the physical block Bm is registered to a simultaneous power supply flag. Then in Step 112, the variable D is updated by adding the count value Dm to the variable D. Thereafter, the flow proceeds to Step 109 and the index m is incremented. Whether or not the index m exceeds 4 is judged at Step 113. The registration operation to the simultaneous power supply flag described above is repeated until the index m exceeds 4. When the index m is judged as exceeding 4 at Step 113, the flow proceeds to Step 114. Whether or not the variable D is 0 is judged at this step. If the variable D is 0, the supply of power to all the physical blocks is judged as being completed and the program finishes. If the variable D is not 0, on the other hand, the flow proceeds to Step 115 and power is supplied to the combination of the physical blocks registered to the simultaneous power supply flag, that is, to the logic block. After the power is supplied, the flow returns again to Step 107 and the preparation of the logic block described above and the supply of power are repeated. The program is completed at the point where the variable D is 0 at Step 114.
Next, the function and operation of the present invention will be explained briefly. It will be assumed that the line thermal head has five physical blocks as shown in FIG. 3A, and that each physical block has 64 heat generation elements. Therefore, each physical block can print a maximum of 64 dots as shown in FIG. 3B and the line thermal head can print 320 dots in total, as a whole. It will be assumed also that a maximum allowable number N of simultaneous power supply of heat generation elements is set to 128, and that power is supplied to all the heat generation elements in a line sequence operation of a certain line. At this time the control means combines the five physical blocks and generates three logic blocks as shown in FIG. 3C. The first logic block comprises the combination of the first physical block and the second physical block and includes 128 printing dots or in other words, 128 heat generation elements to which power must be supplied. This number is set so as not to exceed the maximum allowable number of simultaneous power supply N=128. Similarly, the second logic block comprises the combination of the third physical block and the fourth physical block and its printing dot number is 128. The third logic block comprises the remaining fifth physical block and includes 64 printing dots. Power is supplied sequentially to these three logic blocks in one line sequence operation and they effect line dot printing.
It will be asumed that when another line dot printing is carried out, the numbers of printing dots allocated to the five physical blocks are 20, 40, 10, 60 and 60 as shown in FIG. 3D. At this time the first logic block comprises the first physical block, the second physical block and the third physical block as shown in FIG. 3E and the total printing dot number is 80. This number does not exceed the set maximum allowable number of simultaneous power supply N=128. The second logic block comprises the fourth physical block and the fifth physical block and the total printing dot number is 120. This number does not exceed the maximum allowable number of simultaneous power supply N=128 supply, either.
As described above, the logic block is generated by combining a plurality of physical blocks on the basis of the printing dot number counted by each counter block within the range which does not exceed the predetermined maximum allowable number of simultaneous power supply of the heat generation elements. Power is supplied to the heat generation elements for each logic block and one line sequence dot printing is executed. Accordingly, to whichever logic block power is supplied, the printing dot number does not exceed the set maximum allowable number of simultaneous power supply.
In accordance with the present invention described above, the power supply dot number inside each physical block is counted for each dot line and the physical blocks are combined to generate logic blocks so as not to exceed the predetermined maximum power supply dot number. Power supply processing is executed for each logic block. Accordingly, a power source having a capacity which is in match with the set maximum power supply dot number can be employed, whenever desired.