Thermal head control device, thermal printer and thermal head control method

By designing a thermal head control device in a thermal printer, calculating the printing rate and calculating the range and outputting the driving signal, the specific range problem in the prior art is solved, and a more efficient printing data power-up is achieved Time calculation and printing quality improvement.

CN113320296BActive Publication Date: 2024-12-06SEIKO INSTR INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110216836.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-28
Filing Date
2021-02-26
Publication Date
2024-12-06
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

When calculating the printing rate of the existing thermal printers, there is a specific range where the printing rate is low and the printing rate is high, which makes it impossible to accurately calculate the power-on time suitable for printing data, which affects printing quality.

Method used

A thermal head control device is designed, by calculating the printing rate and calculating the range, based on the power-on time and current flow time of the heating element, the driving signal is output to control the thermal head, and a split drive determination and weighting algorithm are used to optimize the printing rate calculation. Ensure proper energy supply for each point line.

Benefits of technology

It improves printing quality, reduces excessive and insufficient energy, suppresses blanking and power consumption, ensures appropriate energy supply for each point line, and improves the accuracy of the power-on time of printing data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113320296B_ABST
    Figure CN113320296B_ABST
Patent Text Reader

Abstract

The thermal head control device comprises: a printing rate calculation range determination unit, which determines, for printing data corresponding to a heating element of a control object among a plurality of heating elements of the thermal head, a range from a left end energization point to a right end energization point among energization points existing in the printing data as a printing rate calculation range; a printing rate calculation unit, which calculates the printing rate of the printing rate calculation range determined by the printing rate calculation range determination unit; a energization time calculation unit, which calculates the energization time of the current flowing through the heating element based on the printing rate calculated by the printing rate calculation unit; and an output unit, which outputs a control signal for driving the heating element of the control object of the thermal head based on the calculated energization time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a thermal head control device, a thermal printer and a thermal head control method. Background Art

[0002] Conventionally, regarding thermal printers that print on thermal paper by generating heat from heating elements arranged in a row, there is known a technique for varying the time for which the heating elements are energized according to the number of heating elements that are simultaneously energized (printing rate).

[0003] In the above-mentioned technology, when there is a deviation in the range of calculating the printing rate, such as causing the energized heating element to be concentrated in a specific range, the printing rate of the entire range that can be printed is calculated regardless of the high printing rate in the specific range, and the calculated printing rate becomes low. In other words, sometimes there is a specific range with a high printing rate regardless of the low calculated printing rate. That is, in the existing control method, when the printing rate in the specific range is high, the printing rate is calculated in the entire range that can be printed, and there is a problem that the power-on time suitable for printing data cannot be calculated.

[0004] Therefore, in the present technical field, a thermal head control device, a thermal printer, and a thermal head control method that can calculate a power-on time suitable for printing data are desired. Summary of the invention

[0005] A thermal head control device involved in one embodiment of the present invention comprises: a printing rate calculation range determination unit, which determines, for printing data corresponding to a heating element of a control object among a plurality of heating elements of the thermal head, a range from a left end energization point to a right end energization point among energization points existing in the printing data as a printing rate calculation range; a printing rate calculation unit, which calculates the printing rate of the printing rate calculation range determined by the printing rate calculation range determination unit; a energization time calculation unit, which calculates the energization time of the current flowing through the heating element based on the printing rate calculated by the printing rate calculation unit; and an output unit, which outputs a control signal for driving the heating element of the control object of the thermal head based on the calculated energization time.

[0006] Furthermore, in the thermal head control device according to one aspect of the present invention, the energization time is shorter when the printing ratio calculated by the printing ratio calculation unit is high than when the printing ratio calculated by the printing ratio calculation unit is low.

[0007] In the thermal head control device according to one aspect of the present invention, the printing ratio calculation range determination section determines the printing ratio calculation range using the heating elements of one row included in the thermal head as the heating elements to be controlled.

[0008] In addition, the thermal head control device involved in one embodiment of the present invention is also equipped with a split drive determination unit, which determines whether to perform a split drive of dividing the above-mentioned printing data into multiple parts and causing power to be turned on when a predetermined number of power-on points or more exist in the above-mentioned printing data. When the above-mentioned printing rate calculation unit determines that the above-mentioned split drive is performed by the above-mentioned split drive determination unit, the above-mentioned heating element existing in the range of the above-mentioned printing data divided into multiple parts is used as the above-mentioned heating element of the above-mentioned control object, and calculates the above-mentioned printing rate.

[0009] In the thermal head control device according to one embodiment of the present invention, the printing rate calculation unit calculates the printing rate by weighting the case where the adjacent heating elements are continuously energized points and the case where the adjacent heating elements are continuously not energized points differently.

[0010] In the thermal head control device according to one aspect of the present invention, the printing ratio calculation range determination unit excludes a range from the printing ratio calculation range when a range including a predetermined number or more of consecutive non-energized points exists.

[0011] A thermal printer according to one aspect of the present invention includes: a transport mechanism that transports a printing medium; a thermal head that prints on the printing medium; and the thermal head control device that controls the thermal head.

[0012] A thermal head control method involved in one embodiment of the present invention comprises: a printing rate calculation process, which calculates the printing rate of a predetermined printing rate calculation range in the printing data sent to a thermal head having a plurality of heating elements arranged adjacently; a printing rate calculation range determination process, which determines the range from the left end power-on point to the right end power-on point among the power-on points existing in the aforementioned printing data as the aforementioned printing rate calculation range; a power-on time calculation process, which calculates the power-on time of the current flowing through the aforementioned heating element based on the aforementioned printing rate calculated by the aforementioned printing rate calculation process; and an output process, which outputs a control signal for driving the aforementioned thermal head based on the aforementioned calculated power-on time. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a perspective view showing an example of a thermal printer according to the present embodiment.

[0014] Figure 2 This is a perspective view showing an example of the printing unit according to the present embodiment.

[0015] Figure 3 It is a diagram showing an example of the functional configuration of the control unit according to the present embodiment.

[0016] Figure 4 This is a diagram showing an example of the functional configuration of the head control unit according to the first embodiment.

[0017] Figure 5 This is a diagram for explaining the printing ratio calculation range determination method according to the first embodiment.

[0018] Figure 6 1 is a diagram showing a flow of data extraction processing corresponding to one dotted line according to the first embodiment.

[0019] Figure 7 It is a diagram showing the flow of the pulse output process according to the first embodiment.

[0020] Figure 8 It is a diagram showing the flow of the printing ratio correction calculation process according to the first embodiment.

[0021] Fig. 9 It is a diagram showing an example of the functional configuration of the head control unit according to the second embodiment.

[0022] Fig.10 It is a diagram for explaining the first division of the divided drive according to the second embodiment.

[0023] Fig.11 It is a diagram for explaining the second division of the divided drive according to the second embodiment.

[0024] Fig.12 It is a diagram for explaining the third division of the divided drive according to the second embodiment.

[0025] Fig.13 It is a diagram showing the flow of the pulse output process according to the second embodiment.

[0026] Fig.14 It is a diagram showing the flow of the division position determination process and the printing ratio calculation range determination process according to the second embodiment.

[0027] Fig.15 It is a diagram showing an example of the functional configuration of a head control unit according to the third embodiment.

[0028] Fig.16 This is a diagram for explaining a printing ratio calculation method according to the third embodiment.

[0029] Fig.17 It is a diagram for explaining a modification of the printing ratio calculation method according to the third embodiment.

[0030] Fig.18It is a diagram showing the flow of the division position determination process and the printing ratio calculation range determination process according to the third embodiment.

[0031] Fig.19 It is a diagram showing an example of the functional configuration of a head control unit according to the fourth embodiment.

[0032] Fig. 20 This is a diagram for explaining a printing ratio calculation method according to the fourth embodiment.

[0033] Fig.21 It is a diagram showing the flow of the division position determination process and the printing ratio calculation range determination process according to the fourth embodiment.

[0034] Fig. 22 It is a diagram showing an example of the functional configuration of a head control unit according to the fifth embodiment.

[0035] Fig.23 It is a diagram showing the flow of the printing ratio correction calculation process according to the fifth embodiment.

[0036] Fig.24 It is a diagram showing an example of the functional configuration of a head control unit according to the sixth embodiment.

[0037] Fig.25 It is a diagram showing the flow of the printing ratio correction calculation process according to the sixth embodiment. DETAILED DESCRIPTION

[0038] [Composition of thermal printer]

[0039] Figure 1 : is a three-dimensional diagram of a thermal printer 1. The structure of the thermal printer 1 will be described with reference to this figure. As shown in this figure, the thermal printer 1 is configured to be able to print recording paper (printing medium) P. The recording paper P is, for example, thermal paper that develops color when heat is applied, and is appropriately used for printing various labels, receipts, tickets, etc. The recording paper P is set in the thermal printer 1 in the state of a roll R wound with a hollow hole, and the portion pulled out from the roll R is printed.

[0040] The thermal printer 1 has a housing 3, a display unit 4, a control unit 5, and a printing unit 10. The housing 3 is formed in a hollow box shape by a plastic or metal material such as ABS or a composite material of ABS and polycarbonate. The housing 3 has: a rectangular main body 6; and a roll paper accommodating portion 7, which is bent at one end in the length direction of the main body 6 toward one side in the thickness direction of the main body 6. The printing unit 10 is accommodated at one end in the length direction of the main body 6. A discharge port 3a is formed on one end face in the length direction of the main body 6. The discharge port 3a discharges the recording paper P printed by the printing unit 10. The display unit 4 is arranged on the main surface on the other side facing the thickness direction of the main body 6. The display unit 4 is, for example, a liquid crystal panel, which is connected to the control unit 5 and displays various information. The roll paper R is accommodated in the roll paper accommodating portion 7.

