JP2008018584A - Line printer and printing control method of line printer - Google Patents

Line printer and printing control method of line printer Download PDF

Info

Publication number
JP2008018584A
JP2008018584A JP2006191084A JP2006191084A JP2008018584A JP 2008018584 A JP2008018584 A JP 2008018584A JP 2006191084 A JP2006191084 A JP 2006191084A JP 2006191084 A JP2006191084 A JP 2006191084A JP 2008018584 A JP2008018584 A JP 2008018584A
Authority
JP
Japan
Prior art keywords
print
line
printing
transfer rate
print data
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.)
Withdrawn
Application number
JP2006191084A
Other languages
Japanese (ja)
Inventor
Yuji Takiguchi
勇治 滝口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006191084A priority Critical patent/JP2008018584A/en
Publication of JP2008018584A publication Critical patent/JP2008018584A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Electronic Switches (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To propose a printing control method of line printer for establishing the suitable printing speed based on an actual transmission rate of the printing data transmitted from a host computer. <P>SOLUTION: A line thermal printer 1 acquires an amount of data of the printing data for every one line according to the printing method with a line thermal head 8 which is developed to a printing buffer 9 as an effective transmission rate from the printing data received per unit time from the host computer 30 (processes ST3, ST4). An upper-limit value of the printing speed of the line thermal head 8 is established based on the acquired effective transmission rate (processes ST5, ST6). While a drive control means 13 controls the printing speed of the line thermal head 8 so that the printing speed may become below the established upper-limit value, the printing is performed with controlling the conveyance speed of a recording paper 4 (process ST7). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、外部装置から送信される印刷データの実際の転送レートに基づいて、印刷速度を変更するラインプリンタに関する。   The present invention relates to a line printer that changes a printing speed based on an actual transfer rate of print data transmitted from an external device.

店舗のレジスタ装置に接続されて会計明細書やクーポンを印刷するプリンタとして、ロール紙を搬送しながら1ライン毎に印刷を行なうラインサーマルプリンタが広く用いられている。近年、ラインサーマルプリンタの印刷速度が向上しているので、レジスタ装置から送信されてくる印刷データが、ライン型印字ヘッドの1ライン分毎の印刷に間に合わず、ラインサーマルプリンタが印刷データの受信待ちのために停止してしまうということがある。   As a printer that is connected to a register device in a store and prints an account statement or a coupon, a line thermal printer that performs printing line by line while conveying roll paper is widely used. In recent years, since the printing speed of line thermal printers has improved, the print data sent from the register device cannot keep up with the printing of each line of the line type print head, and the line thermal printer is waiting for the reception of print data. May stop for that.

印刷データの受信待ちが頻繁に起こり、ラインサーマルプリンタが印刷と停止を繰り返すと、その前後でロール紙の送り量が変動する。この結果として、印刷ピッチの乱れや印刷濃度が変化して印刷にムラが発生し、印刷品質が低下してしまう。このような問題を回避するために、ホストコンピュータからラインプリンタの印刷速度を制御して、印刷データの受信待ちを防止するものが、例えば、特許文献1に記載されている。また、ホストコンピュータがラインプリンタの通信クロックを制御することによって両者の間の通信速度を高速に維持して印刷データの受信待ちを防止するものが、例えば、特許文献2に記載されている。
特開2003−50777号公報 特開平9−146724号公報
When print data reception waits frequently and the line thermal printer repeats printing and stopping, the roll paper feed amount fluctuates before and after that. As a result, the printing pitch is disturbed and the printing density is changed to cause uneven printing, resulting in a deterioration in printing quality. In order to avoid such a problem, for example, Japanese Patent Application Laid-Open No. H10-228707 describes a technique for controlling the printing speed of a line printer from a host computer to prevent waiting for receiving print data. For example, Japanese Patent Application Laid-Open No. 2003-228561 describes a method in which a host computer controls the communication clock of a line printer to maintain a high communication speed between the two to prevent waiting for receiving print data.
JP 2003-50777 A JP-A-9-146724

しかし、ホストコンピュータが接続されているラインプリンタの印刷速度や通信クロックを制御する方法では、ホストコンピュータにラインプリンタを制御するためのアプリケーションやハードウエアを搭載する必要がある。   However, in the method of controlling the printing speed and communication clock of the line printer connected to the host computer, it is necessary to install an application and hardware for controlling the line printer in the host computer.

また、ホストコンピュータとラインプリンタとの間の通信速度を高速に維持することができたとしても、ホストコンピュータに搭載されているアプリケーションの処理効率が低い場合や、転送されてくるデータの形式によっては、受信した印刷データを印刷バッファに展開する速度がライン型印字ヘッドの1ライン分の印刷に間に合わず、ラインサーマルプリンタが印刷データ待ちのため停止してしまうという問題がある。   Even if the communication speed between the host computer and the line printer can be maintained at a high speed, depending on the processing efficiency of the application installed in the host computer and the format of the transferred data, However, there is a problem that the speed at which the received print data is developed in the print buffer is not in time for printing of one line of the line type print head, and the line thermal printer stops because it waits for print data.

本発明の課題は、このような点に鑑みて、ホストコンピュータから送信される印刷データの実際の転送レートに基づいてラインプリンタ自身が印刷速度を制御することにより、印刷データの受信待ちのために印刷が停止してしまうことがないラインプリンタの印刷制御方法を提案することにある。また、当該印刷制御方法によって印刷を行なうラインプリンタを提案することにある。   In view of these points, the problem of the present invention is that the line printer itself controls the printing speed based on the actual transfer rate of the print data transmitted from the host computer, so that the print data can be received. The object is to propose a print control method for a line printer that does not stop printing. Another object of the present invention is to propose a line printer that performs printing by the printing control method.

上記課題を解決するために、本発明は、外部装置から受信する印刷データを、ライン型印刷ヘッドにより1ラインずつ印刷するラインプリンタの印刷制御方法であって、受信した前記印刷データを、前記ライン型印刷ヘッドによる1ライン分毎、印刷バッファに展開するデータ量と、前記印刷データを受信する受信時間と、から実効転送レートとして取得する実効転送レート取得工程と、1ライン分の印刷毎に印刷データの受信待ちのための印
刷中断状態が生じないように、前記実効転送レートに基づいて、前記ラインプリンタが前記ライン型印刷ヘッドの上限速度を算出して記憶する上限速度算出工程と、前記上限速度を印刷速度の上限値として設定する上限値設定工程と、設定された上限値以下の印刷速度で前記ライン型印刷ヘッドを駆動すると共に、記録媒体を当該印刷速度に対応する搬送速度で搬送して、印刷を行わせる印刷工程と、を含むことを特徴とする。
In order to solve the above-described problem, the present invention provides a print control method for a line printer that prints print data received from an external device line by line by a line-type print head, wherein the received print data is transferred to the line. For each line by the printing head, an effective transfer rate acquisition step for acquiring the effective transfer rate from the amount of data developed in the print buffer, the reception time for receiving the print data, and printing for each line of printing An upper limit speed calculating step in which the line printer calculates and stores an upper limit speed of the line-type print head based on the effective transfer rate so as not to cause a print interruption state for data reception waiting, and the upper limit An upper limit setting process for setting the speed as the upper limit of the printing speed, and the line type print head is driven at a printing speed less than the set upper limit. While, the recording medium is conveyed at a conveying speed corresponding to the printing speed, to a printing step for performing the printing, comprising a.

本発明によれば、受信する印刷データから、ラインプリンタ自身が、実効転送レートをを取得して、この実効転送レートに基づいてラインプリンタ自身が印刷速度の上限値を設定する。また、設定された上限値以下の印刷速度になるように、ライン型印刷ヘッドの印刷速度を制御するとともに、記録紙の搬送速度を制御して、印刷する。従って、ホストコンピュータ等の外部機器とラインプリンタとの間の通信速度や、ホストコンピュータに搭載されたアプリケーションの処理効率に関係なく、実効転送レートが低い場合にはラインプリンタの印刷速度を遅くすることができる。この結果、印刷データの受信待ちのためにライン型印刷ヘッドの1ライン分の印刷毎に印刷が中断してしまうことを回避できるので、記録紙の送り量に変動が生じて印刷ピッチが乱れたり、印刷濃度が変化して印刷にムラが発生することを回避して、印刷品質を高品質に保つことができる。   According to the present invention, the line printer itself acquires the effective transfer rate from the received print data, and the line printer itself sets the upper limit value of the print speed based on the effective transfer rate. Further, printing is performed by controlling the printing speed of the line type print head and the conveyance speed of the recording paper so that the printing speed is equal to or lower than the set upper limit value. Therefore, if the effective transfer rate is low, the print speed of the line printer should be slowed regardless of the communication speed between the external device such as the host computer and the line printer and the processing efficiency of the application installed in the host computer. Can do. As a result, it is possible to prevent printing from being interrupted every time one line of the line-type print head is waiting for reception of print data, resulting in fluctuations in the feeding amount of the recording paper and disturbing the print pitch. The printing quality can be kept high by avoiding the occurrence of uneven printing due to the change in printing density.

本発明において、印刷データの受信待ちを必要としない印刷モードであるか否かを判定する印刷モード判定工程と、前記印刷モード判定工程において、印刷データの受信待ちを必要としない印刷モードであると判定された場合には、前記実効転送レートに拘りなく、前記ライン型印刷ヘッドを最高印刷速度で駆動する最高速度印刷工程を含むことが好ましい。このような印刷モードでは、印刷データの受信待ちの必要がないので、ラインプリンタが本来備えている最高印刷速度で印刷を行なえばよい。   In the present invention, the print mode determination step for determining whether or not the print mode does not require the reception of print data, and the print mode that does not require the reception of print data in the print mode determination step. If determined, it is preferable to include a maximum speed printing step of driving the line type print head at a maximum printing speed regardless of the effective transfer rate. In such a print mode, there is no need to wait for reception of print data, so printing can be performed at the maximum print speed originally provided by the line printer.

ここで、前記の印刷データの受信待ちを必要としない印刷モードとしては、受信した印刷データを当該印刷データの区切りまで印刷バッファに蓄えた後に印刷を開始するモードがある。   Here, as a print mode that does not require waiting for reception of the print data, there is a mode in which printing is started after the received print data is stored in the print buffer up to the break of the print data.

本発明において、前記実効転送レート取得工程は、前記外部装置から送信される印刷データを受信する受信工程と、前記受信工程で印刷データの中に印刷データの区切りを示す制御指令を検出すると、当該制御指令の後から次に前記制御指令と同じ制御指令を受信するまでのトランザクション時間を計測するトランザクション時間計測工程と、計測された前記トランザクション時間に受信した前記印刷データから印刷バッファに展開される1ライン分毎の印刷データのデータ量を測定するデータ量測定工程と、計測された前記トランザクション時間と測定された前記データ量とから印刷データの転送レートを逐次取得する転送レート取得工程と、逐次取得される前記転送レートを平均して平均転送レートを取得する平均転送レート取得工程とを含んでおり、前記平均転送レートを所定のタイミングで実効転送レートとして取得することが好ましい。このようにすれば、実効転送レートとして、ライン型印刷ヘッドによる印刷形式に従った1ライン分毎の印刷データが印刷バッファに展開される平均転送レートの平均値を取得することができる。ラインプリンタに接続されたホストコンピュータに搭載されているアプリケーションが特定されており、ホストコンピュータとラインプリンタを接続する通信環境が変化しない場合には、単位時間当たりに受信した印刷データから印刷バッファに展開される印刷データのデータ量は収束してくるので、それに従って、平均転送レートの平均値も収束してくる。従って、その値を実効転送レートとして取得すれば、適切な上限速度を算出することができる。   In the present invention, the effective transfer rate acquisition step receives a print data transmitted from the external device, and detects a control command indicating a print data break in the print data in the reception step. A transaction time measuring step of measuring a transaction time from the control command to the next reception of the same control command as the control command, and the print data received at the measured transaction time is developed in the print buffer 1 A data amount measurement step for measuring the amount of print data for each line, a transfer rate acquisition step for sequentially acquiring a print data transfer rate from the measured transaction time and the measured data amount, and a sequential acquisition Average transfer rate acquisition step of averaging the transfer rates to obtain an average transfer rate; It includes and is preferably obtains the effective transfer rate the average transfer rate at a predetermined timing. In this way, as an effective transfer rate, it is possible to obtain an average value of the average transfer rates at which the print data for each line according to the print format by the line type print head is developed in the print buffer. When the application installed in the host computer connected to the line printer is specified and the communication environment connecting the host computer and the line printer does not change, the print data received per unit time is expanded in the print buffer. Since the amount of print data to be converged converges, the average value of the average transfer rate also converges accordingly. Therefore, if the value is acquired as the effective transfer rate, an appropriate upper limit speed can be calculated.

ここで、実効転送レート取得工程は、前記平均転送レート取得手段で取得した前記平均転送レートを不揮発性メモリに記憶保持する平均転送レート記憶保持工程を含み、前記ラインプリンタの電源投入時には、前記実効転送レート取得工程は、前記平均転送レート記憶保持工程で不揮発性メモリに記憶保持されていた前記平均転送レートを実効転送レート
として取得することを特徴とする。このようにすれば、ラインプリンタの電源を消しても、次に電源が投入された場合には、実効転送レート取得手段はそれまでに取得していた平均転送レートを実効転送レートとして取得することができる。従って、ラインプリンタの電源のON、OFFが繰り返される場合でも、ラインプリンタが接続されている外部装置に搭載されているアプリケーションが特定されており、外部装置とラインプリンタを接続する通信環境が変化しない場合には、実効転送レートの値を収束させることができる。
Here, the effective transfer rate acquisition step includes an average transfer rate storage holding step of storing and holding the average transfer rate acquired by the average transfer rate acquisition means in a nonvolatile memory, and when the line printer is turned on, the effective transfer rate acquisition step includes In the transfer rate acquisition step, the average transfer rate stored and held in the nonvolatile memory in the average transfer rate storage holding step is acquired as an effective transfer rate. In this way, even if the line printer is turned off, the next time the power is turned on, the effective transfer rate acquisition means acquires the average transfer rate acquired so far as the effective transfer rate. Can do. Therefore, even when the power of the line printer is repeatedly turned on and off, the application installed in the external device to which the line printer is connected is specified, and the communication environment for connecting the external device and the line printer does not change. In this case, the effective transfer rate value can be converged.

ここで、前記外部装置からの設定指令に基づき、前記区切りを示す制御指令を設定する制御指令設定工程を含むようにすることができる。ラインプリンタがレジスタ装置などに接続されており、会計明細書の発行が主な用途になっている場合には、例えば、記録紙をオートカッタでカットするためのカット指令を、区切りを示す制御指令として設定しておけば、用途に即した実効転送レートを取得することができるので、適切な上限速度を算出することができる。   Here, it is possible to include a control command setting step of setting a control command indicating the separation based on a setting command from the external device. If the line printer is connected to a register device and the main issue is the issuance of accounting statements, for example, a cut command for cutting the recording paper with an auto cutter can be used as a control command that indicates a break. If it is set as, an effective transfer rate suitable for the application can be acquired, so that an appropriate upper limit speed can be calculated.

また、前記外部装置からの設定指令に基づき、前記上限値の設定を行なうか否かを決める工程を備えていることが好ましい。ラインプリンタが接続されている外部装置に搭載されているアプリケーションが特定されており、外部装置とラインプリンタを接続する通信環境が変化しない場合には、取得される実効転送レートが収束した後に上限速度算出工程によって算出されて記憶される上限速度は、印刷データの受信待ちのためにライン型印刷ヘッドの1ライン分の印刷毎に印刷が中断してしまうことを回避できる最速の印刷速度になっている。従って、このような上限速度が算出され記憶された後には、新たな上限値を設定しないようにすれば、それ以降は、前回までに記憶されている上限速度が印刷速度の上限値として設定される。従って、一定期間使用した後は、ラインプリンタの印刷速度の上限値の設定処理を軽減することができる。また、予め上限速度が判明している場合には、判明している上限速度を記憶しておけば、ラインプリンタを設置した直後から、印刷データの受信待ちのためにライン型印刷ヘッドの1ライン分の印刷毎に印刷が中断してしまうことを回避でき、印刷品質を高品質に保つことができる。   It is preferable that the method further includes a step of determining whether to set the upper limit value based on a setting command from the external device. If the application installed in the external device to which the line printer is connected is specified and the communication environment connecting the external device and the line printer does not change, the upper limit speed will be set after the acquired effective transfer rate has converged. The upper limit speed calculated and stored in the calculation step is the fastest printing speed that can avoid the interruption of printing for each printing of one line of the line type print head in order to wait for reception of print data. Yes. Therefore, if a new upper limit value is not set after such upper limit speed is calculated and stored, thereafter, the upper limit speed stored up to the previous time is set as the upper limit value of the printing speed. The Therefore, after a certain period of use, the setting process of the upper limit value of the printing speed of the line printer can be reduced. In addition, when the upper limit speed is known in advance, if the known upper speed limit is stored, one line of the line type print head waits for reception of print data immediately after the line printer is installed. The printing can be prevented from being interrupted every time printing is performed, and the printing quality can be kept high.

ここで、前記上限値の設定を行なわない場合には、前記ライン型印刷ヘッドを最高印刷速度で駆動するようにしてもよい。このように設定しておけば、ライン型印刷ヘッドの印刷速度の上限値を設定する必要がない場合には、ラインプリンタが本来備えている最高印刷速度による印刷が行なわれる。   Here, when the upper limit value is not set, the line type print head may be driven at the maximum printing speed. With this setting, when it is not necessary to set the upper limit value of the printing speed of the line type print head, printing is performed at the maximum printing speed that the line printer originally has.

本発明において、前記ライン型印刷ヘッドはライン型サーマルヘッドとすることができる。サーマルヘッドの場合には、印刷の中断により印刷品質の低下が著しいので、本発明を採用することにより、そのような弊害を確実に防止できる。   In the present invention, the line type print head may be a line type thermal head. In the case of a thermal head, the print quality is significantly deteriorated due to the interruption of printing. Therefore, by adopting the present invention, such an adverse effect can be surely prevented.

次に、本発明のラインプリンタは、上述した印刷制御方法によって、外部装置から送信される印刷データを印刷することを特徴とする。   Next, the line printer of the present invention prints print data transmitted from an external apparatus by the above-described print control method.

本発明のラインプリンタおよびラインプリンタの印刷制御方法によれば、受信する印刷データから、ラインプリンタ自身が、実効転送レートを取得して、この実効転送レートに基づいてラインプリンタ自身が印刷速度の上限値を設定する。また、設定された上限値以下の印刷速度になるように、ライン型印刷ヘッドの印刷速度を制御するとともに、記録紙の搬送速度を制御して、印刷する。従って、ホストコンピュータとラインプリンタとの間の通信速度や、ホストコンピュータに搭載されたアプリケーションの処理効率に関係なく、実効転送レートが低い場合にはラインプリンタの印刷速度を遅くすることができる。この結果、印刷データの受信待ちのためにライン型印刷ヘッドの1ライン分の印刷毎に印刷が中断してしまうことを回避できるので、記録紙の送り量に変動が生じて印刷ピッチが乱
れたり、印刷濃度が変化して印刷にムラが発生することを回避して、印刷品質を高品質に保つことができる。
According to the line printer and the print control method of the line printer of the present invention, the line printer itself acquires the effective transfer rate from the received print data, and the line printer itself sets the upper limit of the print speed based on the effective transfer rate. Set the value. Further, printing is performed by controlling the printing speed of the line type print head and the conveyance speed of the recording paper so that the printing speed is equal to or lower than the set upper limit value. Therefore, regardless of the communication speed between the host computer and the line printer and the processing efficiency of the application installed in the host computer, the printing speed of the line printer can be reduced when the effective transfer rate is low. As a result, it is possible to prevent printing from being interrupted every time one line of the line-type print head is waiting for reception of print data, resulting in fluctuations in the feeding amount of the recording paper and disturbing the print pitch. The printing quality can be kept high by avoiding the occurrence of uneven printing due to the change in printing density.

以下に、図面を参照して、本発明を適用したラインサーマルプリンタの実施の形態を説明する。図1は本形態のラインサーマルプリンタを含む会計処理システムの概略構成図である。図2は取得した実効転送レートに基づいて印刷速度を設定する動作を示すフローチャートである。   Hereinafter, an embodiment of a line thermal printer to which the present invention is applied will be described with reference to the drawings. FIG. 1 is a schematic configuration diagram of an accounting processing system including a line thermal printer of this embodiment. FIG. 2 is a flowchart showing an operation of setting the printing speed based on the acquired effective transfer rate.

(ラインサーマルプリンタの構成)
図1に示すように、本形態のラインサーマルプリンタ1はレジスタ装置(ホストコンピュータ)30と接続され、ホストコンピュータ30から送信される印刷データに基づいてロール紙(記録紙4)に会計明細書やクーポンを印刷するものである。ラインサーマルプリンタ1とホストコンピュータ30とで、店舗の会計カウンタに設定される会計処理システム40を構成している。
(Configuration of line thermal printer)
As shown in FIG. 1, the line thermal printer 1 of this embodiment is connected to a register device (host computer) 30, and on the roll paper (recording paper 4) based on the print data transmitted from the host computer 30, Coupons are printed. The line thermal printer 1 and the host computer 30 constitute an accounting processing system 40 that is set in the accounting counter of the store.

ラインサーマルプリンタ1は、ホストコンピュータ30から送信される印刷データを通信インターフェース2を介して受信する。受信した印刷データは、一旦、受信バッファ6に蓄えられる。受信バッファ6に蓄えられた印刷データには、文字データや画像データと共にそれらの印刷位置や大きさを指定する装飾指令、記録紙4の排出を制御する排出指令や記録紙4のカットを指示するカット指令等の制御指令が含まれている。従って、制御部7は、それら制御指令を解析して、ラインサーマルヘッド8による印刷形式に従った1ライン分毎の印刷データを生成する。   The line thermal printer 1 receives print data transmitted from the host computer 30 via the communication interface 2. The received print data is temporarily stored in the reception buffer 6. The print data stored in the reception buffer 6 is instructed with character data and image data, a decoration command for designating the print position and size thereof, a discharge command for controlling the discharge of the recording paper 4, and a cut of the recording paper 4. Control commands such as cut commands are included. Therefore, the control unit 7 analyzes these control commands and generates print data for each line according to the print format by the line thermal head 8.

生成された1ライン分毎の印刷データは、印刷バッファ9に展開されて記憶保持される。また、1ライン分毎の印刷データが印刷バッファ9に展開されるのと並行して、印刷バッファ9に既に展開され記憶保持されている1ライン分毎の印刷データが、ラッチ回路10に読み込まれる。そしてラッチ回路10からラインサーマルヘッド8に送られて、1ライン分毎に印刷が行なわれる。   The generated print data for each line is expanded and stored in the print buffer 9. In parallel with the development of the print data for each line in the print buffer 9, the print data for each line already developed and stored in the print buffer 9 is read into the latch circuit 10. . Then, the data is sent from the latch circuit 10 to the line thermal head 8, and printing is performed for each line.

ラインサーマルヘッド8による1ライン分の印刷が終了すると、ステッピングモータ11はプラテンローラ12を駆動して記録紙4を1ライン分搬送する。搬送が終わると、ラインサーマルヘッド8は次の1ライン分の印刷を行なう。これらの動作は、印刷データが終了するまで繰返し行なわれる。ラインサーマルヘッド8による印刷速度とステッピングモータによる記録紙4の搬送速度は制御部7の駆動制御手段13により制御されている。   When printing for one line by the line thermal head 8 is completed, the stepping motor 11 drives the platen roller 12 to convey the recording paper 4 for one line. When the conveyance is finished, the line thermal head 8 performs printing for the next one line. These operations are repeated until the print data is completed. The printing speed by the line thermal head 8 and the conveyance speed of the recording paper 4 by the stepping motor are controlled by the drive control means 13 of the control unit 7.

ここで、制御部7は、設定情報を記憶する設定記憶手段14、区切りを示す制御信号が検出されてから次にその制御信号を検出するまでのトランザクション時間と、その間に受信した印刷データから印刷バッファ9に展開される1ライン分毎の印刷データのデータ量とから平均転送レートを取得して設定記憶手段14に記憶する平均転送レート取得手段15、所定のタイミングで平均転送レートから実効転送レートを取得する実効転送レート取得手段16、取得した実効転送レートに基づいてラインサーマルヘッド8の上限速度を算出して、設定記憶手段14に記憶する上限速度算出記憶手段17、設定記憶手段14に記憶された上限速度を上限値として設定する上限値設定手段18を備えている。設定記憶手段14は、電源が消されても記憶内容を保持可能な不揮発性メモリ(フラッシュメモリ)から構成されている。上限値設定手段18によって印刷速度の上限値が設定されると、駆動制御手段13は、取得した上限値以下の印刷速度でラインサーマルヘッド8を駆動すると共に、ステッピングモータ11を制御して、記録紙4をラインサーマルヘッド8の印刷速度に対応する搬送速度で搬送する。   Here, the control unit 7 prints from the setting storage means 14 for storing the setting information, the transaction time from the detection of the control signal indicating the delimiter until the next detection of the control signal, and the print data received during that time. An average transfer rate acquisition unit 15 that acquires an average transfer rate from the amount of print data for each line developed in the buffer 9 and stores the average transfer rate in the setting storage unit 14, an effective transfer rate from the average transfer rate at a predetermined timing Effective transfer rate acquisition means 16 for acquiring the upper limit speed of the line thermal head 8 based on the acquired effective transfer rate, and stored in the setting storage means 14 and the upper limit speed calculation storage means 17 and stored in the setting storage means 14 The upper limit value setting means 18 for setting the set upper limit speed as the upper limit value is provided. The setting storage means 14 is composed of a nonvolatile memory (flash memory) that can retain the stored contents even when the power is turned off. When the upper limit value of the printing speed is set by the upper limit value setting means 18, the drive control means 13 drives the line thermal head 8 at a printing speed equal to or lower than the acquired upper limit value, and controls the stepping motor 11 to perform recording. The paper 4 is transported at a transport speed corresponding to the printing speed of the line thermal head 8.

また、実効転送レートを取得してラインサーマルヘッド8の印刷速度の上限値を設定するための一連の手段(平均転送レート取得手段15、実効転送レート取得手段16、上限速度算出記憶手段17、上限値設定手段18)は、ホストコンピュータ30からの動作設定指令によって、その動作を有効にするか、無効にするかを設定できるようになっている。従って、制御部7は、これら一連の手段の動作が有効に設定されているか否かを検出する動作設定検出手段19を備えている。また、印刷データの受信待ちを必要としない印刷モードか否かを検出する印刷モード検出手段20を備えている。   Also, a series of means (average transfer rate acquisition means 15, effective transfer rate acquisition means 16, upper limit speed calculation storage means 17, upper limit for acquiring the effective transfer rate and setting the upper limit value of the printing speed of the line thermal head 8 The value setting means 18) can set whether to enable or disable the operation according to an operation setting command from the host computer 30. Therefore, the control unit 7 includes operation setting detection means 19 for detecting whether or not the operation of the series of means is set to be effective. In addition, a print mode detection unit 20 is provided for detecting whether or not the print mode does not require reception of print data.

さらに、ラインサーマルプリンタ1は、クーポン発行の際に定型的に印刷される店のロゴマークや広告などのグラフィックデータを記憶している画像記憶部21を備えている。   Furthermore, the line thermal printer 1 includes an image storage unit 21 that stores graphic data such as store logo marks and advertisements that are routinely printed when a coupon is issued.

(印刷速度の設定の動作)
次に、図2を参照して、ラインサーマルプリンタ1が実効転送レートに基づいてラインサーマルヘッド8の印刷速度の上限速度を設定する動作を説明する。
(Print speed setting operation)
Next, an operation in which the line thermal printer 1 sets the upper limit speed of the printing speed of the line thermal head 8 based on the effective transfer rate will be described with reference to FIG.

ホストコンピュータ30から印刷データが送信されてくると、工程ST1において、印刷モード検出手段20が、印刷データの受信待ちを必要としない印刷モードか否かを判定する。印刷データの受信待ちを必要としないモードであると判定される場合としては、例えば、以下の3つの場合がある。   When print data is transmitted from the host computer 30, in step ST1, the print mode detection unit 20 determines whether or not the print mode does not require waiting for reception of print data. For example, there are the following three cases where it is determined that the print data reception mode is not required.

第1の場合は、印刷モードがページモードの場合である。ページモードでは、通信インターフェース2を介して受信した印刷データを当該印刷データの区切りまで印刷バッファ9に蓄えた後に印刷を開始するので、印刷の開始から印刷が終了する区切りまでの間は印刷データの受信待ちを必要としない。すなわち、通常の印刷モードでは、印刷データを解析して得られた1ライン分毎の印刷データは、印刷バッファ9に展開されて記憶保持されるのと並行して、ラッチ回路10に読み込まれて印刷が行なわれる。このため、ラインサーマルヘッド8の印刷速度が高速な場合には、ラッチ回路10による読み込みのタイミングが1ライン分毎の印刷データが印刷バッファ9へ展開されるタイミングよりも早くなってしまい、印刷データの受信待ちが必要になる。これに対して、ページモードでは、印刷データを解析して得られた1ライン分毎の印刷データは、その印刷データの区切りまで印刷バッファ9に展開されて記憶保持された後にラッチ回路10により読み込まれて印刷が行なわれるので、印刷の開始から印刷が終了する区切りまでは、印刷データの受信待ちを必要としない。   The first case is when the print mode is the page mode. In the page mode, printing is started after the print data received via the communication interface 2 is stored in the print buffer 9 until the break of the print data. Therefore, the print data is not changed between the start of printing and the break when printing ends. Does not require waiting for reception. That is, in the normal print mode, the print data for each line obtained by analyzing the print data is read into the latch circuit 10 in parallel with being developed and stored in the print buffer 9. Printing is performed. For this reason, when the printing speed of the line thermal head 8 is high, the read timing by the latch circuit 10 is earlier than the timing at which the print data for each line is developed into the print buffer 9, and the print data Waiting to receive is required. On the other hand, in the page mode, the print data for each line obtained by analyzing the print data is expanded and stored in the print buffer 9 until the break of the print data, and then read by the latch circuit 10. Since printing is performed, there is no need to wait for reception of print data from the start of printing until the end of printing.

ページモードは、ホストコンピュータ30から送信されてくる印刷データに含まれているページモード指令によって設定される。従って、制御部7が印刷データの中にページモード指令を検出した場合には、そのページモード指令を解除するページモード解除指令を検出するまでは、印刷モードはページモードに維持される。印刷データの区切りを示す指令としては、例えば、改ページ指令、記録紙4の排出指令、記録紙4をオートカッタでカットするためのカット指令があり、それらを検出することにより、ページモードにおける印刷データの区切りが判断される。   The page mode is set by a page mode command included in the print data transmitted from the host computer 30. Accordingly, when the control unit 7 detects a page mode command in the print data, the print mode is maintained in the page mode until a page mode cancel command for canceling the page mode command is detected. Examples of commands that indicate the separation of print data include a page break command, a recording paper 4 discharge command, and a cut command for cutting the recording paper 4 with an auto cutter. Data separation is determined.

第2の場合は、画像記憶部21に予め記憶保持されているグラフィックデータを印刷する場合である。画像記憶部21に記憶保持されているグラフィックデータは、ホストコンピュータ30から送信されるグラフィック印刷指令により印刷される。   The second case is a case in which graphic data stored and held in advance in the image storage unit 21 is printed. The graphic data stored and held in the image storage unit 21 is printed by a graphic print command transmitted from the host computer 30.

印刷データの中にグラフィック印刷指令を検出すると、制御部7は、画像記憶部21にあるグラフィックデータから1ライン分毎の印刷データを生成する。生成された1ライン分毎の印刷データは、そのグラフィックデータの終了(区切り)まで印刷バッファ9に展開され記憶保持された後に、ラッチ回路10により読み込まれて印刷が行なわれる。従っ
て、印刷の開始から印刷が終了する区切りまでは、印刷データの受信待ちを必要としない。よって、制御部7がグラフィック印刷指令を検出した後、当該グラフィックデータの印刷が終了するまでは、この印刷モードが維持される。
When the graphic print command is detected in the print data, the control unit 7 generates print data for each line from the graphic data in the image storage unit 21. The generated print data for each line is developed and stored in the print buffer 9 until the end (separation) of the graphic data, and is then read and printed by the latch circuit 10. Therefore, there is no need to wait for reception of print data from the start of printing until the end of printing. Therefore, after the control unit 7 detects the graphic print command, this print mode is maintained until the printing of the graphic data is completed.

第3の場合は、ホストコンピュータ30から送信されてくるグラフィックデータを、この印刷モードに指定して印刷する場合である。送信されてくるグラフィックデータは、通常の印刷モードで印刷されるが、ホストコンピュータ30からモード指定印刷指令が送信されると、画像記憶部21に予め記憶保持されているグラフィックデータを印刷する場合と同様に、そのグラフィックデータの終了(区切り)まで印刷バッファ9に展開されて記憶保持された後に、ラッチ回路10により読み込まれて印刷が行なわれるようになる。よって、制御部7がモード指定印刷指令を検出した後、指令によって指定されたグラフィックデータの印刷が終了するまでは、この印刷モードが維持される。   The third case is a case where graphic data transmitted from the host computer 30 is designated and printed in this print mode. The transmitted graphic data is printed in the normal print mode. When a mode designation print command is transmitted from the host computer 30, the graphic data stored and held in advance in the image storage unit 21 is printed. Similarly, after being developed and stored in the print buffer 9 until the end of the graphic data (delimiter), it is read by the latch circuit 10 and printing is performed. Therefore, after the control unit 7 detects the mode designation print command, this print mode is maintained until the graphic data designated by the command is printed.

工程ST1において、印刷データの受信待ちを必要としない印刷モードであると判定された場合には、検出される実効転送レートに拘らず、印刷データの受信待ちのためにラインサーマルヘッド8の1ライン分の印刷毎に印刷が中断してしまうという状態は発生しない。そこで、ラインサーマルヘッド8の印刷速度の上限速度は設定せずに、ラインサーマルプリンタ1が本来備えている最高印刷速度で印刷を行なう工程ST8にジャンプする。   If it is determined in step ST1 that the print mode does not require reception of print data, one line of the line thermal head 8 waits for reception of print data regardless of the detected effective transfer rate. There is no situation where printing is interrupted every minute. Therefore, without setting the upper limit speed of the printing speed of the line thermal head 8, the process jumps to step ST8 in which printing is performed at the maximum printing speed that the line thermal printer 1 originally has.

工程ST1において、印刷データの受信待ちを必要とする印刷モードであると判定された場合には、実効転送レートを取得してラインサーマルヘッド8の印刷速度の上限値を設定するための一連の手段(平均転送レート取得手段15、実効転送レート取得手段16、上限速度算出記憶手段17、上限値設定手段18)の動作が有効に設定されているか否かを検出する工程ST2に移行する。   If it is determined in step ST1 that the print mode requires the reception of print data, a series of means for acquiring the effective transfer rate and setting the upper limit value of the print speed of the line thermal head 8 The process proceeds to step ST2 for detecting whether or not the operations of the (average transfer rate acquisition means 15, effective transfer rate acquisition means 16, upper limit speed calculation storage means 17, and upper limit value setting means 18) are set to be valid.

印刷速度の上限値を設定するための一連の手段の動作の有効/無効は、ホストコンピュータ30から送信される動作設定指令によって設定され、設定された有効/無効のステータスは設定記憶手段14に記憶保持されている。従って、動作設定検出手段19は、設定記憶手段14に記憶保持されているステータスから、印刷速度の上限値を設定するための一連の手段の動作が有効に設定されているか否かを検出する。   The validity / invalidity of the operation of the series of means for setting the upper limit value of the printing speed is set by the action setting command transmitted from the host computer 30, and the set validity / invalid status is stored in the setting storage means 14. Is retained. Accordingly, the operation setting detection unit 19 detects whether or not the operation of a series of units for setting the upper limit value of the printing speed is set from the status stored and held in the setting storage unit 14.

工程ST2において、印刷速度の上限値を設定するための一連の手段の動作が無効に設定されていることが検出された場合には、その時点で、設定記憶手段14に記憶保持されている上限速度をラインサーマルヘッド8の印刷速度の上限値として設定する工程ST7にジャンプする。   In step ST2, when it is detected that the operation of a series of means for setting the upper limit value of the printing speed is set to be invalid, the upper limit stored and held in the setting storage means 14 at that time The process jumps to step ST7 in which the speed is set as the upper limit value of the printing speed of the line thermal head 8.

工程ST2において、印刷速度の上限値を設定するための一連の手段の動作が有効に設定されていることが検出された場合には、平均転送レートを取得する工程ST3へ移行する。   If it is detected in step ST2 that the operation of a series of means for setting the upper limit value of the printing speed is set to be effective, the process proceeds to step ST3 for obtaining an average transfer rate.

工程ST3では、平均転送レート取得手段15が、通信インターフェース2を介して受信する印刷データと、制御部7によって印刷バッファ9に展開される1ライン分毎の印刷データを監視しており、印刷データの中にカット指令などの印刷データの区切りを示す制御指令を検出すると、その指令の後から次に区切りを示す同じ制御指令を受信するまでのトランザクション時間を計測する。また、測定されたトランザクション時間に受信した印刷データから制御部7が印刷バッファ9に展開する1ライン分毎の印刷データのデータ量を計測する。そして、計測されたトランザクション時間およびデータ量から、単位時間当たりに受信する1ライン分毎の印刷データのデータ量(転送レート)を算出する。この転送レートは逐次算出されるので、それらの平均を逐次算出して、これを平均転送レートとして取得する。また、取得した平均転送レートを設定記憶手段14に記憶する。   In step ST3, the average transfer rate acquisition unit 15 monitors the print data received via the communication interface 2 and the print data for each line developed in the print buffer 9 by the control unit 7, and the print data When a control command indicating a print data delimiter such as a cut command is detected, the transaction time is measured after the command until the next control command indicating the delimiter is received. In addition, the control unit 7 measures the data amount of print data for each line developed in the print buffer 9 from the print data received during the measured transaction time. Then, the data amount (transfer rate) of the print data for each line received per unit time is calculated from the measured transaction time and data amount. Since this transfer rate is calculated sequentially, an average of these is calculated and obtained as an average transfer rate. The acquired average transfer rate is stored in the setting storage unit 14.

区切りを示す制御指令のうちのいずれの制御指令をトランザクション時間を計測する区切りとして採用するかは、ホストコンピュータ30から送信される区切設定指令によって、予め設定しておくことができる。本形態の会計処理システム40では、ラインサーマルプリンタ1の主な用途は会計明細書の発行なので、記録紙4をオートカッタでカットするカット指令を区切りを示す制御指令として採用している。   Which control command among the control commands indicating a break is adopted as a break for measuring the transaction time can be set in advance by a break setting command transmitted from the host computer 30. In the accounting processing system 40 of the present embodiment, the main use of the line thermal printer 1 is to issue accounting statements, and therefore, a cut command for cutting the recording paper 4 with an auto cutter is adopted as a control command indicating a delimiter.

工程ST3で平均転送レートが取得されると、取得された平均転送レートから実効転送レートを取得する工程ST4に移行する。工程ST4では、実効転送レート取得手段16が、所定のタイミングで、設定記憶手段14に記憶保持されている平均転送レートを実効転送レートとして取得する。   When the average transfer rate is acquired in step ST3, the process proceeds to step ST4 for acquiring the effective transfer rate from the acquired average transfer rate. In step ST4, the effective transfer rate acquisition unit 16 acquires the average transfer rate stored and held in the setting storage unit 14 as the effective transfer rate at a predetermined timing.

新たな実効転送レートを取得する所定のタイミングは、制御部7がメンテナンス情報をシステム領域に保存するタイミングと同じタイミングである。また、ラインラインプリンタ1の電源が投入された場合には、その時点で設定記憶手段14に記憶保持されている平均転送レートが実効転送レートとして取得される。なお、メンテナンス情報とは、ラインサーマルプリンタ1の累積可動時間や累積印刷行数などであり、消耗した部品を交換する目安をユーザー等に知らせるために利用される情報である。   The predetermined timing for acquiring a new effective transfer rate is the same as the timing at which the control unit 7 stores the maintenance information in the system area. When the power of the line line printer 1 is turned on, the average transfer rate stored and held in the setting storage unit 14 at that time is acquired as the effective transfer rate. The maintenance information is the accumulated operating time of the line thermal printer 1, the accumulated number of printed lines, and the like, and is information used for notifying the user or the like of a guideline for replacing worn parts.

工程ST4で実効転送レートが取得されると、工程ST5に移行する。工程ST5では、上限速度算出記憶手段17が、実効転送レートからラインサーマルヘッド8の1ライン分の印刷毎に印字データが間に合う範囲で、最も高速の印刷速度を上限速度として算出し、これを設定記憶手段14に記憶する。   When the effective transfer rate is acquired in step ST4, the process proceeds to step ST5. In step ST5, the upper limit speed calculation storage means 17 calculates the highest print speed as the upper limit speed in the range where the print data is in time for each line of printing of the line thermal head 8 from the effective transfer rate, and sets this. Store in the storage means 14.

本形態のラインサーマルプリンタ1の仕様を、例えば、解像度203dpi、64桁/行、24dot/改行、最高印刷速度300mm/sとした場合には、上限速度算出記憶手段17は、取得した実効転送レートが57600bpsならば、上限速度として270mm/sを算出する。取得した実効転送レートが38400bpsならば、上限速度として180mm/sを算出する。取得した実効転送レート9600bpsならば、上限速度として45mm/sを算出する。そして、算出した上限速度を、設定記憶手段14に記憶する。   When the specifications of the line thermal printer 1 of this embodiment are, for example, resolution 203 dpi, 64 digits / line, 24 dots / line feed, and a maximum printing speed of 300 mm / s, the upper limit speed calculation storage unit 17 acquires the acquired effective transfer rate. Is 57600 bps, 270 mm / s is calculated as the upper limit speed. If the acquired effective transfer rate is 38400 bps, 180 mm / s is calculated as the upper limit speed. If the acquired effective transfer rate is 9600 bps, 45 mm / s is calculated as the upper limit speed. Then, the calculated upper limit speed is stored in the setting storage unit 14.

工程ST5で算出された上限速度が設定記憶手段14に記憶されると、工程ST6に移行して、上限値設定手段18が、設定記憶手段14に記憶保持されている上限速度をラインサーマルヘッド8の印刷速度の上限値として設定する。   When the upper limit speed calculated in step ST5 is stored in the setting storage unit 14, the process proceeds to step ST6, where the upper limit value setting unit 18 sets the upper limit speed stored in the setting storage unit 14 to the line thermal head 8 Set as the upper limit of printing speed.

工程ST6で印刷速度の上限値が設定されると、工程ST7に移行して、駆動制御手段13は、設定された上限値以下の印刷速度でラインサーマルヘッド8を駆動すると共に、ステッピングモータ11を制御して、記録紙4をラインサーマルヘッド8の印刷速度に対応する搬送速度で搬送して、印刷を行う。   When the upper limit value of the printing speed is set in step ST6, the process proceeds to step ST7, and the drive control means 13 drives the line thermal head 8 at a printing speed equal to or lower than the set upper limit value, and the stepping motor 11 is turned on. Under control, the recording paper 4 is transported at a transport speed corresponding to the printing speed of the line thermal head 8 to perform printing.

ここで、工程ST2において印刷速度の上限値を設定するための一連の手段の動作が無効に設定されていることが検出された場合には、工程ST3〜ST5を経ないで、印刷速度の上限値の設定の動作は工程ST6に移行してくる。この場合には、工程ST6に移行してきた時点で設定記憶手段14に記憶保持されている上限速度がラインサーマルヘッド8の印刷速度の上限値として設定される。その後、工程ST7に移行して、設定された上限値以下の印刷速度による印刷が行なわれる。   Here, if it is detected in step ST2 that the operation of a series of means for setting the upper limit value of the printing speed is invalid, the upper limit of the printing speed is not passed through steps ST3 to ST5. The value setting operation proceeds to step ST6. In this case, the upper limit speed stored and held in the setting storage means 14 at the time of moving to step ST6 is set as the upper limit value of the printing speed of the line thermal head 8. Thereafter, the process proceeds to step ST7, and printing is performed at a printing speed equal to or lower than the set upper limit value.

以上、本形態のラインサーマルプリンタ1は、ホストコンピュータ30から送信された印刷データから、単位時間当たりに印刷バッファ9に展開されるラインサーマルヘッド8
による印刷形式に従った1ライン分毎の印刷データのデータ量を実効転送レートとして取得する(工程ST3、ST4)。また、取得した実効転送レートに基づいて、ラインサーマルヘッド8の印刷速度の上限値を設定する(工程ST5、ST6)。そして、設定された上限値以下の印刷速度になるように、駆動制御手段13はラインサーマルヘッド8の印刷速度を制御するとともに、記録紙4の搬送速度を制御して印刷する(工程ST7)。
As described above, the line thermal printer 1 according to this embodiment has the line thermal head 8 developed in the print buffer 9 per unit time from the print data transmitted from the host computer 30.
The amount of print data for each line according to the print format is acquired as an effective transfer rate (steps ST3 and ST4). Further, the upper limit value of the printing speed of the line thermal head 8 is set based on the acquired effective transfer rate (steps ST5 and ST6). Then, the drive control means 13 controls the printing speed of the line thermal head 8 and controls the conveyance speed of the recording paper 4 so that the printing speed is equal to or lower than the set upper limit value (step ST7).

この結果、ホストコンピュータ30とラインサーマルプリンタ1との間の通信速度や、ホストコンピュータ30に搭載されたアプリケーションの処理効率に関係なく、印刷データの実効転送レートが遅い場合には、ラインサーマルプリンタ1自身が印刷速度を遅くするので、印刷データの受信待ちのためにラインサーマルヘッド8の1ライン分の印刷毎に印刷が中断してしまうことを回避できる。従って、記録紙4の送り量に変動が生じて印刷ピッチが乱れたり、印刷濃度が変化して印刷にムラが発生することを回避して、印刷品質を高品質に保つことができる。   As a result, when the effective transfer rate of the print data is low regardless of the communication speed between the host computer 30 and the line thermal printer 1 and the processing efficiency of the application installed in the host computer 30, the line thermal printer 1 Since the printing speed is reduced by itself, it can be avoided that printing is interrupted for each printing of one line of the line thermal head 8 in order to wait for reception of printing data. Therefore, it is possible to keep the printing quality high by avoiding fluctuations in the feed amount of the recording paper 4 and disturbing the printing pitch, or changing the printing density and causing printing unevenness.

また、本形態のラインサーマルプリンタ1によれば、ページモード指令やグラフィック印刷指令が検出された場合には、取得される実効転送レートに拘らず、最高印刷速度による印刷を行うことができる(工程ST9)。   Further, according to the line thermal printer 1 of the present embodiment, when a page mode command or a graphic print command is detected, it is possible to perform printing at the maximum printing speed regardless of the acquired effective transfer rate (steps). ST9).

