JP2025151806A - Printing device and method for controlling printing device - Google Patents

Printing device and method for controlling printing device

Info

Publication number
JP2025151806A
JP2025151806A JP2024053396A JP2024053396A JP2025151806A JP 2025151806 A JP2025151806 A JP 2025151806A JP 2024053396 A JP2024053396 A JP 2024053396A JP 2024053396 A JP2024053396 A JP 2024053396A JP 2025151806 A JP2025151806 A JP 2025151806A
Authority
JP
Japan
Prior art keywords
current amount
current
speed
drive motor
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2024053396A
Other languages
Japanese (ja)
Inventor
浩義 岡田
Hiroyoshi Okada
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2024053396A priority Critical patent/JP2025151806A/en
Publication of JP2025151806A publication Critical patent/JP2025151806A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

【課題】搬送速度を適正に制御する。
【解決手段】プリンター1は、駆動モーター152と、駆動モーター152によって駆動され、記録媒体Pを搬送する搬送ローラー153と、記録媒体Pに印刷する記録ヘッド151と、記録ヘッド151が消費する電流量である第1電流量QAを算出する第1算出部111と、駆動モーター152が消費する電流量である第2電流量QBを算出する第2算出部112と、第1電流量QA、及び第2電流量QBを加算して、加算電流量QTを算出する加算部113と、加算電流量QTに基づいて、記録媒体Pの搬送速度Vを制御する速度制御部115と、を備える。
【選択図】図1

To appropriately control the conveying speed.
[Solution] The printer 1 includes a drive motor 152, a transport roller 153 driven by the drive motor 152 and transporting the recording medium P, a recording head 151 that prints on the recording medium P, a first calculation unit 111 that calculates a first current amount QA which is the amount of current consumed by the recording head 151, a second calculation unit 112 that calculates a second current amount QB which is the amount of current consumed by the drive motor 152, an addition unit 113 that adds the first current amount QA and the second current amount QB to calculate a total current amount QT, and a speed control unit 115 that controls the transport speed V of the recording medium P based on the total current amount QT.
[Selected Figure] Figure 1

Description

本開示は、印刷装置、及び印刷装置の制御方法に関する。 This disclosure relates to a printing device and a method for controlling a printing device.

特許文献1には、印刷データの次の1ラインの印字ドット数を算出し、印字ドット数からヘッドの消費電流量を計算し、消費電流量に相応する消費電流量閾値に対応付けられた印字速度を選択し、使用する印字速度として決定することが記載されている。 Patent document 1 describes a method of calculating the number of print dots for the next line of print data, calculating the amount of current consumed by the head from the number of print dots, selecting a print speed associated with a current consumption threshold value corresponding to the amount of current consumed, and determining this as the print speed to be used.

特開2018-51888号公報JP 2018-51888 A

しかしながら、印字する際に印刷装置ではヘッドと同時に搬送モーターも駆動しており、消費電流量には搬送モーターの消費電流量も加味する必要がある。そこで、特許文献1に記載の技術では、過剰に電源を保護して印字速度が下がってしまう可能性があった。 However, when printing, the printer drives the carry motor at the same time as the head, and the current consumption of the carry motor must also be taken into account. Therefore, the technology described in Patent Document 1 could potentially overprotect the power supply, resulting in a decrease in printing speed.

上記課題を解決する一態様に係る印刷装置は、駆動モーターと、前記駆動モーターによって駆動され、記録媒体を搬送する搬送ローラーと、前記記録媒体に印刷する記録ヘッドと、前記記録ヘッドが消費する電流量である第1電流量を算出する第1算出部と、前記駆動モーターが消費する電流量である第2電流量を算出する第2算出部と、前記第1電流量、及び第2電流量を加算して、加算電流量を算出する加算部と、前記加算電流量に基づいて、前記記録媒体の搬送速度を制御する搬送速度制御部と、を備える、印刷装置である。 One aspect of a printing device that solves the above problem is a printing device that includes a drive motor, a transport roller driven by the drive motor to transport a recording medium, a recording head that prints on the recording medium, a first calculation unit that calculates a first current amount that is the amount of current consumed by the recording head, a second calculation unit that calculates a second current amount that is the amount of current consumed by the drive motor, an adder that adds the first current amount and the second current amount to calculate a total current amount, and a transport speed control unit that controls the transport speed of the recording medium based on the total current amount.

本実施形態に係るプリンターの構成の一例を示す図。FIG. 1 is a diagram illustrating an example of the configuration of a printer according to an embodiment. 第1テーブルの一例を示す図表。10 is a diagram showing an example of a first table. 第2テーブルの一例を示す図表。10 is a diagram showing an example of a second table. 制御部の処理の一例を示すフローチャート。10 is a flowchart showing an example of processing by a control unit.

以下、図面を参照して本実施形態について説明する。 This embodiment will be described below with reference to the drawings.

まず、図1を参照して、本実施形態係るプリンター1の構成について説明する。図1は、第1実施形態に係るプリンター1の構成の一例を示す図である。
図1に示すように、プリンター1は、制御部11と、操作機構12と、表示機構13と、電力供給機構14と、印刷機構15と、印刷媒体収容部16と、を備える。
制御部11は、プリンター1の各部の動作を制御する。操作機構12、表示機構13、電力供給機構14、印刷機構15の各々は、制御部11と通信可能に構成される。
プリンター1は、「印刷装置」の一例に対応する。
First, the configuration of a printer 1 according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of the configuration of a printer 1 according to the first embodiment.
As shown in FIG. 1 , the printer 1 includes a control unit 11 , an operation mechanism 12 , a display mechanism 13 , a power supply mechanism 14 , a printing mechanism 15 , and a print medium container 16 .
The control unit 11 controls the operation of each unit of the printer 1. The operation mechanism 12, the display mechanism 13, the power supply mechanism 14, and the printing mechanism 15 are each configured to be able to communicate with the control unit 11.
The printer 1 corresponds to an example of a "printing device."

制御部11は、CPU(Central Processing Unit)等のプロセッサー11A、ROM(Read Only Memory)等のメモリー11Bを備える。メモリー11Bは、制御プログラムPGを記憶する。 The control unit 11 includes a processor 11A such as a CPU (Central Processing Unit) and memory 11B such as a ROM (Read Only Memory). Memory 11B stores the control program PG.

プロセッサー11Aは、複数のプロセッサーにより構成されてもよいし、単一のプロセッサーで構成されてもよい。
プロセッサー11Aが、後述する各部の機能を実現するようにプログラムされたハードウェアであってもよい。すなわち、プロセッサー11Aは、制御プログラムPGをハードウェア回路として搭載した構成であってもよい。この場合には、例えば、プロセッサー11Aは、ASIC(Application Specific Integrated Circuit)、FPGA(Field―Programmable Gate Array)等で構成される。
以下の説明では、プロセッサー11Aが制御プログラムPGを実行することによって、制御部11の各種の機能を実現する場合について説明する。
The processor 11A may be configured with multiple processors or may be configured with a single processor.
The processor 11A may be hardware programmed to implement the functions of each unit described below. That is, the processor 11A may be configured with the control program PG installed as a hardware circuit. In this case, the processor 11A may be configured with, for example, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or the like.
In the following description, the processor 11A executes the control program PG to realize various functions of the control unit 11.

メモリー11Bは、プログラムやデータを不揮発的に記憶する不揮発性記憶領域を有する。メモリー11Bは、不揮発性記憶領域として、例えば、ROM、HDD(Hard Disk Drive)、SSD(Solid State Drive)等を備えてもよい。また、メモリー11Bは、揮発性記憶領域を備え、プロセッサー11Aが実行するプログラムや処理対象のデータを一時的に記憶するワークエリアを構成してもよい。メモリー11Bは、揮発性記憶領域として、例えば、RAM(Random Access Memory)等を備えてもよい。 Memory 11B has a non-volatile storage area that stores programs and data in a non-volatile manner. Memory 11B may include, for example, a ROM, HDD (Hard Disk Drive), or SSD (Solid State Drive) as the non-volatile storage area. Memory 11B may also include a volatile storage area that serves as a work area for temporarily storing programs executed by processor 11A and data to be processed. Memory 11B may also include, for example, RAM (Random Access Memory) as the volatile storage area.