[0041] Figure 2 : is a three-dimensional diagram of the printing unit 10. The printing unit 10 will be described with reference to this figure. As shown in the figure, the printing unit 10 discharges the recording paper P passing between the platen roller 51 and the thermal head 41 in the direction indicated by the arrow A. Hereinafter, mainly in the description of the printing unit 10, the direction along the arrow A is defined as the up-down direction L1, and the direction indicated by the arrow A is defined as the upward direction. In addition, the direction along the rotation axis O of the platen roller 51 is defined as the axial direction L2. Moreover, the direction orthogonal to the up-down direction L1 and the axial direction L2 is defined as the front-back direction L3, and the side of the platen roller 51 relative to the thermal head 41 in the front-back direction L3 is defined as the front.

[0042] The main frame 11 is formed of a plate material such as a polycarbonate resin containing glass fiber. The main frame 11 is formed in a U-shape open toward the front when viewed from the up-down direction L1. Specifically, the main frame 11 includes: a back plate portion 12 extending along the axial direction L2; a first side wall portion 13 erected toward the front from an end portion of one side of the back plate portion 12 in the axial direction L2; a second side wall portion 14 erected toward the front and downward from an end portion of the other side of the back plate portion 12 in the axial direction L2; and a support portion 15 disposed between the first side wall portion 13 and the second side wall portion 14.

[0043] The back plate portion 12 is formed in a plate shape having a thickness in the front-rear direction L3. The first side wall portion 13 is formed in a plate shape having a thickness in the axial direction L2. A first roller insertion groove 16A cut downward is formed at the upper edge of the first side wall portion 13.

[0044] The second side wall portion 14 is formed in a plate shape having a thickness in the axial direction L2. The second side wall portion 14 extends from the end portion of the other side of the back plate portion 12 in the axial direction L2 toward the front, and then extends downward. At the upper end edge of the second side wall portion 14, a second roller insertion groove 16B cut into downward is formed. The second roller insertion groove 16B is formed to have a shape and a formation position consistent with the first roller insertion groove 16A as viewed from the axial direction L2. The platen roller 51 can be removably inserted into the first roller insertion groove 16A and the second roller insertion groove 16B (hereinafter referred to as "each roller insertion groove 16A, 16B").

[0045] A motor 61 is mounted on the lower side of the second side wall portion 14 than the connection portion between the second side wall portion 14 and the back plate portion 12. The motor 61 is mounted from the inside relative to the second side wall portion 14, and the output shaft of the motor 61 passes through the second side wall portion 14 and protrudes to the outside of the second side wall portion 14. The motor 61 is connected to the control unit 5 via a flexible substrate 71 on which a wiring pattern (not shown) is printed. The motor 61 is driven based on a signal from the control unit 5.

[0046] A gear box portion 17 is formed outside the second side wall portion 14. The gear box portion 17 has a peripheral wall portion 18 standing outward from the peripheral edge of the second side wall portion 14. The peripheral wall portion 18 is formed in a U-shape open upward when viewed in the axial direction L2. The gear box portion 17 is open outward.

[0047] A recess 19 that is recessed downward is formed at the upper edge of the front side and the upper edge of the rear side of the peripheral wall portion 18. A pair of recesses 19 are formed to be consistent in shape and position with each other when viewed from the front-to-back direction L3. Each recess 19 is formed to have an opening that expands upward when viewed from the front-to-back direction L3. Specifically, when viewed from the front-to-back direction L3, each recess 19 has: a bottom portion that is along the axial direction L2; an outer wall portion that extends upward from the outer end of the bottom; an inner wall portion that extends upward from the inner end of the bottom; and an inclined wall portion that extends obliquely upward from the upper edge of the inner wall portion toward one side of the axial direction L2. The height of the inner wall portion is about half of the height of the outer wall portion. The position of the upper edge of the inclined wall portion is roughly consistent with the upper edge of the outer wall portion in the up-down direction L1.

[0048] The peripheral wall portion 18 is formed with a first hole portion 18a and a second hole portion. The first hole portion 18a is formed at the lower portion of the portion facing forward in the peripheral wall portion 18. The first hole portion 18a is formed in a rectangular shape that is long in the up-down direction L1 when viewed from the front-to-back direction L3. The second hole portion is formed at the lower portion of the portion facing rearward in the peripheral wall portion 18. The second hole portion is formed in a rectangular shape that is long in the up-down direction L1 when viewed from the front-to-back direction L3. The second hole portion is arranged above the first hole portion 18a in the up-down direction L1.

[0049] A reduction gear (not shown) is incorporated into the gear box portion 17 .

[0050] The support portion 15 is formed in a columnar shape extending along the axial direction L2. With respect to the support portion 15, an end portion on one side of the axial direction L2 is connected to the inner side surface of the first side wall portion 13, and an end portion on the other side of the axial direction L2 is connected to the inner side surface of the second side wall portion 14. The support portion 15 is provided with a pair of mounting portions 15a that are recessed downward when viewed from the front-to-back direction L3. The pair of mounting portions 15a are formed at intervals in the axial direction L2. At the bottom of each mounting portion 15a, a through hole 15b is provided that penetrates the bottom of the mounting portion 15a in the up-down direction. The main frame 11 is installed relative to the housing 3 by inserting fastening components such as bolts into the through holes 15b that penetrate the support portion 15.

[0051] The thermal head 41 is a component for printing on the recording paper P. The thermal head 41 is formed into a rectangular shape with the axial direction L2 as the length direction when viewed from the front-to-back direction L3. The thermal head 41 is arranged in a state where its length direction is consistent with the width direction of the recording paper P. On the head surface of the thermal head 41, many heating elements 42 are arranged along the axial direction L2. The head surface of the thermal head 41 is opposite to the printing surface of the recording paper P, and the recording paper P can be clamped between the outer peripheral surface of the platen roller 51. The thermal head 41 has a plurality of heating elements 42 arranged adjacent to each other. The thermal head 41 is connected to the control unit 5 via the flexible substrate 71, and the driver IC (not shown) mounted on the thermal head 41 controls the heating of the heating element 42 based on the signal from the control unit 5. With respect to the thermal head 41, the heating of the heating element 42 is controlled, and various characters or graphics are printed on the printing surface of the recording paper P.

[0052] The thermal head 41 is attached and fixed to a head support body 45 supported by the main frame 11. The head support body 45 is a plate-shaped member with the axial direction L2 as the length direction, and the thermal head 41 is attached and fixed to the front surface. The head support body 45 is arranged between the first side wall portion 13 and the second side wall portion 14, and between the back plate portion 12 and the support portion 15.

[0053] An elastic member (not shown) is interposed between the head support body 45 and the back plate portion 12 to apply force to the head support body 45 and the back plate portion 12 in a direction to separate the head support body 45 and the back plate portion 12 from each other. That is, the elastic member is configured to always push the head support body 45 forward. A plurality of elastic members are arranged at intervals along the axial direction L2.

[0054] A pair of stoppers 45a for limiting the rotation range of the head support body 45 are formed at the upper end of the head support body 45. The stopper 45a is a component of the head support body 45 that extends outward in the axial direction L2 and faces the hole portion 13a formed in the upper portion of the first side wall portion 13 of the main frame 11 and the hole portion 14a formed in the upper portion of the second side wall portion 14. The stopper 45a moves in the holes 13a and 14a as the head support body 45 rotates, and is configured to be able to contact the end surfaces of the holes 13a and 14a. The stopper 45a limits the amount of rotation of the head support body 45 by contacting the end surfaces of the holes 13a and 14a.

[0055] The platen roller 51 is disposed opposite to the thermal head 41, and rotates around the rotation axis O while sandwiching the recording paper P between the thermal head 41, thereby feeding the recording paper P in the direction indicated by the arrow A. The platen roller 51 includes a roller shaft 52, a roller body 53 externally mounted on the roller shaft 52, and a pair of bearings 54 mounted on both ends of the roller shaft 52. The roller shaft 52 is formed to be slightly longer than the separation distance between the first side wall portion 13 and the second side wall portion 14 of the main frame 11. The roller body 53 is formed of, for example, rubber, and is uniformly disposed throughout the entirety of the roller shaft 52 except for the portions corresponding to both ends thereof along the axial direction L2.

[0056] Regarding the platen roller 51, a pair of bearings 54 mounted at both ends are inserted into the roller insertion grooves 16A and 16B of the main frame 11. Thus, the platen roller 51 is held rotatably around the rotation axis O relative to the main frame 11 and detachably. When the platen roller 51 is inserted into the roller insertion grooves 16A and 16B, the roller body 53 is in contact with the thermal head 41 when the recording paper P drawn out from the roll paper R is sandwiched between the platen roller 51 and the thermal head 41.

[0057] A driven gear 56 is fixed to the other end of the platen roller 51 in the axial direction L2. When the platen roller 51 is held by the first side wall portion 13 and the second side wall portion 14, the driven gear 56 is assembled to the upper portion of the gear box portion 17. The platen roller 51 rotates while being held by the first side wall portion 13 and the second side wall portion 14, and the recording paper P can be fed out.