さらに、本形態のラインサーマルプリンタ1は、上限速度を設定する一連の手段(平均転送レート取得手段15、実効転送レート取得手段16、上限速度算出記憶手段17、上限値設定手段18)の動作をホストコンピュータ30から送信される機能制御指令により無効にすることができる。   Further, the line thermal printer 1 of the present embodiment performs the operation of a series of means for setting an upper limit speed (average transfer rate acquisition means 15, effective transfer rate acquisition means 16, upper limit speed calculation storage means 17, upper limit value setting means 18). It can be invalidated by a function control command transmitted from the host computer 30.

例えば、本形態の会計処理システム40のように、ホストコンピュータ30に搭載されているアプリケーションが固定されており、ラインサーマルプリンタ1の主な用途が購入物品とその金額の一覧を羅列した会計明細書の発行の場合には、店舗で一定期間会計処理システム40を使用すると、実効転送レート取得手段16によって取得される実効転送レートの値は収束してくる。また、これに伴って、上限速度算出記憶手段17によって設定記憶手段14に記憶保持される上限速度の値の収束してくる。そこで、会計処理システム40を設置して一定期間が経過した後に、印刷速度の上限値を設定するための一連の手段の動作を無効に設定すれば、それ以降は、印刷速度の上限値を設定する一連の手段の動作(工程ST3〜ST5)を経ることなく、工程ST6で設定記憶手段14に記憶保持されている収束した値の上限速度を印刷速度の上限値として設定することができる。また、工程ST7では、設定された上限速度以下の印刷速度によって印刷を行なうことができる。   For example, like the accounting processing system 40 of this embodiment, the application installed in the host computer 30 is fixed, and the main use of the line thermal printer 1 is the accounting statement listing the purchased goods and their amounts. If the accounting processing system 40 is used for a certain period in the store, the effective transfer rate value acquired by the effective transfer rate acquisition means 16 converges. Accordingly, the upper limit speed value stored in the setting storage means 14 by the upper limit speed calculation storage means 17 converges. Therefore, if the operation of a series of means for setting the upper limit value of the printing speed is set to invalid after a certain period of time has elapsed after the accounting processing system 40 is installed, the upper limit value of the printing speed is set thereafter. The upper limit speed of the converged value stored and held in the setting storage means 14 in step ST6 can be set as the upper limit value of the printing speed without going through a series of operations (steps ST3 to ST5). In step ST7, printing can be performed at a printing speed that is equal to or lower than the set upper limit speed.