本実施形態では、プロセッサー11Aは、制御プログラムPGを実行してプリンター1の各部を制御するが、これに限定されない。制御部11が、例えば、ASICを備え、ASICが、実装された機能により処理を実行してもよい。また、制御部11は、例えば、信号処理回路を備え、信号処理回路が、信号処理を行って処理を実行してもよい。 In this embodiment, the processor 11A executes the control program PG to control each part of the printer 1, but this is not limited to this. The control unit 11 may, for example, include an ASIC, and the ASIC may execute processing using implemented functions. The control unit 11 may also, for example, include a signal processing circuit, and the signal processing circuit may execute processing by performing signal processing.

操作機構12は、プリンター1に設けられた操作スイッチや、タッチパネル等の入力手段を備え、ユーザーの入力手段に対する操作を検出し、操作に対応する検出信号を制御部11へ出力する。制御部11は、操作機構12からの入力に基づいて、ユーザーの操作に対応する処理を実行する。 The operation mechanism 12 includes input means such as operation switches and a touch panel provided on the printer 1, detects user operations on the input means, and outputs detection signals corresponding to the operations to the control unit 11. The control unit 11 executes processing corresponding to the user operations based on input from the operation mechanism 12.

表示機構13は、複数のLED(Light Emitting Diode)、及び、LCD(Liquid Crystal Display)等の表示パネルを備え、制御部11の制御に従って、LEDの所定の態様での点灯、消灯及び点滅、表示パネルへの情報の表示等を実行する。 The display mechanism 13 includes a display panel such as multiple LEDs (Light Emitting Diodes) and an LCD (Liquid Crystal Display), and, under the control of the control unit 11, turns the LEDs on, off, and blinks in a predetermined manner, displays information on the display panel, etc.

電力供給機構14は、周辺機器2に対して電力を供給する。
周辺機器2は、例えば、バーコードスキャナー、カードリーダー等を含む。
電力供給機構14は、例えば、第1USB(登録商標)(Universal Serial Bus)端子141、第2USB(登録商標)端子142、第3USB(登録商標)端子143、及び第4USB(登録商標)端子144、を備える。
第1USB(登録商標)端子141、第2USB(登録商標)端子142、第3USB(登録商標)端子143、及び第4USB(登録商標)端子144の各々は、USB(登録商標)ケーブルを介して、周辺機器2に対して電力を供給する。
The power supply mechanism 14 supplies power to the peripheral device 2 .
The peripheral device 2 includes, for example, a barcode scanner, a card reader, and the like.
The power supply mechanism 14 includes, for example, a first USB (registered trademark) (Universal Serial Bus) terminal 141 , a second USB (registered trademark) terminal 142 , a third USB (registered trademark) terminal 143 , and a fourth USB (registered trademark) terminal 144 .
Each of the first USB (registered trademark) terminal 141, the second USB (registered trademark) terminal 142, the third USB (registered trademark) terminal 143, and the fourth USB (registered trademark) terminal 144 supplies power to the peripheral device 2 via a USB (registered trademark) cable.

周辺機器2は、例えば、第1周辺機器21、第2周辺機器22、第3周辺機器23、及び第4周辺機器24、を含む。
第1USB(登録商標)端子141は、例えば、第1周辺機器21と接続可能に構成される。第2USB(登録商標)端子142は、例えば、第2周辺機器22と接続可能に構成される。第3USB(登録商標)端子143は、例えば、第3周辺機器23と接続可能に構成される。第4USB(登録商標)端子144、例えば、第4周辺機器24と接続可能に構成される。
第1USB(登録商標)端子141、第2USB(登録商標)端子142、第3USB(登録商標)端子143、及び第4USB(登録商標)端子144は、「接続端子」の一例に対応する。
第1周辺機器21、第2周辺機器22、第3周辺機器23、及び第4周辺機器24は、「複数の周辺機器」の一例に対応する。
The peripheral devices 2 include, for example, a first peripheral device 21, a second peripheral device 22, a third peripheral device 23, and a fourth peripheral device 24.
The first USB (registered trademark) terminal 141 is configured to be connectable to, for example, the first peripheral device 21. The second USB (registered trademark) terminal 142 is configured to be connectable to, for example, the second peripheral device 22. The third USB (registered trademark) terminal 143 is configured to be connectable to, for example, the third peripheral device 23. The fourth USB (registered trademark) terminal 144 is configured to be connectable to, for example, the fourth peripheral device 24.
The first USB (registered trademark) terminal 141, the second USB (registered trademark) terminal 142, the third USB (registered trademark) terminal 143, and the fourth USB (registered trademark) terminal 144 correspond to examples of "connection terminals."
The first peripheral device 21, the second peripheral device 22, the third peripheral device 23, and the fourth peripheral device 24 correspond to an example of "a plurality of peripheral devices."

電力供給機構14は、電流センサーSAを備える。電流センサーSAは、電力供給機構14から周辺機器2に供給する電流の電流値である周辺電流値ASを検出する。換言すれば、周辺電流値ASは、周辺機器2が消費する電流値である。電流センサーSAは、検出した周辺電流値ASを制御部11へ出力する。
電流センサーSAは、「電流検出部」の一例に対応する。
The power supply mechanism 14 includes a current sensor SA. The current sensor SA detects a peripheral current value AS, which is the current value of the current supplied from the power supply mechanism 14 to the peripheral device 2. In other words, the peripheral current value AS is the current value consumed by the peripheral device 2. The current sensor SA outputs the detected peripheral current value AS to the control unit 11.
The current sensor SA corresponds to an example of a "current detection unit."

本実施形態では、電流センサーSAが周辺電流値ASを検出するが、これに限定されない。電流センサーSAを使わず、接続される周辺機器2の各種類に対応した消費電流値をメモリー11Bに予め記憶しておき、「接続端子」に接続された周辺機器2の種類を制御部11が検出し、「接続端子」に接続された周辺機器2の種類に応じて、メモリー11Bに予め記憶された周辺機器2の各種類に対応した消費電流値から周辺電流値ASを取得してもよい。この構成は、「電流検出部」の一例に対応する。 In this embodiment, the current sensor SA detects the peripheral current value AS, but this is not limiting. Instead of using the current sensor SA, current consumption values corresponding to each type of connected peripheral device 2 may be pre-stored in memory 11B, and the control unit 11 may detect the type of peripheral device 2 connected to the "connection terminal." The peripheral current value AS may then be obtained from the current consumption values corresponding to each type of peripheral device 2 pre-stored in memory 11B, depending on the type of peripheral device 2 connected to the "connection terminal." This configuration corresponds to an example of a "current detection unit."

印刷機構15は、制御部11の制御に従って、印刷機能を実行する。印刷機構15は、制御部11の制御に従って、印刷用紙等の記録媒体Pに文字、画像等を印刷する。記録媒体Pは、例えば、感熱紙である。
印刷機構15は、印刷に関する構成として、記録ヘッド151、駆動モーター152及び搬送ローラー153を備える。
The printing mechanism 15 executes a printing function under the control of the control unit 11. The printing mechanism 15 prints characters, images, etc. on a recording medium P such as printing paper under the control of the control unit 11. The recording medium P is, for example, thermal paper.
The printing mechanism 15 includes a recording head 151, a drive motor 152, and a transport roller 153 as components related to printing.

記録ヘッド151は、例えば、サーマルヘッドである。すなわち、本実施形態では、プリンター1は、サーマルプリンターである。
記録ヘッド151は、複数の発熱体を有する。複数の発熱体は、通電されることによって発熱する。記録ヘッド151から記録媒体Pに熱が加えられることによって、記録媒体Pに画像が形成される。
The recording head 151 is, for example, a thermal head, that is, in this embodiment, the printer 1 is a thermal printer.
The recording head 151 has a plurality of heating elements. The heating elements generate heat when energized. An image is formed on the recording medium P by applying heat from the recording head 151 to the recording medium P.

