JP2021007296A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2021007296A
JP2021007296A JP2020170875A JP2020170875A JP2021007296A JP 2021007296 A JP2021007296 A JP 2021007296A JP 2020170875 A JP2020170875 A JP 2020170875A JP 2020170875 A JP2020170875 A JP 2020170875A JP 2021007296 A JP2021007296 A JP 2021007296A
Authority
JP
Japan
Prior art keywords
stepping motor
mcu
acceleration
phase
pointer
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.)
Granted
Application number
JP2020170875A
Other languages
Japanese (ja)
Other versions
JP7007442B2 (en
Inventor
寛之 片岡
Hiroyuki Kataoka
寛之 片岡
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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
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 Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2020170875A priority Critical patent/JP7007442B2/en
Publication of JP2021007296A publication Critical patent/JP2021007296A/en
Application granted granted Critical
Publication of JP7007442B2 publication Critical patent/JP7007442B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

To provide a printer which can improve print quality.SOLUTION: A thermal printer 1 includes an MCU 24 which controls a value of an acceleration pointer 45 and decreases conveyance residual quantity by one whenever allowing a stepping motor 30 to perform one-step operation, starts deceleration in the stepping motor 30 when a sum of the conveyance residual quantity and a value of a stop rate pointer 46 (set as an acceleration step corresponding to a stop rate without generation of a non-printing part) is the value of the acceleration pointer 45 or less, and stops the stepping motor 30 if the conveyance residual quantity becomes 0.SELECTED DRAWING: Figure 6

Description

本発明は、プリンタに関する。 The present invention relates to a printer.

従来より、ステッピングモータを用いたプリンタが知られている(例えば、特許文献1参照)。 Conventionally, a printer using a stepping motor has been known (see, for example, Patent Document 1).

プリンタでは、一般に、用紙搬送にステッピングモータが使用される。高速で用紙を搬送する場合には、図1に示すように、搬送開始時にステッピングモータを起動速度から目標速度まで加速し、ステッピングモータの停止前にステッピングモータを起動速度にまで減速する台形制御が用いられる。なお、用紙の搬送量及びステッピングモータの駆動量は、図1の網掛部の面積である。 In printers, stepping motors are generally used to convey paper. When transporting paper at high speed, as shown in FIG. 1, trapezoidal control that accelerates the stepping motor from the starting speed to the target speed at the start of transport and decelerates the stepping motor to the starting speed before the stepping motor stops. Used. The amount of paper conveyed and the amount of driving of the stepping motor are the areas of the shaded areas in FIG.

また、目標速度が上がると加減速時間も増加する傾向にあるため、図2に実線で示すように、ステッピングモータの停止時に、ステッピングモータを起動速度まで減速せずに急停止させることで、搬送時間を短縮している。 In addition, as the target speed increases, the acceleration / deceleration time also tends to increase. Therefore, as shown by the solid line in FIG. 2, when the stepping motor is stopped, the stepping motor is suddenly stopped without decelerating to the starting speed to convey the vehicle. I'm saving time.

特開平6−133597号公報JP-A-6-133597

ステッピングモータの慣性が大きくない場合には急停止させる制御を行っても問題とはならないが、ステッピングモータの高速化に伴いステッピングモータの慣性が大きくなると、図3に示すように、ステッピングモータの急停止時にオーバーランが発生する。この時、ステッピングモータはオーバーラン後に振動が減衰して目的の位置(図3図示下側の点線位置)で停止する。しかしながら、ステッピングモータにギアを介して接続されているプラテンローラにより搬送される用紙は、ギアのバックラッシュの影響で目標の位置まで戻らない。このため、次に印字した場合に、ステッピングモータ停止前の印字位置と次の印字位置との間に印字されない部分(いわゆる白スジ)が発生して、印字品質が低下していた。 If the inertia of the stepping motor is not large, there is no problem even if the control is performed to stop the stepping motor suddenly. However, if the inertia of the stepping motor increases as the speed of the stepping motor increases, the stepping motor suddenly stops as shown in FIG. Overrun occurs when stopped. At this time, the stepping motor is stopped at a target position (dotted line position on the lower side in FIG. 3) after the vibration is attenuated after overrun. However, the paper conveyed by the platen roller connected to the stepping motor via the gear does not return to the target position due to the backlash of the gear. Therefore, in the next printing, a non-printing portion (so-called white streak) occurs between the printing position before the stepping motor is stopped and the next printing position, and the print quality is deteriorated.

本発明は、印字品質を向上させることができるプリンタを提供することを目的とする。 An object of the present invention is to provide a printer capable of improving print quality.

上記目的を達成するため、明細書に開示されたプリンタは、用紙を搬送すると共に、第1の相と第2の相とが交互に励磁されるステッピングモータと、前記ステッピングモータの停止直前の相が前記第1の相、または第2の相のどちらか一方である場合には、前記ステッピングモータの停止直前の相よりも1つ前のタイミングで励磁される前記第1の相、および第2の相の両方を励磁して前記ステッピングモータの回転駆動を停止させる制御手段とを備えることを特徴とする。 In order to achieve the above object, the printer disclosed in the specification is a stepping motor in which a first phase and a second phase are alternately excited while conveying paper, and a phase immediately before the stop of the stepping motor. When is either the first phase or the second phase, the first phase and the second phase are excited at a timing one before the phase immediately before the stop of the stepping motor. It is characterized by comprising a control means for exciting both of the phases of the stepping motor to stop the rotational drive of the stepping motor.

本発明によれば、印字品質を向上させることができる。 According to the present invention, the print quality can be improved.

一般的なステッピングモータの加減速制御を示す図である。It is a figure which shows the acceleration / deceleration control of a general stepping motor. ステッピングモータの停止時にステッピングモータの回転を急停止させるステッピングモータの加減速制御を示す図である。It is a figure which shows the acceleration / deceleration control of a stepping motor which suddenly stops the rotation of a stepping motor when the stepping motor is stopped. 急停止時のステッピングモータ及び用紙の停止位置の関係を示す図である。It is a figure which shows the relationship between the stepping motor and the stop position of a paper at the time of a sudden stop. 第1の実施の形態に係るサーマルプリンタの概略構成図である。It is a schematic block diagram of the thermal printer which concerns on 1st Embodiment. ROMに格納された加速テーブルの一例を示す図である。It is a figure which shows an example of the acceleration table stored in ROM. ステッピングモータの加減速制御を示す図である。It is a figure which shows the acceleration / deceleration control of a stepping motor. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU. (A)は、ステッピングモータを1−2相励磁で駆動した場合の従来のモータ駆動のタイミングチャートである。(B)は、ステッピングモータを1−2相励磁で駆動した場合の第2の実施の形態に係るモータ駆動のタイミングチャートである。(A) is a conventional motor drive timing chart when the stepping motor is driven by 1-2 phase excitation. (B) is a timing chart of motor drive according to the second embodiment when the stepping motor is driven by 1-2 phase excitation. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU. (A)は、従来のモータ駆動及びヘッド通電を示すタイミングチャートである。(B)は、第3の実施の形態に係るモータ駆動及びヘッド通電を示すタイミングチャートである。(A) is a timing chart showing the conventional motor drive and head energization. (B) is a timing chart showing the motor drive and the head energization according to the third embodiment. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU. (A)及び(B)は、第4の実施の形態に係るモータ駆動及びヘッド通電を示すタイミングチャートである。(A) and (B) are timing charts showing the motor drive and the head energization according to the fourth embodiment. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU. 第5の実施の形態に係るモータ駆動及びヘッド通電を示すタイミングチャートである。It is a timing chart which shows the motor drive and the head energization which concerns on 5th Embodiment. MCUによって実行されるステッピングモータの制御処理を示すフローチャートである。It is a flowchart which shows the control process of a stepping motor executed by an MCU.

以下、図面を参照しながら本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施の形態)
図4は、第1の実施の形態に係るサーマルプリンタの概略構成図である。
(First Embodiment)
FIG. 4 is a schematic configuration diagram of the thermal printer according to the first embodiment.

図4において、サーマルプリンタ1は、サーマルプリンタ1の動作を制御する制御部2と、印刷を実行するプリンタ部3とを備えている。制御部2は、モータドライバ21、電源22、分圧回路23及びMCU(Micro Controller Unit)24を備えている。プリンタ部3は、ステッピングモータ30、サーマルヘッド31−34、ラッチレジスタ35、シフトレジスタ36、サーミスタ37、フォトセンサ38及びカバーオープン検出センサ39を備えている。MCU24は、算出手段、制御手段及び検出手段として機能する。 In FIG. 4, the thermal printer 1 includes a control unit 2 that controls the operation of the thermal printer 1 and a printer unit 3 that executes printing. The control unit 2 includes a motor driver 21, a power supply 22, a voltage dividing circuit 23, and an MCU (Micro Controller Unit) 24. The printer unit 3 includes a stepping motor 30, a thermal head 31-34, a latch register 35, a shift register 36, a thermistor 37, a photo sensor 38, and a cover open detection sensor 39. The MCU 24 functions as a calculation means, a control means, and a detection means.

