JP2009090547A - Thermal printer and printing speed reducing control method thereof - Google Patents

Thermal printer and printing speed reducing control method thereof Download PDF

Info

Publication number
JP2009090547A
JP2009090547A JP2007263331A JP2007263331A JP2009090547A JP 2009090547 A JP2009090547 A JP 2009090547A JP 2007263331 A JP2007263331 A JP 2007263331A JP 2007263331 A JP2007263331 A JP 2007263331A JP 2009090547 A JP2009090547 A JP 2009090547A
Authority
JP
Japan
Prior art keywords
printing speed
head
strobe signal
line data
deceleration
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
JP2007263331A
Other languages
Japanese (ja)
Inventor
Daisuke Yoshida
大輔 吉田
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 Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2007263331A priority Critical patent/JP2009090547A/en
Publication of JP2009090547A publication Critical patent/JP2009090547A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a thermal printer which can perform a speed reduction with an optimal inclination of speed reduction acquired from the information on printing contents and position. <P>SOLUTION: With the thermal printer, two or more line data printed by a thermal head are memorized in n line data storage section 23. A head strobe signal is issued by a head strobe signal formation section 28 for every line data. The printing speed corresponding to the head strobe signal is computed by a printing speed calculation section 29 for every line data. When the printing speed lower than the present printing speed exists in the printing speeds of each line data computed, the inclination of speed reduction for making the speed reduction from the present printing speed to the speed lower than the present one is computed by a speed-reduction inclination calculation section 30. A motor control section 31 controls the speed of motor according to the computed inclination of speed reduction and makes the printing speed reduced. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、印字内容(通電パルス幅、物理ブロックによる分割など)と印字位置の情報から求めた最適な減速の傾きにより減速を行うことができる、サーマルプリンタ、および印字速度減速制御方法に関する。   The present invention relates to a thermal printer and a printing speed deceleration control method capable of decelerating with an optimum deceleration gradient obtained from information on printing contents (energization pulse width, division by physical block, etc.) and printing position information.

情報印刷端末のひとつであるサーマルプリンタは、小売業界や物流業界をはじめ、様々なシステム形態の中で使用されている。   A thermal printer, which is one of information printing terminals, is used in various system forms including the retail industry and the logistics industry.

図6は、サーマルプリンタの一般的な構成を示す図である。図6(A)に示す様に、サーマルプリンタはプラテン(プラテンロール)53とサーマルヘッド41とを備えている。プラテン53は感熱紙(図示せず)の幅方向に沿った軸53aを中心にして回転可能に保持されている。また、この軸53aに対して輪列54を介しモータ52が接続している。このモータ52は、例えば、ステッピングモータである。   FIG. 6 is a diagram illustrating a general configuration of a thermal printer. As shown in FIG. 6A, the thermal printer includes a platen (platen roll) 53 and a thermal head 41. The platen 53 is held rotatably about an axis 53a along the width direction of the thermal paper (not shown). A motor 52 is connected to the shaft 53a via a train wheel 54. The motor 52 is, for example, a stepping motor.

モータ52の回転運動が輪列54により減速された後、軸53aに伝達され、プラテン53が紙送りの為に矢印で示す方向に回転される。サーマルヘッド41は感熱紙を間にしてプラテン53に後方から押し付けられるように配置されている。   After the rotational motion of the motor 52 is decelerated by the train wheel 54, it is transmitted to the shaft 53a, and the platen 53 is rotated in the direction indicated by the arrow for paper feeding. The thermal head 41 is disposed so as to be pressed against the platen 53 from behind with the thermal paper in between.

また、図6(B)に示すように、サーマルヘッド41は軸53aを中心として回動可能に保持されており、印字動作を行なう時には、サーマルヘッド41の印字部がバネ部材55により記録紙である感熱紙42に圧接される。この状態で印字部に通電を行なうと1ライン分の印字が行われ、文字の一部あるいは画像の一部が感熱紙に発現する。1ライン分の印字が終るとプラテン53が矢印の方向に回転し感熱紙の紙送りが行われる。   Further, as shown in FIG. 6B, the thermal head 41 is held so as to be rotatable about a shaft 53a. When a printing operation is performed, the printing portion of the thermal head 41 is made of recording paper by a spring member 55. It is pressed against a certain thermal paper 42. If the printing unit is energized in this state, printing for one line is performed, and a part of characters or a part of image appears on the thermal paper. When printing for one line is completed, the platen 53 rotates in the direction of the arrow, and the thermal paper is fed.

また、サーマルヘッド41は、図7に示すように、形成する画像の1ライン分の発熱素子が主走査方向に配列されている。図7に示す例では、サーマルヘッド41は、4つの物理ブロック1〜4に分割されており、各物理ブロック1〜4には、64個の発熱素子R1〜R64がライン状に配列されている。また、各物理ブロック1〜4内の発熱素子R1〜R64は、ヘッド駆動回路25のヘッド駆動ブロックDST1〜4にそれぞれ接続されている。(なお、物理ブロックとは、サーマルヘッド内の発熱素子をグループ単位に分けたものであり、1つのヘッドストローブ信号で駆動される発熱素子のグループである。また、実際の発熱素子の個数、および物理ブロックの個数はさらに多数で構成される場合がある。)   In the thermal head 41, as shown in FIG. 7, the heating elements for one line of the image to be formed are arranged in the main scanning direction. In the example shown in FIG. 7, the thermal head 41 is divided into four physical blocks 1 to 4, and 64 heat generating elements R <b> 1 to R <b> 64 are arranged in a line in each physical block 1 to 4. . Further, the heating elements R1 to R64 in the physical blocks 1 to 4 are connected to the head drive blocks DST1 to DST4 of the head drive circuit 25, respectively. (The physical block is a group of heating elements in the thermal head divided into groups, and is a group of heating elements driven by one head strobe signal. Also, the actual number of heating elements, and (The number of physical blocks may be further increased.)

そして、通電パルス制御部27からヘッド駆動ブロックDST1に対し、ヘッドストローブ信号STB1を印加することにより、物理ブロック1内の発熱素子R1〜R64が1ラインバッファ24に保持されたドットデータに応じて駆動される。すなわち、オンドットとなる発熱素子(通電パルスが印加され実際に印字を行う発熱素子)に、サーマルヘッド駆動電源26の出力電圧Vpが印加される。   The energization pulse control unit 27 applies the head strobe signal STB1 to the head drive block DST1 to drive the heating elements R1 to R64 in the physical block 1 according to the dot data held in the 1-line buffer 24. Is done. In other words, the output voltage Vp of the thermal head drive power supply 26 is applied to a heating element that is turned on (a heating element to which an energization pulse is applied to actually perform printing).

同様にして、ヘッド駆動ブロックDST2にヘッドストローブ信号STB2を印加することにより、物理ブロック2内の発熱素子が駆動され、ヘッド駆動ブロックDST3にヘッドストローブ信号STB3を印加することにより、物理ブロック3内の発熱素子が駆動される。また、ヘッド駆動ブロックDST4にヘッドストローブ信号STB4を印加することにより、物理ブロック4内の発熱素子が駆動される。   Similarly, by applying the head strobe signal STB2 to the head drive block DST2, the heating elements in the physical block 2 are driven, and by applying the head strobe signal STB3 to the head drive block DST3, The heating element is driven. Further, the heating element in the physical block 4 is driven by applying the head strobe signal STB4 to the head driving block DST4.

ところで、このような複数の物理ブロックに分割されたサーマルヘッドを駆動する場合に、1ラインの印字データのオンドット数を検出し、印字速度を制御する方法が開示されている(特許文献1を参照)。すなわち、検出したオンドット数が少ない場合は、物理ブロック1〜4を同時に駆動することによって高速印字を行い、検出したオンドット数が多い場合は、物理ブロック1〜4を2つのグループに分けて、時分割的に駆動することによって低速印字を行ない、サーマルヘッド駆動電源の消費電流を抑える方法である。   By the way, when driving such a thermal head divided into a plurality of physical blocks, a method is disclosed in which the number of on dots in one line of print data is detected and the print speed is controlled (see Patent Document 1). reference). That is, when the detected number of on dots is small, high speed printing is performed by simultaneously driving the physical blocks 1 to 4, and when the detected number of on dots is large, the physical blocks 1 to 4 are divided into two groups. In this method, low-speed printing is performed by driving in a time-sharing manner and current consumption of the thermal head driving power source is suppressed.

