Printers and storage media
By measuring and comparing the resistance value of the thermal print head in the printer, the replacement situation is automatically judged and the usage information is updated. This solves the labor-intensive and omitted manual initialization problems in the existing technology when replacing the thermal print head, achieving a faster and more efficient process. Easy operation.
Patent Information
- Application Number
- CN202210536027.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-07-16
- Filing Date
- 2022-05-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-05-17
AI Technical Summary
When replacing the thermal print head, existing printers need to manually initialize the usage information, which is labor-intensive and easy to miss the travel distance initialization, resulting in long and complicated operation.
Design a printer that automatically determines whether the thermal print head should be replaced by measuring the resistance value of the heater, uses a non-volatile storage medium to register the reference resistance value and change tendency, updates the use information, and simplifies the replacement operation.
It realizes the automatic determination of thermal print head replacement, shortens the operation time, avoids erroneous application information updates, and improves the simplicity of the replacement operation.
Smart Images

Figure CN115610114B_ABST
Abstract
Description
[0001] This application claims priority to Japanese patent application No. JP2021-117800, filed on Jul. 16, 2021, and citing the contents of the above application, the disclosure of which is hereby incorporated by reference in its entirety. Technical Field
[0002] Embodiments of the present invention relate to a printer and a storage medium. Background Art
[0003] Currently, printers are known that use a line thermal print head including a plurality of heating elements in a line intersecting the paper conveying direction to print text etc. on thermal paper. The printer heats the thermal paper with the heating elements, thereby coloring the thermal layer of the thermal paper and performing printing.
[0004] In the above printer, when the thermal print head is replaced, information on the operation of the thermal print head (hereinafter referred to as operation information), for example, the length of paper printed using the thermal print head (hereinafter also referred to as travel distance), etc. is initialized. Currently, there is a proposal for a technology that stores the parts replacement history stored inside the printer when the thermal print head is replaced, thereby initializing the operation information based on the stored replacement history. Summary of the invention
[0005] However, in the above-mentioned technique of initializing the operation information, it is necessary to store the replacement history in order to initialize the operation information, which is labor-intensive. In addition, there is a problem that the travel distance is not initialized when, for example, the replacement record is omitted.
[0006] In view of the above problems, the technical problem to be solved by the present invention is to provide a printer and a storage medium, which can shorten the operation time and simplify the replacement operation by automatically determining the replacement of the thermal print head.
[0007] To solve the above-mentioned problem, one embodiment of the present invention provides a printer, comprising a thermal print head having a plurality of heaters arranged in a row, the printer comprising: a measuring unit, measuring the resistance value of each of the heaters; a storage unit, storing operation information indicating the operation status of the thermal print head; a judgment unit, judging whether the thermal print head has been replaced based on a reference resistance value used as a reference and a change trend of the resistance value of each of the heaters measured by the measuring unit in the past; and an updating unit, updating the operation information when the judgment unit judges that the thermal print head has been replaced.
[0008] According to the above printer, a printer is provided which can shorten the operation time and simplify the replacement operation by automatically determining the replacement of the thermal print head.
[0009] In the above printer, the measuring unit measures the resistance value when the printer is activated.
[0010] According to the above-mentioned printer, it is possible to automatically determine whether to replace the thermal print head when the printer is started.
[0011] The above printer further includes: a registration unit that registers the reference resistance value in a non-volatile storage medium, and the registration unit registers the resistance value measured by the measurement unit as the reference resistance value in the storage medium when the thermal print head is replaced.
[0012] According to the above-described printer, the reference resistance value can be registered when the thermal print head is replaced.
[0013] The above-mentioned printer also includes: a calculation unit, which calculates the distribution tendency of the resistance values of each heater of the heater based on the resistance value measured by the measuring unit, and the judgment unit judges whether the thermal print head has been replaced based on the distribution tendency of the reference resistance value calculated by the calculation unit and the distribution tendency of the resistance value measured by the measuring unit.
[0014] According to the above-described printer, the distribution tendency of the reference resistance value can be calculated and the replacement of the thermal print head can be determined.
[0015] The above-mentioned printer further includes a notification unit configured to notify that the thermal print head has been replaced when the determination unit determines that the thermal print head has been replaced.
[0016] According to the above-described printer, the user can recognize that the thermal print head has been replaced.
[0017] In the above printer, the judgment unit further judges whether the print head is defective based on the resistance value of each of the heaters, and when the update unit judges that the print head is defective, regardless of whether the thermal print head is replaced, the operation information is not updated.
[0018] According to the above printer, it is possible to prevent the operation information from being erroneously updated when the print head is defective.
[0019] In the above printer, the determination unit determines whether the thermal print head has been replaced based on a change trend of heaters other than the heater that is the target of print head defect after determining that the print head is defective.
[0020] According to the above printer, when the print head is defective, it is possible to determine whether the thermal print head has been replaced using a normal heater.
[0021] The above-mentioned printer also includes: a registration unit, which registers the reference resistance value in a non-volatile storage medium. The registration unit registers the resistance value measured by the measuring unit when the thermal print head is replaced as the reference resistance value in the storage medium. At the same time, when the judgment unit judges that there is a print head defect, the resistance value measured by the measuring unit is registered as the reference resistance value in the storage medium.
[0022] According to the above printer, when the print head is defective, the reference resistance value can be registered, thereby preventing erroneous judgment that the thermal print head has been replaced.
[0023] A storage medium according to another aspect of the present invention stores a program for causing a computer of a printer including a thermal print head having a plurality of heaters arranged in a row to execute the following steps: a measuring step for measuring the resistance value of each of the heaters; a storing step for storing operating information indicating the operating status of the thermal print head; a judging step for judging whether the thermal print head has been replaced based on a reference resistance value used as a reference and a trend of changes in the resistance values of each of the heaters measured in the measuring step; and an updating step for updating the operating information when the judging step determines that the thermal print head has been replaced.
[0024] According to the above-mentioned storage medium, it is possible to provide a computer with a function that can shorten the operation time and simplify the replacement operation by automatically determining the replacement of the thermal print head. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a perspective view showing an example of the appearance of a thermal printer involved in the first embodiment;
[0026] Figure 2 is a schematic diagram showing an example of the internal structure of the thermal printer involved in the first embodiment;
[0027] Figure 3 is a block diagram showing an example of the hardware configuration of the thermal printer involved in the first embodiment;
[0028] Figure 4 is a block diagram showing an example of the functional configuration of a thermal printer according to the first embodiment;
[0029] Figure 5 is a table showing an example of the results of the resistance values measured by the thermal printer of the first embodiment;
[0030] Figure 6 is a flowchart showing an example of processing performed by the thermal printer of the first embodiment;
[0031] Figure 7 is a block diagram showing an example of the functional configuration of a thermal printer according to the second embodiment;
[0032] Figure 8 is a graph showing an example of a distribution tendency of reference resistance values of the thermal printer of the second embodiment; and
[0033] Fig. 9 This is a graph showing an example of the distribution tendency of the resistance values measured by the thermal printer of the second embodiment.
[0034] Description of Reference Numerals
[0035] 1 Printer 2 Upper housing 3 Lower housing
[0036] 4 One end 5 Operation part 6 Operation button
[0037] 7 Issuing port 8 Ticket 11 Support part
[0038] 12 Guide roller 13 Platen roller 14 Thermal print head
[0039] 15 Cutter 16 Thermal Paper 18 Conveyor
[0040] 31 CPU 32 ROM 33 RAM
[0041] 34 I / F 35 Auxiliary storage device 41 Measurement unit
[0042] 42 Registration unit 43 Judgment unit 44 Update unit
[0043] 45 Notification Department 46 Calculation Department DETAILED DESCRIPTION
[0044] (First embodiment)
[0045] Hereinafter, a thermal printer 1 according to an embodiment will be described with reference to the drawings. Figure 1 This is a perspective view showing an example of the appearance of a thermal printer (hereinafter, also referred to as a printer) 1. The thermal printer 1 is connected to a host device (a POS (Point Of Sales) terminal in this embodiment) not shown in the figure, receives transaction information and the like as print data from the POS terminal, and functions as a receipt printer for printing receipts. In addition, this is an example of a method of using the thermal printer 1, and it may also be a method used in other fields. In addition, the method of obtaining print data by the thermal printer 1 is not limited to receiving from the host device, and other methods may also be used.
[0046] The thermal printer 1 includes an upper housing 2 and a lower housing 3. The upper housing 2 is rotatably arranged on the lower housing 3 with one end side 4 as an axis. Figure 1 In the state shown, when the upper housing 2 is rotated, the interior of the thermal printer 1 is opened. An operation unit 5 is provided on the upper surface of the upper housing 2.
[0047] The operation unit 5 includes a plurality of operation buttons 6. The operation unit 5 inputs various instructions to the thermal printer 1, including turning the power on and off. A portion of the operation buttons 6 includes a light emitting unit. The light emitting unit is composed of, for example, an LED (Light Emitting Diode). In addition, the thermal printer 1 has a dispensing port 7. The dispensing port 7 discharges the printed receipt 8 from the thermal printer 1 to the outside.
[0048] Figure 2 1 is a schematic diagram showing an example of the internal structure of the thermal printer 1. Figure 2 As shown, the thermal printer 1 internally includes a support portion 11, a plurality of guide rollers 12, a platen roller 13, a thermal print head 14, and a cutter 15 composed of a pair of blades.
[0049] The support portion 11 rotatably supports the thermal paper 16 wound in a roll shape. The guide rollers 12 guide the thermal paper 16 wound from the support portion 11 to between the platen roller 13 and the thermal print head 14. Two pairs of these guide rollers 12 are provided on the conveying path from the support portion 11 to the platen roller 13 and the thermal print head 14.
[0050] The platen roller 13 is rotated by using a conveying motor as a driving source while sandwiching the thermal paper 16 together with the thermal print head 14, thereby conveying the thermal paper 16. The conveying motor is composed of, for example, a stepping motor. The platen roller 13 and the conveying motor constitute a conveying unit 18 for conveying the thermal paper 16.
[0051] The thermal print head 14 is arranged in a direction ( Figure 2 A line thermal printer is a printer in which a plurality of heating elements (hereinafter also referred to as heaters) are arranged in a row (in a direction perpendicular to the paper surface). In addition, a thermal print head 14 faces a platen roller 13 and is applied with a predetermined pressure. The thermal print head 14 heats the heating elements and applies heat energy to the thermal paper 16, thereby printing on the thermal paper 16 conveyed by the conveying unit 18.
[0052] The cutter 15 is formed by combining a fixed knife and a movable knife of the same flat plate shape. The thermal paper 16 conveyed by the conveying unit 18 can be cut at any position by sliding the movable knife relative to the fixed knife. Figure 2In the figure, the fixed knife is arranged at the upper part and the movable knife is arranged at the lower part.
[0053] The movable knife is driven by the cutter motor and can Figure 2 The movable knife is usually located at the bottom and passes the thermal paper 16 between the fixed knife and moves upward when cutting the thermal paper 16. The thermal paper 16 cut by the cutter 15 is issued from the issuing port 7 as a ticket 8.
[0054] Figure 3 FIG. 1 is a diagram showing an example of the hardware configuration of the printer 1 according to the present embodiment. Figure 3 As shown, the printer 1 is connected to a CPU (Central Processing Unit) 31 , a ROM (Read Only Memory) 32 , a RAM (Random Access Memory) 33 , an I / F (Interface) 34 , and an auxiliary storage device 35 through a bus 36 .
[0055] The CPU 31 is a computing device that controls the overall operation of the printer 1. The CPU 31 is an example of a processor of the printer 1 of this embodiment, and other processors or processing circuits may be provided instead of the CPU 31. The ROM 32 stores programs that implement various processes performed by the CPU 31. The RAM 33 is, for example, a main storage device of the printer 1, and stores data required for various processes performed by the CPU 31.
[0056] I / F34 is an interface for receiving and sending data. In addition, I / F34 is an interface for communicating with a POS terminal as a host device. The auxiliary storage device 35 stores various data such as programs executed by the CPU 31. In addition, the auxiliary storage device 35 stores operation information. The auxiliary storage device 35 is composed of a rewritable non-volatile storage medium such as an EEPROM (Electrically Erasable Programmable Read-Only Memory). In addition, the auxiliary storage device 35 can also be in the form of using a part of the area in the ROM 32.
[0057] Here, the operation information is described. The operation information indicates the operation status of the thermal print head 14, for example, the travel distance of the thermal print head 14. The travel distance of the thermal print head 14 is, for example, a numerical value that records the number of steps of the conveying motor that rotates and drives the platen roller 13 when printing based on the thermal print head 14, the number of revolutions of the platen roller 13, etc. In addition, the replacement history (replacement date and time) of the thermal print head 14 may also be included in the operation information. In addition, the recording of the operation information is performed by the CPU 31 or a functional unit implemented by the CPU 31.
[0058] Next, the functional configuration of the printer 1 will be described. Figure 4 This is a block diagram showing an example of the functional configuration of the printer 1. The printer 1 is implemented as a measuring unit 41, a registering unit 42, a determining unit 43, an updating unit 44, and a notifying unit 45 by the CPU 31 operating according to a program stored in the ROM 32. Each of these functions may be implemented by hardware.
[0059] The measuring unit 41 measures the resistance value of each of the plurality of heaters arranged in a row in the thermal print head 14. Specifically, the measuring unit 41 measures the resistance value of the heater when the printer 1 is activated. Here, the method of measuring the resistance value of the heater is not particularly limited, and various methods can be used.
[0060] For example, the measuring unit 41 measures the resistance value of each heater by applying a predetermined voltage (and current) for measurement to each heater individually when the printer 1 is started. Specifically, the measuring unit 41 reads the resistance value of each heater to which the voltage (and current) is applied through an A / D (Analog-To-Digital) converter, and obtains the read resistance value as the measurement result.
[0061] The registering unit 42 stores the resistance value of each heater measured by the measuring unit 41 in the RAM 33 or the like. In addition, the registering unit 42 stores (hereinafter also referred to as registering) the resistance value of each heater measured under predetermined conditions as a reference resistance value in a nonvolatile storage medium such as the auxiliary storage device 35 or the like.
[0062] Specifically, the registration unit 42 registers the measured value of the heater measured when the printer 1 is first started up as the reference resistance value in the auxiliary storage device 35. Here, the first start-up time refers to the time when the printer 1 is first started up after being manufactured.
[0063] In addition, when the determination unit 43 determines that the thermal print head has been replaced, the determination unit 43 registers the resistance value measured by the measurement unit 41 as the reference resistance value. Thus, in this embodiment, by registering the reference resistance value through the registration unit 42, the change in the resistance value of the heater when the thermal print head 14 has been replaced can be grasped.
[0064] The determination unit 43 determines whether the thermal print head has been replaced based on the reference resistance value registered by the registration unit 42 and the change tendency of the resistance value of each heater measured by the measurement unit 41 .
[0065] Generally, in a thermal print head, the characteristics of each heater constituting the thermal print head, that is, the tendency of the resistance value of each heater, are different for each thermal print head. Therefore, by measuring the resistance value of the heater of the thermal print head and comparing the tendency, it is possible to grasp whether the thermal print head is the same or different. That is, when the tendency of the resistance value of the heater changes, it can be determined that the thermal print head has been replaced.
[0066] When the thermal print head 14 is replaced, the printer 1 of this embodiment stores the resistance values of the plurality of heaters as reference resistance values in the auxiliary storage device 35. The determination unit 43 compares the tendency of the stored reference resistance value with the tendency of the resistance value of each of the heaters measured by the measurement unit 41, and determines whether the thermal print head has been replaced based on the tendency of the change of the two resistance values.
[0067] Here, use Figure 5 , the content of the processing performed by the judgment unit 43 is explained. Figure 5 The measurement results of the resistance values of the heaters measured by the measuring unit 41 when the printer 1 is started are shown. Figure 5 In the example, for convenience of explanation, the measurement results of multiple times measured by the measuring unit 41 are shown as examples, but in the present embodiment, the resistance value measured most recently by the measuring unit 41 may be stored in the RAM 33 or the like. Figure 5 In the example, the resistance value with the measurement number 1 means the reference resistance value. Figure 5 In FIG. 1 , the heater numbers correspond to the positions of the heaters arranged in the thermal print head 14 , and indicate the arrangement order of the heaters.
[0068] For example, the determination unit 43 determines whether the thermal print head 14 has been replaced based on the change trend of the resistance value of each heater obtained by obtaining the difference between the resistance value of the measurement number 1 and the resistance value of the measurement number 2 related to the same heater (heater number). In this case, since there is no difference in the resistance value of each heater and the trend of the resistance value has not changed, the determination unit 43 determines that the thermal print head 14 has not been replaced.
[0069] In addition, for example, the judgment unit 43 obtains the difference between the result of the measurement of the resistance value of each heater when the number of times is 1 and the result of the measurement when the number of times is N, and makes a judgment. In this case, although the difference in the resistance value of each heater is about 20, the difference value is roughly the same for each heater. This is a result of using the printer 1. In this case, because the tendency of the resistance value of the heater as a whole has not changed, the judgment unit 43 judges that the print head 14 has not been replaced.
[0070] In addition, for example, the judgment unit 43 obtains the difference between the result of the measurement number of 1 and the result of the measurement number N+1 corresponding to the resistance value of each heater, and makes a judgment. In this case, the difference between the values of each heater is 12 in the case of heater 1, 10 in the case of heater 2, 8 in the case of heater 3, 6 in the case of heater 4, 4 in the case of heater 5, 2 in the case of heater 6, and 0 in the case of heater 7, and a deviation occurs for each heater. Such a deviation means that the tendency of the resistance value has changed, so the judgment unit 43 judges that the thermal print head 14 has been replaced.
[0071] Thus, the determination unit 43 confirms the change tendency of the resistance value of each heater when the printer 1 is started by comparing with the reference resistance value. Furthermore, the determination unit 43 can automatically determine that the thermal print head has been replaced based on the change tendency of the resistance value of each heater. In addition, although the determination unit 43 obtains the difference between the reference resistance value and the measured resistance value corresponding to each heater and makes a determination, the determination method is not limited to this.
[0072] The updating unit 44 updates the operation information when the determining unit 43 determines that the thermal print head 14 has been replaced. For example, the updating unit 44 resets the travel distance included in the operation information stored in the auxiliary storage device 35 to zero. In addition, for example, the updating unit 44 records the replacement date and time of the thermal print head 14 in the operation information of the auxiliary storage device 35 based on the date and time measured by RTC (Real Time Clock) or the like.
[0073] Thus, when the thermal print head 14 is replaced, the update unit 44 can reduce labor and operation time by updating the operation information of the thermal print head 14. In addition, the automatic update by the update unit 44 can avoid missing the initialization of the operation information and simplify the replacement operation of the thermal print head 14.
[0074] When the determination unit 43 determines that the thermal print head 14 has been replaced, the notification unit 45 notifies that the thermal print head 14 has been replaced. Specifically, the notification unit 45 notifies the POS terminal connected to the printer 1 of a message indicating that the thermal print head 14 has been replaced on the display device of the POS terminal. In addition, when the determination unit 43 determines that the thermal print head 14 has been replaced, the notification unit 45 lights up the light emitting unit of the printer 1 to notify that the thermal print head 14 has been replaced. The content of the notification is not limited to this.
[0075] In addition, in the present embodiment, although the determination unit 43 and the notification unit 45 are described separately, these functions may be included in one functional unit.
[0076] Next, an operation example of the printer 1 will be described. Figure 6 This is a flowchart showing an example of processing executed by the printer 1 according to this embodiment. The processing in this flowchart starts when the printer 1 is turned on, for example.
[0077] First, the measuring unit 41 measures the resistance value of each heater of the thermal print head 14 in the printer 1 (step S1 ).
[0078] Next, the determination unit 43 compares the reference resistance value with the resistance value of each heater measured by the measurement unit 41 (step S1 ), and determines whether the thermal print head has been replaced based on the change trend of the resistance value (step S2 ).
[0079] Here, when the determination unit 43 determines that the thermal print head has not been replaced (step S2: No), this process ends.
[0080] On the other hand, when the determination unit 43 determines that the thermal print head has been replaced (step S2: Yes), the process proceeds to step S3.
[0081] Next, the registration unit 42 registers the reference resistance value based on the resistance value of the heater measured by the measurement unit 41 (step S3). In addition, the update unit 44 updates the operation information (step S4). After the update process is performed, the process proceeds to step S5.
[0082] Next, the notification unit 45 notifies that the thermal print head 14 has been replaced (step S5). After the notification process is completed, the present process ends.
[0083] As described above, in the printer 1 according to the present embodiment, the measuring unit 41 measures the resistance value of each heater of the thermal print head 14. The judging unit 43 judges whether the thermal print head 14 has been replaced based on the reference resistance value and the change trend of the resistance value of each heater measured by the measuring unit 41. The updating unit 44 updates the operation information when judging that the thermal print head 14 has been replaced. In addition, when registering the reference resistance value in the registering unit, the user does not need to operate the operating unit intentionally, thereby improving the operability.
[0084] Thus, when it is determined that the thermal print head 14 has been replaced, the resistance value of the heater serving as the reference is registered. The printer 1 can understand that the thermal print head 14 has been replaced from the fact that the reference resistance value has been registered. In addition, the printer 1 can update the operation information according to the fact that the thermal print head 14 has been replaced. Furthermore, by updating the operation information through the printer 1, the operation time can be shortened, the replacement operation can be simplified, and the like.
[0085] The judgment unit 43 of this embodiment obtains the difference between the reference resistance value and the resistance value of each heater measured by the measuring unit 41. In the case where the difference between the resistance values of each heater deviates, the judgment unit 43 judges that the thermal print head 14 has been replaced. However, the heater of the thermal print head 14 may be disconnected due to manufacturing problems of the print head, deterioration during use, etc. This state is called a print head defect. The resistance value of the heater with a print head defect is significantly different from the resistance value of other heaters. It is possible that the judgment unit 43 judges that the thermal print head 14 with a print head defect has been replaced. If the operation information is updated, the operation information cannot be managed correctly.
[0086] In addition, even if the print head is defective, the printer can still be used even if the print quality is reduced. Therefore, it is expected that the reference resistance value will be changed when the print head is defective, so that it can be determined whether the thermal print head 14 should be replaced. This is because if multiple heaters are disconnected, it may be wrongly determined that the thermal print head 14 has been replaced.
[0087] Therefore, the judgment unit 43 judges whether the thermal print head 14 has been replaced and judges whether the thermal print head 14 is defective based on the reference resistance value and the change tendency of the resistance value of each heater of the heater measured by the measuring unit 41. Specifically, the reference resistance value and the change tendency of the resistance value of each heater of the heater measured by the measuring unit 41 are confirmed. When the resistance value of the specified heater is detected to be a value significantly exceeding the specified threshold value, it is judged that the print head is defective. When it is judged that the thermal print head 14 has been replaced and there is no print head defect, the registration process of the reference resistance value is performed (S3). The update process of the operation information (S4) and the notification process of the update result (S5) are performed. In the case where it is judged that there is a print head defect, the registration process of the reference resistance value is performed (S3). The update process of the operation information (S4) is not performed. In short, even if the situation of replacing the print head is judged based on the change tendency, if it is judged that the print head is defective, the operation information is not updated. The notification process of the update result (S5) is not performed and the process ends. By doing so, in the event of a print head defect, the registration process of the reference resistance value is performed, and when a judgment is made later, the replacement of the print head 14 can be correctly determined. In addition, for the thermal print head 14 with a defective print head, from the next time, the change trend of the heater other than the disconnected heater is confirmed. Thus, the next time, it can be correctly determined that the print head 14 has been replaced. The so-called removal of the heater is considered to be a case where it is not a comparison object. In addition, the so-called removal of the heater is considered to be a case where a comparison is made but the comparison result is not referred to. In the event of a print head defect, the updating of the operation information can be prevented. Regarding the heater of the defective print head, when updating the operation information, the user does not need to specially operate the operation unit, so the user's trouble can be reduced.
[0088] (Second embodiment)
[0089] The second embodiment will be described using the drawings.
[0090] Next, the second embodiment will be described. The description of the parts common to the first embodiment will be appropriately omitted. In addition, the same reference numerals are attached to the same components as those of the first embodiment, and the description thereof will be appropriately omitted.
[0091] In the first embodiment, the resistance values of the heaters are directly compared to explain the change tendency of the resistance value when the thermal print head is replaced. In the second embodiment, the resistance values of the heaters are statistically analyzed to explain the change tendency of the resistance value when the thermal print head is replaced.
[0092] Specifically, the printer 1 according to the second embodiment further includes a calculation unit 46 . The calculation unit 46 calculates the distribution tendency of the resistance value of each heater based on the resistance value measured by the measurement unit 41 .
[0093] like Figure 7 As shown, the calculation unit 46 calculates the distribution tendency of the resistance value of each heater based on the resistance value measured by the measurement unit 41. Figure 8 and Fig. 9 Next, the distribution tendency of the resistance value calculated by the calculation unit 46 will be described.
[0094] Figure 8 The resistance value serving as the reference value is graphed, with the horizontal axis being the heater number of each heater and the vertical axis being the resistance value [Ω]. The calculation unit 46 graphs the resistance value of each heater measured by the measurement unit 41 to understand the distribution tendency thereof. Figure 8 The trend of the reference resistance value shown, for example, in the graph GR1, has 7 peaks and 6 valleys. In addition, in the graph GR1, there is a tendency that the resistance value at one point is lower than the line L1 indicating 700Ω.
[0095] Fig. 9 This is a diagram in which the resistance values measured by the measuring unit 41 at the measurement number N+1 are graphed. Fig. 9 The trend of the measured resistance value is shown in, for example, graph GR2, which has 8 peaks and 8 valleys. Fig. 9 The resistance value tendency shown is, for example, that in the graph GR2, there are two locations where the resistance value tends to be lower than the line L2 indicating 700Ω.
[0096] Thus, by using the distribution tendency of the resistance value of the thermal print head calculated by the calculation unit 46 , it is possible to easily grasp the tendency of the resistance value of the entire heater constituting the thermal print head.
[0097] In addition, the determination unit 43 determines whether the thermal print head has been replaced based on the distribution trend of the reference resistance value calculated by the calculation unit 46 and the distribution trend of the measured resistance value. Figure 8 and Fig. 9 In the case of , since the distribution tendency of the resistance value of the thermal print head is different, the determination unit 43 determines that the thermal print head 14 has been replaced. Thus, the determination unit 43 can automatically determine whether the thermal print head 14 has been replaced by using the distribution tendency of the resistance value to determine whether the thermal print head 14 has been replaced.
[0098] In addition, the above-mentioned embodiments can be appropriately modified and implemented by changing a part of the composition or function of each of the above-mentioned devices. Therefore, several modified examples involved in the above-mentioned embodiments are described as other embodiments below. In addition, the following mainly describes the points different from the above-mentioned embodiments, and the detailed description of the points common to the contents already described is omitted. In addition, the modified examples described below can be implemented individually or in combination as appropriate.
[0099] (Variant 1)
[0100] In the above-mentioned embodiment, the determination unit 43 determines whether the thermal print head has been replaced by obtaining the difference between the reference resistance value and the measured resistance value. In addition, the determination unit 43 determines whether the thermal print head has been replaced by comparing the distribution tendency of the reference resistance value and the distribution tendency of the calculated resistance value, but the present invention is not limited thereto. For example, the determination unit 43 may also apply the reference resistance value and the measured resistance value to the least square error method to determine whether the thermal print head has been replaced.
[0101] (Variant 2)
[0102] In the above-mentioned embodiment, when the registration unit 42 determines that the thermal print head has been replaced by the judgment unit 43, the resistance value measured by the measuring unit 41 is registered as the reference resistance value after the judgment unit 43 makes the judgment, but it is not limited to this. For example, the registration unit 42 registers the resistance value measured by the measuring unit 41 as the reference resistance value each time it detects it. In addition, the judgment unit 43 can also judge whether the thermal print head has been replaced based on the change trend of the reference resistance value registered by the registration unit 42 (the previous measurement result) and the resistance value of each heater of the heater measured by the measuring unit 41 (the measurement result of this time). In this way, the same effect as the above-mentioned embodiment can be achieved.
[0103] (Variant 3)
[0104] For example, the registering unit 42 stores the measurement results of the resistance values of the heaters measured by the measuring unit 41 in the auxiliary storage device 35 as a list. The judging unit 43 may also refer to the change trend of the resistance values of the heaters from the list stored in the auxiliary storage device 35, and judge whether the thermal print head has been replaced based on the change trend of the resistance values measured by the measuring unit 41. Thus, the same effect as the above embodiment can be achieved.
[0105] In addition, in the above-mentioned embodiment, the control program executed by the printer 1 may be stored in a computer-readable storage medium such as a CD-ROM and provided. In addition, the control program executed by the printer 1 in the above-mentioned embodiment may be stored in a computer connected to a network such as the Internet and provided by downloading it via the network, or provided via a network such as the Internet.
[0106] Although the embodiments of the present invention have been described so far, the embodiments are presented as examples and are not intended to limit the scope of the invention. The embodiments may be implemented in various other forms, and various omissions, substitutions, changes, etc. may be made without departing from the gist of the invention. In addition, the embodiments and their variations are all included in the scope and gist of the invention, and are also included in the invention described in the scope of the claims and their equivalents.
Claims
1. A printer comprising a thermal print head having a plurality of heaters arranged in a row, characterized in that: include: a measuring unit for measuring a resistance value of each of the heaters; a storage unit storing operation information indicating an operation status of the thermal print head; a determination unit that determines whether the thermal print head has been replaced based on a reference resistance value used as a reference and measured in the past by the measurement unit and a change tendency of the resistance value of each of the heaters measured by the measurement unit; a registering unit, registering the reference resistance value in a nonvolatile storage medium; as well as an updating unit, which updates the operation information when the determining unit determines that the thermal print head has been replaced, wherein: The determination unit further determines whether the print head is defective based on the resistance value of each of the heaters, and the updating unit does not update the operation information when determining that the print head is defective regardless of whether the thermal print head is replaced. The registration unit, when the thermal print head is replaced, registers the resistance value measured by the measuring unit as the reference resistance value in the storage medium. At the same time, when the judgment unit judges that the print head is defective, the resistance value measured by the measuring unit is registered as the reference resistance value in the storage medium.
2. The printer according to claim 1, wherein: The measuring unit measures the resistance value when the printer is activated.
3. The printer according to claim 1 or 2, wherein: Also includes: a calculation unit that calculates a distribution tendency of the resistance value of each of the heaters based on the resistance value measured by the measurement unit, The determination unit determines whether the thermal print head has been replaced based on the distribution tendency of the reference resistance value calculated by the calculation unit and the distribution tendency of the resistance value measured by the measurement unit.
4. The printer according to claim 1 or 2, wherein: Also includes: The notification unit notifies that the thermal print head has been replaced when the determination unit determines that the thermal print head has been replaced.
5. The printer according to claim 1, wherein: The determination unit determines whether the thermal print head has been replaced based on a change trend of heaters other than the heater that is the target of print head defect after determining that the print head is defective.
6. A storage medium storing a program for causing a computer of a printer including a thermal print head having a plurality of heaters arranged in a row to execute the following steps: a measuring step of measuring the resistance value of each heater of the heaters; A storage step of storing operation information indicating an operation status of the thermal print head; a judging step of judging whether the thermal print head has been replaced based on a reference resistance value used as a reference and measured in the past by the measuring step and a change tendency of the resistance value of each of the heaters measured by the measuring step; A registration step of registering the reference resistance value in a non-volatile storage medium; as well as an updating step, in which, when it is determined in the determining step that the thermal print head has been replaced, the operation information is updated, In the judging step, whether or not the print head is defective is judged based on the resistance value of each of the heaters. When the updating step judges that the print head is defective, the operation information is not updated regardless of whether or not the thermal print head is replaced. In the registration step, when the thermal print head is replaced, the resistance value measured in the measuring step is registered in the storage medium as the reference resistance value. At the same time, when the judgment unit judges that the print head is defective, the resistance value measured in the measuring step is registered in the storage medium as the reference resistance value.