モータドライバ21は、ステッピングモータ30の動作を制御する。電源22は、モータドライバ21、分圧回路23及びサーマルヘッド31−34に電圧を供給する。分圧回路23は、電源22からの電圧を分圧しMCU24に供給する。 The motor driver 21 controls the operation of the stepping motor 30. The power supply 22 supplies a voltage to the motor driver 21, the voltage dividing circuit 23, and the thermal head 31-34. The voltage dividing circuit 23 divides the voltage from the power supply 22 and supplies it to the MCU 24.

MCU24は、加速テーブル、プログラムコード及びフォントデータを格納するROM25と、一時的なグラフィックデータや設定を保存するRAM26とを内蔵している。また、MCU24は、分圧回路23から出力される電圧に応じて、サーマルヘッド31−34へ印加する電流を調整する。MCU24は、電源22の電源容量の情報を保持し、サーマルヘッド31−34の消費電流を検出する。 The MCU 24 has a built-in ROM 25 for storing an acceleration table, a program code, and font data, and a RAM 26 for storing temporary graphic data and settings. Further, the MCU 24 adjusts the current applied to the thermal heads 31-34 according to the voltage output from the voltage dividing circuit 23. The MCU 24 holds information on the power supply capacity of the power supply 22 and detects the current consumption of the thermal heads 31-34.

ステッピングモータ30は、不図示のプラテンローラにギアを介して接続され、プラテンローラを回転させて用紙を搬送する。ステッピングモータ30は、例えば、1−2相励磁で駆動する2相ステッピングモータである。 The stepping motor 30 is connected to a platen roller (not shown) via a gear, and rotates the platen roller to convey paper. The stepping motor 30 is, for example, a two-phase stepping motor driven by 1-2 phase excitation.

サーマルヘッド31−34は一列に並んで配置されており、各サーマルヘッドは一列に並んだ144個の発熱体を含む。従って、サーマルヘッド31−34では、計576個の発熱体が一列に配置されている。 The thermal heads 31-34 are arranged in a row, and each thermal head contains 144 heating elements in a row. Therefore, in the thermal heads 31-34, a total of 576 heating elements are arranged in a row.

シフトレジスタ36及びラッチレジスタ35は、発熱体と同数、即ち576ビットのデータを保持する。シフトレジスタ36及びラッチレジスタ35が保持するデータの各ビットは、対応する各発熱体のオン/オフを示す。サーミスタ37は、サーマルヘッド31−34の温度を検出する。フォトセンサ38は、用紙の状態を検出する。カバーオープン検出センサ39はプリンタ部3を覆うカバーの開閉状態を検出する。 The shift register 36 and the latch register 35 hold the same number of data as the heating elements, that is, 576 bits of data. Each bit of data held by the shift register 36 and the latch register 35 indicates on / off of each corresponding heating element. The thermistor 37 detects the temperature of the thermal heads 31-34. The photo sensor 38 detects the state of the paper. The cover open detection sensor 39 detects the open / closed state of the cover covering the printer unit 3.

文字コードなどの印刷データがコンピュータ10からプリンタ1に送信されると、MCU24はROM25から文字コードに対応するグラフィックデータ(フォントデータ)を読出し、RAM26へ保存する。 When print data such as a character code is transmitted from the computer 10 to the printer 1, the MCU 24 reads graphic data (font data) corresponding to the character code from the ROM 25 and saves it in the RAM 26.

コンピュータ10が一行分の印刷データ送信後に改行コードなどの印刷開始データをプリンタ1に送信すると、MCU24はRAM26へ保存した一行分のグラフィックデータを1ラインずつプリンタ部3へ送信し、印刷を実行する。 When the computer 10 transmits print start data such as a line feed code to the printer 1 after transmitting the print data for one line, the MCU 24 transmits the graphic data for one line stored in the RAM 26 line by line to the printer unit 3 to execute printing. ..

まず、MCU24は、1ライン分のグラフィックデータをクロック同期通信S1でシフトレジスタ36へ転送し、転送完了後にラッチ信号S2によりシフトレジスタ36のデータをラッチレジスタ35へ保存する。 First, the MCU 24 transfers the graphic data for one line to the shift register 36 by the clock synchronization communication S1, and after the transfer is completed, saves the data of the shift register 36 in the latch register 35 by the latch signal S2.

次に、MCU24は、モータドライバ21を介して駆動制御信号S3をステッピングモータ30に出力し、ステッピングモータ30を1ライン分駆動させると共に、発熱体オン信号S4−S7をサーマルヘッド31−34にそれぞれ出力する。これにより、各発熱体が通電され、印刷が実行される。尚、発熱体に対応する発熱体オン信号及び発熱体に対応するラッチレジスタ35上のデータがともにオンの場合に、当該発熱体が通電する。 Next, the MCU 24 outputs the drive control signal S3 to the stepping motor 30 via the motor driver 21, drives the stepping motor 30 for one line, and sends the heating element on signal S4-S7 to the thermal heads 31-34, respectively. Output. As a result, each heating element is energized and printing is executed. When both the heating element on signal corresponding to the heating element and the data on the latch register 35 corresponding to the heating element are on, the heating element is energized.

シフトレジスタ36へのグラフィックデータの転送、サーマルヘッド31−34への通電、及びステッピングモータ30の駆動を一行分の印刷データに対応するライン数分繰り返すことで、サーマルプリンタ1は一行の印刷を行う。 The thermal printer 1 prints one line by repeating the transfer of graphic data to the shift register 36, the energization of the thermal heads 31-34, and the driving of the stepping motor 30 for the number of lines corresponding to the print data for one line. ..

図5は、ROM25に格納された加速テーブルの一例を示す図である。図5に示すように、ROM25に格納された加速テーブルには、加速ステップ41、駆動周波数42、加速ステップ時間43及び回転速度44が含まれている。 FIG. 5 is a diagram showing an example of an acceleration table stored in the ROM 25. As shown in FIG. 5, the acceleration table stored in the ROM 25 includes an acceleration step 41, a drive frequency 42, an acceleration step time 43, and a rotation speed 44.

加速ステップ41は、ステッピングモータ30を順次加速又は減速していくときのステップ数を表している。駆動周波数42は、各加速ステップにおいてMCU24からステッピングモータ30に出力される駆動制御信号S3の周波数を表している。加速ステップ時間43は、各加速ステップにおいて駆動制御信号S3をステッピングモータ30に出力する時間を表している。回転速度44は、各加速ステップ41におけるステッピングモータ30の回転速度を表している。尚、加速ステップ時間43は駆動周波数42と反比例関係にあり(ステップ時間=1/駆動周波数)、回転速度44は駆動周波数42と比例関係にあるため(回転速度=ステップ角度/360°×駆動周波数×60)、MCU24は加速ステップ時間43及び回転速度44から駆動周波数42を算出することができ、さらに、駆動周波数42から加速ステップ時間43及び回転速度44を算出することもできる。従って、加速テーブルは、駆動周波数42と、加速ステップ時間43・回転速度44とのいずれか一方のみを備えてもよい。加速ステップ41の値が増加すると、駆動周波数42及び回転速度44の値は増加し、加速ステップ時間43の値は減少する。 The acceleration step 41 represents the number of steps when the stepping motor 30 is sequentially accelerated or decelerated. The drive frequency 42 represents the frequency of the drive control signal S3 output from the MCU 24 to the stepping motor 30 in each acceleration step. The acceleration step time 43 represents the time for outputting the drive control signal S3 to the stepping motor 30 in each acceleration step. The rotation speed 44 represents the rotation speed of the stepping motor 30 in each acceleration step 41. Since the acceleration step time 43 is inversely proportional to the drive frequency 42 (step time = 1 / drive frequency) and the rotation speed 44 is proportional to the drive frequency 42 (rotation speed = step angle / 360 ° × drive frequency). × 60), the MCU 24 can calculate the drive frequency 42 from the acceleration step time 43 and the rotation speed 44, and can also calculate the acceleration step time 43 and the rotation speed 44 from the drive frequency 42. Therefore, the acceleration table may include only one of the drive frequency 42 and the acceleration step time 43 and the rotation speed 44. As the value of the acceleration step 41 increases, the values of the drive frequency 42 and the rotation speed 44 increase, and the value of the acceleration step time 43 decreases.