このために、この特許文献1のサーマルプリンタでは、データ記憶部に印字直前の複数ライン分の印字データを1ラインずつ順次記憶する。そして、オンドット数検出部でデータ記憶部に記憶した1ラインの印字データのオンドット数を検出している場合に、制御部において、オンドット数が規定数を跨いで変化する1ラインの印字データを認識すると、制御部は、その1ラインの印字データの印字時までに、1ラインの印字データを印字する度に、印字速度を段階的に変化させるようにしている。これにより、印字速度を段階的に切替えることが可能になり、印字速度の切替え時に急激な印字速度の変化が生じないので、利用者に違和感を与えないようにできる。
特開2001−180027号公報
For this purpose, in the thermal printer of Patent Document 1, print data for a plurality of lines immediately before printing is sequentially stored line by line in a data storage unit. When the on-dot number detection unit detects the number of on-dots of one line of print data stored in the data storage unit, the control unit prints one line in which the number of on-dots changes over the specified number. When the data is recognized, the control unit changes the printing speed step by step every time one line of print data is printed by the time when the one line of print data is printed. As a result, it is possible to switch the printing speed step by step, and since there is no sudden change in the printing speed when the printing speed is switched, it is possible to prevent the user from feeling uncomfortable.
Japanese Patent Laid-Open No. 2001-180027

上述した、特許文献1のサーマルプリンタは、印字前の複数ライン分の印字データからオンドット数を検出し、規定のオンドット数を超えるオンドット数を検出した段階で、サーマルヘッドの物理ブロックを時分割的して駆動するために、高速印字から低速印字に移行するように、印字速度を段階的に減速させるものである。   The above-described thermal printer of Patent Document 1 detects the number of on dots from print data for a plurality of lines before printing, and detects the physical block of the thermal head at the stage where the number of on dots exceeding the specified number of on dots is detected. In order to drive in a time-sharing manner, the printing speed is gradually reduced so as to shift from high-speed printing to low-speed printing.

しかしながら、近時のサーマルプリンタおいては、印字速度の高速化、電源電圧・電源容量や環境温度の広範囲化にともない、ヘッド駆動制御におけるヘッドストローブ信号の変動幅や印字速度の変動量が大きくなっている。このため、特許文献1のように、物理ブロックを時分割的に駆動するために、高速印字から低速印字へ移行するという方法だけで対応することが困難になってきている。   However, in recent thermal printers, the fluctuation width of the head strobe signal and the fluctuation amount of the printing speed in the head drive control increase as the printing speed is increased and the power supply voltage / power supply capacity and the environmental temperature are widened. ing. For this reason, as in Patent Document 1, in order to drive the physical block in a time-sharing manner, it has become difficult to cope with only the method of shifting from high-speed printing to low-speed printing.

また、サーマルプリンタのモータ(紙送り用のモータ、例えば、ステッピングモータ)の制御においては、ヘッドストローブ信号のパルス幅条件により減速が必要となる場合もある。   In controlling a thermal printer motor (paper feeding motor, for example, a stepping motor), deceleration may be required depending on the pulse width condition of the head strobe signal.

また、所定のステップ数分のヘッドストローブ信号を予測し、その中で最も長いヘッドストロープを現在のモータパルス幅と比較し、現在のモータパルス幅が最も長いヘッドストローブ信号のパルス幅よりも短い場合、所定の割合で減速制御を行うことで、急減速によるモータの脱調等の不具合を発生させない制御方法が必要となることもある。   Also, a head strobe signal for a predetermined number of steps is predicted, and the longest head strobe among them is compared with the current motor pulse width, and the current motor pulse width is shorter than the pulse width of the longest head strobe signal. In this case, a control method that does not cause problems such as motor step-out due to sudden deceleration may be required by performing deceleration control at a predetermined rate.

特許文献1のサーマルプリンタでは、所定のステップ数内のどの位置(時間)に最も長い幅のヘッドストロープが存在しても、駆動用モータは同じ割合の減速幅で減速する。この方法の場合、より近い位置(時間)に最も長い幅のヘッドストロープが存在することを考慮して減速幅を設定することが必要となるため、減速の割合が常に最大となるため、低速でのモータ駆動の割合が高くなり、トータルの速度が遅くなるという問題があった。   In the thermal printer of Patent Document 1, the driving motor decelerates at the same rate of deceleration width regardless of the position (time) within the predetermined number of steps at the longest head strobe. In the case of this method, it is necessary to set the deceleration range in consideration of the presence of the longest head slope at a closer position (time). There was a problem that the ratio of motor drive in the system increased and the total speed slowed down.

本発明は、斯かる実情に鑑みなされたものであり、本発明の目的は、サーマルプリンタのモータ制御において、印字するラインデータの印字内容と印字位置の情報を基に、最適な減速の傾きにより印字速度の減速を行うことができる、サーマルプリンタ、および印字速度減速制御方法を提供することにある。   The present invention has been made in view of such circumstances, and the object of the present invention is to control the optimum deceleration gradient based on the print contents of the line data to be printed and the print position information in the motor control of the thermal printer. It is an object of the present invention to provide a thermal printer and a printing speed reduction control method capable of reducing the printing speed.