駆動モーター152は、搬送ローラー153を駆動する。駆動モーター152は、例えば、DCモーターである。
搬送ローラー153は、記録ヘッド151と対向して配置される。搬送ローラー153と記録ヘッド151とが記録媒体Pを挟持した状態で、搬送ローラー153の回転によって記録媒体Pが搬送される。
The drive motor 152 drives the transport roller 153. The drive motor 152 is, for example, a DC motor.
The transport roller 153 is disposed opposite the recording head 151. With the recording medium P sandwiched between the transport roller 153 and the recording head 151, the recording medium P is transported by the rotation of the transport roller 153.

印刷媒体収容部16は、記録媒体Pを収容可能に構成される。例えば、長尺の記録媒体Pをロール状に巻回したロール体を印刷媒体収容部16に収容し、ロール体から記録媒体Pを引き出して、駆動モーター152によって搬送され、図略の搬送路に繰り出す。印刷媒体収容部16は、印刷後の記録媒体Pである印刷物を回収する構成を備えてもよい。 The print medium storage unit 16 is configured to be able to store recording media P. For example, a roll of long recording media P is stored in the print medium storage unit 16, and the recording media P is pulled out from the roll and transported by the drive motor 152 onto a transport path (not shown). The print medium storage unit 16 may also be configured to collect the printed matter, which is the recording media P, after printing.

次に、プリンター1の制御部11が備える機能ブロックについて説明する。
制御部11は、第1算出部111と、第2算出部112と、加算部113と、速度決定部114と、速度制御部115と、印刷データ記憶部116と、テーブル記憶部117と、を備える。プロセッサー11Aが制御プログラムPGを実行することによって、プロセッサー11Aは、第1算出部111、第2算出部112、加算部113、速度決定部114、及び速度制御部115、として機能する。また、プロセッサー11Aが制御プログラムPGを実行することによって、メモリー11Bを、印刷データ記憶部116、及びテーブル記憶部117、として機能させる。
Next, the functional blocks of the control unit 11 of the printer 1 will be described.
The control unit 11 includes a first calculation unit 111, a second calculation unit 112, an addition unit 113, a speed determination unit 114, a speed control unit 115, a print data storage unit 116, and a table storage unit 117. When the processor 11A executes the control program PG, the processor 11A functions as the first calculation unit 111, the second calculation unit 112, the addition unit 113, the speed determination unit 114, and the speed control unit 115. When the processor 11A executes the control program PG, the memory 11B functions as the print data storage unit 116 and the table storage unit 117.

印刷データ記憶部116は、予め印刷データDPを記憶する。印刷データDPは、制御部11によって、記録ヘッド151へ伝送される。そして、記録ヘッド151によって、印刷データDPに対応する画像が記録媒体Pに形成される。 The print data storage unit 116 stores print data DP in advance. The print data DP is transmitted to the recording head 151 by the control unit 11. The recording head 151 then forms an image corresponding to the print data DP on the recording medium P.

テーブル記憶部117は、予め第1テーブルTBL1と、第2テーブルTBL2とを記憶する。第1テーブルTBL1は、周辺電流値ASと、複数のテーブルの中から速度決定部114が選択する1つのテーブルを対応付けるテーブルである。
第1テーブルTBL1については、図2を参照して更に説明する。
The table storage unit 117 stores a first table TBL1 and a second table TBL2 in advance. The first table TBL1 is a table that associates the peripheral current value AS with one table selected by the speed determination unit 114 from a plurality of tables.
The first table TBL1 will be further described with reference to FIG.

第2テーブルTBL2は、加算電流量QTに対応する閾値である消費電流量閾値THAと、目標速度VTとを対応付けるテーブルである。目標速度VTは搬送速度Vの目標値である。加算電流量QTは、加算部113によって算出される。
第2テーブルTBL2については、図3を参照して更に説明する。
The second table TBL2 is a table that associates a current consumption threshold THA, which is a threshold corresponding to the added current QT, with the target speed VT. The target speed VT is a target value for the conveying speed V. The added current QT is calculated by the adder 113.
The second table TBL2 will be further described with reference to FIG.

第1算出部111は、記録ヘッド151が消費する電流量である第1電流量QAを算出する。第1算出部111は、印刷データDPに基づき、第1電流量QAを算出する。第1電流量QAは、例えば、記録ヘッド151が、印刷データDPの1ラインを印刷する際に、記録ヘッド151が消費する電流量である。第1算出部111は、例えば、次の式(1)によって第1電流量QAを算出する。
QA=(Vh/(((Rt+Rd)/N)+Rfet))×TE (1)
The first calculation unit 111 calculates a first current amount QA, which is the amount of current consumed by the recording head 151. The first calculation unit 111 calculates the first current amount QA based on the print data DP. The first current amount QA is, for example, the amount of current consumed by the recording head 151 when the recording head 151 prints one line of the print data DP. The first calculation unit 111 calculates the first current amount QA, for example, using the following equation (1):
QA=(Vh/(((Rt+Rd)/N)+Rfet))×TE (1)

ここで、電圧値Vhは、記録ヘッド151に供給される電圧の電圧値を示す。抵抗値Rtは、記録ヘッド151に配置された複数の発熱体の各々の抵抗値を示す。抵抗値Rdは、記録ヘッド151に配置された複数の発熱体の各々と直列に接続されたドライバー抵抗の抵抗値を示す。個数Nは、記録ヘッド151に配置された複数の発熱体のうち、通電させる発熱体の個数を示す。抵抗値Rfetは、記録ヘッド151に配置された複数の発熱体の各々のON、及びOFFを切り換えるFET(Field Effect Transistor)の抵抗値を示す。時間TEは、1ラインを印刷する際に記録ヘッド151に配置された複数の発熱体に通電する時間を示す。
第1電流量QAの単位は、例えば、(A×μsec)である。
Here, voltage value Vh indicates the voltage value of the voltage supplied to the print head 151. Resistance value Rt indicates the resistance value of each of the multiple heating elements arranged in the print head 151. Resistance value Rd indicates the resistance value of a driver resistor connected in series with each of the multiple heating elements arranged in the print head 151. Number N indicates the number of heating elements to be energized among the multiple heating elements arranged in the print head 151. Resistance value Rfet indicates the resistance value of an FET (Field Effect Transistor) that switches each of the multiple heating elements arranged in the print head 151 ON and OFF. Time TE indicates the time during which electricity is applied to the multiple heating elements arranged in the print head 151 when printing one line.
The unit of the first current amount QA is, for example, (A×μsec).

第2算出部112は、駆動モーター152が消費する電流量である第2電流量QBを算出する。第2算出部112は、例えば、駆動モーター152への印加電圧値Vmと、PWM(Pulse Width Modulation)制御のオン時間Dpと、駆動モーター152の回転速度Nrと、印刷データDPの1ラインに対応する記録媒体Pの搬送量を搬送ローラー153が搬送する時間である搬送時間TFと、に基づき、第2電流量QBを算出する。
第2算出部112は、例えば、次の式(2)によって第2電流量QBを算出する。
QB=((Vm×Dp/Dmax-Ke×Nr)/
(Rm+Rmd)×Dp/Dmax)×TF (2)
The second calculation unit 112 calculates a second current amount QB, which is the amount of current consumed by the drive motor 152. The second calculation unit 112 calculates the second current amount QB based on, for example, the applied voltage value Vm to the drive motor 152, the on-time Dp of PWM (Pulse Width Modulation) control, the rotation speed Nr of the drive motor 152, and the transport time TF, which is the time it takes for the transport roller 153 to transport the recording medium P a transport amount corresponding to one line of the print data DP.
The second calculation unit 112 calculates the second current amount QB using, for example, the following equation (2).
QB=((Vm×Dp/Dmax−Ke×Nr)/
(Rm+Rmd)×Dp/Dmax)×TF (2)