[0058] A gear cover 20 is attached to the opening of the gear case 17 so as to entirely cover the opening of the gear case 17 as viewed in the axial direction L2. The gear cover 20 is preferably formed of a material having higher toughness than the main frame 11, such as ABS resin.

[0059] Figure 3The control unit 5 includes a CPU 510 , a storage unit 511 , a communication unit 512 , a head control unit (thermal head control device) 514 , and a motor control unit 515 , and these units are connected via a bus 520 .

[0060] The CPU 510 is composed of a central processing unit (CPU) and controls each part of the thermal printer 1. The head control unit 514 controls the driving of the thermal head 41 for printing on the paper P under the control of the CPU 510. The motor control unit 515 drives the motor 61 under the control of the CPU 510 to rotate the platen roller 51, so that the paper P is transported at a predetermined pitch (for example, at each dot line). The motor 61 and the platen roller 51 are also described together as a transport mechanism.

[0061] The storage unit 511 is configured to include, for example, a ROM (Read-only Memory), a RAM (Random Access Memory), etc. as a storage medium. In addition, the storage unit 511 may also include an HDD (Hard Disk Drive), a flash memory, etc. For example, the storage unit 511 stores a program executed by the CPU 510 and data required when the CPU 510 executes the program. In addition, the storage unit 511 stores detection results of various sensors (not shown) provided in the thermal printer 1, etc.

[0062] The communication unit 512 is communicatively connected to the host terminal 2 , receives data input from the host terminal 2 , and outputs control commands or various data included in the data input to the CPU 510 .

[0063] [First embodiment]

[0064] Edge Reference Figures 4 to 8 , an example of the thermal printer 1 involved in the first embodiment is described. Figure 4 1 is a diagram showing an example of the functional configuration of the head control unit 514 according to the first embodiment. The functional configuration of the head control unit 514 will be described with reference to this diagram. As shown in this diagram, the head control unit 514 includes a data receiving unit 110, a command analyzing unit 120, a printing data generating unit 130, a power-on pulse calculating unit 140, a power-on pulse output unit (output unit) 150, and a printing data output unit 160.

[0065] The host terminal 2 is an electronic device such as a personal computer, a tablet terminal, a smartphone, or other portable terminals. The host terminal 2 includes a data transmission unit 21 that transmits print data and the like to the thermal printer 1 .

[0066] The data receiving unit 110 receives data input sent from the host terminal 2. The data receiving unit 110 provides the received data input to the command analyzing unit 120. The data input received by the data receiving unit 110 is print data printed by the thermal head 41 or a setting change command for changing the setting of the thermal printer 1.

[0067] The command analysis unit 120 acquires data input from the data receiving unit 110 . The command analysis unit 120 performs command analysis on the acquired data input. When the acquired information is print data, the command analysis unit 120 provides the acquired information to the print data generating unit 130 .

[0068] The print data generation unit 130 obtains the print data from the command analysis unit 120. The print data generation unit 130 extracts the data output to the thermal head 41 from the information included in the obtained print data, and generates the transfer print data. The transfer print data is information to be transferred to the thermal head 41, and includes information indicating whether each heating element 42 provided in the thermal head 41 is an energized point or a non-energized point. The print data generation unit 130 provides the generated transfer print data to the energization pulse calculation unit 140 and the print data output unit 160.

[0069] The print data output unit 160 outputs the acquired transfer print data to the thermal head 41. The print data output unit 160 outputs the transfer print data by, for example, clock-synchronized serial communication.

[0070] The energizing pulse calculation unit 140 calculates the energizing time for each dot line in the transfer printing data generated by the printing data generation unit 130. The energizing pulse calculation unit 140 includes a printing ratio correction value calculation unit 141 and a energizing time calculation unit 144. The printing ratio correction value calculation unit 141 includes a printing ratio calculation range determination unit 142 and a printing ratio calculation unit 143.

[0071] Figure 5 This is a diagram for explaining the method for determining the printing rate calculation range involved in the first embodiment. The determination method performed by the printing rate calculation range determination unit 142 is described with reference to this diagram. "A dotted line" is composed of a plurality of heating elements 42 provided by the thermal head 41. For example, a case where the thermal head 41 has 448 heating elements 42 is described. In this figure, the heating element 42 arranged at the left end of the thermal head 41 is referred to as point D1, and the heating element 42 arranged at the right end is referred to as point D448. The heating elements 42 are arranged in order from point D1 at the left end to point D448 at the right end. In this example, the heating elements 42 of the control object are from point D1 at the left end to point D448 at the right end. The points represented by blanks are non-energized points, and the points represented by fills are energized points.

[0072] exist Figure 5 In the example shown, point D1 at the left end and point D2 adjacent to point D1 are non-energized points. Point D3 adjacent to point D2 is an energized point. In this example, the energized point at the left end is point D3, so point D3 is the left end energized point. Figure 5 In the example shown, point D448 at the right end is a non-energized point. Non-energized points are continuous for nine points to the left from point D448, and point D439 is a energized point. In this example, the energized point at the right end is point D439, and thus point D439 is the energized point at the right end. The printing rate calculation range determination unit 142 determines the range from point D3 to point D439 as the printing rate calculation range. That is, the printing rate calculation range determination unit 142 determines the range from the left end energized point to the right end energized point among the energized points present in the printing data as the printing rate calculation range. The printing rate calculation range determination unit 142 determines the printing rate calculation range for each dot line (printing data corresponding to a column).

[0073] Back to Figure 4 The printing rate calculation range determination unit 142 includes a left end energization point storage unit 142L and a right end energization point storage unit 142R. The left end energization point storage unit 142L stores the position of the left end energization point. Figure 5 In one example, the left end energizing point storage unit 142L stores point D3 as the left end energizing point. The right end energizing point storage unit 142R stores the position of the right end energizing point. Figure 5 In one example, the right end energized point storage unit 142R stores point D439 as the right end energized point.

[0074] The printing ratio calculation unit 143 calculates the printing ratio of a predetermined printing ratio calculation range in the printing data sent to the thermal head 41. Specifically, the printing ratio calculation unit 143 calculates the printing ratio within the calculation range determined by the printing ratio calculation range determination unit 142. The printing ratio calculation unit 143 calculates the printing ratio for each dot line (printing data corresponding to one column).

[0075] The conduction time calculation unit 144 calculates the conduction time of the current flowing through the heating element 42 based on the printing rate calculated by the printing rate calculation unit 143. In this example, the conduction time calculation unit 144 shortens the conduction time when the printing rate calculated by the printing rate calculation unit 143 is high, and lengthens the conduction time when the printing rate calculated by the printing rate calculation unit 143 is low.

[0076] The energizing time calculation unit 144 may calculate the energizing time based on the power supply voltage (e.g., battery voltage, etc.) of the thermal printer 1, the ambient temperature of the thermal printer 1, the combined resistance value of the plurality of heating elements 42 provided in the thermal head 41, etc., in addition to the printing rate calculated by the printing rate calculation unit 143. The combined resistance value of the heating element 42 may be, for example, a predetermined value or a value measured when the power is turned on. The energizing pulse calculation unit 140 provides information indicating the energizing time calculated by the energizing time calculation unit 144 to the energizing pulse output unit 150.

[0077] The energizing pulse output unit 150 outputs a control signal for driving the thermal head 41 based on the calculated energizing time. Specifically, the energizing pulse output unit 150 obtains information indicating the energizing time from the energizing pulse calculation unit 140 and outputs a energizing pulse to the thermal head 41 based on the energizing time indicated by the obtained information.

[0078] Figure 6 1 is a diagram showing the flow of data extraction processing corresponding to one dotted line according to the first embodiment. The flow of data extraction processing corresponding to one dotted line will be described with reference to this diagram.

[0079] (Step S111 ) The data receiving section 110 receives the data input transmitted from the host terminal 2 . The data receiving section 110 supplies the received data input to the command analyzing section 120 .

[0080] (Step S113 ) The command analysis unit 120 acquires data input from the data receiving unit 110 . The command analysis unit 120 performs command analysis on the acquired data input. If the acquired information is print data, the command analysis unit 120 provides the acquired information to the print data generating unit 130 .

[0081] (Step S115) The print data generation unit 130 obtains the print data from the command analysis unit 120. The print data generation unit 130 generates the transfer print data. When the transfer print data is established (step S115: Yes), the print data generation unit 130 advances the process to step S117. When the transfer print data is not established (step S115: No), the print data generation unit 130 returns the process to step S113. The case where the transfer print data is not established is, for example, when the print data is incorrect data.

[0082] (Step S117 ) The print data generating unit 130 extracts data corresponding to one dotted line. The print data generating unit 130 supplies the extracted data corresponding to one dotted line to the energization pulse calculating unit 140 and ends the process.

[0083] Figure 7FIG. 1 is a diagram showing the flow of the pulse output process according to the first embodiment. The flow of the pulse output process will be described with reference to this diagram. The pulse output process described with reference to this diagram is a flow chart of the pulse output process according to the first embodiment. Figure 6 Processing performed after the data extraction processing corresponding to one dotted line described in .

[0084] (Step S131) ​​The energizing pulse calculation unit 140 calculates the basic energizing time. The basic energizing time is the energizing time that is not related to the printing rate. The basic energizing time is, for example, the energizing time calculated based on the power supply voltage of the thermal printer 1, the ambient temperature of the thermal printer 1, the combined resistance value of the heating element 42, and the like.

[0085] (Step S133) The printing ratio correction value calculation unit 141 performs printing ratio correction calculation for each dot line. Figure 8 The flow of the printing ratio correction calculation process will be described.