本発明は上記課題を解決するためになされたものであり、本発明のサーマルプリンタは、複数の発熱素子がライン状に配設されたサーマルヘッドを感熱紙に押し当て、前記複数の発熱素子のうちから選択指定した発熱素子にパルス通電を行うと共に、前記パルス通電と前記感熱紙のモータによる紙送りとを交互に繰り返して印字を行うサーマルプリンタであって、前記サーマルヘッドで印字する複数のラインデータを記憶する複数ラインデータ記憶部と、前記複数ラインデータ記憶部に保持されたラインデータを基に、該ラインデータごとに前記サーマルヘッドの発熱素子を駆動するヘッドストローブ信号を生成するヘッドストローブ信号生成部と、前記ヘッドストローブ信号生成部により生成されたヘッドストローブ信号を基に、該ヘッドストローブ信号に対応する印字速度を算出する印字速度算出部と、前記印字速度算出部により算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出する減速傾き算出部と、減速傾き算出部により算出された減速傾きに応じて前記モータの速度を制御するモータ制御部と、を備えることを特徴とする。
上記構成からなる本発明のサーマルプリンタでは、サーマルヘッドで印字する複数のラインデータを記憶し、該ラインデータごとにヘッドストローブ信号を求め、このヘッドストローブ信号に対応する印字速度を算出する。そして、算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出し、この算出された減速傾きに応じて前記モータの速度を制御する。すなわち、印字速度はヘッドストローブ信号(パルス幅や物理ブロックによる分割回数など)に応じて多岐に渡り変化するため、現在の印字速度から低速印字速度へ移行する際に必要となる減速幅と、減速を必要とするライン位置とを基に減速傾きを算出する。
これにより、印字内容と印字位置の情報を基に、最適な減速の傾きを求めることができ、この減速傾きにより印字速度の減速を行うことができる。
The present invention has been made to solve the above problems, and a thermal printer according to the present invention presses a thermal head in which a plurality of heating elements are arranged in a line shape against thermal paper, and the plurality of heating elements. A thermal printer that performs pulse energization on a heating element selected and specified from among the above, and performs printing by alternately repeating the pulse energization and paper feeding by the thermal paper motor, and a plurality of lines to be printed by the thermal head A multi-line data storage unit for storing data, and a head strobe signal for generating a head strobe signal for driving the heating element of the thermal head for each line data based on the line data held in the multi-line data storage unit Based on the head strobe signal generated by the generator and the head strobe signal generator, the head When there is a printing speed that is lower than the current printing speed among the printing speed calculation unit that calculates the printing speed corresponding to the trobe signal and the printing speed of each line data calculated by the printing speed calculation unit, A deceleration inclination calculating section that calculates a deceleration inclination for decelerating from the current printing speed toward a printing speed lower than the current printing speed, and controlling the speed of the motor according to the deceleration inclination calculated by the deceleration inclination calculating section. A motor control unit.
In the thermal printer of the present invention configured as described above, a plurality of line data to be printed by the thermal head is stored, a head strobe signal is obtained for each line data, and a printing speed corresponding to the head strobe signal is calculated. When the calculated printing speed of each line data includes a printing speed lower than the current printing speed, the deceleration for decelerating from the current printing speed toward the printing speed lower than the current printing speed. An inclination is calculated, and the speed of the motor is controlled in accordance with the calculated deceleration inclination. In other words, since the printing speed varies in various ways according to the head strobe signal (pulse width, number of divisions by physical block, etc.), the deceleration width required when shifting from the current printing speed to the low-speed printing speed, and the deceleration The deceleration gradient is calculated based on the line position that requires
Thus, the optimum deceleration gradient can be obtained based on the print contents and the print position information, and the printing speed can be reduced by this deceleration gradient.

また、本発明のサーマルプリンタは、前記ヘッドストローブ信号生成部は、前記複数ラインデータ記憶部に保持されたラインデータごとにオンドットとなる印字データ数を基に、前記サーマルヘッドの発熱素子をパルス通電して駆動するヘッドストローブ信号のパルス幅を求めるように構成され、前記印字速度算出部は、前記ヘッドストローブ信号生成部により求めたヘッドストローブ信号のパルス幅を基に、該ヘッドストローブ信号に対応する印字速度を算出するように、構成されたことを特徴とする。
上記構成からなる本発明のサーマルプリンタでは、サーマルヘッドで印字する複数のラインデータを記憶し、該ラインデータに応じたヘッドストローブ信号のパルス幅を求め、このヘッドストローブ信号のパルス幅に対応する印字速度を算出する。そして、算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出し、この算出された減速傾きに応じて前記モータの速度を制御する。すなわち、印字速度はヘッドストローブ信号のパルス幅に応じて変化するため、現在の印字速度から低速印字速度へ移行する際に必要となる減速幅と、減速を必要とするライン位置とを基に減速傾きを算出する。
これにより、印字内容と印字位置の情報を基に、最適な減速の傾きを求めることができ、この減速傾きにより印字速度の減速を行うことができる。
Further, in the thermal printer of the present invention, the head strobe signal generation unit pulses the heating element of the thermal head based on the number of print data that becomes on dot for each line data held in the multiple line data storage unit. It is configured to obtain the pulse width of the head strobe signal that is driven by energization, and the printing speed calculation unit corresponds to the head strobe signal based on the pulse width of the head strobe signal obtained by the head strobe signal generation unit. It is configured to calculate the printing speed to be performed.
In the thermal printer of the present invention configured as described above, a plurality of line data to be printed by the thermal head is stored, the pulse width of the head strobe signal corresponding to the line data is obtained, and the print corresponding to the pulse width of the head strobe signal is obtained. Calculate the speed. When the calculated printing speed of each line data includes a printing speed lower than the current printing speed, the deceleration for decelerating from the current printing speed toward the printing speed lower than the current printing speed. An inclination is calculated, and the speed of the motor is controlled in accordance with the calculated deceleration inclination. That is, since the printing speed changes according to the pulse width of the head strobe signal, the printing speed is decelerated based on the deceleration width required when shifting from the current printing speed to the low-speed printing speed and the line position that requires deceleration. Calculate the slope.
Thus, the optimum deceleration gradient can be obtained based on the print contents and the print position information, and the printing speed can be reduced by this deceleration gradient.

また、本発明のサーマルプリンタは、前記サーマルヘッドの発熱素子は、前記サーマルヘッドの発熱素子は、1つのヘッドストローブ信号で駆動される物理ブロックの単位に分割されており、前記印字速度算出部は、前記物理ブロックの全部に同時にヘッドストローブ信号を印加して同時駆動するか、または、前記物理ブロックを順次もしくは分割選択してヘッドストローブ信号を印加し選択駆動するかに応じて、前記印字速度を算出するように、構成されたことを特徴とする。
上記構成からなる本発明のサーマルプリンタでは、サーマルヘッドの発熱素子が複数の物理ブロックに分割されている場合に、物理ブロックの全部を同時駆動するか、または、前記物理ブロックを順次もしくは分割駆動するかに応じて、印字速度を算出する。
これにより、物理ブロックの駆動方法に応じて、印字速度の減速が必要になる場合にも、最適な減速の傾きを求めることができる。
In the thermal printer of the present invention, the heating element of the thermal head is divided into physical block units driven by one head strobe signal, and the printing speed calculation unit is Depending on whether the head strobe signal is simultaneously applied to all the physical blocks and simultaneously driven, or the physical block is sequentially or dividedly selected and the head strobe signal is applied and selectively driven, the print speed is changed. It is configured to be calculated.
In the thermal printer of the present invention configured as described above, when the heat generating element of the thermal head is divided into a plurality of physical blocks, all of the physical blocks are driven simultaneously, or the physical blocks are driven sequentially or dividedly. Accordingly, the printing speed is calculated.
Thereby, even when the printing speed needs to be reduced according to the driving method of the physical block, the optimum inclination of the deceleration can be obtained.

また、本発明のサーマルプリンタは、前記減速傾き算出部では、前記減速傾きをプリンタの構造およびサーマルヘッドの特性に応じた減速曲線に変換するように、構成されたことを特徴とする。
これにより、減速傾きを、サーマルプリンタのプリンタメカニズムに適した減速曲線に変換することでより細かな減速制御を行うことができる。
The thermal printer according to the present invention is characterized in that the deceleration gradient calculation unit is configured to convert the deceleration gradient into a deceleration curve corresponding to the structure of the printer and the characteristics of the thermal head.
Thus, finer deceleration control can be performed by converting the deceleration gradient into a deceleration curve suitable for the printer mechanism of the thermal printer.