MCU24は、モータドライバ21を介して、駆動周波数42の値に対応する周波数を有する駆動制御信号S3を、加速ステップ時間43の値に対応する時間だけステッピングモータ30に出力する。これにより、各加速ステップにおいて、ステッピングモータ30は、加速ステップ時間43に記録された時間だけ、駆動制御信号S3の駆動周波数42に同期した速度、即ち、回転速度44で回転する。 The MCU 24 outputs a drive control signal S3 having a frequency corresponding to the value of the drive frequency 42 to the stepping motor 30 for a time corresponding to the value of the acceleration step time 43 via the motor driver 21. As a result, in each acceleration step, the stepping motor 30 rotates at a speed synchronized with the drive frequency 42 of the drive control signal S3, that is, a rotation speed 44, for the time recorded in the acceleration step time 43.

加速ポインタ45は現在の加速ステップを示し、MCU24が保持している。ステッピングモータ30の加速時には、MCU24の制御により加速ポインタ45が図5図示の下方に段階的に移動し、加速ポインタ45が示す加速ステップ41の値が増加する。ステッピングモータ30の減速時には、MCU24の制御により加速ポインタ45が図5図示上方に段階的に移動し、加速ポインタ45の示す加速ステップ41の値が減少する。 The acceleration pointer 45 indicates the current acceleration step and is held by the MCU 24. When accelerating the stepping motor 30, the acceleration pointer 45 moves stepwise downward in FIG. 5 under the control of the MCU 24, and the value of the acceleration step 41 indicated by the acceleration pointer 45 increases. When the stepping motor 30 is decelerated, the acceleration pointer 45 moves stepwise in the upper part of FIG. 5 under the control of the MCU 24, and the value of the acceleration step 41 indicated by the acceleration pointer 45 decreases.

停止速度ポインタ46は、ステッピングモータ30が急停止しても白スジを発生させない加速ステップの最大値、つまり非印字部分を発生させない停止速度を示し、MCU24が保持している。ステッピングモータの停止速度はあらかじめ求めておく。停止速度ポインタ46は、サーマルプリンタ1の不図示のボタンやスイッチ、又はコンピュータ10によって設定することができる。図5の例では、停止速度ポインタ46は、加速ステップ「q」に設定されている。停止速度ポインタ46は、加速ステップ41の最小値「1」(起動速度)と加速ステップ41の最大値「r」(目標速度)との間に設定される。 The stop speed pointer 46 indicates the maximum value of the acceleration step that does not generate white streaks even if the stepping motor 30 suddenly stops, that is, the stop speed that does not generate a non-printed portion, and is held by the MCU 24. The stop speed of the stepping motor is obtained in advance. The stop speed pointer 46 can be set by a button or switch (not shown) of the thermal printer 1 or a computer 10. In the example of FIG. 5, the stop speed pointer 46 is set to the acceleration step “q”. The stop speed pointer 46 is set between the minimum value "1" (starting speed) of the acceleration step 41 and the maximum value "r" (target speed) of the acceleration step 41.

図6は、ステッピングモータの加減速制御を示す図である。 FIG. 6 is a diagram showing acceleration / deceleration control of the stepping motor.

MCU24は、印刷開始時に、コンピュータ10から受信した印刷データ内のライン数を表す改行量と、1ラインの搬送に必要なモータステップ数を表すモータ分解能とに基づいて、必要な用紙の搬送残量を算出する。具体的には、搬送残量は、改行量とモータ分解能との乗算によって算出される。 The MCU 24 requires the remaining amount of paper to be conveyed based on the amount of line breaks indicating the number of lines in the print data received from the computer 10 at the start of printing and the motor resolution indicating the number of motor steps required to transfer one line. Is calculated. Specifically, the remaining amount of transport is calculated by multiplying the line feed amount and the motor resolution.

図6に示すように、ステッピングモータ30の制御期間には、ステッピングモータ30が目標速度Crまで加速していく加速域の期間と、ステッピングモータ30が一定速度Crで駆動される定速域の期間と、ステッピングモータ30が停止速度Cqまで減速していく減速域の期間とがある。 As shown in FIG. 6, the control period of the stepping motor 30 includes a period in the acceleration range in which the stepping motor 30 accelerates to the target speed Cr and a period in the constant speed range in which the stepping motor 30 is driven at a constant speed Cr. There is also a period of the deceleration range in which the stepping motor 30 decelerates to the stop speed Cq.

加速域の第1ステップでは、MCU24は、加速テーブル内の加速ステップ1に記録された駆動周波数A1を有する駆動制御信号S3を、加速ステップ時間B1だけステッピングモータ30に出力する。MCU24は、ステッピングモータ30を1ステップ駆動する度に、加速ポインタ45を1つ下に移動して加速ステップ41の値を1増加し、搬送残量を1減少する。 In the first step of the acceleration region, the MCU 24 outputs the drive control signal S3 having the drive frequency A1 recorded in the acceleration step 1 in the acceleration table to the stepping motor 30 for the acceleration step time B1. Each time the stepping motor 30 is driven by one step, the MCU 24 moves the acceleration pointer 45 down by one to increase the value of the acceleration step 41 by one and decrease the remaining amount of transportation by one.

以降、MCU24は同様に、加速テーブル内の各加速ステップに記録された駆動周波数を有する駆動制御信号S3を、対応する加速ステップ時間だけ、順次ステッピングモータ30に出力する。これより、ステッピングモータ30は、駆動制御信号S3に基づいて目標速度Crまで順次加速される。ステッピングモータ30の回転速度が目標速度Crになると、加速ポインタ45は図5の加速ステップ「r」に設定される。また、加速域、定速域及び減速域の各期間において、MCU24は、駆動制御信号S3をステッピングモータ30に出力するとき、ステッピングモータ30の駆動にあわせて印字処理を行う。 After that, the MCU 24 similarly outputs the drive control signal S3 having the drive frequency recorded in each acceleration step in the acceleration table to the stepping motor 30 sequentially for the corresponding acceleration step time. As a result, the stepping motor 30 is sequentially accelerated to the target speed Cr based on the drive control signal S3. When the rotation speed of the stepping motor 30 reaches the target speed Cr, the acceleration pointer 45 is set to the acceleration step “r” in FIG. Further, in each period of the acceleration region, the constant speed region, and the deceleration region, when the MCU 24 outputs the drive control signal S3 to the stepping motor 30, the MCU 24 performs a printing process in accordance with the drive of the stepping motor 30.

次に、定速域の期間では、MCU24は、1ステップごとに、加速テーブル内の加速ステップ「r」に記録された駆動周波数Arを有する駆動制御信号S3を、加速ステップ時間Brだけステッピングモータ30に出力する。MCU24は、ステッピングモータ30を1ステップ駆動する度に加速ポインタ45を加速ステップ「r」に維持するとともに、搬送残量を1減少する。さらに、MCU24は、搬送残量と停止速度ポインタ46の値との加算値が加速ポインタ45の値を超えているか否かを判別する。搬送残量と停止速度ポインタ46の値との合計が加速ポインタ45の値を超えている場合には、MCU24は定速域の制御を継続する。一方、搬送残量と停止速度ポインタ46の値との合計が加速ポインタ45の値以下となった場合には、MCU24は定速域の制御を終了し、減速域の制御を開始する。 Next, during the period of the constant speed range, the MCU 24 sends the drive control signal S3 having the drive frequency Ar recorded in the acceleration step “r” in the acceleration table to the stepping motor 30 for the acceleration step time Br for each step. Output to. The MCU 24 maintains the acceleration pointer 45 in the acceleration step "r" each time the stepping motor 30 is driven by one step, and reduces the remaining amount of transportation by one. Further, the MCU 24 determines whether or not the added value of the remaining amount of transportation and the value of the stop speed pointer 46 exceeds the value of the acceleration pointer 45. When the sum of the remaining amount of transport and the value of the stop speed pointer 46 exceeds the value of the acceleration pointer 45, the MCU 24 continues to control the constant speed range. On the other hand, when the sum of the remaining amount of transport and the value of the stop speed pointer 46 is equal to or less than the value of the acceleration pointer 45, the MCU 24 ends the control of the constant speed range and starts the control of the deceleration range.

減速域の加速ステップ「r−1」では、MCU24は、加速テーブル内の加速ステップ「r−1」に記録された駆動周波数Ar−1を有する駆動制御信号S3を、加速ステップ時間Br−1だけステッピングモータ30に出力する。MCU24は、ステッピングモータ30を1ステップ駆動する度に、加速ポインタ45を1つ上に移動して加速ステップ41の値を1減少し、搬送残量を1減少する。 In the acceleration step "r-1" in the deceleration region, the MCU 24 transmits the drive control signal S3 having the drive frequency Ar-1 recorded in the acceleration step "r-1" in the acceleration table only for the acceleration step time Br-1. Output to the stepping motor 30. Each time the stepping motor 30 is driven by one step, the MCU 24 moves the acceleration pointer 45 up by one to reduce the value of the acceleration step 41 by one and reduce the remaining amount of transportation by one.