[0086] Figure 8 It is a diagram showing the flow of the printing ratio correction calculation process according to the first embodiment.

[0087] (Step S151) The printing ratio correction value calculation unit 141 extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141 extracts the dot ( Figure 5 point D1 as shown).

[0088] (Step S153) The printing ratio correction value calculation unit 141 determines whether the point is an energized point. If the point is an energized point (step S153: Yes), the process proceeds to step S155. If the point is a non-energized point (step S153: No), the printing ratio correction value calculation unit 141 proceeds to step S161.

[0089] (Step S155) The printing ratio correction value calculation unit 141 determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141 determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S155: Yes), the printing ratio correction value calculation unit 141 advances the processing to step S157. When the point is not the initial energization point (step S155: No), the printing ratio correction value calculation unit 141 advances the processing to step S159.

[0090] (Step S157 ) The printing ratio correction value calculation unit 141 stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0091] (Step S159) The printing ratio correction value calculation unit 141 stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141 updates the stored value.

[0092] (Step S161) The energization pulse calculation unit 140 determines whether the analysis corresponding to the one dotted line is completed. If the analysis corresponding to the one dotted line is completed (step S161: Yes), the energization pulse calculation unit 140 advances the process to step S165. If the analysis corresponding to the one dotted line is not completed (step S161: No), the energization pulse calculation unit 140 advances the process to step S163.

[0093] (Step S163) The energization pulse calculation unit 140 extracts data corresponding to the next point. For example, the energization pulse calculation unit 140 extracts data of adjacent points.

[0094] (Step S165) The printing ratio calculation range determination unit 142 calculates the printing ratio calculation range using the position information of the dots stored in the left end energization dot storage unit 142L and the right end energization dot storage unit 142R as the printing ratio calculation range.

[0095] (Step S167 ) The printing ratio calculation range determination unit 142 calculates a printing ratio correction value based on the calculated printing ratio calculation range.

[0096] Back to Figure 7 The energizing pulse calculation unit 140 calculates the energizing time based on the calculated printing rate. Figure 7 The pulse output processing is explained.

[0097] (Step S135 ) The energization time calculation unit 144 calculates the energization time for each dot line based on the printing ratio correction calculation performed by the printing ratio correction value calculation unit 141 .

[0098] (Step S136 ) The energizing pulse output unit 150 outputs an energizing pulse corresponding to the energizing time calculated by the energizing time calculation unit 144 to the thermal head 41 .

[0099] (Step S137) When the pulse output of all dot lines of the established print data is completed (Step S137: Yes), the energization pulse calculation unit 140 ends the process. When the pulse output of all dot lines of the established print data is not completed (Step S137: No), the energization pulse calculation unit 140 advances the process to Step S139.

[0100] (Step S139 ) The print data generating unit 130 extracts data corresponding to the next dotted line. The print data generating unit 130 supplies the extracted data corresponding to one dotted line to the energization pulse calculating unit 140 , and proceeds the process to step S131 .

[0101] According to the embodiment described above, the head control unit 514 determines the printing rate calculation range for each dot line by having a printing rate calculation range determination unit 142. The printing rate calculation unit 143 calculates the printing rate within the printing rate calculation range determined by the printing rate calculation range determination unit 142. The power-on time calculation unit 144 calculates the power-on time based on the calculated printing rate. Therefore, according to this embodiment, the power-on time of the printing rate within the range where the power-on points exist in a dot line can be calculated. That is, the power-on time suitable for printing data can be calculated. In addition, according to this embodiment, since the power-on time suitable for printing data can be calculated, energy suitable for printing data can be supplied to the heating element 42.

[0102] Here, in the past, in the combination of a thermal head with a large deviation in the heating temperature distribution in the heating element 42 and a recording paper P with poor color rendering characteristics (for example, a thermal paper with a narrow range of optical density (OD value) exceeding 1), the color changes within one point, and there is a problem of deterioration in printing quality. In such a case, in the combination of a thermal head with a large deviation in the heating temperature distribution in the heating element 42 and a recording paper P with poor color rendering characteristics, if a full black pattern is printed with energy matching the printing quality of the character, blanks will be caused and the OD value will decrease. On the other hand, although the blanks of the full black pattern are improved by using energy matching the full black pattern, the characters will be white due to insufficient energy for the characters. That is, if an energy setting is performed to match a pattern with a low printing rate such as a character, it will become excess energy relative to non-characters with a high printing rate, and non-characters with a high printing rate will cause blanks. If an energy setting is performed to match non-characters with a high printing rate, it will become insufficient energy relative to patterns with a low printing rate such as characters, and the printing will be white. According to the present invention, by calculating the energy taking into account the heat transfer from the adjacent heating elements 42, more appropriate energy can be applied to the paper than in the conventional control. Therefore, excess and deficiency of energy are reduced, and the printing quality is improved.

[0103] In addition, according to the present invention, the power-on time is shorter when the printing rate calculated by the printing rate calculation unit 143 is high than when the printing rate calculated by the printing rate calculation unit 143 is low. That is, the power-on time calculation unit 144 shortens the power-on time when the printing rate is high. Therefore, by suppressing the application of excessive energy, the generation of blanks can be suppressed and the power consumption can be suppressed.

[0104] In addition, according to the present invention, the energizing pulse calculation unit 140 calculates the energizing pulse for each dot line. That is, according to the present invention, the printing rate calculation range for calculating the printing rate is different for each dot line. Therefore, according to the present invention, the appropriate energy can be calculated for each dot line.

[0105] [Second Embodiment]

[0106] Edge Reference Figures 9 to 14 An example of a thermal printer 1A according to the second embodiment will be described. Fig. 9 1 is a diagram showing an example of the functional configuration of a head control unit 514A according to the second embodiment. The head control unit 514A is different from the head control unit 514 in that it includes a energization pulse calculation unit 140A instead of the energization pulse calculation unit 140. Figure 4 The same components as those described in the above are marked with the same reference numerals and the description thereof is omitted. The energizing pulse calculating unit 140A includes a printing rate correction value calculating unit 141A and a energizing time calculating unit 144. The printing rate correction value calculating unit 141A is a modified example of the printing rate correction value calculating unit 141. The printing rate correction value calculating unit 141A includes a split drive determining unit 145, a printing rate calculation range determining unit 142A, and a printing rate calculating unit 143.

[0107] The split drive determination unit 145 controls whether to perform split drive for each dot line. Here, split drive is a thermal head driving method that divides the print data into a plurality of parts and causes power to be supplied when a predetermined number of energized dots or more exist in the print data corresponding to one dot line. That is, when a predetermined number of energized dots or more exist in the print data, the split drive determination unit 145 determines whether to perform split drive that divides the print data into a plurality of parts and causes power to be supplied.

[0108] In the present embodiment, the split drive determination unit 145 includes a left end energization point storage unit 142L and a right end energization point storage unit 142R. When performing split drive determination, the split drive determination unit 145 stores the left end energization point in the left end energization point storage unit 142L and stores the right end energization point in the right end energization point storage unit 142R. The printing rate calculation range determination unit 142A determines the printing rate calculation range based on the left end energization point stored in the left end energization point storage unit 142L and the right end energization point stored in the right end energization point storage unit 142R.

[0109] In one dotted line driven by division, the printing ratio calculation range is determined for each divided division range. That is, one dotted line driven by division has a left end energized point and a right end energized point for each division range. Figures 10 to 13 The split drive is explained below.

[0110] Fig.10 It is a diagram for explaining the first division of the split drive involved in the second embodiment. For example, in the case where the thermal head 41 has a heating element 42 with 448 points, a dotted line has 448 points from point D1 to point D448. In this example, an example is explained in which the maximum number of points powered on at the same time is 100 points. In this figure, "a dotted line" represents the entire thermal head. That is, "a dotted line" represents from point D1 to point D448. In "a dotted line", the left end is point D1 and the right end is point D448. The dotted line shown in the figure is divided into three division ranges from division range 1 to division range 3. "The first division of the split drive" is the details of each point in division range 1.

[0111] When the maximum number of simultaneously energized dots is 100 dots, 100 energized dots are included in segment range 1. In this example, since the left end energized dot is dot D1 and the right end energized dot is D180, the printing rate calculation range is the range from dot D1 to dot D180. Therefore, the printing rate of segment range 1 is 55.5% (percentage).

[0112] Fig.11 This is a diagram for explaining the second division of the split drive involved in the second embodiment. Since the division range 1 is from point D1 to D180, the division range 2 is the range from point D181. The division range 2 in this example is the range from point D181 to point D400. In this example, each point from point D181 to point D197 is a non-energized point. Therefore, point D198, which is the energized point at the left end in the division range, is the left end energized point.

[0113] When the maximum number of simultaneously energized dots is 100 dots, 100 energized dots are included in segment range 2. In this example, since the left end energized dot is dot D198 and the right end energized dot is D400, the printing rate calculation range is the range from dot D198 to dot D400. Therefore, the printing rate of segment range 2 is 49.5% (percentage). In this way, segment range 1 and segment range 2 each include 100 energized dots, but since the printing rate calculation ranges are different, the printing rates are also different.

[0114] Fig.12This is a diagram for explaining the third division of the division drive involved in the second embodiment. Division range 2 is from point D181 to point D400, and thus division range 3 is the range from point D401. In this example, one line of points is from point D1 to point D448, and thus division range 3 is the range from D400 to D448. Therefore, the printing rate calculation range within division range 3 is the range from point D406 to point D423. For example, in the case where 11 energized points are included in division range 3, the printing rate of division range 3 is 23.4% (percentage).