ここで、時間Dmaxは、PWM制御の1周期の時間である。係数Keは、駆動モーター152の逆起電力定数(V/rps)である。抵抗値Rmは、駆動モーター152の抵抗の抵抗値である。抵抗値Rmdは、駆動モーター152のドライバー抵抗の抵抗値である。
第2電流量QBの単位は、例えば、(A×μsec)である。
Here, the time Dmax is the time for one cycle of PWM control. The coefficient Ke is the back electromotive force constant (V/rps) of the drive motor 152. The resistance value Rm is the resistance value of the resistor of the drive motor 152. The resistance value Rmd is the resistance value of the driver resistor of the drive motor 152.
The second current amount QB is expressed in units of (A×μsec), for example.

加算部113は、第1電流量QA、及び第2電流量QBを加算して、加算電流量QTを算出する。すなわち、加算部113は、次の(3)式によって加算電流量QTを算出する。
QT=QA+QB (3)
The adder 113 adds the first current amount QA and the second current amount QB to calculate the total current amount QT. That is, the adder 113 calculates the total current amount QT using the following equation (3).
QT=QA+QB (3)

速度決定部114は、周辺電流値ASに基づいて、第1テーブルTBL1を参照して、複数のテーブルの中から1つのテーブルを選択する。そして、速度決定部114は、選択された1つのテーブルに対応する第2テーブルTBL2を参照して、加算電流量QTに対応する目標速度VTに、記録媒体Pの搬送速度Vを決定する。
速度決定部114の処理については、図2、及び図3を参照して更に説明する。
The speed determination unit 114 refers to the first table TBL1 and selects one table from among the multiple tables based on the peripheral current value AS. Then, the speed determination unit 114 refers to the second table TBL2 corresponding to the selected table and determines the conveyance speed V of the recording medium P to be the target speed VT corresponding to the added current amount QT.
The processing of the speed determination unit 114 will be further described with reference to FIGS.

速度制御部115は、記録媒体Pの搬送速度Vを制御する。速度制御部115は、例えば、加算電流量QTに基づいて、記録媒体Pの搬送速度Vを制御する。速度制御部115は、例えば、駆動モーター152をPWM制御することによって、速度決定部114が決定した目標速度VTに、搬送ローラー153による記録媒体Pの搬送速度Vを制御する。
速度制御部115は、「搬送速度制御部」の一例に対応する。
The speed control unit 115 controls the transport speed V of the recording medium P. The speed control unit 115 controls the transport speed V of the recording medium P, for example, based on the added current amount QT. The speed control unit 115 controls the transport speed V of the recording medium P by the transport roller 153 to the target speed VT determined by the speed determination unit 114, for example, by PWM controlling the drive motor 152.
The speed control unit 115 corresponds to an example of a "conveyance speed control unit."

本実施形態では、第2算出部112が、印刷データDPの1ラインに対応する記録媒体Pの搬送量を搬送ローラー153が搬送する時間である搬送時間TFにおいて、駆動モーター152が消費する電流量である第2電流量QBを算出する場合について説明するが、実施形態はこれに限定されない。第2算出部112が、印刷データDPの所定数NPのラインに対応する記録媒体Pの搬送量を搬送ローラー153が搬送する時間である搬送時間TFにおいて、駆動モーター152が消費する電流量である第2電流量QBの平均値を算出してもよい。この場合には、加算部113は、第1電流量QAと、第2電流量QBの平均値とを加算して、加算電流量QTを算出する。 In this embodiment, the second calculation unit 112 calculates the second current amount QB, which is the amount of current consumed by the drive motor 152 during the transport time TF, which is the time it takes for the transport roller 153 to transport the recording medium P a distance corresponding to one line of the print data DP, but the embodiment is not limited to this. The second calculation unit 112 may also calculate the average value of the second current amount QB, which is the amount of current consumed by the drive motor 152 during the transport time TF, which is the time it takes for the transport roller 153 to transport the recording medium P a distance corresponding to a predetermined number NP of lines of the print data DP. In this case, the addition unit 113 adds the first current amount QA and the average value of the second current amount QB to calculate the total current amount QT.

所定数NPは、2以上の整数である。所定数NPが大きい程、第2算出部112の処理を簡素化できる。所定数NPが小さい程、加算電流量QTを正確に算出できる。
例えば、第2算出部112は、所定数NPを記録媒体Pの搬送速度Vに応じて決定してもよい。第2算出部112は、例えば、記録媒体Pの搬送速度Vが速い程、所定数NPを大きな値に設定すればよい。この場合には、所定数NPを適正に設定できる。
The predetermined number NP is an integer equal to or greater than 2. The larger the predetermined number NP, the simpler the processing of the second calculation unit 112. The smaller the predetermined number NP, the more accurately the added current amount QT can be calculated.
For example, the second calculation unit 112 may determine the predetermined number NP according to the transport speed V of the recording medium P. For example, the second calculation unit 112 may set the predetermined number NP to a larger value as the transport speed V of the recording medium P increases. In this case, the predetermined number NP can be set appropriately.

次に、図2を参照して、第1テーブルTBL1について説明する、図2は、第1テーブルTBL1の一例を示す図表である。
図2に示すように、第1テーブルTBL1は、周辺電流値ASと、速度決定部114が選択するテーブルである選択テーブルTSと、を対応付ける。
例えば、周辺電流値ASが、1.0A以下である場合には、速度決定部114は、選択テーブルTSとしてテーブルAを選択する。
また、例えば、周辺電流値ASが、1.0Aより大で、且つ、1.5A以下である場合には、速度決定部114は、選択テーブルTSとしてテーブルBを選択する。
また、例えば、周辺電流値ASが、1.5Aより大で、且つ、2.0A以下である場合には、速度決定部114は、選択テーブルTSとしてテーブルCを選択する。
Next, the first table TBL1 will be described with reference to FIG. 2. FIG. 2 is a diagram showing an example of the first table TBL1.
As shown in FIG. 2, the first table TBL1 associates the peripheral current value AS with a selection table TS, which is a table selected by the speed determination unit 114.
For example, when the peripheral current value AS is equal to or less than 1.0 A, the speed determination unit 114 selects table A as the selection table TS.
Also, for example, when the peripheral current value AS is greater than 1.0 A and equal to or less than 1.5 A, the speed determination unit 114 selects table B as the selection table TS.
Also, for example, if the peripheral current value AS is greater than 1.5 A and less than or equal to 2.0 A, the speed determination unit 114 selects table C as the selection table TS.

本実施形態では、図2に示すように、速度決定部114が選択するテーブルの選択肢が、テーブルA、テーブルB、及びテーブルCの3つである場合について説明するが、実施形態はこれに限定されない。速度決定部114が選択するテーブルの選択肢が多い程、速度決定部114は、目標速度VTを適正な値に設定することが可能になる。速度決定部114が選択するテーブルの選択肢が少ない程、速度決定部114の処理を簡素化できる。 In this embodiment, as shown in FIG. 2, a case will be described in which the speed determination unit 114 selects from three table options: Table A, Table B, and Table C, but the embodiment is not limited to this. The more table options the speed determination unit 114 selects from, the more likely it is that the speed determination unit 114 will be able to set the target speed VT to an appropriate value. The fewer table options the speed determination unit 114 selects from, the more simplified the processing of the speed determination unit 114 can be.

次に、図3を参照して、第2テーブルTBL2について説明する。図3は、第2テーブルTBL2の一例を示す図表である。
図3に示すように、第2テーブルTBL2は、目標速度VTと、消費電流量閾値THAと、を対応付けるテーブルである。消費電流量閾値THAとして、速度決定部114が選択テーブルTSとしてテーブルAを選択した場合の消費電流量閾値TH1と、速度決定部114が選択テーブルTSとしてテーブルBを選択した場合の消費電流量閾値TH2と、速度決定部114が選択テーブルTSとしてテーブルCを選択した場合の消費電流量閾値TH3と、を示している。消費電流量閾値THAは、加算電流量QTの閾値である。
Next, the second table TBL2 will be described with reference to Fig. 3. Fig. 3 is a diagram showing an example of the second table TBL2.
3, the second table TBL2 is a table that associates the target speed VT with a current consumption threshold THA. The current consumption threshold THA is shown as a current consumption threshold TH1 when the speed determination unit 114 selects table A as the selection table TS, a current consumption threshold TH2 when the speed determination unit 114 selects table B as the selection table TS, and a current consumption threshold TH3 when the speed determination unit 114 selects table C as the selection table TS. The current consumption threshold THA is a threshold for the added current QT.