また、本発明の印字速度減速制御方法は、複数の発熱素子がライン状に配設されたサーマルヘッドを感熱紙に押し当て、前記複数の発熱素子のうちから選択指定した発熱素子にパルス通電を行うと共に、前記パルス通電と前記感熱紙のモータによる紙送りとを交互に繰り返して印字を行うサーマルプリンタにおける印字速度減速制御方法であって、前記サーマルプリンタ内の制御部により、前記サーマルヘッドで印字する複数のラインデータを記憶する複数ラインデータ記憶手順と、前記複数ラインデータ記憶手順により保持されたラインデータを基に、該ラインデータごとに前記サーマルヘッドの発熱素子を駆動するヘッドストローブ信号を生成するヘッドストローブ信号生成手順と、前記ヘッドストローブ信号生成手順により生成したヘッドストローブ信号を基に、該ヘッドストローブ信号に対応する印字速度を算出する印字速度算出手順と、前記印字速度算出手順により算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出する減速傾き算出手順と、減速傾き算出手順により算出された減速傾きに応じて前記モータの速度を制御するモータ制御手順と、が行われることを特徴とする。
上記手順を含む本発明の印字速度減速制御方法では、サーマルヘッドで印字する複数のラインデータを記憶し、該ラインデータごとにヘッドストローブ信号を求め、このヘッドストローブ信号に対応する印字速度を算出する。そして、算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出し、この算出された減速傾きに応じて前記モータの速度を制御する。すなわち、印字速度はヘッドストローブ信号(パルス幅や物理ブロックによる分割回数など)に応じて多岐に渡り変化するため、現在の印字速度から低速印字速度へ移行する際に必要となる減速幅と、減速を必要とするライン位置とを基に減速傾きを算出する。
これにより、印字内容と印字位置の情報を基に、最適な減速の傾きを求めることができ、この減速傾きにより印字速度の減速を行うことができる。
In the printing speed reduction control method of the present invention, a thermal head in which a plurality of heating elements are arranged in a line shape is pressed against thermal paper, and a pulse energization is applied to the heating element selected and specified from the plurality of heating elements. And a printing speed reduction control method in a thermal printer for performing printing by alternately repeating the pulse energization and the paper feeding by the thermal paper motor, and printing by the thermal head by the control unit in the thermal printer. Based on the multiple line data storage procedure for storing a plurality of line data and the line data held by the multiple line data storage procedure, a head strobe signal for driving the heating element of the thermal head is generated for each line data. Generating a head strobe signal to be generated and a head strobe signal generating procedure Based on the print strobe signal, the print speed calculation procedure for calculating the print speed corresponding to the head strobe signal, and the print speed of each line data calculated by the print speed calculation procedure, are greater than the current print speed. When a low printing speed exists, the deceleration slope calculation procedure for calculating the deceleration slope for decelerating from the current printing speed toward the printing speed lower than the current printing speed, and the deceleration slope calculated by the deceleration slope calculation procedure In response, a motor control procedure for controlling the speed of the motor is performed.
In the printing speed deceleration control method of the present invention including the above procedure, a plurality of line data to be printed by the thermal head is stored, a head strobe signal is obtained for each line data, and a printing speed corresponding to the head strobe signal is calculated. . When the calculated printing speed of each line data includes a printing speed lower than the current printing speed, the deceleration for decelerating from the current printing speed toward the printing speed lower than the current printing speed. An inclination is calculated, and the speed of the motor is controlled in accordance with the calculated deceleration inclination. In other words, since the printing speed varies in various ways according to the head strobe signal (pulse width, number of divisions by physical block, etc.), the deceleration width required when shifting from the current printing speed to the low-speed printing speed, and the deceleration The deceleration gradient is calculated based on the line position that requires
Thus, the optimum deceleration gradient can be obtained based on the print contents and the print position information, and the printing speed can be reduced by this deceleration gradient.

本発明のサーマルプリンタにおいては、印字内容と印字位置の情報を基に、最適な減速の傾き(または、減速曲線)を求めることができ、この減速傾きにより印字速度の減速を行うことができる。 In the thermal printer of the present invention, the optimum deceleration gradient (or deceleration curve) can be obtained based on the information on the printing contents and the printing position, and the printing speed can be reduced by this deceleration gradient.

以下、本発明の実施の形態を添付図面を参照して説明する。
図1は、本発明の実施の形態に係わるサーマルプリンタの構成を示す図であり、本発明に関係する部分を示したものである。
Embodiments of the present invention will be described below with reference to the accompanying drawings.
FIG. 1 is a diagram showing a configuration of a thermal printer according to an embodiment of the present invention, and shows portions related to the present invention.

図1に示すサーマルプリンタにおいて、主制御部11は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を含むコンピュータシステムで構成されており、プリント制御部21内の各処理部の処理機能を実現すると共に、サーマルプリンタ内の各部の動作を統括して制御する制御部である。   In the thermal printer shown in FIG. 1, the main control unit 11 is composed of a computer system including a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The control unit realizes the processing function of each processing unit and controls the operation of each unit in the thermal printer.

プリント制御部21は、外部入力される画像データを基に、ヘッド駆動回路25へ出力する印字データ(発熱素子をON/OFFするドットデータ)を生成する。また、モータ52の駆動制御を行う。   The print control unit 21 generates print data (dot data for turning on / off the heating element) to be output to the head drive circuit 25 based on image data input from the outside. In addition, drive control of the motor 52 is performed.

プリント制御部21内のプリント用印字データ生成部22は、外部入力される画像データを基に、サーマルヘッド41で印字する印字データ(ラインデータ)を生成して、nラインデータ記憶部23に出力する。   A print data generation unit 22 for printing in the print control unit 21 generates print data (line data) to be printed by the thermal head 41 based on image data input from the outside, and outputs the print data to the n-line data storage unit 23. To do.

nラインデータ記憶部23は、サーマルヘッドで印字する複数のラインデータを記憶する。1ラインバッファ24は、印字する1ライン分のドットデータを保持する。
例えば、図2に示すように、nラインデータ記憶部23には、14個のラインデータL1からL14が保持される。そして、nラインデータ記憶部23内のラインデータL1が1ラインバッファ24に送信されると、ラインデータL2〜L13がそれぞれ上のブロックにシフトし、ラインデータL1〜L13となる。その後、プリント用印字データ生成部22から、新たな1つのラインデータが入力され、ラインデータL14となる。
The n line data storage unit 23 stores a plurality of line data to be printed by the thermal head. The one line buffer 24 holds dot data for one line to be printed.
For example, as shown in FIG. 2, 14 line data L1 to L14 are held in the n line data storage unit 23. Then, when the line data L1 in the n-line data storage unit 23 is transmitted to the 1-line buffer 24, the line data L2 to L13 are shifted to the upper blocks, and become line data L1 to L13. Thereafter, one new line data is input from the print data generation unit 22 for printing, and becomes line data L14.