[0115] Fig.13 FIG. 1 is a diagram showing a flow of pulse output processing according to the second embodiment. The flow of pulse output processing will be described with reference to this diagram. The pulse output processing described with reference to this diagram is a flow chart of the second embodiment. Figure 6 The processing performed after the data extraction processing corresponding to a dotted line described in . Figure 6 The data extraction process corresponding to one dotted line described in is the same as that in the first embodiment, and thus the description thereof is omitted.

[0116] (Step S200) The split drive determination unit 145 determines whether to perform split drive. Specifically, the split drive determination unit 145 determines whether each point of a dotted line is a power-on point. When the number of power-on points of a dotted line is consistent with the predetermined maximum number of power-on points at the same time, the position is determined as the split position. In addition, the split drive determination unit 145 determines the left end power-on point position and the right end power-on point position in this process. When the number of power-on points of a dotted line is less than the predetermined maximum number of power-on points at the same time, the split drive determination unit 145 determines not to perform split drive.

[0117] Fig.14 This is a diagram showing the flow of the segmentation position determination process and the printing ratio calculation range determination process according to the second embodiment. The segmentation position determination process and the printing ratio calculation range determination process will be described with reference to this diagram. The process described with reference to this diagram is described with reference to Figure 8 A modification example of the printing ratio correction calculation process in the first embodiment will be described below.

[0118] (Step S251) The printing ratio correction value calculation unit 141A extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141A extracts the dot ( Fig.10 point D1 as shown).

[0119] (Step S253) The printing ratio correction value calculation unit 141A determines whether the point is an energized point. If the point is an energized point (step S253: Yes), the process proceeds to step S255. If the point is a non-energized point (step S253: No), the printing ratio correction value calculation unit 141A proceeds to step S271.

[0120] (Step S255) The printing ratio correction value calculation unit 141A determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141A determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S255: Yes), the printing ratio correction value calculation unit 141A advances the processing to step S257. When the point is not the initial energization point (step S255: No), the printing ratio correction value calculation unit 141A advances the processing to step S259.

[0121] (Step S257) The printing ratio correction value calculation unit 141A stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0122] (Step S259) The printing ratio correction value calculation unit 141A stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141A updates the stored value.

[0123] (Step S261) The split drive determination unit 145 counts up the number of simultaneous energization points stored in the simultaneous energization point storage unit (not shown). The number of simultaneous energization points is a value indicating the number of points energized simultaneously within a predetermined range.

[0124] (Step S263) The split drive determination unit 145 determines whether the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points (step S263: Yes), the split drive determination unit 145 advances the process to step S271. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is not less than the predetermined maximum number of simultaneous energization points, that is, when the number of simultaneous energization points stored in the simultaneous energization point storage unit is greater than the predetermined maximum number of simultaneous energization points (step S263: No), the split drive determination unit 145 advances the process to step S265.

[0125] (Step S265) The split drive determination unit 145 determines the dot position as the split position. The split drive determination unit 145 stores the split position in a split position storage unit (not shown).

[0126] (Step S267 ) The split drive determination unit 145 resets the simultaneous energization point storage unit.

[0127] (Step S271) The energization pulse calculation unit 140A determines whether the analysis corresponding to one dotted line is completed. If the analysis corresponding to one dotted line is completed (step S271: Yes), the energization pulse calculation unit 140A ends the process. If the analysis corresponding to one dotted line is not completed (step S271: No), the energization pulse calculation unit 140A advances the process to step S273.

[0128] (Step S273) The energization pulse calculation unit 140A extracts data corresponding to the next point. For example, the energization pulse calculation unit 140A extracts data of an adjacent point.

[0129] Back to Fig.13 , the energizing pulse calculation unit 140A calculates the energizing time based on the calculated printing rate. Fig.13 The pulse output processing is explained.

[0130] (Step S211) The printing ratio calculation unit 143 extracts data within the division range. Specifically, the printing ratio calculation unit 143 specifies the division range based on the division position information stored in the division position storage unit, and extracts data of the division range included in one dotted line.

[0131] (Step S213) The energization pulse calculation unit 140A calculates a basic energization time. The basic energization time is a energization time that is not related to the printing rate.

[0132] (Step S215) The printing rate correction value calculation unit 141A performs printing rate correction calculation for each dot line. Specifically, the printing rate calculation range determination unit 142A uses the position information of the dots stored in the left end energized point storage unit 142L and the right end energized point storage unit 142R as the printing rate calculation range, and calculates the printing rate calculation range. The printing rate calculation unit 143 calculates the printing rate correction value based on the calculated printing rate calculation range. The printing rate calculation unit 143 uses the heating element 42 existing in the range of the print data divided into a plurality of parts as the heating element 42 to be controlled, and calculates the printing rate for each dot line.

[0133] (Step S217 ) The energization time calculation unit 144 calculates the energization time for each dot line based on the printing ratio correction calculation performed by the printing ratio correction value calculation unit 141 .

[0134] (Step S219 ) The energizing pulse output unit 150 outputs a energizing pulse corresponding to the energizing time calculated by the energizing time calculation unit 144 to the thermal head 41 .

[0135] (Step S221) If the pulse output of one dot line is completed (step S221: Yes), the energization pulse calculation unit 140A advances the process to step S225. If the pulse output of one dot line is not completed (step S221: No), the energization pulse calculation unit 140A advances the process to step S223.

[0136] (Step S223) The energization pulse calculation unit 140A extracts data of the next division range. After extracting data of the next division range, the energization pulse calculation unit 140A advances the process to step S213.

[0137] (Step S225) When the pulse output of all dot lines of the established print data is completed (Step S225: Yes), the energization pulse calculation unit 140A ends the process. When the pulse output of all dot lines of the established print data is not completed (Step S225: No), the energization pulse calculation unit 140A advances the process to Step S227.

[0138] (Step S227 ) The print data generating unit 130 extracts data corresponding to the next dotted line. The print data generating unit 130 supplies the extracted data corresponding to one dotted line to the energization pulse calculating unit 140A, and proceeds to step S200 .

[0139] According to the embodiment described above, the head control unit 514A further includes a split drive determination unit 145. The head control unit 514A includes a split drive determination unit 145, which causes split drive to be performed when the number of energized points of a dot line is greater than a predetermined maximum number of simultaneously energized points. Regarding the energized pulse calculation unit 140A, the printing rate calculation range determination unit 142A determines the printing rate calculation range for each split range, and the energized time calculation unit 144 calculates the energized time for each split range. Therefore, according to the present invention, the energized time suitable for the printing data of each split range can be calculated. In addition, according to the present embodiment, since the energized time suitable for the printing data can be calculated, the energy suitable for the printing data can be supplied to the heating element 42.

[0140] Moreover, according to the present invention, split driving is performed, so that the number of points energized at the same time can be limited. That is, since the number of points energized at the same time is limited, the maximum peak power can be suppressed. In addition, according to the present invention, since the maximum peak power can be suppressed, the fluctuation of the power supply voltage can be suppressed. In addition, when the thermal printer 1 is battery-driven, since the maximum peak power can be suppressed, a small-capacity battery can be used.

[0141] [Third Embodiment]

[0142] Edge Reference Figures 15 to 18 An example of a thermal printer 1B according to the third embodiment will be described. Fig.15 14B is a diagram showing an example of the functional configuration of the head control unit 514B according to the third embodiment. The head control unit 514B is different from the head control unit 514A in that it includes a energization pulse calculation unit 140B instead of the energization pulse calculation unit 140A. Fig. 9 The same components as those described in the above are marked with the same reference numerals and the description thereof is omitted. The energizing pulse calculating unit 140B includes a printing rate correction value calculating unit 141B and a energizing time calculating unit 144. The printing rate correction value calculating unit 141B is a modified example of the printing rate correction value calculating unit 141A. The printing rate correction value calculating unit 141B includes a split drive determining unit 145B, a printing rate calculation range determining unit 142B, and a printing rate calculating unit 143.

[0143] In the present embodiment, the power-on pulse calculation unit 140B calculates the aforementioned printing rate by performing different weightings when adjacent heating elements 42 are continuously power-on points and when adjacent heating elements 42 are continuously non-power-on points. Specifically, the split drive determination unit 145B includes a temporary storage unit 146 for printing rate calculation, which calculates the printing rate by weighting the pattern based on the printing data. For example, in the present embodiment, when the power-on points are continuous, the printing rate correction value calculation unit 141B counts the continuous power-on points as more than one dot (for example, two dots). The temporary storage unit 146 for printing rate calculation is a temporary storage unit for storing the number of simultaneously power-on points used when calculating the printing rate. Side reference Fig.16 The weighting method in this embodiment will be described below.

[0144] Fig.16 2 is a diagram for explaining a printing ratio calculation method according to the third embodiment. Fig.16 A and Fig.16 B side pair weighting method is described by an example. For example, when the thermal head 41 has 448 heating elements 42, one dot line has 448 points from point D1 to point D448. In this example, an example is described in which only points D3 to point D11, point D429, point D431, and points D433 to point D439 are energized points in the data corresponding to one dot line.

[0145] Fig.16A is a diagram showing an example in which no weighting is performed. In this diagram, data corresponding to one dotted line and weights corresponding to each data are shown. In the example shown in this diagram, since no weighting is performed, the weight of all energized points is 1. The printing ratio correction value calculation unit 141B calculates all energized points as one point in the case of no weighting.