また、本形態の会計処理システム40を開発するベンダーは、ユーザーに会計処理システム40を納入する前に、ユーザーの使用環境と同一の環境で一定期間使用テストを行なって、上限速度が収束した後に、印刷速度の上限値を設定するための一連の手段の動作を無効に設定すれば、ユーザーは会計処理システム40の設置時点から、印刷データの受信待ちのためにライン型印刷ヘッドの1ライン分の印刷毎に印刷が中断してしまうことを回避でき、印刷品質を高品質に保つことができる。また、ユーザーが印刷速度の上限値を設定する機能が必要ないとしている場合にも、印刷速度の上限値を設定するための一連の手段の動作を無効に設定すれば対応できる。この場合には、設定記憶手段に記憶されている上限速度の初期値はラインサーマルプリンタが本来備えている最高印刷速度としておけばよい。   In addition, a vendor who develops the accounting processing system 40 of this embodiment performs a usage test for a certain period in the same environment as the user's usage environment before delivering the accounting processing system 40 to the user, and after the upper limit speed has converged. If the operation of the series of means for setting the upper limit value of the printing speed is set to be invalid, the user can wait for one line of the line type print head from the time of installation of the accounting processing system 40 to wait for receiving print data. The printing can be prevented from being interrupted every time printing is performed, and the printing quality can be kept high. Further, even when the user does not need a function for setting the upper limit value of the printing speed, it can be dealt with by invalidating the operation of a series of means for setting the upper limit value of the printing speed. In this case, the initial value of the upper limit speed stored in the setting storage means may be the maximum printing speed originally provided in the line thermal printer.