また、ヘッド駆動回路25は、ヘッド駆動ブロックDST1〜4で構成されており、各ヘッド駆動ブロックDST1〜4はそれぞれサーマルヘッド41内の物理ブロック1〜4に接続されている。そして、通電パルス制御部27からヘッド駆動ブロックDST1に対し、ヘッドストローブ信号STB1を印加することにより、物理ブロック1内の発熱素子R1〜R64が、1ラインバッファ24に保持されたドットデータに応じて駆動される。すなわち、オンドットとなる発熱素子に、サーマルヘッド駆動電源26の出力電圧Vpが印加される。同様にして、ヘッド駆動ブロックDST2にヘッドストローブ信号STB2を印加することにより、物理ブロック2内の発熱素子が駆動され、ヘッド駆動ブロックDST3にヘッドストローブ信号STB3を印加することにより、物理ブロック3内の発熱素子が駆動される。また、ヘッド駆動ブロックDST4にヘッドストローブ信号STB4を印加することにより、物理ブロック4内の発熱素子が駆動される。   The head drive circuit 25 includes head drive blocks DST1 to DST4. The head drive blocks DST1 to DST4 are connected to the physical blocks 1 to 4 in the thermal head 41, respectively. Then, by applying the head strobe signal STB1 from the energization pulse control unit 27 to the head drive block DST1, the heating elements R1 to R64 in the physical block 1 correspond to the dot data held in the 1-line buffer 24. Driven. That is, the output voltage Vp of the thermal head drive power supply 26 is applied to the heating element that is turned on. Similarly, by applying the head strobe signal STB2 to the head drive block DST2, the heating elements in the physical block 2 are driven, and by applying the head strobe signal STB3 to the head drive block DST3, The heating element is driven. Further, the heating element in the physical block 4 is driven by applying the head strobe signal STB4 to the head driving block DST4.

通電パルス制御部27は、ヘッドストローブ信号生成部28からの指示信号により、ヘッドストローブ信号STB1〜STB4を生成して、ヘッド駆動回路25に印加する。   The energization pulse control unit 27 generates head strobe signals STB <b> 1 to STB <b> 4 based on an instruction signal from the head strobe signal generation unit 28 and applies it to the head drive circuit 25.

ヘッドストローブ信号生成部28は、nラインデータ記憶部23に保持されたラインデータごとに、オンドットとなる印字データ数を基に、サーマルヘッドの発熱素子をパルス通電して駆動するヘッドストローブ信号のパルス幅を求める。また、物理ブロック1〜4を同時に駆動するか、時分割的(順次に、または分割して)に駆動するかを決める。時分割的に駆動する場合は、結果的に全体のヘッドストローブ信号幅が長くなることになる。   The head strobe signal generation unit 28 generates a head strobe signal for driving the heating element of the thermal head by applying a pulse to each line data held in the n-line data storage unit 23 based on the number of print data to be on dots. Find the pulse width. Further, it is determined whether the physical blocks 1 to 4 are driven simultaneously or time-divisionally (sequentially or dividedly). When driving in a time-division manner, the overall head strobe signal width is increased as a result.

印字速度算出部29は、ヘッドストローブ信号生成部28により求めたヘッドストローブ信号のパルス幅を基に、該ヘッドストローブ信号に対応する印字速度を算出する。また、サーマルヘッドの発熱素子が複数の物理ブロックに分割されている場合に、物理ブロックの全部を同時駆動するか、または、前記物理ブロックを順次もしくは分割駆動するかに応じて、印字速度を算出する。   The printing speed calculation unit 29 calculates the printing speed corresponding to the head strobe signal based on the pulse width of the head strobe signal obtained by the head strobe signal generation unit 28. Also, when the heating element of the thermal head is divided into multiple physical blocks, the printing speed is calculated according to whether all of the physical blocks are driven simultaneously, or whether the physical blocks are driven sequentially or dividedly. To do.

なお、印字速度とは、1ラインの印字を行う場合の、モータによる紙送り動作時間と、サーマルヘッドによる印字動作の時間とを含む印字周期のことを意味する。印字速度が速い(高速印字)とは、この印字周期が短いことを意味する。印字速度が遅い(低速印字)とは、この印字周期が長いことを意味する。なお、ヘッドストローブ信号のパルス幅が長くなるほど印字速度が低下する。また、物理ブロックを細かく分割駆動する程、印字速度が低下する。   Note that the printing speed means a printing cycle including a paper feeding operation time by a motor and a printing operation time by a thermal head when printing one line. High printing speed (high-speed printing) means that this printing cycle is short. Slow printing speed (low speed printing) means that this printing cycle is long. Note that the printing speed decreases as the pulse width of the head strobe signal increases. In addition, the printing speed decreases as the physical block is finely divided and driven.

減速傾き算出部30は、印字速度算出部29により算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合、現在の印字速度から、現在よりも低い印字速度に向けて減速するための減速傾きを算出する。   When there is a printing speed lower than the current printing speed among the printing speeds of the respective line data calculated by the printing speed calculating section 29, the deceleration inclination calculating section 30 is lower than the current printing speed. A deceleration gradient for decelerating toward the printing speed is calculated.

モータ制御部31は、減速傾き算出部30により算出された減速傾きに応じて、モータ52の回転速度を制御する。   The motor control unit 31 controls the rotation speed of the motor 52 in accordance with the deceleration gradient calculated by the deceleration gradient calculation unit 30.

モータドライバ51は、モータ制御部31から送られる制御指令を基に、モータ52を回転駆動するモータ駆動制御装置である。モータ52の回転はプラテン53に伝達され、このプラテン53の回転により感熱紙42が紙送りされる。   The motor driver 51 is a motor drive control device that rotationally drives the motor 52 based on a control command sent from the motor control unit 31. The rotation of the motor 52 is transmitted to the platen 53, and the thermal paper 42 is fed by the rotation of the platen 53.

また、図3は、本発明のサーマルプリンタにおける減速制御動作について説明するための図である。   FIG. 3 is a diagram for explaining the deceleration control operation in the thermal printer of the present invention.

図3(A)に示すように、現在(T0の位置)の印字速度F1を、T1の位置(時間)に到達したときに必要な印字速度F1に減速させるために、速度の差分「F0−F1」と位置(時間)の差分「T1−T2」により必要な減速の傾きKaを求める。   As shown in FIG. 3A, in order to decelerate the current printing speed F1 (position T0) to the printing speed F1 required when the position (time) T1 is reached, the speed difference “F0− The necessary deceleration slope Ka is obtained from the difference “T1−T2” between “F1” and the position (time).

なお、図3(B)に示すように、T1の位置(時間)に到達したときに必要な印字速度に減速させるために、図3(A)に示すような直線的な減速ではなく、プリンタメカニズム(プリンタ機構およびサーマルヘッド特性)に応じた減速曲線Kp,Kcを求めるようにしてもよい。この減速曲線Kp,Kcに沿って、減速を行うようにしてもよい。   As shown in FIG. 3B, in order to decelerate to the necessary printing speed when the position (time) of T1 is reached, the printer is not a linear deceleration as shown in FIG. You may make it obtain | require the deceleration curves Kp and Kc according to a mechanism (a printer mechanism and a thermal head characteristic). You may make it perform deceleration along these deceleration curves Kp and Kc.

なお、図3(C)は従来例の場合を示しており、現在(T0の位置)の印字速度F1を、T1の位置(時間)に到達したときに必要な印字速度に減速させる場合にも、一定の減速傾きKsにより減速を行うため、T2の位置で低速になってしまい、トータルの印字速度が遅くなる。すなわち、斜線で囲まれた部分における速度に起因して、トータルの印字速度が遅くなる。   FIG. 3C shows the case of the conventional example, and also when the current printing speed F1 (the position of T0) is decelerated to the necessary printing speed when reaching the position (time) of T1. Since the deceleration is performed with a constant deceleration gradient Ks, the speed becomes low at the position T2, and the total printing speed becomes slow. That is, the total printing speed is reduced due to the speed in the portion surrounded by the oblique lines.