[0146] Fig.16 B is a diagram showing an example of weighting. In this diagram, data corresponding to a dotted line and weights corresponding to each data are shown. In the example shown in this diagram, when the points at both ends are energized points, the weight is 2, and when any of the points at both ends is a non-energized point, the weight is 1.

[0147] For example, since point D2 is a non-energized point among point D2 and point D4, which are points at both ends of point D3, the weight of point D3 is 1. On the other hand, since point D3 and point D5, which are points at both ends of point D4, are energized points, the weight of point D4 is 2.

[0148] In the case where the energized points with a weight of 1 are counted as one point and the energized points with a weight of 2 are counted as two points, Fig.16 In one example of B, the number of energized points calculated by weighting is 30 points, compared with the case where the energized points are 18 points. In addition, in this example, the energized points weighted to 2 are calculated as two points, but this is not limited to this example. It is arbitrary to assign a certain degree of weight to the energized points weighted to 2. For example, it is also possible to calculate the energized points weighted to 2 as 1.2 points or 3 points.

[0149] Fig.17 FIG. 2 is a diagram for explaining a modified example of the printing ratio calculation method according to the third embodiment. Fig.17 A and Fig.17 B side pair Fig.16 A modified example of the weighting method described in is described below. Fig.16 Similarly to the case described in , an example will be described in which only points D3 to D11, point D429, point D431, and points D433 to D439 in the data corresponding to one dotted line are energized points.

[0150] Fig.17A is an example of weighting based on whether the two points at both ends are energized points. In this example, when all of the four points as the two points at both ends are energized points, the weighting is 3. Even if not all of the four points as the two points at both ends are energized points, when all the points at both ends are energized points, the weighting is 2. When any of the points at both ends is a non-energized point, the weighting is 1.

[0151] For example, point D2 of point D2 and point D4, which are both ends of point D3, is a non-energized point, so the weight of point D3 is 1. Point D3 and point D5, which are both ends of point D4, are both energized points, but point D2 of point D2, point D3, point D5, and point D6, which are two points at both ends of point D4, is a non-energized point, so the weight of point D4 is 2. Point D3, point D4, point D6, and point D7, which are two points at both ends of point D5, are all energized points, so the weight of point D5 is 3.

[0152] Fig.17 B is an example of a case where the weight is increased linearly according to the number of consecutive energized points, and in this example, weighting is performed only for the number of consecutive energized points in order from the left end. That is, in this example, the weighting is determined according to the number of consecutive energized points located to the left of the point. For example, point D2 located to the left of point D3 is a non-energized point, so the weighting is 1. Since there is a energized point of one point to the left of point D4, the weighting is 2. Since there are two energized points to the left of point D5, the weighting is 3. In the example shown in this figure, as described above, weighting is performed only for the number of consecutive energized points.

[0153] Fig.18 : is a diagram showing the flow of the segmentation position determination process and the printing ratio calculation range determination process involved in the third embodiment. In the third embodiment, Fig.13 The step S200 described in the second embodiment is different from that in the second embodiment. Fig.18 The flow of the division position determination process and the printing ratio calculation range determination process according to the third embodiment will be described as a process replacing step S200. Fig.18 The processing of the description is to refer to Fig.14 Modifications of the division position determination process and the printing ratio calculation range determination process in the second embodiment will be described below.

[0154] (Step S351) The printing ratio correction value calculation unit 141B extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141B extracts the dot at the left end.

[0155] (Step S353) The printing ratio correction value calculation unit 141B determines whether the point is an energized point. If the point is an energized point (step S353: Yes), the process proceeds to step S354. If the point is a non-energized point (step S353: No), the printing ratio correction value calculation unit 141B proceeds to step S371.

[0156] (Step S354) The split drive determination unit 145B determines whether the last point is a non-energized point. Specifically, the split drive determination unit 145B determines that the last point is an energized point when the value is stored in the printing rate calculation temporary storage unit 146, and determines that the last point is a non-energized point when the printing rate calculation temporary storage unit 146 is reset. When the last point is a non-energized point (step S354: Yes), the split drive determination unit 145B advances the processing to step S355. When the last point is an energized point (step S354: No), the split drive determination unit 145B advances the processing to step S356.

[0157] (Step S355 ) The divided drive determination section 145B counts up the value of the printing ratio calculation temporary storage section 146 .

[0158] (Step S356) The printing ratio correction value calculation unit 141B determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141B determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S356: Yes), the printing ratio correction value calculation unit 141B advances the processing to step S357. When the point is not the initial energization point (step S356: No), the printing ratio correction value calculation unit 141B advances the processing to step S359.

[0159] (Step S357) The printing ratio correction value calculation unit 141B stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0160] (Step S359) The printing ratio correction value calculation unit 141B stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141B updates the stored value.

[0161] (Step S360 ) The divided drive determination section 145B counts up the value of the printing ratio calculation temporary storage section 146 .

[0162] (Step S361) The split drive determination unit 145B counts up the simultaneous energization points stored in the simultaneous energization point storage unit (not shown). The simultaneous energization points are values ​​indicating the number of points energized simultaneously within a predetermined range.

[0163] (Step S363) The split drive determination unit 145B determines whether the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points (step S363: Yes), the split drive determination unit 145B advances the processing to step S371. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is not less than the predetermined maximum number of simultaneous energization points, that is, when the number of simultaneous energization points stored in the simultaneous energization point storage unit is greater than the predetermined maximum number of simultaneous energization points (step S363: No), the split drive determination unit 145B advances the processing to step S365.

[0164] (Step S365) The split drive determination unit 145B determines the dot position as the split position. The split drive determination unit 145B stores the split position in a split position storage unit (not shown).

[0165] (Step S367) The split drive determination unit 145B resets the simultaneous energization point storage unit.

[0166] (Step S368 ) The divided drive determination unit 145B resets the printing ratio calculation temporary storage unit 146 .

[0167] (Step S371) The energization pulse calculation unit 140B determines whether the analysis corresponding to one dotted line is completed. If the analysis corresponding to one dotted line is completed (step S371: Yes), the energization pulse calculation unit 140B ends the process. If the analysis corresponding to one dotted line is not completed (step S371: No), the energization pulse calculation unit 140B advances the process to step S373.

[0168] (Step S373) The energization pulse calculation unit 140B extracts data corresponding to the next point. For example, the energization pulse calculation unit 140B extracts data of an adjacent point. Thereafter, the process proceeds to step S353.

[0169] According to the above-described embodiment, the head control unit 514B is provided with a temporary storage unit 146 for calculating the printing rate, thereby accumulating and counting the number of consecutive dots to calculate the printing rate weighted for the consecutive dots. Therefore, according to this embodiment, it is possible to further calculate an appropriate power-on time. In addition, according to this embodiment, since the consecutive dots are weighted, the head control unit 514B can calculate the power-on time taking into account the influence of heat from the adjacent heating element 42.

[0170] [Fourth Embodiment]

[0171] Edge Reference Figures 19 to 21 An example of a thermal printer 1C according to the fourth embodiment will be described. Fig.19 14 is a diagram showing an example of the functional configuration of a head control unit 514C according to the fourth embodiment. The head control unit 514C is different from the head control unit 514B in that it includes a energization pulse calculation unit 140C instead of the energization pulse calculation unit 140B. Fig.15 The same components as those described in the above are marked with the same reference numerals and the description thereof is omitted. The energizing pulse calculation unit 140C includes a printing rate correction value calculation unit 141C and a energizing time calculation unit 144. The printing rate correction value calculation unit 141C is a modified example of the printing rate correction value calculation unit 141B. The printing rate correction value calculation unit 141C includes a split drive determination unit 145C, a printing rate calculation range determination unit 142C, and a printing rate calculation unit 143.

[0172] In the present embodiment, the split drive determination unit 145C includes a non-energized block counting unit 147, which counts the number of non-energized dots included in the printing data, and when there is a range of continuous non-energized dots exceeding a predetermined number, the range is excluded from the printing rate calculation range. The non-energized block counting unit 147 is a counter that counts the number of non-energized blocks. Specifically, the split drive determination unit 145C stores the number of non-energized dots counted as non-energized blocks (for example, 8 dots) in a storage unit not shown, and stores the number of non-energized blocks included in the pattern of the printing data in the non-energized block counting unit 147. The printing rate calculation range determination unit 142C determines the printing rate calculation range by subtracting the number of dots corresponding to the number of non-energized blocks from the printing rate calculation range. Side reference Fig. 20 A method for determining the printing ratio calculation range in this embodiment will be described.

[0173] Fig. 20 4 is a diagram for explaining a printing ratio calculation method according to the fourth embodiment. Fig. 20 A and Fig. 20 B side describes an example of a method of eliminating non-power-carrying blocks. For example, when the thermal head 41 has 448 heating elements 42, one dot line has 448 points from point D1 to point D448. In this example, an example is described in which only points D3 to point D11, point D429, point D431, and points D433 to point D439 are power-carrying points in the data corresponding to one dot line.

[0174] Fig. 20A is a diagram showing an example in which the non-power-carrying block is not excluded. In the diagram, data corresponding to a dotted line is shown. In the example shown in the diagram, the range from point D3 as the left end power-carrying point to point D439 as the right end power-carrying point is the printing rate calculation range. In the case of not excluding the non-power-carrying block, the printing rate calculation range determination unit 142C determines the range from point D3 to point D439 as the printing rate calculation range.

