Printers and storage media
By introducing power supply control components into the thermal printer, monitoring the power supply capacity and restarting power supply after the threshold timeout, the problem of temporary stop in power supply is solved, ensuring the continuity and accuracy of printing control.
Patent Information
- Application Number
- CN202210390923.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-07-14
- Filing Date
- 2022-04-14
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-04-14
AI Technical Summary
Existing thermal printers are prone to temporary stops during power supply, affecting printing control and accuracy.
A printer is designed, including power supply control components, by monitoring the power supply, temporarily stop power supply after exceeding the threshold and restarting after a specified time, avoiding the temporary stop of power supply, and storing the rotation angle of the motor when power supply is stopped to omit Phase adjustment.
It realizes avoiding temporary stops during power supply, ensuring the smoothness of printing control and the stability of printing accuracy.
Smart Images

Figure CN115610113B_ABST
Abstract
Description
[0001] This application claims priority to Japanese application No. JP2021-116467, filed on Jul. 14, 2021, and citing the contents of the aforementioned 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, thermal printers that print using a thermal print head are used. In such printers, a lot of power is consumed in order to heat a resistor included in the thermal print head and to drive a motor that rotates a platen roller that transports paper.
[0004] Some printers have a built-in protection circuit in the power supply such as an AC adapter. The protection circuit temporarily stops the power supply when a predetermined event occurs in order to avoid a malfunction due to overload. However, if the power supply is temporarily stopped without warning in the printer, it will have a negative impact on the printing control and printing accuracy, so it is not preferred. Summary of the invention
[0005] 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 that can avoid temporary suspension of power supply based on the function of the power supply, and can continue to perform smooth printing control and maintain good printing accuracy.
[0006] To solve the above-mentioned problem, one embodiment of the present invention provides a printer comprising: a thermal print head, which prints by supplying electricity to a resistor to make it heat up; a motor, which drives a component that conveys paper by rotation; a power supply, which supplies power to the thermal print head and the motor; and a power supply control unit, which stops supplying power to the motor and the thermal print head when the power supply continues to supply power for a period exceeding a second threshold value and the power supply needs to be temporarily stopped after the power supply has been supplied for a period exceeding a first threshold value specified by the power supply, and then restarts supplying power after a specified period of time.
[0007] According to the above printer, it is possible to provide a printer that can avoid temporary stoppage of power supply due to the function of the power supply, and can continue smooth printing control while maintaining good printing accuracy.
[0008] In the above-mentioned printer, the power supply control unit stops supplying power to the motor and the thermal print head when the total power supply per unit time supplied by the power supply exceeds a third threshold value specified by the power supply and needs to temporarily stop power supply, and resumes supplying power after a specified time.
[0009] According to the above printer, it is possible to stop the power supply to the motor and the thermal print head based on the total power supply amount per unit time.
[0010] In the above printer, the power supply control unit clears the value indicating the total power supply amount when power supply by the power source is stopped.
[0011] According to the above printer, the value indicating the total power supply amount can be cleared in conjunction with the stop of power supply.
[0012] In the above printer, the power supply includes a protection circuit.
[0013] According to the above-described printer, it is possible to prevent a malfunction due to overload by protecting the circuit.
[0014] In the above printer, the power supply control unit stores the rotation angle when power supply to the motor is stopped, and the printer further includes a print control unit that causes the motor to continue rotating from the stored rotation angle when power supply is restarted.
[0015] According to the above printer, the phase adjustment drive can be omitted and the motor can continue to rotate.
[0016] Another aspect of the printer of the present invention includes: a thermal print head that prints by supplying electricity to a resistor to cause it to generate heat; a motor that drives a component that conveys paper by rotation; a power supply that supplies power to the thermal print head and the motor; and a power supply control unit that stops supplying power to the motor and the thermal print head and resumes supplying power after a specified period of time when the total amount of power supplied by the power supply per unit time exceeds a third threshold value specified by the power supply and the power supply needs to be temporarily stopped.
[0017] According to the above printer, it is possible to provide a printer that can avoid temporary stoppage of power supply due to the function of the power supply, and can continue smooth printing control while maintaining good printing accuracy.
[0018] In the above printer, the power supply control unit clears the value indicating the total power supply amount when power supply by the power source is stopped.
[0019] According to the above printer, the value indicating the total power supply amount can be cleared in conjunction with the stop of power supply.
[0020] In the above printer, the power supply control unit stores the rotation angle when power supply to the motor is stopped, and the printer further includes a print control unit that causes the motor to continue rotating from the stored rotation angle when power supply is restarted.
[0021] According to the above printer, the phase adjustment drive can be omitted and the motor can continue to rotate.
[0022] 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 that prints by supplying electricity to a resistor to generate heat, a motor that drives a component that conveys paper by rotation, and a power supply that supplies power to the thermal print head and the motor to function as a power supply control unit, wherein the power supply control unit stops supplying power to the motor and the thermal print head when the power supply continues to supply power for a period exceeding a second threshold value and the power supply needs to be temporarily stopped after the power supply has supplied power exceeding a first threshold value specified by the power supply, and resumes supplying power after a specified period of time.
[0023] According to the above-mentioned storage medium, it is possible to provide a computer with a function that can avoid temporary stop of power supply by a power supply function, and can continue smooth printing control and maintain good printing accuracy.
[0024] 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 that prints by supplying electricity to a resistor to generate heat, a motor that drives a component that conveys paper by rotation, and a power supply that supplies power to the thermal print head and the motor to function as a power supply control unit, wherein the power supply control unit stops supplying power to the motor and the thermal print head when the total power supply per unit time supplied by the power supply exceeds a third threshold value specified by the power supply and thus requires temporary stop of power supply, and resumes supplying power after a specified period of time.
[0025] According to the above-mentioned storage medium, it is possible to provide a computer with a function of avoiding temporary stop of power supply by a power supply function, and to continue smooth printing control and maintain good printing accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a diagram illustrating the configuration of a system in an embodiment;
[0027] Figure 2 is a cross-sectional view illustrating an example of the structure of a printer;
[0028] Figure 3 is a block diagram showing an example of the configuration of a printer;
[0029] Figure 4 is a block diagram showing an example of a functional unit included in the control unit;
[0030] Figure 5 is a diagram illustrating the flow of processing performed by the control unit; and
[0031] Figure 6 It is a diagram for explaining the flow of other processing performed by the control unit.
[0032] Description of Reference Numerals
[0033] 1 Printer
[0034] 101 CPU 102 ROM 103 RAM 104 Storage unit
[0035] 110 control unit 111 receiving unit 112 printing control unit
[0036] 113 Power supply control unit
[0037] 2 AC adapter 21 Protection circuit
[0038] 3 Information processing device
[0039] 4 Housing
[0040] 41 Upper module 42 Lower module 43 Hinge 44 Paper discharge port
[0041] 5 Paper storage unit 50 Papers 51 to 53 Transport path
[0042] 6 Printing unit 61 Thermal print head 62 Platen roller
[0043] 7 Conveying unit 71 Motor
[0044] 81 Communication I / F 82 Power connection unit 83 Operation unit 84 Display unit
[0045] 100 Systems DETAILED DESCRIPTION
[0046] (First embodiment)
[0047] Embodiments will be described using the drawings. Figure 1 1 is a diagram illustrating the structure of the system 100 in the present embodiment. The system 100 is configured to include a printer 1, an AC adapter 2, and an information processing device 3. The printer 1 operates based on the power supplied by the AC adapter 2, prints based on the print data received from the information processing device 3, and discharges the printed paper. The information processing device 3 is generally a PC (Personal Computer), for example, which is connected to the printer 1 in a wireless or wired manner so as to be able to send and receive information. The AC adapter 2 is an accessory of the printer 1. Therefore, it does not directly form the structure of the printer 1. However, since it is an accessory of the printer, the printer 1 and the AC adapter 2 are sometimes collectively referred to as a printer.
[0048] Figure 2 1 is a cross-sectional view illustrating an example of the structure of the printer 1. Figure 2 The left side in the middle is the front side of the printer 1 , that is, the side that the user mainly faces. The printer 1 includes a housing 4 , a paper storage unit 5 , a printing unit 6 , and a conveying unit 7 .
[0049] The housing 4 includes an upper module 41, a lower module 42, a link 43, and a paper discharge port 44. The link 43 connects the inner ends of the upper module 41 and the lower module 42 to each other so that they can rotate freely. The lower module 42 has an opening portion that opens upward, and the opening portion is opened and closed by the upper module 41. In short, the upper module 41 functions as a cover of the lower module 42. The paper discharge port 44 is an opening portion formed between the front side end portion of the upper module 41 and the front side end portion of the lower module 42, and the printed paper 50 is discharged.
[0050] The paper storage section 5 is a space provided in the housing 4 for storing the paper 50. The paper storage section 5 is opened and closed by rotating the upper module 41 relative to the lower module 42. The paper 50 is wound in a roll shape.
[0051] In addition, Figure 2 , transport paths 51 to 53 are indicated by imaginary lines. Transport path 52 is a path along which the paper 50 with the largest diameter moves toward the printing section 6. Transport path 53 is a path along which the paper 50 with the smallest diameter moves toward the printing section 6. Transport path 51 is a path along which the paper 50 printed in the printing section 6 and discharged from the paper discharge port 44 moves.
[0052] The printing unit 6 includes a thermal print head 61 and a platen roller 62. The thermal print head 61 includes a plurality of resistors arranged in a linear pattern. The resistors generate heat when energized and are therefore also called heating elements. The resistors are selectively energized to print on the paper 50. The platen roller 62 supports the printing position of the paper 50 (the portion sandwiched between the thermal print head 61).
[0053] The conveying unit 7 is composed of a motor 71 and a platen roller 62. The motor 71 drives the platen roller 62 to rotate, and the platen roller 62 conveys the paper 50 sandwiched between the thermal print head 61 by rotating. The motor 71 is, for example, a stepping motor.
[0054] Here, the AC adapter 2 is a power source for supplying power to the thermal print head 61 and the motor 71 .
[0055] Figure 3This is a block diagram showing an example of the structure of the printer 1. The printer 1 is configured to include a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 102, a RAM (Random Access Memory) 103, a storage unit 104, a communication I / F (Interface) 81, a power connection unit 82, an operation unit 83, a display unit 84, and the like.
[0056] The power connection portion 82 is a portion to which the AC adapter 2 is connected, and receives power supply from the AC adapter 2. The AC adapter 2 includes a protection circuit 21. The protection circuit 21 stops power supply when a predetermined event occurs as a trigger to avoid overload of the AC adapter 2. There are two predetermined events. One is when the AC adapter 2 continues to supply power for a time exceeding a second threshold value (hereinafter referred to as a first trigger) after supplying power exceeding a first threshold value. The other is when the total amount of power supplied per unit time by the AC adapter 2 exceeds a third threshold value (hereinafter referred to as a second trigger).
[0057] In addition, the first threshold value in this embodiment is a current value specified as a peak current, for example, 13 A. In addition, the second threshold value in this embodiment is, for example, 10 seconds. In addition, the third threshold value in this embodiment is a rated power supply, for example, 60 W.
[0058] The communication I / F 81 relays communication with an external device (information processing device 3). The operation unit 83 is a device operated by buttons or the like, and receives input operations from an operator. The display unit 84 is a display device such as a liquid crystal panel, and displays information for the operator.
[0059] The storage unit 104 stores programs, various files, various settings, etc. The storage unit 104 may also be a storage device, for example, implemented by a flash memory, etc. The programs stored in the storage unit 104 are executed by the CPU 101. In addition, the storage unit 104 stores the data to be used later. Figure 5 and Figure 6 Constants or thresholds used by the described program, etc.
[0060] ROM 102 stores programs executed by CPU 101. RAM 103 is used to temporarily store the expansion of the programs executed by CPU 101 and the values of various variables. CPU 101 functions as control unit 110 by executing the programs stored in ROM 102 or storage unit 104, and realizes various functional units (see Figure 4 , described later)
[0061] Figure 41 is a block diagram showing an example of functional units included in the control unit 110. The control unit 110 includes a receiving unit 111, a printing control unit 112, and a power supply control unit 113.
[0062] The receiving unit 111 receives print data from the information processing device 3. The print control unit 112 controls the thermal print head 61 and the motor 71 based on the print data.
[0063] When there is an event that is a first trigger, in short, when the AC adapter 2 supplies power exceeding the first threshold value (for example, 13A) and the power supply time exceeds the second threshold value (for example, 10 seconds), the power supply control unit 113 stops supplying power to the motor 71 and the thermal print head 61 before the power supply is stopped by the protection circuit 21, and resumes supplying power after a specified time (for example, 500μs).
[0064] In addition, when there is an event for the second trigger, in short, when the total power supplied by the AC adapter 2 per unit time (for example, 10 seconds) exceeds a third threshold value (for example, 60 W), the power supply control unit 113 stops supplying power to the motor 71 and the thermal print head 61 before stopping the power supply through the protection circuit 21, and resumes supplying power after a specified time (for example, 500 μs).
[0065] In addition, the power supply control unit 113 clears the value indicating the total power supply amount while stopping the power supply through the AC adapter 2. The power supply stop mentioned here refers not only to the stop of printing and conveying through the control of the power supply control unit 113, but also to the stop due to the completion of the printing action based on the print data. In short, the power supply control unit 113 clears the value indicating the total power supply amount as the printing and conveying are stopped due to some reason. In addition, the so-called clearing is to make the value of the variable used in the accumulation of the value indicating the total power supply amount in the control program, for example, zero. In addition, the so-called value indicating the total power supply amount may not be the total power supply itself, but may be a value related to the total power supply amount, such as a value proportional to the total power supply amount among the values used in calculating the total power supply amount.
[0066] Figure 5 1 is a diagram for explaining the flow of processing performed by the control unit 110. This processing is for responding to an event as a first trigger.
[0067] When the receiving unit 111 receives the print data (step S1), the control unit 110 sets an on dot for each line based on the print data through the print control unit 112 (step S2). The on dot is a resistor that is energized.
[0068] Next, the control unit 110 as the power supply control unit 113 determines whether the number of conducting points in each row is equal to or greater than a threshold value (step S3). The threshold value is, for example, the number of points exceeding the peak current 13A (an example of the first threshold value).
[0069] When it is determined that the number of conduction points in each row is less than the threshold value (step S3; No), the power supply control unit 113 transitions to step S6 for processing. In addition, in step S3, when it is determined that the number of conduction points in each row is greater than or equal to the threshold value (step S3; Yes), the power supply control unit 113 determines whether the timer value indicating the time elapsed after the number of conduction points becomes greater than or equal to the threshold value is 0 (step S4).
[0070] Here, when the timer value is 0 (step S4; Yes), the power supply control unit 113 starts the timer (step S5) and proceeds to step S6. The timer can be realized by using a timer function such as an RTC (Real Time Clock) included in the printer 1.
[0071] Furthermore, when the timer value is not 0 in step S4 (step S4; No), the power supply control unit 113 determines whether the timer value is greater than or equal to 10 seconds, which is an example of a second threshold value (step S9). When the timer value is greater than or equal to 10 seconds (step S9; Yes), the power supply control unit 113 cooperates with the print control unit 112 to temporarily stop the conveyance by the conveying unit (for example, 500 μs) (step S10).
[0072] Thus, when a predetermined event occurs, the control unit 110 can temporarily stop supplying power before the protection circuit 21 stops supplying power, thereby avoiding unexpected power supply stoppage for the control unit 110. In addition, smooth printing control can be continued and good printing accuracy can be maintained.
[0073] Furthermore, when the power supply is stopped by the protection circuit 21, it is unclear what state the motor 71 of the conveying unit 7 is in. Therefore, when restarting, it is necessary to perform phase adjustment driving of the motor 71 of the conveying unit 7. Since the phase adjustment driving of the stepping motor generally requires adjusting the rotor to a predetermined position, a large amount of power is required.
[0074] In order to improve this problem, the power supply control unit 113 stores the rotation angle when the motor 71 is stopped. By doing so, when the motor 71 is restarted after a temporary stop, the phase adjustment drive of the motor 71 can be omitted, and the conveying unit 7 can continue conveying.
[0075] Following step S10, the power supply control unit 113 stops the timer and clears the timer value (step S11), and proceeds to step S6 for processing. In step S9, if the timer value is less than 10 seconds (step S9; No), the timer continues to count and transitions to step S6 for processing.
[0076] In step S6 , the print control unit 112 generates a strobe pulse signal for one line based on the setting content of step S2 , and outputs the strobe pulse signal to the printer unit 6 to print one line (step S6 ).
[0077] Furthermore, in step S6, the control unit 110 supplies power to the conveying unit 7 (motor 71) in addition to the printing unit 6 (thermal print head 61), and rotates the platen roller 62 to convey the paper S only one line. As described above, the power supply control unit 113 stores the rotation angle when the motor 71 of the conveying unit 7 is temporarily stopped. Therefore, the print control unit 112 of the control unit 110 supplies a pulse signal to the motor 71 of the conveying unit 7 to continue from the stopped rotation angle. As a result, the motor 71 continues to rotate from the stopped rotation angle. The load of the power supply at the time of restarting can be reduced.
[0078] Next, the print control unit 112 determines whether the output of all the lines is completed (step S7). If it is determined that the output of all the lines is not completed (step S7; No), the print control unit 112 returns to step S3 for processing. In addition, if it is determined that the output of all the lines is completed (step S7; Yes), the power supply control unit 113 stops the timer and clears the timer value (step S8), and ends the present processing.
[0079] According to the above description Figure 5 When there is an event that may cause a temporary stop of power supply by the power supply function, the power supply is temporarily stopped by its own control before the power supply is stopped by the power supply function. In this way, the temporary stop of power supply by the power supply function can be avoided. In addition, the adverse effects on printing control or printing accuracy caused by the unprepared power supply stop on the printer 1 side can be eliminated. In addition, by stopping the power supply in a planned manner by the control on the printer 1 side, smooth printing control can be continued and good printing accuracy can be maintained.
[0080] Next, another process will be described. Figure 6 1 is a diagram for explaining the flow of other processing performed by the control unit 110. This processing is for responding to an event as a second trigger. Figure 5 Processing and Figure 6 However, according to the embodiment, the control unit 110 may also only perform Figure 5 Processing and Figure 6 any party to the processing.
[0081] When the receiving unit 111 receives the print data (step S21 ), the control unit 110 sets the conduction dots for each line based on the print data through the print control unit 112 (step S22 ).
[0082] The power supply control unit 113 determines whether the timer value indicating the time elapsed after the print data is received and the conduction dot is set is 0 (step S23). Figure 6 The timer in the process is related to Figure 5 The timers in the process are different timers.
[0083] In step S23 , when the timer value is 0 (step S23 ; Yes), the power supply control unit 113 starts counting by the timer (step S24 ), and proceeds to step S25 for processing.
[0084] In step S25, the power supply control unit 113 calculates the total number of conduction points in the past 10 seconds, that is, the total value of the number of resistors that were energized in the past 10 seconds (step S25). In addition, "10 seconds" recorded in step S25 is an example of "unit time".
[0085] Next, in step S26 , the print control unit 112 generates a strobe pulse signal for one line based on the setting content of step S2 , and outputs it to the printing unit 6 to perform printing for one line (step S26 ).
[0086] Furthermore, in step S26 , the control unit 110 supplies power to the transport unit 7 (motor 71 ) in addition to the printing unit 6 (thermal print head 61 ) to rotate the platen roller 62 and transport the paper S by only one line.
[0087] Next, the printing control unit 112 determines whether the output of all rows has been completed (step S27). When it is determined that the output of all rows has not been completed (step S27; No), the printing control unit 112 returns to step S23 for processing. In addition, when it is determined that the output of all rows has been completed (step S27; Yes), the power supply control unit 113 stops the timer and clears the timer value (step S28), further clears the total number of conductive dots (step S29), and ends this processing.
[0088] In step S23, when the timer value is not 0 (step S23; No), the power supply control unit 113 determines whether the timer value is greater than or equal to 10 seconds (step S30). In addition, the "10 seconds" recorded in step S30 is an example of the same "unit time" as in step S25. In step S30, when the timer value is less than 10 seconds (step S30; No), the timer continues to count and the process transitions to step S25 for processing.
[0089] In step S30, when the timer value is greater than or equal to 10 seconds (step S30; Yes), the power supply control unit 113 calculates the average number of conduction dots (step S31). The average number of conduction dots is calculated by dividing the total number of conduction dots calculated in step S25 by the number of lines printed in the past 10 seconds.
[0090] Next, the power supply control unit 113 determines whether the average value calculated in step S31 is greater than or equal to a threshold value (step S32). The threshold value is, for example, a point where the total power supply per unit time (e.g., within the past 10 seconds) supplied by the AC adapter 2 exceeds 60W, which is an example of a third threshold value.
[0091] In step S32 , when the average value is equal to or greater than the threshold value (step S32 ; Yes), the power supply control unit 113 cooperates with the print control unit 112 to temporarily (for example, 500 μs) stop the conveyance by the conveyance unit 7 (step S33 ).
[0092] Thus, when a predetermined event occurs, the control unit 110 can temporarily stop the power supply before the protection circuit 21 stops the power supply, thereby avoiding unexpected power supply stop for the control unit 110. Then, smooth printing control can be continued and good printing accuracy can be maintained.
[0093] In addition, Figure 5 The power supply control unit 113 stores the rotation angle when the motor 71 is stopped. By doing so, the phase adjustment drive of the motor 71 can be omitted when the motor 71 is restarted after temporary stop, so that the conveying unit 7 can continue conveying.
[0094] Following step S33, the power supply control unit 113 stops the timer and clears the timer value (step S34). In addition, the power supply control unit 113 clears the printing end portion of the conduction point set in step S22 so that it does not become the calculation object in step S25 (step S35). Then, the power supply control unit 113 proceeds to step S25 for processing. Figure 5At the same time, the print control unit 112 of the control unit 110 supplies a pulse signal for continuing the rotation angle after stopping to the motor 71 of the conveying unit 7. This can reduce the load of power supply when restarting.
[0095] Thus, according to the printer 1 of this embodiment, it is possible to prevent the power supply from being stopped by the protection circuit 21 of the AC adapter 2 when there are events as the first and second triggers. In short, when printing continues after power supply exceeding the peak current is supplied or when the total power supply per unit time exceeds the rated value, before the protection circuit 21 operates, the conveyance and printing are temporarily stopped under the control of the control unit 110, so that the power supply can be stopped in a planned manner.
[0096] Since the power supply is stopped and then restarted in a planned manner, the phase adjustment drive of the motor 71 can be omitted when the power is restarted, and the conveying unit 7 can continue the conveying. The power supply at the time of restarting can be reduced.
[0097] In addition, in this embodiment, Figure 5 Control and Figure 6 However, according to the embodiment, it may not be both parties, but Figure 5 Control and Figure 6 any party under the control of.
[0098] The program executed by the printer 1 of the present embodiment described above is provided stored in advance in a ROM or the like.
[0099] The program executed in the printer 1 of this embodiment can also be configured as an installable or executable file stored in a computer-readable storage medium such as a CD-ROM, floppy disk (FD), CD-R, DVD (Digital Versatile Disk) or the like.
[0100] Furthermore, the program executed by the printer 1 of this embodiment may be stored in a computer connected to a network such as the Internet and provided by downloading via the network. In addition, the program executed by the printer 1 of this embodiment may be provided or distributed via a network such as the Internet.
[0101] The program executed in the printer 1 of this embodiment makes the computer a module structure including the above-mentioned units (receiving unit 111, printing control unit 112 and power supply control unit 113). The CPU (processor) reads the program from the above-mentioned storage medium and executes it, thereby loading the above-mentioned units into the main storage device. As a result, the receiving unit 111, printing control unit 112 and power supply control unit 113 are generated in the main storage device.
[0102] Although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, changes, etc. can be made without departing from the gist of the invention. In addition, these embodiments and their variations are all included in the scope of the invention, and are included in the invention described in the scope of the claims and their equivalents.
Claims
1. A printer, characterized in that: include: Thermal print heads print by passing electricity through a resistor to make it heat up; A motor that drives a component that transports paper by rotation; a power source for supplying power to the thermal print head and the motor; and The power supply control unit stops the power supply to the motor and the thermal print head and restarts the power supply after a specified time has passed, when the power supply continues for a time exceeding a second threshold value after the power supply has supplied power exceeding a first threshold value specified by the power supply and the power supply needs to be temporarily stopped. Whether power supply exceeding the first threshold value has been performed is determined by whether the number of conduction points in each row is greater than or equal to a threshold value, wherein the conduction point is a resistor that is energized.
2. The printer according to claim 1, wherein: The power supply control unit stops supplying power to the motor and the thermal print head and restarts supplying power after a specified time when the total power supply per unit time supplied by the power supply exceeds a third threshold value specified by the power supply and temporary stop of power supply is required.
3. The printer according to claim 2, wherein: The power supply control unit clears the value indicating the total power supply amount in response to the stop of power supply by the power supply.
4. The printer according to claim 1, wherein: The power supply includes a protection circuit.
5. The printer according to claim 1, wherein: The power supply control unit stores the rotation angle when stopping power supply to the motor. The printer further includes a print control unit that, when power supply is restarted, causes the motor to continue rotating from the stored rotation angle.
6. A printer, characterized in that: include: Thermal print heads print by passing electricity through a resistor to make it heat up; A motor that drives a component that transports paper by rotation; a power source for supplying power to the thermal print head and the motor; and The power supply control unit stops supplying power to the motor and the thermal print head and restarts supplying power after a specified time has passed, when the total power supply per unit time supplied by the power supply exceeds a third threshold value specified by the power supply and the power supply needs to be temporarily stopped. Whether the third threshold is exceeded is determined by dividing the total number of conduction points per unit time by the number of printed lines per unit time to determine whether the average value is greater than or equal to the threshold, wherein the conduction point is a resistor that is energized.
7. The printer according to claim 6, wherein: The power supply control unit clears the value indicating the total power supply amount in response to the stop of power supply by the power supply.
8. The printer according to claim 6, wherein: The power supply control unit stores the rotation angle when stopping power supply to the motor. The printer further includes a print control unit that, when power supply is restarted, causes the motor to continue rotating from the stored rotation angle.
9. A storage medium storing a program for causing a computer of a printer including a thermal print head that prints by supplying electricity to a resistor to generate heat, a motor that drives a member that conveys paper by rotation, and a power supply that supplies power to the thermal print head and the motor to function as a power supply control unit, wherein: The power supply control unit stops supplying power to the motor and the thermal print head and restarts supplying power after a specified time has passed, when the power supply continues for a time exceeding a second threshold value after the power supply has supplied power exceeding a first threshold value specified by the power supply and a temporary stop of power supply is required. Whether power supply exceeding the first threshold value has been performed is determined by whether the number of conduction points in each row is greater than or equal to a threshold value, wherein the conduction point is a resistor that is energized.
10. A storage medium storing a program for causing a computer of a printer including a thermal print head that prints by supplying electricity to a resistor to generate heat, a motor that drives a member that conveys paper by rotation, and a power supply that supplies power to the thermal print head and the motor to function as a power supply control unit, wherein: The power supply control unit stops supplying power to the motor and the thermal print head and restarts supplying power after a specified time has passed, when the total power supply per unit time supplied by the power supply exceeds a third threshold value specified by the power supply and it is necessary to temporarily stop supplying power. Whether the third threshold is exceeded is determined by dividing the total number of conduction points per unit time by the number of printed lines per unit time to determine whether the average value is greater than or equal to the threshold, wherein the conduction point is a resistor that is energized.