このように、本発明のサーマルプリンタにおいては、印字するラインデータの内容と印字位置の情報を基に、最適な減速の傾きを求め、この最適な減速の傾きにより印字速度の減速を行うことができる   As described above, in the thermal printer of the present invention, the optimum deceleration gradient is obtained based on the contents of the line data to be printed and the printing position information, and the printing speed is decelerated by the optimum deceleration gradient. it can

図4は、本発明のサーマルプリンタにおける減速制御の処理の流れを示すフローチャートであり、上述した印字速度の減速制御動作をフローチャートで示したものである。以下、図4を参照して、その処理の流れについて説明する。   FIG. 4 is a flowchart showing the flow of deceleration control processing in the thermal printer of the present invention, and shows the above-described deceleration control operation of the printing speed. Hereinafter, the flow of the process will be described with reference to FIG.

最初に、nラインデータ記憶部23から、複数ラインデータを取得する(ステップS1)。この複数ラインデータは、1ラインの印字が行われるごとに更新されるデータである。   First, a plurality of line data is acquired from the n line data storage unit 23 (step S1). The multiple line data is data that is updated every time one line is printed.

次に、ヘッドストローブ信号生成部28により、各ラインのヘッドストローブのパルス幅を予測し、印字速度算出部29により、印字速度の上限値を計算する(ステップS2)。   Next, the head strobe signal generation unit 28 predicts the pulse width of the head strobe of each line, and the printing speed calculation unit 29 calculates the upper limit value of the printing speed (step S2).

続いて減速傾き算出部30において、減速計算用のステップ位置:Xを1に、減速傾き:aを0に初期化する(ステップS3)。そして、ステップ位置:Xでは、現在の速度より減速する必要があるかどうかを判定する(ステップS4)。   Subsequently, the deceleration inclination calculation unit 30 initializes the deceleration calculation step position: X to 1 and the deceleration inclination: a to 0 (step S3). Then, at step position: X, it is determined whether or not it is necessary to decelerate from the current speed (step S4).

現在の速度より減速する必要がある場合は(ステップS4:Yes)、現在の速度と減速後の速度の差:yと、減速が必要となるステップ位置:xから、減速傾きを求める(ステップS5)。   If it is necessary to decelerate from the current speed (step S4: Yes), the deceleration gradient is obtained from the difference between the current speed and the speed after deceleration: y and the step position x where deceleration is required (step S5). ).

この場合の減速傾きaは、
a=max{(Y−Yn)/Xn}、n=1,2,3・・・・、規定ライン数、により求める。
ここで、Xn(1〜規定ライン数)はステップ位置、Yは現在速度、Yn(1〜規定ライン数)は各印字位置での速度上限値を示している。
The deceleration slope a in this case is
a = max {(Y−Yn) / Xn}, n = 1, 2, 3,...
Here, Xn (1 to the specified number of lines) is the step position, Y is the current speed, and Yn (1 to the specified number of lines) is the upper speed limit at each printing position.

一方、ステップS4において減速する必要がないと判定された場合は(ステップS4:No)、ステップS6に移行する。   On the other hand, when it is determined in step S4 that it is not necessary to decelerate (step S4: No), the process proceeds to step S6.

そして、今回求まった減速傾きは、現在保持している減速傾き:aより大きいかどうかを判定する(ステップS6)。保持している減速傾き:aより大きい場合は(ステップS6:Yes)、保持している減速傾き:aの値を今回の減速傾きに更新する(ステップS7)。一方、保持している減速傾き:aより小さい場合は(ステップS6:No)、ステップS8に移行する。   Then, it is determined whether or not the deceleration slope obtained this time is larger than the currently held deceleration slope: a (step S6). If the held deceleration slope is larger than a (step S6: Yes), the value of the held deceleration slope: a is updated to the current deceleration slope (step S7). On the other hand, when the deceleration gradient held is smaller than a (step S6: No), the process proceeds to step S8.

次に、ステップ位置:xに1加算すると複数ライン数を超過するかどうかを判定する(ステップS8)。超過する場合は(ステップS8:Yes)、全てのラインデータについて処理を行ったので、減速制御処理を終了する。超過しない場合は(ステップS8:No)、ステップS4に戻り、次のラインデータについての処理を行う。   Next, if 1 is added to the step position x, it is determined whether or not the number of multiple lines is exceeded (step S8). When exceeding (step S8: Yes), since it processed about all the line data, the deceleration control process is complete | finished. When not exceeding (step S8: No), it returns to step S4 and processes about the next line data.

図5は、本発明における減速制御の具体例を示す図である。図5に示す例は、規定ライン数(n=14)の例であり、14のラインデータを監視し、減速傾きを求める例である。図5において、縦軸はラインデータ(L1〜L14)に対する駆動可能印字速度を示しており、横軸はラインデータ(L1〜L14)の印字位置(または時間)を示している。   FIG. 5 is a diagram showing a specific example of the deceleration control in the present invention. The example shown in FIG. 5 is an example of the prescribed number of lines (n = 14), and is an example in which 14 line data are monitored to determine the deceleration slope. In FIG. 5, the vertical axis indicates the drivable print speed for the line data (L1 to L14), and the horizontal axis indicates the print position (or time) of the line data (L1 to L14).

図5(A)は、ラインデータL1〜L13に対応する駆動可能印字速度がaであり、ラインデータL14における駆動可能印字速度がbに低下する場合の例である。この場合は、符号K1で示す減速傾きにより、L1からL14にかけての印字速度を、印字速度aから印字速度bを段階的に低下させる。   FIG. 5A shows an example in which the drivable printing speed corresponding to the line data L1 to L13 is a and the drivable printing speed in the line data L14 is decreased to b. In this case, the printing speed from L1 to L14 and the printing speed b from the printing speed a are lowered stepwise by the deceleration inclination indicated by the symbol K1.

図5(B)は、ラインデータが更新され、ラインデータL14における印字速度がcにさらに低下した場合の例である。この場合は、減速傾きK1をより大きな傾きを持つ減速傾きK2に変更する。   FIG. 5B shows an example in which the line data is updated and the printing speed in the line data L14 is further reduced to c. In this case, the deceleration gradient K1 is changed to a deceleration gradient K2 having a larger gradient.

図5(C)は、当初の減速傾きがK1であり、次に減速傾きK2に変更して減速中の場合において、ラインデータL14における駆動可能印字速度dに低下する場合の例である。この場合は、新たに求めた減速傾きがK3となるが、既に減速中の減速傾きK2の方が減速傾きK3よりも大きいため、ラインデータL5までは減速傾きK2をそのまま維持して減速を行う。その後、ラインデータL5からは、L5〜L14に向かう減速傾きを再計算し、この減速傾きにより減速を行う。   FIG. 5C shows an example in which the initial deceleration slope is K1, and then the speed is reduced to the drivable print speed d in the line data L14 when the deceleration slope K2 is changed to the deceleration slope K2. In this case, the newly determined deceleration slope is K3, but since the deceleration slope K2 that is already decelerating is larger than the deceleration slope K3, deceleration is performed while maintaining the deceleration slope K2 as it is until the line data L5. . Thereafter, from the line data L5, the deceleration inclination toward L5 to L14 is recalculated, and deceleration is performed by this deceleration inclination.