速度決定部114は、例えば、以下のようにして目標速度VTを決定する。
すなわち、速度決定部114が選択テーブルTSとしてテーブルBを選択した場合には、テーブルBに対応する消費電流量閾値THAとして、消費電流量閾値TH2を選択する。
そして、速度決定部114は、加算部113が算出した加算電流量QTを、消費電流量閾値TH2と比較する。具体的には、速度決定部114は、図3を参照して、消費電流量閾値TH2の中から、加算電流量QT以上の値で、且つ、加算電流量QTに最も近い消費電流量閾値TH2を選択する。更に、速度決定部114は、図3を参照して、選択した消費電流量閾値TH2に対応する目標速度VTを、搬送速度Vの目標値に決定する。
The speed determination unit 114 determines the target speed VT, for example, in the following manner.
That is, when the speed determination unit 114 selects table B as the selection table TS, the current consumption threshold TH2 is selected as the current consumption threshold THA corresponding to table B.
The speed determination unit 114 then compares the added current amount QT calculated by the adding unit 113 with the current consumption threshold TH2. Specifically, the speed determination unit 114 selects, from the current consumption thresholds TH2, a current consumption threshold TH2 that is equal to or greater than the added current amount QT and that is closest to the added current amount QT, with reference to Fig. 3. Furthermore, the speed determination unit 114 determines, with reference to Fig. 3, the target speed VT corresponding to the selected current consumption threshold TH2 as the target value of the conveying speed V.

例えば、速度決定部114が選択テーブルTSとしてテーブルBを選択した場合において、加算電流量QTが、「10500(A×μsec)」である場合には、図3を参照して、消費電流量閾値TH2の中から「11000(A×μsec)」を選択する。そして、速度決定部114は、図3を参照して、「11000(A×μsec)」に対応する目標速度VTである「52(mm/sec)」に決定する。 For example, if the speed determination unit 114 selects table B as the selection table TS and the added current amount QT is "10,500 (A x μsec)," then, with reference to FIG. 3, it selects "11,000 (A x μsec)" from the current consumption threshold TH2. Then, with reference to FIG. 3, the speed determination unit 114 determines the target speed VT corresponding to "11,000 (A x μsec)" to be "52 (mm/sec)."

例えば、速度決定部114が選択テーブルTSとしてテーブルCを選択した場合において、加算電流量QTが、「10500(A×μsec)」である場合には、図3を参照して、消費電流量閾値TH3の中から「11500(A×μsec)」を選択する。そして、速度決定部114は、図3を参照して、「11500(A×μsec)」に対応する目標速度VTである「41(mm/sec)」に決定する。 For example, if the speed determination unit 114 selects table C as the selection table TS and the added current amount QT is "10,500 (A x μsec)," then, with reference to FIG. 3, it selects "11,500 (A x μsec)" from the current consumption threshold TH3. Then, with reference to FIG. 3, the speed determination unit 114 determines the target speed VT corresponding to "11,500 (A x μsec)" to be "41 (mm/sec)."

次に、図4を参照して、本実施形態における制御部11の主な処理について説明する。図4は、制御部11の主な処理の一例を示すフローチャートである。
図4に示すように、ステップS101において、制御部11は、電流センサーSAから周辺電流値ASを取得する。
次に、ステップS103において、速度決定部114は、周辺電流値ASに基づいて、第1テーブルTBL1を参照して、複数のテーブルの中から1つのテーブルを選択する。
次に、ステップS105において、第1算出部111は、記録ヘッド151が消費する電流量である第1電流量QAを算出する。第1算出部111は、例えば、上記式(1)によって第1電流量QAを算出する。
Next, the main processing of the control unit 11 in this embodiment will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the main processing of the control unit 11.
As shown in FIG. 4, in step S101, the control unit 11 acquires a peripheral current value AS from the current sensor SA.
Next, in step S103, the speed determination unit 114 refers to the first table TBL1 based on the peripheral current value AS and selects one table from among the plurality of tables.
Next, in step S105, the first calculation unit 111 calculates the first current amount QA, which is the amount of current consumed by the print head 151. The first calculation unit 111 calculates the first current amount QA, for example, using the above formula (1).

次に、ステップS107において、第2算出部112は、駆動モーター152が消費する電流量である第2電流量QBを算出する。第2算出部112は、例えば、上記式(2)によって第2電流量QBを算出する。
次に、ステップS109において、加算部113は、第1電流量QA、及び第2電流量QBを加算して、加算電流量QTを算出する。加算部113は、例えば、上記式(3)によって加算電流量QTを算出する。
次に、ステップS111において、速度決定部114は、ステップS103で選択された1つのテーブルに対応する第2テーブルTBL2を参照して、加算電流量QTに対応する目標速度VTに、記録媒体Pの搬送速度Vの目標値を決定する。
Next, in step S107, the second calculator 112 calculates the second current amount QB, which is the amount of current consumed by the drive motor 152. The second calculator 112 calculates the second current amount QB, for example, using the above formula (2).
Next, in step S109, the adder 113 adds the first current amount QA and the second current amount QB to calculate the total current amount QT. The adder 113 calculates the total current amount QT using, for example, the above formula (3).
Next, in step S111, the speed determination unit 114 refers to the second table TBL2 corresponding to one of the tables selected in step S103, and determines the target value of the conveying speed V of the recording medium P to be the target speed VT corresponding to the added current amount QT.

次に、ステップS113において、速度制御部115は、記録媒体Pの搬送速度Vを、目標速度VTに制御する。
次に、ステップS115において、制御部11は、印刷データDPの印刷が完了したか否かを判定する。
印刷データDPの印刷が完了していないと制御部11が判定した場合(ステップS115;NO)には、処理がステップS101に戻る。印刷データDPの印刷が完了したと制御部11が判定した場合(ステップS115;YES)には、その後、処理が終了する。
Next, in step S113, the speed control unit 115 controls the conveying speed V of the recording medium P to the target speed VT.
Next, in step S115, the control unit 11 determines whether printing of the print data DP is completed.
If the control unit 11 determines that printing of the print data DP is not complete (step S115; NO), the process returns to step S101. If the control unit 11 determines that printing of the print data DP is complete (step S115; YES), the process then ends.

ステップS105は、「第1算出ステップ」の一例に対応する。
ステップS107は、「第2算出ステップ」の一例に対応する。
ステップS109は、「加算ステップ」の一例に対応する。
ステップS113は、「搬送制御ステップ」の一例に対応する。
Step S105 corresponds to an example of a "first calculation step."
Step S107 corresponds to an example of a "second calculation step."
Step S109 corresponds to an example of an "addition step."
Step S113 corresponds to an example of a "transport control step."

[3.構成、及び効果]
以上、図1~図4を参照して説明したように、本実施形態に係るプリンター1は、駆動モーター152と、記録媒体Pに印刷する記録ヘッド151と、駆動モーター152によって駆動され、記録ヘッド151に向けて記録媒体Pを搬送する搬送ローラー153と、記録ヘッド151が消費する電流量である第1電流量QAを算出する第1算出部111と、駆動モーター152が消費する電流量である第2電流量QBを算出する第2算出部112と、第1電流量QA、及び第2電流量QBを加算して、加算電流量QTを算出する加算部113と、加算電流量QTに基づいて、記録媒体Pの搬送速度Vを制御する速度制御部115と、を備える。
[3. Structure and Effects]
As described above with reference to Figures 1 to 4, the printer 1 according to this embodiment includes a drive motor 152, a recording head 151 that prints on a recording medium P, a transport roller 153 that is driven by the drive motor 152 and transports the recording medium P toward the recording head 151, a first calculation unit 111 that calculates a first current amount QA that is the amount of current consumed by the recording head 151, a second calculation unit 112 that calculates a second current amount QB that is the amount of current consumed by the drive motor 152, an addition unit 113 that adds the first current amount QA and the second current amount QB to calculate a total current amount QT, and a speed control unit 115 that controls the transport speed V of the recording medium P based on the total current amount QT.