さらに、本形態のラインサーマルプリンタ1では、トランザクション時間を測定するためのデータの区切り示す制御指令として、いずれの制御指令を採用するかを区切設定指令により設定できるようになっている。従って、ラインサーマルプリンタ1が用いられる用途に即して区切り示す制御指令を選択すれば、適切な実効転送レートを取得できるので、
ラインサーマルヘッド8の印刷速度の上限値を適切なものに設定することができる。
Further, in the line thermal printer 1 according to the present embodiment, which control command is to be adopted as a control command indicating a data delimiter for measuring the transaction time can be set by a delimiter setting command. Therefore, if a control command that is delimited according to the application in which the line thermal printer 1 is used is selected, an appropriate effective transfer rate can be acquired.
The upper limit value of the printing speed of the line thermal head 8 can be set to an appropriate value.

なお、本実施の形態のラインプリンタの印刷ヘッドはライン型サーマルヘッドであったが、他の方式の印刷ヘッドを備えたラインプリンタに本発明を適用することもできる。   Although the print head of the line printer of this embodiment is a line type thermal head, the present invention can be applied to a line printer having a print head of another type.

また、ホストコンピュータ30とラインサーマルプリンタ1とを接続する通信インターフェース2がどのような通信インターフェース2であっても本発明を適用することができる。   Further, the present invention can be applied to any communication interface 2 that connects the host computer 30 and the line thermal printer 1.