同様に、MCU24は、加速テーブル内の各加速ステップに記録された駆動周波数を有する駆動制御信号S3を、対応する加速ステップ時間だけ、順次ステッピングモータ30に出力する。これより、ステッピングモータ30は、駆動制御信号に基づいて、停止速度Cqまで順次減速される。 Similarly, the MCU 24 sequentially outputs a drive control signal S3 having a drive frequency recorded in each acceleration step in the acceleration table to the stepping motor 30 for the corresponding acceleration step time. As a result, the stepping motor 30 is sequentially decelerated to the stop speed Cq based on the drive control signal.

搬送残量が0になる、つまり加速ポインタ45の値が停止速度ポインタ46の値に一致すると、MCU24は駆動停止信号をステッピングモータ30に出力する。これより、ステッピングモータ30は急停止する。 When the remaining amount of transport becomes 0, that is, the value of the acceleration pointer 45 matches the value of the stop speed pointer 46, the MCU 24 outputs a drive stop signal to the stepping motor 30. As a result, the stepping motor 30 suddenly stops.

このように、MCU24は、ステッピングモータ30の回転速度を白スジを発生させない速度まで低下させてから、ステッピングモータ30を急停止させるので、印字品質を向上させることができる。さらに、MCU24は、ステッピングモータ30を起動速度まで減速する必要がないので、ステッピングモータ30の停止前にステッピングモータ30を起動速度まで減速する場合に比べて、用紙の搬送時間を短縮することができる。 In this way, the MCU 24 reduces the rotation speed of the stepping motor 30 to a speed at which white streaks do not occur, and then suddenly stops the stepping motor 30, so that the print quality can be improved. Further, since the MCU 24 does not need to decelerate the stepping motor 30 to the starting speed, the paper transport time can be shortened as compared with the case where the stepping motor 30 is decelerated to the starting speed before the stepping motor 30 is stopped. ..

図7は、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。 FIG. 7 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24.

MCU24は、印刷開始時に、コンピュータ10から受信した印刷データ内のライン数を表す改行量と、1ライン分の用紙搬送に必要なモータステップ数を表すモータ分解能とに基づいて、搬送残量を算出する(ステップS11)。算出された搬送残量は、モータステップ数のダウンカウント値として設定される。具体的には、搬送残量は改行量とモータ分解能との乗算によって算出される。 The MCU 24 calculates the remaining amount of transfer based on the amount of line breaks indicating the number of lines in the print data received from the computer 10 at the start of printing and the motor resolution indicating the number of motor steps required to transfer the paper for one line. (Step S11). The calculated remaining amount of transport is set as a down count value of the number of motor steps. Specifically, the remaining amount of transport is calculated by multiplying the line feed amount and the motor resolution.

MCU24は、搬送残量が0を超えているか否かを判別する(ステップS12)。搬送残量が0の場合には(ステップS12でNO)、MCU24はステッピングモータ30を停止させて本処理を終了する。一方、搬送残量が0を超えている場合には(ステップS12でYES)、MCU24はステッピングモータ30を1ステップ駆動する処理を実行し(ステップS13)、搬送残量を1減少する(ステップS14)。 The MCU 24 determines whether or not the remaining amount of transport exceeds 0 (step S12). When the remaining amount of transport is 0 (NO in step S12), the MCU 24 stops the stepping motor 30 and ends this process. On the other hand, when the remaining amount of transport exceeds 0 (YES in step S12), the MCU 24 executes a process of driving the stepping motor 30 by one step (step S13) and reduces the remaining amount of transport by one (step S14). ).

次に、MCU24は、搬送残量と停止速度ポインタ46の示す加速ステップの値との合計が加速ポインタ45の値を超えているか否かを判別する(ステップS15)。ステップS15では、ステッピングモータ30の状態が(i)加速域又は定速域であるか、若しくは(ii)減速域であるかを判断している。搬送残量と停止速度ポインタ46の値との合計が加速ポインタ45の値以下である場合には(ステップS15でNO)ステッピングモータ30が減速域であるため、MCU24は加速ポインタ45を搬送残量と停止速度ポインタ46の値との合計値に設定し(ステップS16)、ステップS19に進んでステップS16で設定した加速ポインタに対応する加速ステップ時間を取得する。なお、ステップS14で搬送残量が1減少しているため、ステップS16で設定される加速ポインタ45の値は1減る。 Next, the MCU 24 determines whether or not the sum of the remaining amount of transport and the value of the acceleration step indicated by the stop speed pointer 46 exceeds the value of the acceleration pointer 45 (step S15). In step S15, it is determined whether the state of the stepping motor 30 is (i) an acceleration region or a constant speed region, or (ii) a deceleration region. When the sum of the remaining amount of transport and the value of the stop speed pointer 46 is equal to or less than the value of the acceleration pointer 45 (NO in step S15), the stepping motor 30 is in the deceleration range, so that the MCU 24 carries the remaining amount of the acceleration pointer 45. It is set to the total value of the value of the stop speed pointer 46 and the value of the stop speed pointer 46 (step S16), and the process proceeds to step S19 to acquire the acceleration step time corresponding to the acceleration pointer set in step S16. Since the remaining amount of transport is reduced by 1 in step S14, the value of the acceleration pointer 45 set in step S16 is reduced by 1.

一方、搬送残量と停止速度ポインタ46の値との合計が加速ポインタ45の値を超えている場合には(ステップS15でYES)、ステッピングモータ30が加速域又は定速域であるため、MCU24は加速ポインタ45が加速テーブル内の加速ステップの最大値を指しているか否かを判別する(ステップS17)。ステップS17では、ステッピングモータ30の状態が(iii)加速域であるか又は(iv)定速域であるかを判断している。 On the other hand, when the total of the remaining amount of transport and the value of the stop speed pointer 46 exceeds the value of the acceleration pointer 45 (YES in step S15), the stepping motor 30 is in the acceleration range or the constant speed range, so that the MCU 24 Determines whether or not the acceleration pointer 45 points to the maximum value of the acceleration step in the acceleration table (step S17). In step S17, it is determined whether the state of the stepping motor 30 is (iii) an acceleration range or (iv) a constant speed range.

加速ポインタ45が加速テーブル内の加速ステップの最大値を指している場合には(ステップS17でYES)、MCU24はステッピングモータ30が目標速度に達したと判断し、加速テーブルを参照して現在の加速ステップに対応する加速ステップ時間を取得する(ステップS19)。 When the acceleration pointer 45 points to the maximum value of the acceleration step in the acceleration table (YES in step S17), the MCU 24 determines that the stepping motor 30 has reached the target speed, and refers to the acceleration table to present the current value. The acceleration step time corresponding to the acceleration step is acquired (step S19).

一方、加速ポインタ45が加速テーブル内の加速ステップの最大値でない場合には(ステップS17でNO)ステッピングモータ30が加速域であるため、MCU24は加速ポインタ45を1増加し(ステップS18)、ステップS19に進んでステップS18で更新した加速ポインタに対応する加速ステップ時間を取得する。 On the other hand, when the acceleration pointer 45 is not the maximum value of the acceleration step in the acceleration table (NO in step S17), since the stepping motor 30 is in the acceleration region, the MCU 24 increases the acceleration pointer 45 by 1 (step S18) and steps. The process proceeds to S19 to acquire the acceleration step time corresponding to the acceleration pointer updated in step S18.

MCU24は、S19で取得した加速ステップ時間が経過したか否かを判別する(ステップS20)。このステップS20では、各加速ステップにおけるステッピングモータ30の励磁期間が経過しているか否かを判別している。加速ステップ時間が経過していない場合には(ステップS20でNO)、ステップS20を繰り返す。一方、加速ステップ時間が経過した場合には(ステップS20でYES)、ステップS12に戻り、次のステップ駆動に移る。 The MCU 24 determines whether or not the acceleration step time acquired in S19 has elapsed (step S20). In this step S20, it is determined whether or not the excitation period of the stepping motor 30 in each acceleration step has elapsed. If the acceleration step time has not elapsed (NO in step S20), step S20 is repeated. On the other hand, when the acceleration step time has elapsed (YES in step S20), the process returns to step S12 and proceeds to the next step drive.

図7によれば、ステッピングモータ30の回転速度を停止速度ポインタが示す速度まで低下させて(ステップS16、ステップS12でNO)からステッピングモータ30を停止させるので、白スジの発生を防止し印字品質を向上させることができる。 According to FIG. 7, since the stepping motor 30 is stopped by reducing the rotation speed of the stepping motor 30 to the speed indicated by the stop speed pointer (NO in step S16 and step S12), the occurrence of white streaks is prevented and the print quality is improved. Can be improved.