[0175] Fig. 20 B is a diagram showing an example of a case where a non-powered block is excluded. In the diagram, data corresponding to a dotted line is shown. In an example shown in the diagram, points D12 to D428 are non-powered points. When non-powered blocks are excluded, the printing rate calculation range determination unit 142C determines the range from point D3 to point D439 excluding the range from point D12 to point D428 as the printing rate calculation range. That is, with respect to the printing rate calculation range determination unit 142C, in the case where there is a continuous range of non-powered points exceeding a predetermined number, the range is not included in the printing rate calculation range.

[0176] Fig.21 : is a diagram showing the flow of the segmentation position determination process and the printing ratio calculation range determination process involved in the fourth embodiment. In the fourth embodiment, Fig.13 The step S200 described in the second embodiment is different from that in the second embodiment. Fig.21 The flow of the division position determination process and the printing ratio calculation range determination process according to the fourth embodiment will be described as a process replacing step S200. Fig.21 The processing of the description is to refer to Fig.14 Modifications of the division position determination process and the printing ratio calculation range determination process in the second embodiment will be described below.

[0177] (Step S451) The printing ratio correction value calculation unit 141C extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141C extracts the dot at the left end.

[0178] (Step S453) The printing ratio correction value calculation unit 141C determines whether the point is an energized point. If the point is an energized point (step S453: Yes), the process proceeds to step S454. If the point is a non-energized point (step S453: No), the printing ratio correction value calculation unit 141C proceeds to step S4531.

[0179] (Step S454 ) The split drive determination unit 145C resets a non-energized point counter (not shown).

[0180] (Step S4531) The split drive determination unit 145C counts up the non-energized point counter.

[0181] (Step S4533) The split drive determination unit 145C determines whether the value stored in the non-energized point counter reaches the number of non-energized points counted as a non-energized block. For example, when the non-energized block is 8 points, the split drive determination unit 145C determines whether the value stored in the non-energized point counter reaches 8. When the value stored in the non-energized point counter is smaller than 8 (step S4533: No), the split drive determination unit 145C advances the process to step S471. When the value stored in the non-energized point counter is 8 (step S4533: Yes), the split drive determination unit 145C advances the process to step S4535.

[0182] (Step S4535) The split drive determination unit 145C resets the non-energized point counter.

[0183] (Step S4537 ) The divided drive determination unit 145C counts up the non-energized block counting unit 147 , and advances the process to step S471 .

[0184] (Step S456) The printing ratio correction value calculation unit 141C determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141C determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S456: Yes), the printing ratio correction value calculation unit 141C advances the processing to step S457. When the point is not the initial energization point (step S456: No), the printing ratio correction value calculation unit 141C advances the processing to step S459.

[0185] (Step S457 ) The printing ratio correction value calculation unit 141C stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0186] (Step S459) The printing ratio correction value calculation unit 141C stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141C updates the stored value.

[0187] (Step S461) The split drive determination unit 145C counts up the simultaneous energization points stored in the simultaneous energization point storage unit (not shown). The simultaneous energization points are values ​​indicating the number of points energized simultaneously within a predetermined range.

[0188] (Step S463) The split drive determination unit 145C determines whether the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is less than the predetermined maximum number of simultaneous energization points (step S463: Yes), the split drive determination unit 145C advances the process to step S471. When the number of simultaneous energization points stored in the simultaneous energization point storage unit is not less than the predetermined maximum number of simultaneous energization points, that is, when the number of simultaneous energization points stored in the simultaneous energization point storage unit is greater than the predetermined maximum number of simultaneous energization points (step S463: No), the split drive determination unit 145C advances the process to step S465.

[0189] (Step S465) The split drive determination unit 145C determines the dot position as the split position. The split drive determination unit 145C stores the split position in a split position storage unit (not shown).

[0190] (Step S467) The split drive determination unit 145C resets the simultaneous energization point storage unit.

[0191] (Step S471) The energization pulse calculation unit 140C determines whether the analysis corresponding to the one dotted line is completed. If the analysis corresponding to the one dotted line is completed (step S471: Yes), the energization pulse calculation unit 140C ends the process. If the analysis corresponding to the one dotted line is not completed (step S471: No), the energization pulse calculation unit 140C advances the process to step S473.

[0192] (Step S473) The energization pulse calculation unit 140C extracts data corresponding to the next point. For example, the energization pulse calculation unit 140C extracts data of an adjacent point. The energization pulse calculation unit 140C advances the process to step S453.

[0193] According to the above-described embodiment, the head control unit 514C includes a non-powered block counting unit 147, which counts the number of non-powered points. When there is a range of non-powered points that are continuous and have a predetermined number or more, the head control unit 514C excludes the range from the printing rate calculation range and calculates the printing rate. Therefore, according to this embodiment, it is possible to calculate the printing rate by extracting only the printed range. Therefore, according to this embodiment, it is possible to calculate a more appropriate power-on time.

[0194] [Fifth Embodiment]

[0195] Edge Reference Fig. 22 and Fig.23An example of a thermal printer 1D according to the fifth embodiment is described. In the fifth embodiment, the weighted control described in the third embodiment is applied to the configuration described in the first embodiment. That is, in the third embodiment, the weighted control is performed on the basis of the split drive, but in the fifth embodiment, the weighted control is applied without the split drive.

[0196] Fig. 22 14 is a diagram showing an example of the functional configuration of a head control unit 514D according to the fifth embodiment. The head control unit 514D is different from the head control unit 514A in that it includes a energization pulse calculation unit 140D instead of the energization pulse calculation unit 140A. Figure 4 The same components as those described in the above are marked with the same reference numerals and the description thereof is omitted. The energizing pulse calculating unit 140D includes a printing rate correction value calculating unit 141D and a energizing time calculating unit 144. The printing rate correction value calculating unit 141D is a modified example of the printing rate correction value calculating unit 141A. The printing rate correction value calculating unit 141D includes a printing rate calculation range determining unit 142D and a printing rate calculating unit 143.

[0197] In this embodiment, the printing ratio calculation range determination unit 142D includes a printing ratio calculation temporary storage unit 146D, which calculates the printing ratio by weighting based on the pattern of the print data. Fig.16 and Fig.17 As explained in the control of weighted edges.

[0198] Fig.23 1 is a diagram showing a flow of a printing ratio correction calculation process according to the fifth embodiment. The flow of the printing ratio correction calculation process according to the fifth embodiment will be described with reference to this diagram.

[0199] (Step S551) The printing ratio correction value calculation unit 141D extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141D extracts the dot at the left end.

[0200] (Step S553) The printing ratio correction value calculation unit 141D determines whether the point is an energized point. If the point is an energized point (step S553: ​​Yes), the process proceeds to step S5541. If the point is a non-energized point (step S553: ​​No), the printing ratio correction value calculation unit 141D proceeds to step S560.

[0201] (Step S5541) The printing rate calculation range determination unit 142D determines whether the last point is a non-energized point. Specifically, the printing rate calculation range determination unit 142D determines that the last point is an energized point when the value is stored in the printing rate calculation temporary storage unit 146D, and determines that the last point is a non-energized point when the printing rate calculation temporary storage unit 146D is reset. When the last point is a non-energized point (step S5541: Yes), the printing rate calculation range determination unit 142D advances the processing to step S5542. When the last point is an energized point (step S5541: No), the printing rate calculation range determination unit 142D advances the processing to step S555.

[0202] (Step S5542) The printing ratio calculation range determination unit 142D counts up the value of the printing ratio calculation temporary storage unit 146D.

[0203] (Step S555) The printing ratio correction value calculation unit 141D determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141D determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S555: Yes), the printing ratio correction value calculation unit 141D advances the processing to step S557. When the point is not the initial energization point (step S555: No), the printing ratio correction value calculation unit 141D advances the processing to step S559.

[0204] (Step S557) The printing ratio correction value calculation unit 141D stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0205] (Step S559) The printing ratio correction value calculation unit 141D stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141D updates the stored value.

[0206] (Step S560 ) The printing ratio calculation range determination unit 142D accumulates and counts the value of the printing ratio calculation temporary storage unit 146D.

[0207] (Step S561) The energization pulse calculation unit 140D determines whether the analysis corresponding to the one dotted line is completed. If the analysis corresponding to the one dotted line is completed (step S561: Yes), the energization pulse calculation unit 140D advances the process to step S565. If the analysis corresponding to the one dotted line is not completed (step S561: No), the energization pulse calculation unit 140D advances the process to step S563.

[0208] (Step S563) The energization pulse calculation unit 140D extracts data corresponding to the next point. For example, the energization pulse calculation unit 140D extracts data of an adjacent point. The energization pulse calculation unit 140D advances the process to step S553.

[0209] (Step S565) The printing ratio calculation range determination unit 142D calculates the printing ratio calculation range using the position information of the dots stored in the left end energization dot storage unit 142L and the right end energization dot storage unit 142R as the printing ratio calculation range.

[0210] (Step S567 ) The printing ratio calculation range determination unit 142D calculates the printing ratio correction value based on the calculated printing ratio calculation range.

[0211] According to the above-described embodiment, the head control unit 514D performs weighted control even when the split drive is not performed. The head control unit 514D includes a temporary storage unit 146D for calculating the printing rate, which accumulates and counts the number of continuous dots and calculates the weighted printing rate of the continuous dots. Therefore, according to this embodiment, even when the split drive is not performed, the appropriate power-on time can be calculated.

[0212] [Sixth Embodiment]