本発明を適用したラインサーマルプリンタを含む会計処理システムの概略構成図である。It is a schematic block diagram of the accounting processing system containing the line thermal printer to which this invention is applied. 取得した実効転送レートに基づいて印刷速度を設定する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which sets a printing speed based on the acquired effective transfer rate.

符号の説明Explanation of symbols

1・ラインサーマルプリンタ、2・通信インターフェース、4・記録紙、6・受信バッファ、7・制御部、8・ラインサーマルヘッド、9・印刷バッファ、10・ラッチ回路、11・ステッピングモータ、12・プラテンローラ、13・駆動制御手段、14・設定記憶手段、15・平均転送レート取得手段、16・実効転送レート取得手段、17・上限速度算出記憶手段、18・上限値設定手段、19・動作設定検出手段、20・印刷モード検出手段、21・画像記憶部、30・ホストコンピュータ、40・会計処理システム 1. Line thermal printer 2. Communication interface 4. Recording paper 6. Receive buffer 7. Control unit 8. Line thermal head 9. Print buffer 10. Latch circuit 11. Stepping motor 12. Platen Roller, 13 · Drive control means, 14 · Setting storage means, 15 · Average transfer rate acquisition means, 16 · Effective transfer rate acquisition means, 17 · Upper limit speed calculation storage means, 18 · Upper limit setting means, 19 · Operation setting detection Means 20 · print mode detection means 21 · image storage unit 30 · host computer 40 · accounting system