この構成によれば、記録ヘッド151が消費する電流量である第1電流量QAと、駆動モーター152が消費する電流量である第2電流量QBとを加算して加算電流量QTを算出し、加算電流量QTに基づいて、記録媒体Pの搬送速度Vを制御する。したがって、搬送速度Vを適正に制御できる。 With this configuration, the first current amount QA, which is the amount of current consumed by the recording head 151, and the second current amount QB, which is the amount of current consumed by the drive motor 152, are added together to calculate the total current amount QT, and the transport speed V of the recording medium P is controlled based on the total current amount QT. Therefore, the transport speed V can be controlled appropriately.

また、本実施形態に係るプリンター1において、記録ヘッド151は、サーマルヘッドであり、第1算出部111は、印刷データDPに基づき、第1電流量QAを算出する。 In addition, in the printer 1 according to this embodiment, the recording head 151 is a thermal head, and the first calculation unit 111 calculates the first current amount QA based on the print data DP.

この構成によれば、サーマルヘッドが消費する電流量である第1電流量QAを、印刷データDPに基づき算出するため、第1電流量QAを適正に算出できる。 With this configuration, the first current amount QA, which is the amount of current consumed by the thermal head, is calculated based on the print data DP, so the first current amount QA can be calculated appropriately.

また、本実施形態に係るプリンター1において、複数の周辺機器21-24に対して電力を供給可能なUSB端子141-144と、USB端子141-144に接続された周辺機器21-24が消費する電流値である周辺電流値ASを検出する電流検出部と、を備え、速度制御部115は、加算電流量QT、及び周辺電流値ASに基づいて、搬送速度Vを制御する。 The printer 1 according to this embodiment also includes USB terminals 141-144 capable of supplying power to multiple peripheral devices 21-24, and a current detection unit that detects a peripheral current value AS, which is the current value consumed by the peripheral devices 21-24 connected to the USB terminals 141-144. The speed control unit 115 controls the transport speed V based on the added current amount QT and the peripheral current value AS.

この構成によれば、加算電流量QT、及び周辺電流値ASに基づいて、搬送速度Vを制御するため、搬送速度Vを適正に制御できる。 With this configuration, the conveying speed V is controlled based on the added current amount QT and the peripheral current value AS, allowing the conveying speed V to be controlled appropriately.

また、本実施形態に係るプリンター1において、前記電流検出部は、電流センサーSAである。 In addition, in the printer 1 according to this embodiment, the current detection unit is a current sensor SA.

この構成によれば、電流センサーSAが周辺電流値ASを検出するため、正確な周辺電流値ASを検出できる。 With this configuration, the current sensor SA detects the peripheral current value AS, allowing for accurate detection of the peripheral current value AS.

また、本実施形態に係るプリンター1において、加算電流量QTと目標速度VTとを対応付けて記憶する複数のテーブルA-Cを記憶するテーブル記憶部117と、周辺電流値ASに基づいて、複数のテーブルA-Cの中から1つのテーブルを選択し、前記1つのテーブルを参照して、加算電流量QTに対応する目標速度VTに、搬送速度Vを決定する速度決定部114を備え、速度制御部115は、速度決定部114が決定した目標速度VTに、搬送速度Vを制御する。 The printer 1 according to this embodiment also includes a table storage unit 117 that stores multiple tables A-C that associate and store the additional current amount QT with the target speed VT, and a speed determination unit 114 that selects one table from the multiple tables A-C based on the peripheral current value AS and references the selected table to determine the transport speed V to the target speed VT that corresponds to the additional current amount QT, and a speed control unit 115 that controls the transport speed V to the target speed VT determined by the speed determination unit 114.

この構成によれば、周辺電流値ASに基づいて、複数のテーブルA-Cの中から1つのテーブルを選択し、前記1つのテーブルを参照して、加算電流量QTに対応する目標速度VTに、搬送速度Vを決定するため、搬送速度Vを適正に決定できる。 With this configuration, one table is selected from multiple tables A-C based on the peripheral current value AS, and the conveying speed V is determined to the target speed VT corresponding to the added current amount QT by referring to that one table, thereby allowing the conveying speed V to be determined appropriately.

また、本実施形態に係るプリンター1において、駆動モーター152は、直流モーターであり、速度制御部115は、駆動モーター152をPWM制御することによって、搬送速度Vを制御し、第2算出部112は、駆動モーター152への印加電圧値Vmと、PWM制御のオン時間Dpと、駆動モーター152の回転速度Nrと、印刷データDPの1ラインに対応する記録媒体Pの搬送量を搬送ローラー153が搬送する時間である搬送時間TFと、に基づき、第2電流量QBを算出する。 In addition, in the printer 1 according to this embodiment, the drive motor 152 is a DC motor, and the speed control unit 115 controls the transport speed V by PWM controlling the drive motor 152, and the second calculation unit 112 calculates the second current amount QB based on the applied voltage value Vm to the drive motor 152, the on time Dp of the PWM control, the rotation speed Nr of the drive motor 152, and the transport time TF, which is the time it takes for the transport roller 153 to transport the recording medium P a transport amount corresponding to one line of the print data DP.

この構成によれば、駆動モーター152が消費する電流量である第2電流量QBを適正に算出できる。 This configuration allows the second current amount QB, which is the amount of current consumed by the drive motor 152, to be calculated appropriately.

また、本実施形態に係るプリンター1において、第2算出部112は、前記印刷データDPの所定数NPのラインについて、第2電流量QBの平均値を算出し、加算部113は、第1電流量QAと、第2電流量QBの平均値とを加算して加算電流量QTを算出する。 In addition, in the printer 1 according to this embodiment, the second calculation unit 112 calculates the average value of the second current amount QB for a predetermined number NP of lines of the print data DP, and the addition unit 113 adds the first current amount QA and the average value of the second current amount QB to calculate the total current amount QT.

この構成によれば、所定数NPを適正な値に設定することによって、制御部11の負荷を軽減しつつ、適正な加算電流量QTを算出できる。 With this configuration, by setting the predetermined number NP to an appropriate value, it is possible to reduce the load on the control unit 11 while calculating an appropriate added current amount QT.

また、本実施形態に係るプリンター1において、第2算出部112は、所定数NPを、搬送速度Vに応じて決定する。 In addition, in the printer 1 according to this embodiment, the second calculation unit 112 determines the predetermined number NP based on the transport speed V.

この構成によれば、所定数NPを、搬送速度Vに応じて決定するため、所定数NPを適正な値に設定できる。 With this configuration, the predetermined number NP is determined based on the conveying speed V, allowing the predetermined number NP to be set to an appropriate value.

本実施形態に係るプリンター1の制御方法は、駆動モーター152と、駆動モーター152によって駆動され、記録媒体Pを搬送する搬送ローラー153と、記録媒体Pに印刷する記録ヘッド151と、を備える、プリンター1の制御方法であって、記録ヘッド151が消費する電流量である第1電流量QAを算出する第1算出ステップと、駆動モーター152が消費する電流量である第2電流量QBを算出する第2算出ステップと、第1電流量QA、及び第2電流量QBを加算して、加算電流量QTを算出する加算ステップと、加算電流量QTに基づいて、記録媒体Pの搬送速度Vを制御する搬送制御ステップと、を含む。 The control method for the printer 1 according to this embodiment is a method for controlling the printer 1, which includes a drive motor 152, a transport roller 153 driven by the drive motor 152 to transport the recording medium P, and a recording head 151 that prints on the recording medium P, and includes a first calculation step of calculating a first current amount QA, which is the amount of current consumed by the recording head 151, a second calculation step of calculating a second current amount QB, which is the amount of current consumed by the drive motor 152, an addition step of adding the first current amount QA and the second current amount QB to calculate a total current amount QT, and a transport control step of controlling the transport speed V of the recording medium P based on the total current amount QT.