[0213] Edge Reference Fig.24 and Fig.25 An example of a thermal printer 1E involved in the sixth embodiment is described. In the sixth embodiment, the control of the non-power-carrying block counting unit described in the fourth embodiment is applied to the configuration described in the first embodiment. That is, in the fourth embodiment, the control of the non-power-carrying block counting unit is performed on the basis of the split drive, but in the sixth embodiment, the control of the non-power-carrying block counting unit is applied without the split drive.

[0214] Fig.24 14 is a diagram showing an example of the functional configuration of the head control unit 514E according to the sixth embodiment. The head control unit 514E is different from the head control unit 514A in that it includes a energization pulse calculation unit 140E instead of the energization pulse calculation unit 140A. Figure 4 The same components as those described in the above are marked with the same reference numerals and the description thereof is omitted. The energizing pulse calculating unit 140E includes a printing rate correction value calculating unit 141E and a energizing time calculating unit 144. The printing rate correction value calculating unit 141E is a modified example of the printing rate correction value calculating unit 141A. The printing rate correction value calculating unit 141E includes a printing rate calculation range determining unit 142E and a printing rate calculating unit 143.

[0215] In this embodiment, the printing rate calculation range determination unit 142E includes a non-energized block counting unit 147E, which counts the number of non-energized dots included in the print data, and excludes the range from the printing rate calculation range when there is a range with a predetermined number of non-energized dots or more. Fig. 20 The method of calculating the printing ratio by excluding the non-conducting points from the printing ratio calculation range is described below.

[0216] Fig.25 1 is a diagram showing a flow of a printing ratio correction calculation process according to the sixth embodiment. The flow of the printing ratio correction calculation process according to the sixth embodiment will be described with reference to this diagram.

[0217] (Step S651) The printing ratio correction value calculation unit 141E extracts data corresponding to one dot from data corresponding to one dot line. For example, the printing ratio correction value calculation unit 141E extracts the dot at the left end.

[0218] (Step S653) The printing ratio correction value calculation unit 141E determines whether the point is an energized point. If the point is an energized point (step S653: Yes), the process proceeds to step S654. If the point is a non-energized point (step S653: No), the printing ratio correction value calculation unit 141E proceeds to step S6531.

[0219] (Step S654 ) The split drive determination unit 145E resets a non-energized point counter (not shown).

[0220] (Step S6531) The split drive determination unit 145E counts up the non-energized point counter.

[0221] (Step S6533) The split drive determination unit 145E determines whether the value stored in the non-energized point counter reaches the number of non-energized points counted as a non-energized block. For example, when the non-energized block is 8 points, the split drive determination unit 145E determines whether the value stored in the non-energized point counter reaches 8. When the value stored in the non-energized point counter is less than 8 (step S6533: No), the split drive determination unit 145E advances the process to step S661. When the value stored in the non-energized point counter is 8 (step S6533: Yes), the split drive determination unit 145E advances the process to step S6535.

[0222] (Step S6535) The split drive determination unit 145E resets the non-energized point counter.

[0223] (Step S6537) The divided drive determination unit 145E counts up the non-energized block counting unit 147E, and advances the process to step S661.

[0224] (Step S655) The printing ratio correction value calculation unit 141E determines whether the point as the energization point is the initial energization point. For example, when the value stored in the left end energization point storage unit 142L is reset, the printing ratio correction value calculation unit 141E determines that the point as the energization point is the initial energization point. When the point is the initial energization point (step S655: Yes), the printing ratio correction value calculation unit 141E advances the processing to step S657. When the point is not the initial energization point (step S655: No), the printing ratio correction value calculation unit 141E advances the processing to step S659.

[0225] (Step S657) The printing ratio correction value calculation unit 141E stores the position of the point as the energization point in the left end energization point storage unit 142L.

[0226] (Step S659) The printing ratio correction value calculation unit 141E stores the position of the point as the energization point in the right end energization point storage unit 142R. If the value is already stored in the right end energization point storage unit 142R, the printing ratio correction value calculation unit 141E updates the stored value.

[0227] (Step S661) The energization pulse calculation unit 140E determines whether the analysis corresponding to the one dotted line is completed. If the analysis corresponding to the one dotted line is completed (step S661: Yes), the energization pulse calculation unit 140E advances the process to step S665. If the analysis corresponding to the one dotted line is not completed (step S661: No), the energization pulse calculation unit 140E advances the process to step S663.

[0228] (Step S663) The energization pulse calculation unit 140E extracts data corresponding to the next point. For example, the energization pulse calculation unit 140E extracts data of an adjacent point. The energization pulse calculation unit 140E advances the process to step S653.

[0229] (Step S665) The printing ratio calculation range determination unit 142E calculates the printing ratio calculation range using the position information of the dots stored in the left end energization dot storage unit 142L and the right end energization dot storage unit 142R as the printing ratio calculation range.

[0230] (Step S667 ) The printing ratio calculation range determination unit 142E calculates the printing ratio correction value based on the calculated printing ratio calculation range.

[0231] According to the embodiment described above, the head control unit 514E controls the non-powered block counting unit even when split driving is not performed. The head control unit 514E includes a non-powered block counting unit 147E, which counts the number of non-powered points. In the case where there is a continuous range of non-powered points exceeding a predetermined number, the head control unit 514E excludes the range from the printing rate calculation range and calculates the printing rate. Therefore, according to the present embodiment, it is possible to calculate the printing rate by extracting only the printed range. Therefore, according to the present embodiment, it is possible to calculate the appropriate power-on time even when split driving is not performed.

[0232] In addition, all or part of the functions of the thermal printer 1 described above are recorded as a program in a computer-readable recording medium, and the program can also be executed by a computer system. The computer system is an object including hardware such as an OS and peripheral devices. In addition, the computer-readable recording medium is, for example, a portable medium such as a floppy disk, a magneto-optical disk, a ROM (Read Only Memory), a CD-ROM, a storage device such as a hard disk built into the computer system, and a volatile memory (Random Access Memory: RAM) possessed by a server on a network such as the Internet. In addition, a volatile memory is an example of a recording medium that stores a program for a certain period of time.

[0233] In addition, the above-mentioned program can also be transmitted to other computer systems via a transmission medium (for example, a network such as the Internet, a communication line such as a telephone line, etc.).

[0234] In addition, the above program may be a program that realizes all or part of the above functions. In addition, the program that realizes part of the above functions may be a program that can realize the above functions in combination with a program pre-recorded in the computer system (so-called differential program).

[0235] As mentioned above, although the embodiment of the present invention is described with reference to the drawings, the specific configuration is not limited to the above-mentioned embodiment, and design changes and the like are included within the scope not departing from the gist of the present invention.

Claims

1. A thermal head control device, comprising: a printing rate calculation range determination unit for determining, for printing data corresponding to a heating element to be controlled among a plurality of heating elements provided in the thermal head, a range from a left end energization point to a right end energization point among energization points existing in the printing data as a printing rate calculation range; a printing ratio calculation unit that calculates the printing ratio of the printing ratio calculation range determined by the printing ratio calculation range determination unit; a conduction time calculation unit that calculates a conduction time of the current flowing through the heating element based on the printing rate calculated by the printing rate calculation unit; and An output unit outputs a control signal for driving the heating element of the control target of the thermal head based on the calculated energization time.

2. The thermal head control device according to claim 1, characterized in that: The energization time is shorter when the printing ratio calculated by the printing ratio calculation unit is high than when the printing ratio calculated by the printing ratio calculation unit is low.

3. The thermal head control device according to claim 1, characterized in that: The printing ratio calculation range determination unit determines the printing ratio calculation range by using the heating elements corresponding to one row of the thermal head as the heating elements to be controlled.

4. The thermal head control device according to claim 1, characterized in that: The invention further comprises a split drive determination unit for determining whether to perform split drive for dividing the print data into a plurality of points and causing energization when a predetermined number or more of energized points exist in the print data. When the split drive determination unit determines that the split drive is being performed, the printing ratio calculation unit calculates the printing ratio by using the heating elements existing within the range of the print data divided into a plurality of pieces as the heating elements to be controlled.

5. The thermal head control device according to claim 1, characterized in that: The printing rate calculation unit calculates the printing rate by weighting differently a case where the adjacent heating elements are continuously energized points and a case where the adjacent heating elements are continuously not energized points.

6. The thermal head control device according to claim 1, characterized in that: The printing ratio calculation range determination unit excludes a range from the printing ratio calculation range when there is a range in which a predetermined number or more of non-energized points are continuous.

7. A thermal printer comprising: A conveying mechanism for conveying the printing medium; a thermal head for printing on the printing medium; and The thermal head control device according to claim 1, which controls the thermal head.

8. A thermal head control method, comprising: a printing rate calculation step of calculating a printing rate within a predetermined printing rate calculation range in print data sent to a thermal head having a plurality of heating elements disposed adjacent to each other; a printing rate calculation range determination step of determining a range from a left end energization point to a right end energization point among energization points existing in the printing data as the printing rate calculation range; a conduction time calculation step of calculating a conduction time of the current flowing through the heating element based on the printing rate calculated by the printing rate calculation step; and an outputting step of outputting a control signal for driving the thermal head based on the calculated energization time.

Citation Information

Patent Citations

  • Printing apparatus

    CN101602292A

  • Printing Device, Control Method of a Printing Device, and a Storage Medium

    CN105291600A

  • A printer and a computer readable storage medium

    CN107264062A

  • Printer, control method thereof and terminal equipment

    CN109278429A

  • Thermal printer

    JP1993050638A