なお、図5(D)は、本発明の場合と、従来技術の場合を比較して示したものである。図5(D)において、従来技術の場合は、ラインデータL14における印字速度が、印字速度bへ低下することが検出されると、印字速度を一義的な減速傾きK4により低速印字速度dまで低下させるように作動する。一方、本発明の場合は、最初は減速傾きK1、続いて減速傾きK2、さらに減速傾きK3を選択して減速する。   FIG. 5D shows a comparison between the case of the present invention and the case of the prior art. In FIG. 5D, in the case of the prior art, when it is detected that the printing speed in the line data L14 decreases to the printing speed b, the printing speed is reduced to the low-speed printing speed d by the unique deceleration slope K4. Operates to On the other hand, in the case of the present invention, the vehicle is first decelerated by selecting the deceleration gradient K1, then the deceleration gradient K2, and further the deceleration gradient K3.

従って、本発明の場合には、必要以上の減速を行うことなく(必要以上に印字速度を低下させることなく)、印字動作を実行することが可能となり、また、減速傾きを適宜変更することにより、モータを急減速することを回避でき、モータおよび関連する機械部分に急激な負担がかかることを回避できる。   Therefore, in the case of the present invention, it is possible to execute a printing operation without performing deceleration more than necessary (without reducing printing speed more than necessary), and by appropriately changing the deceleration slope. Therefore, it is possible to avoid sudden deceleration of the motor, and it is possible to avoid applying a sudden load on the motor and related mechanical parts.

以上、本発明の実施の形態について説明したが、本発明のサーマルプリンタは、上述の図示例にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   The embodiment of the present invention has been described above. However, the thermal printer of the present invention is not limited to the above illustrated example, and various modifications can be made without departing from the scope of the present invention. Of course.

本発明の実施の形態に係わるサーマルプリンタの構成を示す図である。It is a figure which shows the structure of the thermal printer concerning embodiment of this invention. nラインデータ記憶部の動作を説明するための図である。It is a figure for demonstrating operation | movement of an n line data storage part. 本発明のサーマルプリンタにおける減速制御動作を説明するための図である。It is a figure for demonstrating the deceleration control operation | movement in the thermal printer of this invention. 本発明のサーマルプリンタにおける減速制御の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process of the deceleration control in the thermal printer of this invention. 減速制御の具体例を示す図である。It is a figure which shows the specific example of deceleration control. サーマルプリンタの一般的な構成を示す図である。It is a figure which shows the general structure of a thermal printer. サーマルヘッドと発熱素子について説明するための図である。It is a figure for demonstrating a thermal head and a heat generating element.

符号の説明Explanation of symbols

11・・・主制御部、21・・・プリント制御部、22・・・プリント用印字データ生成部、23・・・nラインデータ記憶部、24・・・1ラインバッファ、25・・・ヘッド駆動回路、26・・・サーマルヘッド駆動電源、27・・・通電パルス制御部、28・・・ヘッドストローブ信号生成部、29・・・印字速度算出部、30・・・減速傾き算出部、31・・・モータ制御部、41・・・サーマルヘッド、42・・・感熱紙、51・・・モータドライバ、52・・・モータ、53・・・プラテン DESCRIPTION OF SYMBOLS 11 ... Main control part, 21 ... Print control part, 22 ... Print data generation part for printing, 23 ... N line data storage part, 24 ... 1 line buffer, 25 ... Head Drive circuit, 26... Thermal head drive power supply, 27... Energization pulse control section, 28... Head strobe signal generation section, 29... Print speed calculation section, 30. ... Motor controller, 41 ... thermal head, 42 ... thermal paper, 51 ... motor driver, 52 ... motor, 53 ... platen

Claims (5)

複数の発熱素子がライン状に配設されたサーマルヘッドを感熱紙に押し当て、前記複数の発熱素子のうちから選択指定した発熱素子にパルス通電を行うと共に、前記パルス通電と前記感熱紙のモータによる紙送りとを交互に繰り返して印字を行うサーマルプリンタであって、
前記サーマルヘッドで印字する複数のラインデータを記憶する複数ラインデータ記憶部と、
前記複数ラインデータ記憶部に保持されたラインデータを基に、該ラインデータごとに前記サーマルヘッドの発熱素子を駆動するヘッドストローブ信号を生成するヘッドストローブ信号生成部と、
前記ヘッドストローブ信号生成部により生成されたヘッドストローブ信号を基に、該ヘッドストローブ信号に対応する印字速度を算出する印字速度算出部と、
前記印字速度算出部により算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出する減速傾き算出部と、
減速傾き算出部により算出された減速傾きに応じて前記モータの速度を制御するモータ制御部と、
を備えることを特徴とするサーマルプリンタ。
A thermal head in which a plurality of heating elements are arranged in a line is pressed against thermal paper, and pulse energization is performed on the heating element selected and specified from the plurality of heating elements, and the pulse energization and the thermal paper motor are performed. A thermal printer that performs printing by alternately repeating paper feeding by
A plurality of line data storage units for storing a plurality of line data to be printed by the thermal head;
Based on the line data held in the plurality of line data storage units, a head strobe signal generating unit that generates a head strobe signal for driving the heating element of the thermal head for each line data;
A printing speed calculation unit that calculates a printing speed corresponding to the head strobe signal based on the head strobe signal generated by the head strobe signal generation unit;
When the printing speed of each line data calculated by the printing speed calculation unit includes a printing speed lower than the current printing speed, the current printing speed is reduced toward the printing speed lower than the current printing speed. A deceleration inclination calculating unit for calculating a deceleration inclination for
A motor control unit for controlling the speed of the motor in accordance with the deceleration gradient calculated by the deceleration gradient calculation unit;
A thermal printer comprising:
前記ヘッドストローブ信号生成部は、
前記複数ラインデータ記憶部に保持されたラインデータごとにオンドットとなる印字データ数を基に、前記サーマルヘッドの発熱素子をパルス通電して駆動するヘッドストローブ信号のパルス幅を求めるように構成され、
前記印字速度算出部は、前記ヘッドストローブ信号生成部により求めたヘッドストローブ信号のパルス幅を基に、該ヘッドストローブ信号に対応する印字速度を算出するように、
構成されたことを特徴とする請求項1に記載のサーマルプリンタ。
The head strobe signal generator is
Based on the number of print data that becomes on-dot for each line data held in the multiple line data storage unit, the pulse width of the head strobe signal that drives the heating element of the thermal head by pulse energization is obtained. ,
The printing speed calculation unit calculates a printing speed corresponding to the head strobe signal based on the pulse width of the head strobe signal obtained by the head strobe signal generation unit.
The thermal printer according to claim 1, wherein the thermal printer is configured.
前記サーマルヘッドの発熱素子は、1つのヘッドストローブ信号で駆動される物理ブロックの単位に分割されており、
前記印字速度算出部は、
前記物理ブロックの全部に同時にヘッドストローブ信号を印加して同時駆動するか、または、前記物理ブロックを順次もしくは分割選択してヘッドストローブ信号を印加し選択駆動するかに応じて、前記印字速度を算出するように、
構成されたことを特徴とする請求項1に記載のサーマルプリンタ。
The heating element of the thermal head is divided into physical block units driven by one head strobe signal.
The printing speed calculation unit
The print speed is calculated depending on whether the head strobe signal is simultaneously applied to all the physical blocks and driven simultaneously, or the physical blocks are sequentially or dividedly selected and the head strobe signal is applied and selectively driven. Like
The thermal printer according to claim 1, wherein the thermal printer is configured.
前記減速傾き算出部では、前記減速傾きをプリンタの構造およびサーマルヘッドの特性に応じた減速曲線に変換するように、
構成されたことを特徴とする請求項1から請求項3のいずれかに記載のサーマルプリンタ。
In the deceleration gradient calculation unit, the deceleration gradient is converted into a deceleration curve corresponding to the printer structure and the characteristics of the thermal head.
The thermal printer according to claim 1, wherein the thermal printer is configured.
複数の発熱素子がライン状に配設されたサーマルヘッドを感熱紙に押し当て、前記複数の発熱素子のうちから選択指定した発熱素子にパルス通電を行うと共に、前記パルス通電と前記感熱紙のモータによる紙送りとを交互に繰り返して印字を行うサーマルプリンタにおける印字速度減速制御方法であって、
前記サーマルプリンタ内の制御部により、
前記サーマルヘッドで印字する複数のラインデータを記憶する複数ラインデータ記憶手順と、
前記複数ラインデータ記憶手順により保持されたラインデータを基に、該ラインデータごとに前記サーマルヘッドの発熱素子を駆動するヘッドストローブ信号を生成するヘッドストローブ信号生成手順と、
前記ヘッドストローブ信号生成手順により生成したヘッドストローブ信号を基に、該ヘッドストローブ信号に対応する印字速度を算出する印字速度算出手順と、
前記印字速度算出手順により算出された各ラインデータの印字速度の中に、現在の印字速度よりも低い印字速度が存在する場合に、現在の印字速度から前記現在よりも低い印字速度に向けて減速するための減速傾きを算出する減速傾き算出手順と、
減速傾き算出手順により算出された減速傾きに応じて前記モータの速度を制御するモータ制御手順と、
が行われることを特徴とする印字速度減速制御方法。
A thermal head in which a plurality of heating elements are arranged in a line is pressed against thermal paper, and pulse energization is performed on the heating element selected and specified from the plurality of heating elements, and the pulse energization and the thermal paper motor are performed. A printing speed deceleration control method in a thermal printer that performs printing by alternately repeating paper feeding by
By the control unit in the thermal printer,
A plurality of line data storage procedures for storing a plurality of line data to be printed by the thermal head;
A head strobe signal generation procedure for generating a head strobe signal for driving the heating element of the thermal head for each line data based on the line data held by the multiple line data storage procedure;
A printing speed calculation procedure for calculating a printing speed corresponding to the head strobe signal based on the head strobe signal generated by the head strobe signal generation procedure;
When the printing speed of each line data calculated by the printing speed calculation procedure includes a printing speed lower than the current printing speed, the current printing speed is reduced toward the lower printing speed than the current printing speed. A deceleration inclination calculation procedure for calculating a deceleration inclination for
A motor control procedure for controlling the speed of the motor according to the deceleration gradient calculated by the deceleration gradient calculation procedure;
A printing speed reduction control method characterized in that:
JP2007263331A 2007-10-09 2007-10-09 Thermal printer and printing speed reducing control method thereof Pending JP2009090547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007263331A JP2009090547A (en) 2007-10-09 2007-10-09 Thermal printer and printing speed reducing control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007263331A JP2009090547A (en) 2007-10-09 2007-10-09 Thermal printer and printing speed reducing control method thereof