本実施形態に係るプリンター1の制御方法は、本実施形態に係るプリンター1と同様の作用効果を奏する。 The control method for the printer 1 according to this embodiment achieves the same effects as the printer 1 according to this embodiment.

本実施形態は、一態様を示すものであり趣旨に逸脱しない範囲内で任意に変形および応用が可能である。 This embodiment shows one aspect and can be modified and adapted as desired without departing from the spirit and scope of the invention.

本実施形態では、「印刷装置」がプリンター1である場合について説明するが、これに限定されない。「印刷装置」が、例えば、コピー機であってもよい。また、「印刷装置」が、例えば、いわゆる、複合機であってもよい。 In this embodiment, the "printing device" is described as a printer 1, but this is not limiting. The "printing device" may also be, for example, a copier. The "printing device" may also be, for example, a multifunction peripheral.

本実施形態では、駆動モーター152がDCモーターである場合について説明したが、実施形態はこれに限定されない。駆動モーター152がACモーターであってもよい。 In this embodiment, the drive motor 152 is a DC motor, but the embodiment is not limited to this. The drive motor 152 may also be an AC motor.

本実施形態では、記録ヘッド151がサーマルヘッドである場合について説明したが、実施形態はこれに限定されない。記録ヘッド151が、例えば、インクを吐出するヘッドであってもよい。 In this embodiment, the recording head 151 is described as a thermal head, but the embodiment is not limited to this. The recording head 151 may also be, for example, a head that ejects ink.

本実施形態では、「接続端子」がUSB(登録商標)端子である場合について説明したが、実施形態はこれに限定されない。「接続端子」の一部、あるいは全てが、例えば、シリアル端子であってもよい。この場合には、シリアルケーブルを介して、周辺機器2に対して電力を供給する。 In this embodiment, the "connection terminal" is described as a USB (registered trademark) terminal, but the embodiment is not limited to this. Some or all of the "connection terminals" may be, for example, serial terminals. In this case, power is supplied to the peripheral device 2 via a serial cable.

本実施形態では、プリンター1が備えるプロセッサー11Aがメモリー11Bに記憶された制御プログラムPGを実行する場合について説明するが、実施形態は、これに限定されない。制御プログラムPGを、コンピューターで読み取り可能に記録した記録媒体、或いは、制御プログラムPGを伝送する伝送媒体の態様で構成することも可能である。
上記記録媒体は、磁気的、光学的記録媒体又は半導体メモリーデバイスを用いることができる。記録媒体には、フレキシブルディスク、HDD、CD-ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、Blu-ray(登録商標)Disc、光磁気ディスク、フラッシュメモリー、カード型記録媒体等の可搬型の、或いは固定式の記録媒体が挙げられる。
上記記録媒体は、プリンター1が備える内部記憶装置であるRAM、ROM、HDD等の不揮発性記憶装置でもよい。
In this embodiment, a case is described in which the processor 11A of the printer 1 executes the control program PG stored in the memory 11B, but the embodiment is not limited to this. The control program PG can also be configured as a recording medium on which it is recorded so as to be readable by a computer, or as a transmission medium for transmitting the control program PG.
The recording medium may be a magnetic or optical recording medium or a semiconductor memory device, and examples of the recording medium include portable or fixed recording media such as a flexible disk, HDD, CD-ROM (Compact Disk Read Only Memory), DVD (Digital Versatile Disk), Blu-ray (registered trademark) Disc, magneto-optical disk, flash memory, and card-type recording medium.
The recording medium may be a non-volatile storage device such as a RAM, ROM, or HDD that is an internal storage device provided in the printer 1.

プリンター1の制御部11の機能は、1又は複数のプロセッサー、又は、半導体チップにより実現してもよい。制御部11が、SoC(System―on―a―Chip)やMCU(Micro Control Unit)、FPGA等の副処理装置(co―processor)を更に備える構成であってもよい。制御部11は、CPU及び副処理装置の双方を協働させるか、あるいは双方のうちの一方を選択的に用いて各種の制御を行ってもよい。 The functions of the printer 1's control unit 11 may be realized by one or more processors or semiconductor chips. The control unit 11 may also be configured to include a co-processor such as a SoC (System-on-a-Chip), MCU (Micro Control Unit), or FPGA. The control unit 11 may perform various controls by using both the CPU and the co-processor in cooperation with each other, or by selectively using one of the two.

図4のフローチャートの処理単位は、プリンター1の制御部11の処理を理解容易にするために、主な処理内容に応じて分割したものであり、処理単位の分割の仕方や名称によって、限定されることはない。フローチャートの処理単位は、処理内容に応じて、更に多くの処理単位に分割してもよい。1つの処理単位が更に多くの処理を含むように分割してもよい。処理の順番は、趣旨に支障のない範囲で適宜に入れ換えてもよい。 The processing units in the flowchart in Figure 4 are divided according to the main processing content to make it easier to understand the processing of the printer 1's control unit 11, and there are no limitations on how the processing units are divided or their names. The processing units in the flowchart may be divided into more processing units depending on the processing content. One processing unit may also be divided so that it includes more processes. The order of the processing may be changed as appropriate as long as it does not interfere with the intent.

図1に示した各機能部は機能的構成を示すものであって、具体的な実装形態は特に限定されない。必ずしも各機能部に個別に対応するハードウェアが実装される必要はなく、一つのプロセッサーがプログラムを実行することで複数の機能部の機能を実現する構成とすることも可能である。上述した実施形態においてソフトウェアで実現される機能の一部は、ハードウェアとしてもよく、或いは、ハードウェアで実現される機能の一部をソフトウェアでもよい。その他、プリンター1の他の各部の具体的な細部構成も、趣旨を逸脱しない範囲で任意に変更可能である。 The functional units shown in Figure 1 indicate functional configurations, and the specific implementation form is not particularly limited. It is not necessary to implement hardware that corresponds to each functional unit individually; it is also possible to configure a single processor to execute a program to realize the functions of multiple functional units. Some of the functions realized by software in the above-described embodiments may be implemented as hardware, or some of the functions realized by hardware may be implemented as software. In addition, the specific detailed configurations of the other units of the printer 1 may also be changed as desired without departing from the spirit of the invention.

1…プリンター(印刷装置)、11…制御部、11A…プロセッサー、11B…メモリー、111…第1算出部、112…第2算出部、113…加算部、114…速度決定部、115…速度制御部(搬送速度制御部)、116…印刷データ記憶部、117…テーブル記憶部、14…電力供給機構、141…第1USB端子(接続端子)、142…第2USB端子(接続端子)、143…第3USB端子(接続端子)、144…第4USB端子(接続端子)、15…印刷機構、151…記録ヘッド、152…駆動モーター、153…搬送ローラー、2…周辺機器、21…第1周辺機器、22…第2周辺機器、23…第3周辺機器、24…第4周辺機器、AS…周辺電流値、DP…印刷データ、NP…所定数、P…記録媒体、PG…制御プログラム、QA…第1電流量、QB…第2電流量、QT…加算電流量、SA…電流センサー、TBL1…第1テーブル、TBL2…第2テーブル、TH1、TH2、TH3、THA…消費電流量閾値、V…搬送速度、VT…目標速度。 1...Printer (printing device), 11...Control unit, 11A...Processor, 11B...Memory, 111...First calculation unit, 112...Second calculation unit, 113...Adder, 114...Speed determination unit, 115...Speed control unit (conveying speed control unit), 116...Print data storage unit, 117...Table storage unit, 14...Power supply mechanism, 141...First USB terminal (connection terminal), 142...Second USB terminal (connection terminal), 143...Third USB terminal (connection terminal), 144...Fourth USB terminal (connection terminal), 15...Printing mechanism, 151... Recording head, 152...drive motor, 153...transport roller, 2...peripheral device, 21...first peripheral device, 22...second peripheral device, 23...third peripheral device, 24...fourth peripheral device, AS...peripheral current value, DP...print data, NP...predetermined number, P...recording medium, PG...control program, QA...first current amount, QB...second current amount, QT...additional current amount, SA...current sensor, TBL1...first table, TBL2...second table, TH1, TH2, TH3, THA...current consumption threshold, V...transport speed, VT...target speed.