Claims (10)

外部装置から受信する印刷データを、ライン型印刷ヘッドにより1ラインずつ印刷するラインプリンタの印刷制御方法であって、
受信した前記印刷データを、前記ライン型印刷ヘッドによる1ライン分毎、印刷バッファに展開するデータ量と、
前記印刷データを受信する受信時間と、
から実効転送レートとして取得する実効転送レート取得工程と、
1ライン分の印刷毎に印刷データの受信待ちのための印刷中断状態が生じないように、前記実効転送レートに基づいて、前記ラインプリンタが前記ライン型印刷ヘッドの上限速度を算出して記憶する上限速度算出工程と、
前記上限速度を印刷速度の上限値として設定する上限値設定工程と、
設定された上限値以下の印刷速度で前記ライン型印刷ヘッドを駆動すると共に、記録媒体を当該印刷速度に対応する搬送速度で搬送して、印刷を行わせる印刷工程と、
を含むことを特徴とするラインプリンタの印刷制御方法。
A print control method for a line printer that prints print data received from an external device line by line with a line-type print head,
The received print data is an amount of data to be developed in a print buffer for each line by the line type print head;
A reception time for receiving the print data;
An effective transfer rate acquisition step of acquiring as an effective transfer rate from,
Based on the effective transfer rate, the line printer calculates and stores the upper limit speed of the line-type print head so that a print interruption state for waiting to receive print data does not occur every time one line is printed. An upper speed calculation step;
An upper limit setting step for setting the upper limit speed as an upper limit of the printing speed;
A printing process in which the line-type print head is driven at a printing speed equal to or lower than a set upper limit value, and the recording medium is conveyed at a conveyance speed corresponding to the printing speed, and printing is performed;
A print control method for a line printer, comprising:
請求項1において、
印刷データの受信待ちを必要としない印刷モードであるか否かを判定する印刷モード判定工程と、
前記印刷モード判定工程において、印刷データの受信待ちを必要としない印刷モードであると判定された場合には、前記実効転送レートに拘りなく、前記ライン型印刷ヘッドを最高印刷速度で駆動する最高速度印刷工程を含むことを特徴とするラインプリンタの印刷制御方法。
In claim 1,
A print mode determination step for determining whether or not the print mode does not require reception of print data;
In the print mode determination step, when it is determined that the print mode does not need to wait for reception of print data, the maximum speed for driving the line type print head at the maximum print speed regardless of the effective transfer rate. A printing control method for a line printer, comprising a printing step.
請求項2において、
前記の印刷データの受信待ちを必要としない印刷モードには、受信した印刷データを当該印刷データの区切りまで印刷バッファに蓄えた後に印刷を開始するモードが含まれていることを特徴とするラインプリンタの印刷制御方法。
In claim 2,
The print mode that does not require waiting for reception of the print data includes a mode in which printing is started after the received print data is stored in the print buffer up to the end of the print data. Print control method.
請求項1ないし3のいずれかにおいて、
前記実効転送レート取得工程は、前記外部装置から送信される印刷データを受信する受信工程と、
前記受信工程で印刷データの中に印刷データの区切りを示す制御指令を検出すると、当該制御指令の後から次に前記制御指令と同じ制御指令を受信するまでのトランザクション時間を計測するトランザクション時間計測工程と、
計測された前記トランザクション時間に受信した前記印刷データから印刷バッファに展開される1ライン分毎の印刷データのデータ量を測定するデータ量測定工程と、
計測された前記トランザクション時間と測定された前記データ量とから印刷データの転送レートを逐次取得する転送レート取得工程と、
逐次取得される前記転送レートを平均して平均転送レートを取得する平均転送レート取得工程とを含んでおり、
前記平均転送レートを所定のタイミングで実効転送レートとして取得することを特徴とするラインプリンタの印刷制御方法。
In any of claims 1 to 3,
The effective transfer rate acquisition step includes a reception step of receiving print data transmitted from the external device;
A transaction time measurement step of measuring a transaction time from when the control command indicating a break of print data is detected in the print data to the next reception of the same control command as the control command after the control command is detected. When,
A data amount measuring step of measuring a data amount of print data for each line developed in the print buffer from the print data received at the measured transaction time;
A transfer rate acquisition step of sequentially acquiring a transfer rate of print data from the measured transaction time and the measured data amount;
An average transfer rate obtaining step of obtaining an average transfer rate by averaging the transfer rates obtained sequentially,
A print control method for a line printer, wherein the average transfer rate is acquired as an effective transfer rate at a predetermined timing.
請求項4において、
前記実効転送レート取得工程は、前記平均転送レート取得手段で取得した前記平均転送レートを不揮発性メモリに記憶保持する平均転送レート記憶保持工程を含み、
前記ラインプリンタの電源投入時には、前記実効転送レート取得工程は、前記平均転送レート記憶保持工程で不揮発性メモリに記憶保持されている前記平均転送レートを実効転送レートとして取得することを特徴とするラインプリンタの印刷制御方法。
In claim 4,
The effective transfer rate acquisition step includes an average transfer rate storage holding step of storing and holding the average transfer rate acquired by the average transfer rate acquisition means in a nonvolatile memory,
When the line printer is turned on, the effective transfer rate acquisition step acquires the average transfer rate stored and held in a nonvolatile memory in the average transfer rate storage hold step as an effective transfer rate. Print control method of the printer.
請求項4または5において、
前記外部装置からの設定指令に基づき、前記区切りを示す制御指令を設定する制御指令設定工程を含むことを特徴とするラインプリンタの印刷制御方法。
In claim 4 or 5,
A line printer printing control method comprising a control command setting step of setting a control command indicating the separation based on a setting command from the external device.
請求項1ないし6のいずれかにおいて、
前記外部装置からの設定指令に基づき、前記上限値の設定を行なうか否かを決める工程を備えていることを特徴とするラインプリンタの印刷制御方法。
In any one of Claims 1 thru | or 6.
A line printer printing control method comprising a step of determining whether or not to set the upper limit value based on a setting command from the external device.
請求項7において、
前記上限値の設定を行なわない場合には、前記ライン型印刷ヘッドを最高印刷速度で駆動することを特徴とするラインプリンタの印刷制御方法。
In claim 7,
When the upper limit value is not set, the line type print head is driven at a maximum printing speed.
請求項1ないし8のいずれかにおいて
前記ラインプリンタはラインサーマルプリンタであることを特徴とするラインプリンタの印刷制御方法。
The line printer printing control method according to claim 1, wherein the line printer is a line thermal printer.
請求項1ないし9のいずれかに記載の印刷制御方法によって、外部装置から送信される印刷データを印刷することを特徴とするラインプリンタ。   A line printer that prints print data transmitted from an external apparatus by the print control method according to claim 1.
JP2006191084A 2006-07-12 2006-07-12 Line printer and printing control method of line printer Withdrawn JP2008018584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006191084A JP2008018584A (en) 2006-07-12 2006-07-12 Line printer and printing control method of line printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006191084A JP2008018584A (en) 2006-07-12 2006-07-12 Line printer and printing control method of line printer