(第2の実施の形態)
第2の実施の形態は、ステッピングモータ30の制御に関して第1の実施の形態と異なる。第1の実施の形態と同様の構成については、同一の参照番号を付し、その説明を省略する。
(Second Embodiment)
The second embodiment is different from the first embodiment with respect to the control of the stepping motor 30. The same reference number will be assigned to the configuration similar to that of the first embodiment, and the description thereof will be omitted.

図8(A)は、ステッピングモータ30を1−2相励磁で駆動した場合のモータ駆動のタイミングチャートである。図8(B)は、ステッピングモータ30を1−2相励磁で駆動した場合の第2の実施の形態に係るモータ駆動のタイミングチャートである。 FIG. 8A is a timing chart of motor drive when the stepping motor 30 is driven by 1-2 phase excitation. FIG. 8B is a timing chart of motor drive according to the second embodiment when the stepping motor 30 is driven by 1-2 phase excitation.

MCU24は、A・B相→B相→B・/A相→/A相→/B・/A相→/B相→/B・A相→A相…の順でステッピングモータ30の各モータ相のオン/オフを切替えることでステッピングモータ30を駆動し、用紙を搬送する。 The MCU 24 is a stepping motor 30 in the order of A / B phase → B phase → B / / A phase → / A phase → / B // A phase → / B phase → / B / A phase → A phase. By switching the phase on / off, the stepping motor 30 is driven to convey the paper.

図8(A)では、MCU24は、ステッピングモータ30を1相(/B相)(位置50)で停止させ、目的のモータ停止位置となるように停止後も一定時間励磁している。このとき、ステッピングモータ30は1相励磁で停止するため、制動力が低く、目的のモータ停止位置からのズレを示すオーバーラン量が多くなるおそれがある。 In FIG. 8A, the MCU 24 stops the stepping motor 30 in one phase (/ B phase) (position 50) and excites the stepping motor 30 for a certain period of time even after the stop so as to reach the target motor stop position. At this time, since the stepping motor 30 is stopped by one-phase excitation, the braking force is low, and there is a possibility that the amount of overrun indicating a deviation from the target motor stop position is large.

一方、第2の実施の形態では、図8(B)に示すように、MCU24はステッピングモータ30を図8(A)の停止相よりも1つ前のタイミングの2相(/A・/B相)(位置51)で停止させることで、モータ駆動量を1ステップ減らし、またステッピングモータ30の制動力を上げることができる。これにより、オーバーランが抑制され、印字品質を向上させることができる。なお、図8(B)では、ステッピングモータ30の停止後も/A相と/B相とが励磁され、図8(A)でのステッピングモータ停止後の励磁相(図8(B)に1点鎖線で示す励磁相)とは励磁相が異なる。 On the other hand, in the second embodiment, as shown in FIG. 8 (B), the MCU 24 sets the stepping motor 30 in two phases (/ A // B) at a timing one before the stop phase in FIG. 8 (A). By stopping at (phase) (position 51), the motor drive amount can be reduced by one step, and the braking force of the stepping motor 30 can be increased. As a result, overrun can be suppressed and print quality can be improved. In addition, in FIG. 8 (B), the / A phase and the / B phase are excited even after the stepping motor 30 is stopped, and the excitation phase after the stepping motor is stopped in FIG. 8 (A) (1 in FIG. 8 (B)). The exciting phase is different from the exciting phase indicated by the point chain line).

図9は、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。図7のフローチャートと同一のステップについては、同一のステップ番号を付し、その説明を省略する。 FIG. 9 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24. The same steps as those in the flowchart of FIG. 7 are given the same step numbers, and the description thereof will be omitted.

図9において、搬送残量が0を超えている場合には(ステップS12でYES)、MCU24は、搬送残量が1を超えているか否かを判別する(ステップS21)。搬送残量が1を超えている場合には(ステップS21でYES)、MCU24は、ステッピングモータ30を1ステップ駆動する(ステップS13)。一方、搬送残量が1である場合には(ステップS21でNO)、MCU24は、ステッピングモータ30の回転駆動を停止させ(ステップS13A)、搬送残量を1減少する(ステップS14)。ステップS14の後、処理はステップS17に進む。図9では、第1の実施の形態と異なりステップS15及びS16が存在しないので、ステッピングモータ30の状態が減速域にはならず、定速域で且つ搬送残量が0になると、ステッピングモータ30の制御処理は終了する。 In FIG. 9, when the remaining amount of transportation exceeds 0 (YES in step S12), the MCU 24 determines whether or not the remaining amount of transportation exceeds 1 (step S21). When the remaining amount of transport exceeds 1 (YES in step S21), the MCU 24 drives the stepping motor 30 by one step (step S13). On the other hand, when the remaining amount of transportation is 1 (NO in step S21), the MCU 24 stops the rotational drive of the stepping motor 30 (step S13A) and reduces the remaining amount of transportation by 1 (step S14). After step S14, the process proceeds to step S17. In FIG. 9, since steps S15 and S16 do not exist unlike the first embodiment, the stepping motor 30 does not enter the deceleration range, and when the constant speed range and the remaining amount of transportation become 0, the stepping motor 30 Control processing ends.

図9によれば、搬送残量が1である場合、MCU24はステッピングモータ30の回転駆動を停止させるので、オーバーランを抑制し、印字品質を向上させることができる。 According to FIG. 9, when the remaining amount of transport is 1, the MCU 24 stops the rotational drive of the stepping motor 30, so that overrun can be suppressed and the print quality can be improved.

(第3の実施の形態)
第3の実施の形態は、ステッピングモータ30の制御内容に関して第1の実施の形態と異なる。第1の実施の形態と同様の構成については、同一の参照番号を付し、その説明を省略する。
(Third Embodiment)
The third embodiment is different from the first embodiment in terms of the control content of the stepping motor 30. The same reference number will be assigned to the configuration similar to that of the first embodiment, and the description thereof will be omitted.

本実施の形態では、ステッピングモータ30の分解能が1ライン当たり2ステップであり、サーマルヘッド31−34に1ライン当たり1回通電するものとする。 In the present embodiment, the resolution of the stepping motor 30 is 2 steps per line, and the thermal heads 31-34 are energized once per line.

図10(A)は、従来のモータ駆動及びヘッド通電を示すタイミングチャートである。図10(B)は、第3の実施の形態に係るモータ駆動及びヘッド通電を示すタイミングチャートである。尚、図10(B)の1点鎖線は、図10(A)と異なる部分を示している。 FIG. 10A is a timing chart showing the conventional motor drive and head energization. FIG. 10B is a timing chart showing motor drive and head energization according to the third embodiment. The alternate long and short dash line in FIG. 10B shows a portion different from that in FIG. 10A.

図10(A)では、MCU24はヘッド通電が終わるまでステッピングモータ30を駆動させているが、ステッピングモータ30の停止後も、ステッピングモータ30のオーバーランにより用紙は搬送されてしまう。この結果、次に印字すると、白スジが発生する。 In FIG. 10A, the MCU 24 drives the stepping motor 30 until the head is energized, but even after the stepping motor 30 is stopped, the paper is conveyed due to the overrun of the stepping motor 30. As a result, white streaks occur when printing next time.

図10(B)では、MCU24は搬送残量が所定のオーバーラン量(例えば4ステップ)以下になるとモータ駆動を停止させ、惰性により用紙が搬送されるオーバーラン中にサーマルヘッド31−34に通電している。これにより、白スジの発生を抑制し、印字品質を向上させることができる。 In FIG. 10B, the MCU 24 stops the motor drive when the remaining amount of conveyed paper becomes less than a predetermined overrun amount (for example, 4 steps), and energizes the thermal heads 31-34 during the overrun in which the paper is conveyed by inertia. doing. As a result, the occurrence of white streaks can be suppressed and the print quality can be improved.

図11は、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。図7のフローチャートと同一のステップについては、同一のステップ番号を付し、その説明を省略する。 FIG. 11 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24. The same steps as those in the flowchart of FIG. 7 are given the same step numbers, and the description thereof will be omitted.

図11において、搬送残量が0を超えている場合には(ステップS12でYES)、MCU24は、搬送残量が予め設定されたオーバーラン量を超えているか否かを判別する(ステップS22)。オーバーラン量は、実験により予め目標速度毎に計測されており、ROM25に格納されている。搬送残量がオーバーラン量を超えている場合には(ステップS22でYES)、MCU24は、ステッピングモータ30を1ステップ駆動する(ステップS13)。一方、搬送残量がオーバーラン量となった場合には(ステップS22でNO)、MCU24はステッピングモータ30の回転駆動を停止させるとともに、サーマルヘッド31−34への通電を実行して(ステップS13B)、搬送残量を1減少する(ステップS14)。ステップS14の後、処理はステップS17に進む。図11では、第2の実施の形態(図9)と同様に、ステップS15及びS16が存在しないので、ステッピングモータ30の状態が減速域になることはない。 In FIG. 11, when the remaining amount of transportation exceeds 0 (YES in step S12), the MCU 24 determines whether or not the remaining amount of transportation exceeds a preset overrun amount (step S22). .. The amount of overrun is measured in advance for each target speed by an experiment and is stored in the ROM 25. When the remaining amount of transport exceeds the overrun amount (YES in step S22), the MCU 24 drives the stepping motor 30 one step (step S13). On the other hand, when the remaining amount of transport reaches the overrun amount (NO in step S22), the MCU 24 stops the rotational drive of the stepping motor 30 and energizes the thermal heads 31-34 (step S13B). ), The remaining amount of transportation is reduced by 1 (step S14). After step S14, the process proceeds to step S17. In FIG. 11, as in the second embodiment (FIG. 9), since steps S15 and S16 do not exist, the state of the stepping motor 30 does not fall into the deceleration range.