Claims (9)

駆動モーターと、
前記駆動モーターによって駆動され、記録媒体を搬送する搬送ローラーと、
前記記録媒体に印刷する記録ヘッドと、
前記記録ヘッドが消費する電流量である第1電流量を算出する第1算出部と、
前記駆動モーターが消費する電流量である第2電流量を算出する第2算出部と、
前記第1電流量、及び第2電流量を加算して、加算電流量を算出する加算部と、
前記加算電流量に基づいて、前記記録媒体の搬送速度を制御する搬送速度制御部と、
を備える、印刷装置。
A drive motor;
a transport roller driven by the drive motor to transport a recording medium;
a recording head for printing on the recording medium;
a first calculation unit that calculates a first current amount that is a current amount consumed by the recording head;
a second calculation unit that calculates a second current amount that is the amount of current consumed by the drive motor;
an adder that adds the first current amount and the second current amount to calculate a sum current amount;
a conveyance speed control unit that controls a conveyance speed of the recording medium based on the added current amount;
A printing device comprising:
前記記録ヘッドは、サーマルヘッドであり、
前記第1算出部は、印刷データに基づき、前記第1電流量を算出する、
請求項1に記載の印刷装置。
the recording head is a thermal head,
the first calculation unit calculates the first current amount based on print data;
The printing device of claim 1 .
複数の周辺機器に対して電力を供給可能な接続端子と、
前記接続端子に接続された前記周辺機器が消費する電流値である周辺電流値を検出する電流検出部と、
を備え、
前記搬送速度制御部は、前記加算電流量、及び前記周辺電流値に基づいて、前記搬送速度を制御する、
請求項1に記載の印刷装置。
a connection terminal capable of supplying power to a plurality of peripheral devices;
a current detection unit that detects a peripheral current value that is a current value consumed by the peripheral device connected to the connection terminal;
Equipped with
the conveying speed control unit controls the conveying speed based on the added current amount and the peripheral current value.
The printing device of claim 1 .
前記電流検出部は、電流センサーである、
請求項3に記載の印刷装置。
The current detection unit is a current sensor.
The printing device according to claim 3 .
前記加算電流量と前記搬送速度とを対応付けて記憶する複数のテーブルを記憶するテーブル記憶部と、
前記周辺電流値に基づいて、前記複数のテーブルの中から1つのテーブルを選択し、前記1つのテーブルを参照して、前記加算電流量に対応する搬送速度に、前記搬送速度の目標値である目標速度を決定する速度決定部を備え、
前記搬送速度制御部は、前記速度決定部が決定した目標速度に、前記搬送速度を制御する、
請求項3に記載の印刷装置。
a table storage unit that stores a plurality of tables that store the added current amount and the conveying speed in association with each other;
a speed determination unit that selects one table from the plurality of tables based on the peripheral current value, and determines a target speed, which is a target value of the conveying speed, as a conveying speed corresponding to the added current amount by referring to the one table;
the conveying speed control unit controls the conveying speed to the target speed determined by the speed determination unit.
The printing device according to claim 3 .
前記駆動モーターは、直流モーターであり、
前記搬送速度制御部は、前記駆動モーターをPWM制御することによって、前記搬送速度を制御し、
前記第2算出部は、前記駆動モーターへの印加電圧値と、前記PWM制御のオン時間と、前記駆動モーターの回転速度と、印刷データの1ラインに対応する前記記録媒体の搬送量を前記搬送ローラーが搬送する時間である搬送時間と、に基づき、前記第2電流量を算出する、
請求項1から請求項5のいずれか1項に記載の印刷装置。
The drive motor is a DC motor,
the conveying speed control unit controls the conveying speed by PWM control of the drive motor,
the second calculation unit calculates the second current amount based on a voltage value applied to the drive motor, an on-time of the PWM control, a rotation speed of the drive motor, and a transport time that is a time required for the transport roller to transport the recording medium a transport amount corresponding to one line of print data;
The printing device according to any one of claims 1 to 5.
前記第2算出部は、前記印刷データの所定数のラインについて、前記第2電流量の平均値を算出し、
前記加算部は、前記第1電流量と、前記第2電流量の平均値とを加算して前記加算電流量を算出する、
請求項6に記載の印刷装置。
the second calculation unit calculates an average value of the second current amount for a predetermined number of lines of the print data,
the adder calculates the added current amount by adding the first current amount and an average value of the second current amount.
The printing device according to claim 6.
前記第2算出部は、前記所定数を、前記搬送速度に応じて決定する、
請求項7に記載の印刷装置。
The second calculation unit determines the predetermined number in accordance with the conveying speed.
The printing device according to claim 7.
駆動モーターと、
前記駆動モーターによって駆動され、記録媒体を搬送する搬送ローラーと、
前記記録媒体に印刷する記録ヘッドと、
を備える、印刷装置の制御方法であって、
前記記録ヘッドが消費する電流量である第1電流量を算出する第1算出ステップと、
前記駆動モーターが消費する電流量である第2電流量を算出する第2算出ステップと、
前記第1電流量、及び第2電流量を加算して、加算電流量を算出する加算ステップと、
前記加算電流量に基づいて、前記記録媒体の搬送速度を制御する搬送制御ステップと、
を含む、印刷装置の制御方法。
A drive motor;
a transport roller driven by the drive motor to transport a recording medium;
a recording head for printing on the recording medium;
A method for controlling a printing device, comprising:
a first calculation step of calculating a first current amount that is a current amount consumed by the recording head;
a second calculation step of calculating a second current amount that is the current amount consumed by the drive motor;
an addition step of adding the first current amount and the second current amount to calculate a total current amount;
a conveyance control step of controlling a conveyance speed of the recording medium based on the added current amount;
A method for controlling a printing device, comprising:
JP2024053396A 2024-03-28 2024-03-28 Printing device and method for controlling printing device Pending JP2025151806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2024053396A JP2025151806A (en) 2024-03-28 2024-03-28 Printing device and method for controlling printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2024053396A JP2025151806A (en) 2024-03-28 2024-03-28 Printing device and method for controlling printing device

Publications (1)

Publication Number Publication Date
JP2025151806A true JP2025151806A (en) 2025-10-09

Family

ID=97299734

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2024053396A Pending JP2025151806A (en) 2024-03-28 2024-03-28 Printing device and method for controlling printing device

Country Status (1)

Country Link
JP (1) JP2025151806A (en)

Similar Documents

Publication Publication Date Title
CN105291600B (en) The control method of printing equipment and printing equipment
US8456498B2 (en) Printing apparatus
JP2025151806A (en) Printing device and method for controlling printing device
US10507669B2 (en) Printer
JP2012141547A (en) Image forming apparatus
JP2018052105A (en) Printing apparatus, printing method, and program
JP7163728B2 (en) printer
US20260008287A1 (en) Printing apparatus and control method for printing apparatus
JP4317360B2 (en) Thermal printer
JP4921650B2 (en) Thermal printer
US10427418B2 (en) Head drive device, thermal printer, and method of controlling a head drive device
JP2004209739A (en) Thermal printer
JP4001520B2 (en) Method for determining the remaining battery level of battery-powered equipment
JP5919209B2 (en) Printing device and program
JP4735957B2 (en) Image forming apparatus
JP7135688B2 (en) PRINTING DEVICE, CONTROL METHOD, AND PROGRAM
JP2006096480A (en) Paper feeder and controlling method of stepping motor for paper feeder
JPH05246070A (en) Thermal line printer
JP2005007650A (en) Printer and control method thereof
JP4028731B2 (en) Print head energization control method and line printer using the same
JP2004025632A (en) Thermal head controller and printer
JP2002292946A (en) Thermal printer
JP2024146550A (en) Recording device
JP2003226032A (en) Line printer
JP2001039573A (en) Recording medium transport device and image recording device