Publications (1)

Publication Number Publication Date
JP2008018584A true JP2008018584A (en) 2008-01-31

Family

ID=39074932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006191084A Withdrawn JP2008018584A (en) 2006-07-12 2006-07-12 Line printer and printing control method of line printer

Country Status (1)

Country Link
JP (1) JP2008018584A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102975501A (en) * 2012-12-18 2013-03-20 武汉大学 Circuit board printing system and printing method
JP2016221705A (en) * 2015-05-27 2016-12-28 セイコーインスツル株式会社 Printer, control method and program
JP2017087737A (en) * 2015-03-17 2017-05-25 株式会社東芝 Structure
JP2017226105A (en) * 2016-06-21 2017-12-28 富士ゼロックス株式会社 Control device, image formation device, image formation system and program
CN113829769A (en) * 2021-09-30 2021-12-24 珠海趣印科技有限公司 Printing speed optimization method and device of Bluetooth printer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102975501A (en) * 2012-12-18 2013-03-20 武汉大学 Circuit board printing system and printing method
JP2017087737A (en) * 2015-03-17 2017-05-25 株式会社東芝 Structure
JP2016221705A (en) * 2015-05-27 2016-12-28 セイコーインスツル株式会社 Printer, control method and program
JP2017226105A (en) * 2016-06-21 2017-12-28 富士ゼロックス株式会社 Control device, image formation device, image formation system and program
CN113829769A (en) * 2021-09-30 2021-12-24 珠海趣印科技有限公司 Printing speed optimization method and device of Bluetooth printer
CN113829769B (en) * 2021-09-30 2023-09-22 珠海趣印科技有限公司 Printing speed optimization method and device for Bluetooth printer