図11によれば、MCU24は、搬送残量と目標速度でのオーバーラン量とを比較して(ステップS22)、搬送残量がオーバーラン量以下になると(ステップS22でNO)、ステッピングモータ30の回転駆動を停止させ、オーバーラン中に惰性によって用紙が搬送される期間にもサーマルヘッド31−34の通電を実行する(ステップS13B)。よって、白スジの発生を抑制し、印字品質を向上させることができる。 According to FIG. 11, the MCU 24 compares the remaining amount of transport with the amount of overrun at the target speed (step S22), and when the remaining amount of transport becomes equal to or less than the amount of overrun (NO in step S22), the stepping motor 30 The rotary drive of the thermal head 31-34 is stopped, and the thermal heads 31-34 are energized even during the period when the paper is conveyed by inertia during the overrun (step S13B). Therefore, it is possible to suppress the occurrence of white streaks and improve the print quality.

(第4の実施の形態)
第4の実施の形態は、ステッピングモータ30の制御内容に関して第1の実施の形態と異なる。第1の実施の形態と同様の構成については、同一の参照番号を付し、その説明を省略する。
(Fourth Embodiment)
The fourth embodiment is different from the first embodiment in terms of the control content of the stepping motor 30. The same reference number will be assigned to the configuration similar to that of the first embodiment, and the description thereof will be omitted.

第2及び第3の実施の形態では、オーバーラン抑制のためのステッピングモータ30の駆動量が、用紙の搬送量よりも小さくなる。このため、MCU24が次の印刷データを印字するためにステッピングモータ30を駆動してもギアのバックラッシュによって用紙は搬送されず、印字先頭で文字の潰れが発生する可能性がある。 In the second and third embodiments, the driving amount of the stepping motor 30 for suppressing overrun is smaller than the amount of paper conveyed. Therefore, even if the MCU 24 drives the stepping motor 30 to print the next print data, the paper is not conveyed due to the backlash of the gear, and there is a possibility that characters are crushed at the beginning of printing.

図12(A)は、第2の実施の形態と同様に、ステッピングモータ30を停止させた後に次の印字を開始するときに実行される、第4の実施の形態に係るモータ駆動及びヘッド通電を示すタイミングチャートである。 FIG. 12A shows the motor drive and head energization according to the fourth embodiment, which is executed when the next printing is started after the stepping motor 30 is stopped, as in the second embodiment. It is a timing chart showing.