Publications (1)

Publication Number Publication Date
JP2009090547A true JP2009090547A (en) 2009-04-30

Family

ID=40663022

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007263331A Pending JP2009090547A (en) 2007-10-09 2007-10-09 Thermal printer and printing speed reducing control method thereof

Country Status (1)

Country Link
JP (1) JP2009090547A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012000948A (en) * 2010-06-21 2012-01-05 Toshiba Tec Corp Printer and program
JP2013022925A (en) * 2011-07-25 2013-02-04 Brother Industries Ltd Printer
JP2013208893A (en) * 2012-02-29 2013-10-10 Brother Industries Ltd Printing apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6364769A (en) * 1986-09-05 1988-03-23 Casio Comput Co Ltd Line type printer
JPS6355800U (en) * 1986-09-26 1988-04-14
JPS63264372A (en) * 1987-04-21 1988-11-01 Seiko Instr & Electronics Ltd Thermal recording apparatus
JP2001180027A (en) * 1999-12-22 2001-07-03 Alps Electric Co Ltd Thermal printer
JP2003080750A (en) * 2001-09-12 2003-03-19 Alps Electric Co Ltd Stepping motor drive controlling method for line printer
JP2003145855A (en) * 2001-11-15 2003-05-21 Brother Ind Ltd Line printer
JP2005280221A (en) * 2004-03-30 2005-10-13 Brother Ind Ltd Printing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6364769A (en) * 1986-09-05 1988-03-23 Casio Comput Co Ltd Line type printer
JPS6355800U (en) * 1986-09-26 1988-04-14
JPS63264372A (en) * 1987-04-21 1988-11-01 Seiko Instr & Electronics Ltd Thermal recording apparatus
JP2001180027A (en) * 1999-12-22 2001-07-03 Alps Electric Co Ltd Thermal printer
JP2003080750A (en) * 2001-09-12 2003-03-19 Alps Electric Co Ltd Stepping motor drive controlling method for line printer
JP2003145855A (en) * 2001-11-15 2003-05-21 Brother Ind Ltd Line printer
JP2005280221A (en) * 2004-03-30 2005-10-13 Brother Ind Ltd Printing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012000948A (en) * 2010-06-21 2012-01-05 Toshiba Tec Corp Printer and program
JP2013022925A (en) * 2011-07-25 2013-02-04 Brother Industries Ltd Printer
JP2013208893A (en) * 2012-02-29 2013-10-10 Brother Industries Ltd Printing apparatus

Similar Documents

Publication Publication Date Title
US9399357B2 (en) Printing device, control method of a printing device, and a storage medium
JP4111455B1 (en) Thermal printer
US7436418B2 (en) Thermal printer, thermal printer control method, and printing system
EP3121013B1 (en) Method and apparatus for printhead control
JP2009113445A (en) Thermal printer and printing speed control method for thermal printer
JP2009090547A (en) Thermal printer and printing speed reducing control method thereof
JP5606103B2 (en) Thermal printer
JPH0318593B2 (en)
JPH11321005A (en) Serial printer
JPH0145266B2 (en)
JP5313208B2 (en) Printer and program
JP2015063104A (en) Control device, and thermal printer
US6222572B1 (en) Thermal recording apparatus
WO2007135785A1 (en) Thermal printer and driving method of thermal printer
JP2009090579A (en) Thermal printer, and half-pitch printing control method
JP2002347265A (en) Printing apparatus
JP5054081B2 (en) Thermal printer
JP4385684B2 (en) Driving method of thermal printer
JP5740359B2 (en) Printer and its control circuit
JPH06115139A (en) Method of controlling thermal printer
JP2739694B2 (en) Thermal printer and print processing method thereof
JPH069111A (en) Printer
JPS6176373A (en) Printer
JP3050259B2 (en) Printing control device
JP2007047967A (en) Image formation apparatus

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Effective date: 20091105

Free format text: JAPANESE INTERMEDIATE CODE: A7421

RD01 Notification of change of attorney

Effective date: 20091113

Free format text: JAPANESE INTERMEDIATE CODE: A7421

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120619

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120808

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121127