Similar Documents

Publication Publication Date Title
US7869063B2 (en) Printing apparatus, printer control method, printer control program, and printing system
JP4246367B2 (en) Printing device
US7916316B2 (en) Printer and printer control method for resuming printing operation following an out of paper error
US9208419B2 (en) Controlling apparatus for controlling a first printing apparatus and a second apparatus
US20060055972A1 (en) Printer and printer control method
JP2011101994A (en) Recording control device, recorder, control method of recorder, and program
JP2008018584A (en) Line printer and printing control method of line printer
JP4775278B2 (en) Operation control device, electronic device, operation control method, and program
JP2006127500A (en) Printer, printing system and driver program for printer
JP2009119610A (en) Recording device
JP2007276144A (en) Printing controlling apparatus, printing controlling method and program
US8137015B2 (en) Image forming method for determining a position of an ink ribbon with a boundary line
JP2008012788A (en) Line printer, and printing controlling method for line printer
JP5617384B2 (en) Continuous paper printing tandem system and control method for continuous paper printing tandem system
US7284919B2 (en) Printing apparatus and control method
JP2012176575A (en) Printer and sheet feeding method
JP2009137235A (en) Printer
JP2008037030A (en) Printing device and control method of the same
JP2006338127A (en) Image forming device
JP2009154298A (en) Recording device and control method for recording device
JP2023014478A (en) Printing system and printing method
JP2021098278A (en) Printing device
JP2007147923A (en) Image forming apparatus and image forming method
JP2019126960A (en) Inkjet recording device
JP2004133941A (en) Monitoring of print performance

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090529

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110413