図12(A)では、第2の実施の形態(図8(B))と同様に、MCU24はステッピングモータ30を2相励磁(/A・/B相)の状態で停止させる。尚、一点鎖線は、MCU24がステッピングモータ30を1相励磁(/B相)の状態で停止させることを示している。 In FIG. 12 (A), similarly to the second embodiment (FIG. 8 (B)), the MCU 24 stops the stepping motor 30 in a two-phase excitation (/ A // B phase) state. The one-point chain wire indicates that the MCU 24 stops the stepping motor 30 in a state of one-phase excitation (/ B phase).

MCU24は、コンピュータ10から次の印字指令を受けた場合、図12(A)に示す「停止中」期間の終了に合わせてステッピングモータ30を1ステップ駆動し、モータ位相を合せるための整定時間(ステッピングモータ30の固定子と回転子との位置合わせを行う時間)だけ1相励磁を保持した後ステッピングモータを2相励磁して次の印字を開始させる。 When the MCU 24 receives the next print command from the computer 10, the MCU 24 drives the stepping motor 30 by one step in accordance with the end of the "stopped" period shown in FIG. 12 (A), and the settling time for matching the motor phases ( After holding the one-phase excitation for only (the time for aligning the stator and the rotor of the stepping motor 30), the stepping motor is excited in two phases to start the next printing.

図12(B)は、第3の実施の形態と同様に、ステッピングモータ30を停止させた後に次の印字を開始するときのモータ駆動及びヘッド通電を示すタイミングチャートである。 FIG. 12B is a timing chart showing the motor drive and head energization when the next printing is started after the stepping motor 30 is stopped, as in the third embodiment.

図12(B)では、図10(B)と同様に、MCU24は搬送残量がオーバーラン量(例えば4ステップ)以下になるとモータ駆動を停止させ、オーバーラン中にサーマルヘッド31−34の通電を実行している。尚、一点鎖線は、搬送残量が0になるまでMCU24がステッピングモータ30を駆動させた場合のステッピングモータ30の各相の励磁状態を示している。 In FIG. 12B, similarly to FIG. 10B, the MCU 24 stops the motor drive when the remaining amount of transportation becomes less than the overrun amount (for example, 4 steps), and energizes the thermal heads 31-34 during the overrun. Is running. The alternate long and short dash line indicates the excited state of each phase of the stepping motor 30 when the MCU 24 drives the stepping motor 30 until the remaining amount of transport becomes zero.

MCU24は、コンピュータ10から次の印字指令を受けた場合、図12(B)に示すように、モータの位相を元の位相に合せるために、図示「位相あわせ」の期間にステッピングモータ30をオーバーラン量に対応するステップ数、つまり印字停止前に駆動するはずであった4ステップ分だけ印字前に回転駆動させ、その後ヘッドに通電して印字を開始させる。 When the MCU 24 receives the next print command from the computer 10, as shown in FIG. 12 (B), the MCU 24 overruns the stepping motor 30 during the illustrated "phase alignment" period in order to align the phase of the motor with the original phase. The number of steps corresponding to the amount of run, that is, four steps that should have been driven before the printing was stopped, is rotationally driven before printing, and then the head is energized to start printing.

図13は、第2の実施の形態と同様にステッピングモータ30を停止させた後に次の印字を開始させるときに、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。図9のフローチャートと同一のステップについては、同一のステップ番号を付し、その説明を省略する。 FIG. 13 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24 when the next printing is started after the stepping motor 30 is stopped as in the second embodiment. The same steps as those in the flowchart of FIG. 9 are given the same step numbers, and the description thereof will be omitted.

MCU24は、搬送残量が1となった場合には(ステップS21でNO)、ステッピングモータ30の回転駆動を停止させ(ステップS13A)、スキップ量を1増加し(ステップS26)、搬送残量を1減少する(ステップS14)。スキップ量とは、ステッピングモータ30を駆動させなかったステップの数を示し、MCU24に保持されている。 When the remaining amount of transportation becomes 1 (NO in step S21), the MCU 24 stops the rotational drive of the stepping motor 30 (step S13A), increases the skip amount by 1 (step S26), and increases the remaining amount of transportation. It decreases by 1 (step S14). The skip amount indicates the number of steps in which the stepping motor 30 is not driven, and is held in the MCU 24.

MCU24は、コンピュータ10から次の印字指令を受けると、最初にスキップ量の値を確認する(ステップS23)。スキップ量が0の場合には(ステップS23でNO)、ステップS11に進む。一方、スキップ量が0でない場合には(ステップS23でYES)、MCU24は、ステッピングモータ30をスキップ量に相当するステップ数だけ回転駆動させる(ステップS24)。その後、MCU24はスキップ量に0を設定し(ステップS25)、ステップS11に進む。 When the MCU 24 receives the next print command from the computer 10, the MCU 24 first confirms the value of the skip amount (step S23). If the skip amount is 0 (NO in step S23), the process proceeds to step S11. On the other hand, when the skip amount is not 0 (YES in step S23), the MCU 24 rotationally drives the stepping motor 30 by the number of steps corresponding to the skip amount (step S24). After that, the MCU 24 sets the skip amount to 0 (step S25), and proceeds to step S11.

このように、図13では、搬送残量が1となった場合に、MCU24は、ステッピングモータ30の回転駆動を停止させ、スキップ量を増加する。また、次の印字処理時に設定されているスキップ量だけステッピングモータ30を回転駆動させてから印字を開始する。従って、次の印字開始前に、ギアのバックラッシュの影響を取り除くことができるので、印字先頭で潰れが発生することを回避できる。 As described above, in FIG. 13, when the remaining amount of transport becomes 1, the MCU 24 stops the rotational drive of the stepping motor 30 and increases the skip amount. Further, the stepping motor 30 is rotationally driven by the skip amount set at the time of the next printing process, and then printing is started. Therefore, since the influence of the backlash of the gear can be removed before the start of the next printing, it is possible to avoid the occurrence of crushing at the beginning of printing.

図14は、第3の実施の形態でステッピングモータ30を停止させた後に、次の印字を開始させるときに、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。図11のフローチャートと同一のステップについては、同一のステップ番号を付し、その説明を省略する。 FIG. 14 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24 when the next printing is started after the stepping motor 30 is stopped in the third embodiment. The same steps as those in the flowchart of FIG. 11 are given the same step numbers, and the description thereof will be omitted.

MCU24は、搬送残量がオーバーラン量以下である場合には(ステップS22でNO)、ステッピングモータ30の回転駆動を停止した状態でサーマルヘッド31−34の通電を実行して(ステップS13B)、スキップ量を1増加し(ステップS26)、搬送残量を1減少する(ステップS14)。ステップS26の処理は、搬送残量が0となるまで繰り返される。 When the remaining amount of transport is equal to or less than the overrun amount (NO in step S22), the MCU 24 executes energization of the thermal heads 31-34 with the rotational drive of the stepping motor 30 stopped (step S13B). The skip amount is increased by 1 (step S26), and the remaining amount of transport is decreased by 1 (step S14). The process of step S26 is repeated until the remaining amount of transport becomes zero.

MCU24は、コンピュータ10から次の印字指令を受けると、最初にスキップ量の値を確認する(ステップS23)。スキップ量が0の場合には(ステップS23でNO)、ステップS11に進む。一方、スキップ量が0ではない場合には(ステップS23でYES)、MCU24は、ステッピングモータ30をスキップ量に相当するステップ数だけ回転駆動させる(ステップS24)。MCU24は、スキップ量に0を設定し(ステップS25)、ステップS11に進む。 When the MCU 24 receives the next print command from the computer 10, the MCU 24 first confirms the value of the skip amount (step S23). If the skip amount is 0 (NO in step S23), the process proceeds to step S11. On the other hand, when the skip amount is not 0 (YES in step S23), the MCU 24 rotationally drives the stepping motor 30 by the number of steps corresponding to the skip amount (step S24). The MCU 24 sets the skip amount to 0 (step S25), and proceeds to step S11.

このように、図14では、搬送残量がオーバーラン量以下である場合に、MCU24は、スキップ量を1ずつ増加し、次の印字開始前に、設定されているスキップ量だけステッピングモータ30を回転駆動させる。従って、次の印字開始前に、ギアのバックラッシュの影響を取り除くことができるので、印字先頭で潰れが発生することを回避できる。 As described above, in FIG. 14, when the remaining amount of transport is equal to or less than the overrun amount, the MCU 24 increases the skip amount by 1, and before the start of the next printing, the stepping motor 30 is operated by the set skip amount. It is driven to rotate. Therefore, since the influence of the backlash of the gear can be removed before the start of the next printing, it is possible to avoid the occurrence of crushing at the beginning of printing.

(第5の実施の形態)
第5の実施の形態は、ステッピングモータ30の制御に関して第1の実施の形態と異なる。第1の実施の形態と同様の構成については、同一の参照番号を付し、その説明を省略する。第5の実施の形態は、第1〜第4の実施の形態と組み合わせることが可能である。
(Fifth Embodiment)
The fifth embodiment is different from the first embodiment with respect to the control of the stepping motor 30. The same reference number will be assigned to the configuration similar to that of the first embodiment, and the description thereof will be omitted. The fifth embodiment can be combined with the first to fourth embodiments.

サーマルプリンタ1は、1ラインの印字率が高いとサーマルヘッド31−34の消費電流の合計が電源22の電源容量を超える場合がある。サーマルヘッド31−34の消費電流の合計が電源22の電源容量を超える場合には、MCU24は、1ライン印字時にサーマルヘッド31−34の発熱体に同時に通電せず、複数回に分けて通電する、いわゆる分割印字制御を行う。 In the thermal printer 1, if the printing rate of one line is high, the total current consumption of the thermal heads 31-34 may exceed the power supply capacity of the power supply 22. When the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22, the MCU 24 does not energize the heating element of the thermal heads 31-34 at the same time when printing one line, but energizes the heating elements in a plurality of times. , So-called split printing control is performed.

しかしながら、分割数が増えると通電時間の増大により印字速度が急激に低下する場合がある。このような場合も、前述のステッピングモータ30の急停止と同様に、ステッピングモータ30のオーバーランによる白スジが発生する。 However, as the number of divisions increases, the printing speed may drop sharply due to the increase in energization time. In such a case as well, white streaks are generated due to the overrun of the stepping motor 30 as in the case of the sudden stop of the stepping motor 30 described above.

このため、第5の実施の形態では、サーマルヘッド31−34の消費電流の合計が電源22の電源容量を超える場合には、MCU24は、オーバーラン量が1ライン未満になるようにステッピングモータ30の目標速度を制限する。さらに、分割印字時に、1ライン印刷時の2ステップ目で印字速度が低下した場合には、MCU24は次のラインの印刷開始までステッピングモータ30を停止させる。このように分割印字制御中にステッピングモータ30を停止させることで、ステッピングモータ30のオーバーランによる印字品質の低下を抑制することができる。 Therefore, in the fifth embodiment, when the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22, the MCU 24 sets the stepping motor 30 so that the overrun amount is less than one line. Limit the target speed of. Further, if the printing speed is reduced in the second step of one-line printing during division printing, the MCU 24 stops the stepping motor 30 until the start of printing of the next line. By stopping the stepping motor 30 during the split print control in this way, it is possible to suppress deterioration of print quality due to overrun of the stepping motor 30.

図15は、サーマルヘッドに1ラインごとに1回通電する高速印字を実行しているときに、1ライン当たり4回通電する処理に切り替わることとなった場合のモータ駆動及びヘッド通電を示すタイミングチャートである。 FIG. 15 is a timing chart showing motor drive and head energization when the thermal head is subjected to high-speed printing in which energization is performed once for each line and the process is switched to energization processing four times per line. Is.

サーマルヘッド31−34の消費電流の合計が電源22の電源容量を超える場合、MCU24は1ラインに対して4回通電を行う分割印字制御に切り替える。MCU24は通常、4回通電制御時の2回目の通電タイミングでは、図15に一点鎖線で示すようにステッピングモータ30の/B相をオフにしてA相のみの1相励磁にする。しかし、4回通電を行うことによりステッピングモータが急減速すると判断した場合、MCU24は4回通電制御の2ステップ目でステッピングモータ30を駆動せず、A相・/B相の2相励磁の状態を保持する。 When the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22, the MCU 24 switches to the split print control in which one line is energized four times. Normally, at the second energization timing during the fourth energization control, the MCU 24 turns off the / B phase of the stepping motor 30 and performs one-phase excitation of only the A phase as shown by the alternate long and short dash line in FIG. However, when it is determined that the stepping motor suddenly decelerates by energizing four times, the MCU 24 does not drive the stepping motor 30 in the second step of the four times energization control, and is in a state of two-phase excitation of A phase and / B phase. To hold.

同一ラインに対する4回通電が終わると、次のラインで、MCU24は、通常の1−2相励磁の制御に戻る。なお、この時一時的に2−2相励磁となる。急減速直後であるため、MCU24は目標速度までステッピングモータ30の回転を加速しながら、サーマルヘッド31−34に通電する。 After four times of energization of the same line, the MCU 24 returns to the normal 1-2 phase excitation control in the next line. At this time, 2-2 phase excitation is temporarily performed. Immediately after the sudden deceleration, the MCU 24 energizes the thermal heads 31-34 while accelerating the rotation of the stepping motor 30 to the target speed.

図16は、MCU24によって実行されるステッピングモータ30の制御処理を示すフローチャートである。図7のフローチャートと同一のステップについては、同一のステップ番号を付し、その説明を省略する。 FIG. 16 is a flowchart showing a control process of the stepping motor 30 executed by the MCU 24. The same steps as those in the flowchart of FIG. 7 are given the same step numbers, and the description thereof will be omitted.

搬送残量が0を超えている場合には(ステップS12でYES)、MCU24は、現在が1ラインの印刷における1回目の通電タイミング(1ステップ目)であるか否かを判別する(ステップS29)。現在が1ラインの1回目の通電タイミングである場合には(ステップS29でYES)、MCU24は、サーマルヘッド31−34の消費電流の合計が電源22の電源容量を超えるか否かを判別する(ステップS27)。ここでは、MCU24は、分割印字制御を行うか否かを判断している。尚、上述したように、MCU24は予め電源22の電源容量の情報を保持しており、サーマルヘッド31−34の消費電流は1ライン中でオンする発熱体の数を計数することで算出する。 If the remaining amount of transport exceeds 0 (YES in step S12), the MCU 24 determines whether or not it is the first energization timing (first step) in printing one line (step S29). ). When the present is the first energization timing of one line (YES in step S29), the MCU 24 determines whether or not the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22 (YES). Step S27). Here, the MCU 24 determines whether or not to perform the split printing control. As described above, the MCU 24 holds information on the power supply capacity of the power supply 22 in advance, and the current consumption of the thermal heads 31-34 is calculated by counting the number of heating elements that are turned on in one line.

サーマルヘッド31−34の消費電流の合計が電源22の電源容量を超えている場合には(ステップS27でYES)、MCU24は、ステッピングモータ30のオーバーラン量が1ライン未満になるようにステッピングモータ30の目標速度を制限する又は減少させる、即ち、分割印字制御を行わない場合よりも目標速度を減少させ(ステップS28)、ステップS13に進む。一方、サーマルヘッド31−34の消費電流の合計が電源22の電源容量以下である場合(ステップS27でNO)、MCU24は、ステッピングモータ30の目標速度の制限を解除し(ステップS31)、ステップS13に進む。 When the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22 (YES in step S27), the MCU 24 sets the stepping motor so that the overrun amount of the stepping motor 30 is less than one line. The target speed of 30 is limited or reduced, that is, the target speed is reduced as compared with the case where the split printing control is not performed (step S28), and the process proceeds to step S13. On the other hand, when the total current consumption of the thermal heads 31-34 is equal to or less than the power supply capacity of the power supply 22 (NO in step S27), the MCU 24 releases the limitation on the target speed of the stepping motor 30 (step S31) and steps S13. Proceed to.

また、現在が1ラインの1回目の通電タイミングでない場合には(ステップS29でNO)、MCU24は、ステッピングモータ30の目標速度を制限しているか否か判別する(ステップS32)。ステッピングモータ30の目標速度を制限している場合(ステップS32でYES)、ステップS14に進む。一方、ステッピングモータ30の目標速度を制限していない場合(ステップS32でNO)、ステップS13に進む。 If the current timing is not the first energization timing of one line (NO in step S29), the MCU 24 determines whether or not the target speed of the stepping motor 30 is limited (step S32). When the target speed of the stepping motor 30 is limited (YES in step S32), the process proceeds to step S14. On the other hand, if the target speed of the stepping motor 30 is not limited (NO in step S32), the process proceeds to step S13.

このように、1ラインの1回目の通電タイミングである場合(ステップS29でYES)で、かつサーマルヘッド31−34の消費電流の合計が電源22の電源容量を超えている場合には(ステップS27でYES)、MCU24は、ステッピングモータ30のオーバーラン量が1ライン未満になるようにステッピングモータ30の目標速度を制限し又は減少させる(ステップS28)。よって、ステッピングモータ30のオーバーランによる印字品質の低下を抑制することができる。 As described above, when it is the first energization timing of one line (YES in step S29) and the total current consumption of the thermal heads 31-34 exceeds the power supply capacity of the power supply 22 (step S27). YES), the MCU 24 limits or reduces the target speed of the stepping motor 30 so that the overrun amount of the stepping motor 30 is less than one line (step S28). Therefore, deterioration of print quality due to overrun of the stepping motor 30 can be suppressed.

第1〜第5の実施の形態では、媒体を搬送する媒体搬送装置としてサーマルプリンタ1の例が挙げられているが、媒体搬送装置はサーマルプリンタに限定されるものではない。例えば、媒体搬送装置は、ステッピングモータを用いて媒体を搬送するチケット発券機などでもよい。 In the first to fifth embodiments, an example of the thermal printer 1 is given as a medium transfer device for conveying a medium, but the medium transfer device is not limited to the thermal printer. For example, the medium transfer device may be a ticket issuing machine that conveys the medium using a stepping motor.

尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 The present invention is not limited to the above-described embodiment, and can be variously modified and implemented without departing from the gist thereof.

1 サーマルプリンタ
10 コンピュータ
22 印字電源
24 MCU(Micro Controller Unit)
25 ROM
26 RAM
30 ステッピングモータ
31−34 サーマルヘッド
41 加速ステップ
45 加速ポインタ
46 停止速度ポインタ
1 Thermal printer 10 Computer 22 Printing power supply 24 MCU (Micro Controller Unit)
25 ROM
26 RAM
30 Stepping motor 31-34 Thermal head 41 Acceleration step 45 Acceleration pointer 46 Stop speed pointer

Claims (2)

用紙を搬送すると共に、第1の相と第2の相とが交互に励磁されるステッピングモータと、
前記ステッピングモータの停止直前の相が前記第1の相、または第2の相のどちらか一方である場合には、前記ステッピングモータの停止直前の相よりも1つ前のタイミングで励磁される前記第1の相、および第2の相の両方を励磁して前記ステッピングモータの回転駆動を停止させる制御手段と
を備えることを特徴とするプリンタ。
A stepping motor that conveys paper and alternately excites the first phase and the second phase.
When the phase immediately before the stop of the stepping motor is either the first phase or the second phase, the excitation is performed at a timing one before the phase immediately before the stop of the stepping motor. A printer including a control means for exciting both a first phase and a second phase to stop the rotational drive of the stepping motor.
コンピュータから次の印字指令を受けた場合に、前記制御手段は、前記ステッピングモータを1ステップ駆動し、前記ステッピングモータの位相を元の位相に合せるための時間だけ前記第1の相、または前記第2の相の励磁を保持した後、次の印字のためのステッピングモータの回転駆動を開始させることを特徴とする請求項1に記載のプリンタ。

When the next printing command is received from the computer, the control means drives the stepping motor by one step, and the first phase or the first phase is set for a time for adjusting the phase of the stepping motor to the original phase. The printer according to claim 1, wherein the rotational drive of the stepping motor for the next printing is started after holding the excitation of the two phases.

JP2020170875A 2020-10-09 2020-10-09 Printer Active JP7007442B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020170875A JP7007442B2 (en) 2020-10-09 2020-10-09 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020170875A JP7007442B2 (en) 2020-10-09 2020-10-09 Printer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016216733A Division JP6796996B2 (en) 2016-11-04 2016-11-04 Printer and media transfer device

Publications (2)

Publication Number Publication Date
JP2021007296A true JP2021007296A (en) 2021-01-21
JP7007442B2 JP7007442B2 (en) 2022-01-24

Family

ID=74174687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020170875A Active JP7007442B2 (en) 2020-10-09 2020-10-09 Printer

Country Status (1)

Country Link
JP (1) JP7007442B2 (en)

Also Published As

Publication number Publication date
JP7007442B2 (en) 2022-01-24

Similar Documents

Publication Publication Date Title
JP4172492B2 (en) Stepping motor control method, stepping motor control device and printer
JP7007442B2 (en) Printer
US4812059A (en) Printer apparatus with automatic gap adjusting mechanism
JP3053144B2 (en) Printer carriage motor controller
JP6796996B2 (en) Printer and media transfer device
US20080055612A1 (en) Printer and control method therefor
JP2001205855A (en) Method and apparatus for printing
JP2000185433A (en) Line printer
JP4449194B2 (en) Printing device
US6937261B2 (en) Method for driving paper-feeding stepping motor in thermal printer
JP7059002B2 (en) Printing equipment
JP4054911B2 (en) Print control device
JP3951043B2 (en) Printing apparatus and control method thereof
JP3031063B2 (en) Printing device
JP2001096785A (en) Thermal printer
JP2002067413A (en) Roll sheet printer
JP2000094751A (en) Serial printer and method for operating serial printer
JP2005186509A (en) Line type thermal printer and its divide driving method
JP3557892B2 (en) Printer print control method and print control device
JP3362686B2 (en) Motor control device
JP2000052599A (en) Method for controlling shuttle of printing apparatus
JPH0541808U (en) Paper feeder for printer
JP3059998U (en) Printer carriage and feed drive
JPH0640033A (en) Recording device
JPS61228979A (en) Ink ribbon feeding system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201009

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211001

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220106

R150 Certificate of patent or registration of utility model

Ref document number: 7007442

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150