JPH05221070A - Serial printer - Google Patents

Serial printer

Info

Publication number
JPH05221070A
JPH05221070A JP5661792A JP5661792A JPH05221070A JP H05221070 A JPH05221070 A JP H05221070A JP 5661792 A JP5661792 A JP 5661792A JP 5661792 A JP5661792 A JP 5661792A JP H05221070 A JPH05221070 A JP H05221070A
Authority
JP
Japan
Prior art keywords
data
printing
received
print
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.)
Granted
Application number
JP5661792A
Other languages
Japanese (ja)
Other versions
JP2784858B2 (en
Inventor
Masaru Sasauchi
勝 篠内
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.)
Tamura Electric Works Ltd
Original Assignee
Tamura Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tamura Electric Works Ltd filed Critical Tamura Electric Works Ltd
Priority to JP4056617A priority Critical patent/JP2784858B2/en
Publication of JPH05221070A publication Critical patent/JPH05221070A/en
Application granted granted Critical
Publication of JP2784858B2 publication Critical patent/JP2784858B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To improve printing speed relatively by omitting needless printing motion by a method wherein when an effective printing data among received printing data is printed, printing of the remainder blank data is omitted and immediately thereafter, receiving of the following printing data is made possible. CONSTITUTION:A buffer memory 30 stores one line content of a printing data. Further, a storing means stores a received printing data into the buffer memory 30. Furthermore, a data editing means takes a data excluding a blank data continued to a line end among the printing data in storing or after storing with the storing means as an effective printing data. Further, a printing scan means reads the effective printing data successively from the buffer memory 30, and prints them. Besides, it omits printing of the remainder blank data according to end of printing, and stops scanning with a printing head 40. Then, a control means 3 enables the following printing data to be received by the above-mentioned storing means and data editing means after end of printing. Consequently, printing efficiency is improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、端末装置から受信した
印字データを片方向に印字ヘッドを走査させて順次印字
するシリアルプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer for sequentially printing print data received from a terminal device by scanning a print head in one direction.

【0002】[0002]

【従来の技術】一般にこの種のシリアルプリンタは、ホ
ストコンピュータと接続され、ホストコンピュータから
印字データを受信すると、受信したデータ通りにそのま
ま印字するようにしている。
2. Description of the Related Art Generally, a serial printer of this type is connected to a host computer, and when print data is received from the host computer, it prints as it is.

【0003】[0003]

【発明が解決しようとする課題】ところが、ホストコン
ピュータ側からは印字データとして空白を示すデータ
(データ「00」)も送信されるため、従来のシリアル
プリンタは、この空白データも受信して印字するように
している。しかしながらこの空白データを印字しても実
際には印刷されないため、無用な印字動作を行うことに
なり、この結果ヘッドの摩耗や印字時間に無駄が生じる
という問題があった。
However, since data indicating a blank (data "00") is also transmitted as print data from the host computer side, the conventional serial printer also receives and prints this blank data. I am trying. However, even if this blank data is printed, it is not actually printed, so that a useless printing operation is performed, resulting in problems such as wear of the head and waste of printing time.

【0004】[0004]

【課題を解決するための手段】このような課題を解決す
るために本発明は、1行分の印字データを格納するバッ
ファ・メモリと、受信した印字データをバッファ・メモ
リへ格納する格納手段と、この格納手段の格納時または
格納後に印字データのうち行末まで連続する空白データ
以外のデータを有効印字データとするデータ編集手段
と、有効印字データをバッファ・メモリから順次読みだ
して印字すると共に印字終了に応じ残りの空白データの
印字を省略して印字ヘッドの走査を停止する印字走査手
段と、印字終了後,格納手段およびデータ編集手段によ
り次の印字データの受信を可能とする制御手段とを備え
たものである。
In order to solve such a problem, the present invention provides a buffer memory for storing print data for one line and a storage means for storing received print data in the buffer memory. , Data editing means for making data other than blank data continuous to the end of the line of print data as valid print data at the time of storage of this storage means or after storage, and effective print data are sequentially read from the buffer memory and printed A print scanning means for stopping the scanning of the print head by omitting the printing of the remaining blank data upon completion of the printing, and a control means for enabling the storage means and the data editing means to receive the next print data after the printing is completed. Be prepared.

【0005】[0005]

【作用】受信した印字データのうち、有効印字データを
印字すると、残りの空白データの印字は省略されると共
に、直ちに次の印字データの受信が可能になるため、無
用な印字動作が省略され、かつ印字速度が相対的に向上
する。
When the effective print data among the received print data is printed, the printing of the remaining blank data is omitted and the next print data can be received immediately, so that the unnecessary print operation is omitted. And the printing speed is relatively improved.

【0006】[0006]

【実施例】以下、本発明について図面を参照して説明す
る。図3は本発明に係るシリアルプリンタの一実施例を
示すブロック図である。同図において、1はこのシリア
ルプリンタと図示しないホストコンピュータとを接続す
るプリンタI/Fコネクタ、2は各種のキーとLEDと
からなる操作部、3はバッファ・メモリを有するCPU
30,温度センサ31,ヘッドドライバ32,モータド
ライバ33,パワーオンリセット回路34から構成され
る制御部、4は印字を行うサーマルヘッド40,モータ
41,ヘッドのホームポジションを指示するホームポジ
ションスイッチ42から構成されるプリンタユニット
部、5は電源スイッチSWのオンにより各部へ電源を供
給する電源部である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 3 is a block diagram showing an embodiment of the serial printer according to the present invention. In the figure, 1 is a printer I / F connector for connecting the serial printer to a host computer (not shown), 2 is an operation unit including various keys and LEDs, and 3 is a CPU having a buffer memory.
The controller 4 includes a temperature sensor 31, a head driver 32, a motor driver 33, and a power-on reset circuit 34. The configured printer unit section 5 is a power supply section that supplies power to each section when the power switch SW is turned on.

【0007】次に、図4は、上記シリアルプリンタによ
り印字される状況を示す図である。このプリンタは、3
20ドット×8ドットで1行を構成し、ホストコンピュ
ータから1行分の印字データを受信すると、左方向から
右方向へ1行分の印字を行いこれが終了すると、次の1
行分のデータを受信して次の行の印字を指定されたホー
ムポジションである左方向から開始するようになってい
る。そして、60行(240ドット÷8ドット)の印字
が終了すると、次の頁の先頭行から再び印字が開始され
る。
Next, FIG. 4 is a diagram showing a situation in which printing is performed by the serial printer. This printer has 3
One line is composed of 20 dots x 8 dots, and when one line of print data is received from the host computer, one line is printed from left to right.
Upon receiving the data for one line, the printing of the next line is started from the designated home position to the left. When printing of 60 lines (240 dots / 8 dots) is completed, printing is restarted from the first line of the next page.

【0008】上記したようにこのシリアルプリンタは、
印字に先だってホストコンピュータから1行分の印字デ
ータを受信しCPU30内のバッファ・メモリへ格納す
るが、この1行分の印字データは例えば「01」H,
「51」H,「AB」H,・・・のような8ビットのヘ
キサコードのデータでありこのようなヘキサコードデー
タが320データ分ホストコンピュータから送信されて
くる。勿論これらのデータの中には無印字を示すデータ
「00」H(空白データ)も含まれている。本発明は、
320データ分を受信した後で無印字を示すデータを検
出しこのデータが例えば201番目のデータから320
番目のデータ間に連続していた場合には、200番目の
データまで印字動作を行わせ、以降の印字動作を省略す
るようにしたものである。
As described above, this serial printer is
Prior to printing, one line of print data is received from the host computer and stored in the buffer memory in the CPU 30. This one line of print data is, for example, "01" H,
8-bit hex code data such as "51" H, "AB" H, ..., Such hex code data is transmitted from the host computer for 320 data. Of course, the data "00" H (blank data) indicating no printing is included in these data. The present invention is
After receiving 320 data, data indicating no printing is detected, and this data is, for example, from the 201st data to 320
If the data is continuous between the second data, the printing operation is performed up to the 200th data, and the subsequent printing operations are omitted.

【0009】次に図2は、上記シリアルプリンタの各部
の動作状況を示すタイミングチャートである。同図の
(a)は、ヘッドモータ41の動作を、(b)はヘッド
40の印字動作を、また(c)は制御部3内のCPU3
0の受信動作を、さらに(d)はこのプリンタの状態を
示している。ここでプリンタが、図2(d)に示すよう
にレディ(READY)状態にあれば、ホストコンピュ
ータはプリンタに対し1行分の印字データを送信し、こ
のとき(c)に示すように、CPU30は1行分の印字
データを受信し、データの受信が終了すると、プリンタ
の状態をビジィ(BUSY)状態にすると共に、(a)
に示すようにヘッドモータ41を正転させてヘッド40
を左方向から右方向へ移動させ、さらにヘッド40を駆
動して受信した印字データの印字を行わせる。。なお、
CPU30は、上記したように印字に先だって無印字を
示すデータの検索を行っており、この無印字データが検
出されてもこれが最後のデータを示す320番目のデー
タまで連続して存在していない場合にはこの間に無印字
データがあっても印字動作を行わせ、最後の有印字デー
タ(有効印字データ)の印字後、次の行の印字準備をさ
せるために(a)に示すようにモータ41の逆転動作を
開始させてヘッド40を左方向(ホームポジション側)
へ移動させ、(d)に示すようにプリンタの状態をビジ
ィ状態からレディ状態にする。このように、モータの逆
転開始指令と同時にプリンタがレディ状態となるため、
モータが逆転して次の行の印字開始位置(ホームポジシ
ョン)へヘッド40が戻る間に、ホストコンピュータ側
から次の1行の印字データの送信が行え、この結果、シ
リアルプリンタ側では送信される印字データの受信及び
その編集が可能となって印字効率が向上する。
Next, FIG. 2 is a timing chart showing the operation status of each part of the serial printer. In the figure, (a) shows the operation of the head motor 41, (b) shows the printing operation of the head 40, and (c) shows the CPU 3 in the control unit 3.
0 reception operation, and (d) shows the status of this printer. Here, if the printer is in the READY state as shown in FIG. 2D, the host computer transmits the print data for one line to the printer, and at this time, as shown in FIG. Receives the print data for one line, and when the data reception is completed, the printer status is changed to the BUSY status and (a)
As shown in FIG.
Is moved from the left to the right, and the head 40 is driven to print the received print data. . In addition,
As described above, the CPU 30 searches for data indicating non-printing before printing, and even if the non-printing data is detected, it does not continuously exist until the 320th data indicating the last data. In order to prepare for printing the next line after printing the last print data (valid print data), the motor 41 is operated as shown in FIG. Start the reverse rotation of and move the head 40 to the left (home position side)
And the printer status is changed from the busy status to the ready status as shown in (d). In this way, the printer becomes ready at the same time as the motor reverse rotation start command,
While the motor reversely rotates and the head 40 returns to the print start position (home position) of the next line, the print data of the next line can be transmitted from the host computer side, and as a result, it is transmitted on the serial printer side. Print data can be received and edited to improve print efficiency.

【0010】次に図2は、このシリアルプリンタ内のC
PU30の動作を示すフローチャートである。即ち、ス
テップ100においては、ホストコンピュータ側の印字
操作により送信されてくる1行分の印字データの受信を
開始すると共に、ステップ101ではESC(拡張キャ
ラクタ;escape character)シーケン
スを取得して1行分の印字データ数x(本実施例では3
20)を規定する。そしてステップ102では後述する
印字データ数m及びカウント変数nを共に「0」とし、
ステップ103で印字データ数mを1つカウントアップ
する。
Next, FIG. 2 shows the C in the serial printer.
It is a flowchart which shows operation | movement of PU30. That is, in step 100, reception of one line of print data transmitted by the printing operation on the host computer side is started, and in step 101, an ESC (extended character; escape character) sequence is acquired and one line of data is acquired. Print data count x (3 in this embodiment)
20) is specified. Then, in step 102, both the print data number m and the count variable n described later are set to "0",
In step 103, the print data number m is incremented by one.

【0011】続いてステップ104では、「m=x?」
の判断、即ち既に受信しその内容が解析された印字デー
タ数mが規定された1行分の印字データ数xと等しいか
否か、つまり1行分の受信データの内容の解析が終了し
たか否かを判断する。しかし、ここでは受信データの内
容の解析を開始するところなので、「N0」と判定さ
れ、ステップ105へ移行して受信データの解析を行
う。即ち、ステップ105では、受信データが無印字デ
ータ(データ「00」H)であるかの判断を行い、これ
が「YES」の場合は、カウント変数nを1つ増加する
(ステップ106)。このような無印字データが最後に
解析されるx番目のデータまで連続して存在すれば、こ
のカウント変数nの値分の印字動作は省略される。ま
た、ステップ105において無印字データではない(有
効データ)と判定される場合はカウント変数nを「0」
に設定(ステップ107)する。こうしてカウント変数
nが定められると、ステップ103へ戻って次の受信デ
ータを解析するために印字データ数mを1つカウントア
ップする。
Then, in step 104, "m = x?"
Determination, that is, whether the number m of print data that has already been received and whose content has been analyzed is equal to the specified print data number x for one line, that is, whether the analysis of the content of the received data for one line has been completed. Determine whether or not. However, since the analysis of the content of the received data is to be started here, it is determined to be "N0", and the process proceeds to step 105 to analyze the received data. That is, in step 105, it is determined whether the received data is non-printing data (data “00” H), and if it is “YES”, the count variable n is incremented by 1 (step 106). If such non-print data continues up to the x-th data to be finally analyzed, the printing operation for the value of the count variable n is omitted. When it is determined in step 105 that the print data is not non-print data (valid data), the count variable n is set to "0".
(Step 107). When the count variable n is determined in this way, the process returns to step 103, and the print data number m is incremented by 1 in order to analyze the next received data.

【0012】こうして受信データの内容が順次解析さ
れ、この結果ステップ104の「m=x?」が「YE
S」と判定されると、ステップ110へ移行し「m−n
=0」を判定する。これは1行分の受信データの内容が
全て無印字データであるかの判定であり、受信データの
全てが無印字データの場合(ステップ110で「YE
S」の場合)には、印字動作を行わずに所定のモータを
駆動して1行分の紙送りを開始させる(ステップ11
1)。また、受信データのすべてが無印字データではな
いと判定される場合(ステップ110で「NO」の場
合)は、「m−n」のところまで順次ヘッド40を移動
させて印字させると共に、印字の終了後、1行分の紙送
りをさせかつヘッド40を左方向の所定の印字開始位置
まで移動を開始させる(ステップ112)。なお、ステ
ップ111の紙送り開始指令及びステップ112のヘッ
ドの移動開始指令の直後にプリンタの状態をビジィ状態
からレディ状態にするため、ヘッド41等が移動中であ
ってもホストコンピュータ側からの次の1行分の受信デ
ータを直ちに受信して編集できる。こうしてヘッド41
が移動中にホストコンピュータ側から受信データが到来
すると、ステップ113の「次の行の印字データがある
か?」の判定が「YES」となり、この場合はステップ
101へ戻って従前と同様の処理を実行する。また、ホ
ストコンピュータ側から次の行の印字データが送信され
ない場合は、そのまま終了する。
In this way, the contents of the received data are sequentially analyzed, and as a result, "m = x?" In step 104 becomes "YE."
If it is determined to be “S”, the process proceeds to step 110 and “m−n”
= 0 ”is determined. This is a judgment as to whether the contents of the received data for one line are all non-printing data, and when all the receiving data are non-printing data (“YE” in step 110)
In the case of "S"), a predetermined motor is driven without performing the printing operation to start the paper feeding for one line (step 11).
1). If it is determined that all of the received data are non-printing data (“NO” in step 110), the head 40 is sequentially moved to “mn” and printing is performed, and at the same time, printing is performed. After the end, the paper is fed by one line and the head 40 is started to move to a predetermined print start position in the left direction (step 112). Immediately after the paper feed start command in step 111 and the head movement start command in step 112, the printer state is changed from the busy state to the ready state. The received data for one line can be immediately received and edited. Thus the head 41
If the received data arrives from the host computer side while the printer is moving, the determination of "Is there print data for the next line?" In step 113 is "YES". In this case, the process returns to step 101 and the same processing as before is performed. To execute. If the print data of the next line is not transmitted from the host computer side, the process ends.

【0013】[0013]

【発明の効果】以上説明したように、本発明によれば、
受信した印字データのうち、有効印字データを印字する
と、残りの空白データの印字は省略されると共に、直ち
に次の印字データの受信が可能になるため、無用な印字
動作が省略され、かつ印字速度が相対的に向上する。
As described above, according to the present invention,
When valid print data is printed out of the received print data, the printing of the remaining blank data is omitted and the next print data can be received immediately, so unnecessary print operation is omitted and the print speed is increased. Is relatively improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るシリアルプリンタの動作を示すフ
ローチャートである。
FIG. 1 is a flowchart showing an operation of a serial printer according to the present invention.

【図2】上記シリアルプリンタの各部のタイミングチャ
ートである。
FIG. 2 is a timing chart of each unit of the serial printer.

【図3】上記シリアルプリンタのブロック図である。FIG. 3 is a block diagram of the serial printer.

【図4】上記シリアルプリンタの印字状況を示す図であ
る。
FIG. 4 is a diagram showing a printing situation of the serial printer.

【符号の説明】[Explanation of symbols]

1 プリンタI/Fコネクタ 2 操作部 3 制御部 4 プリンタユニット部 30 CPU 40 サーマルヘッド 41 モータ 1 Printer I / F Connector 2 Operation Section 3 Control Section 4 Printer Unit Section 30 CPU 40 Thermal Head 41 Motor

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 端末装置から受信した印字データを片方
向に印字ヘッドを走査させて順次印字するシリアルプリ
ンタにおいて、 1行分の印字データを格納するバッファ・メモリと、受
信した前記印字データを前記バッファ・メモリへ格納す
る格納手段と、この格納手段の格納時または格納後に前
記印字データのうち行末まで連続する空白データ以外の
データを有効印字データとするデータ編集手段と、前記
有効印字データを前記バッファ・メモリから順次読みだ
して印字すると共に印字終了に応じ残りの空白データの
印字を省略して印字ヘッドの走査を停止する印字走査手
段と、印字終了後前記格納手段およびデータ編集手段に
より次の印字データの受信を可能とする制御手段とを備
えたことを特徴とするシリアルプリンタ。
1. A serial printer that sequentially prints print data received from a terminal device by scanning a print head in one direction, and a buffer memory for storing print data for one line and the received print data Storage means for storing in the buffer memory, data editing means for making data other than blank data continuous to the end of the print data other than blank data during or after storage of the storage means effective print data, and the effective print data A print scanning unit that sequentially reads from the buffer memory and prints, and at the end of printing, prints the remaining blank data to stop the scanning of the print head, and after the printing is completed, the storage unit and the data editing unit A serial printer, comprising: a control unit capable of receiving print data.
JP4056617A 1992-02-10 1992-02-10 Serial printer Expired - Fee Related JP2784858B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4056617A JP2784858B2 (en) 1992-02-10 1992-02-10 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4056617A JP2784858B2 (en) 1992-02-10 1992-02-10 Serial printer

Publications (2)

Publication Number Publication Date
JPH05221070A true JPH05221070A (en) 1993-08-31
JP2784858B2 JP2784858B2 (en) 1998-08-06

Family

ID=13032232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4056617A Expired - Fee Related JP2784858B2 (en) 1992-02-10 1992-02-10 Serial printer

Country Status (1)

Country Link
JP (1) JP2784858B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000502007A (en) * 1995-12-15 2000-02-22 エンキャド インコーポレイテッド Smart printer carriage with built-in data processing circuit
JP2011177995A (en) * 2010-02-26 2011-09-15 Seiko Epson Corp Recording device and recording method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6115228A (en) * 1984-06-29 1986-01-23 Toshiba Corp Printer
JPH0278587A (en) * 1988-09-14 1990-03-19 Canon Inc Serial recorder
JPH04361076A (en) * 1991-06-07 1992-12-14 Canon Inc Recorder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6115228A (en) * 1984-06-29 1986-01-23 Toshiba Corp Printer
JPH0278587A (en) * 1988-09-14 1990-03-19 Canon Inc Serial recorder
JPH04361076A (en) * 1991-06-07 1992-12-14 Canon Inc Recorder

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000502007A (en) * 1995-12-15 2000-02-22 エンキャド インコーポレイテッド Smart printer carriage with built-in data processing circuit
JP2011177995A (en) * 2010-02-26 2011-09-15 Seiko Epson Corp Recording device and recording method
US8783817B2 (en) 2010-02-26 2014-07-22 Seiko Epson Corporation Recording device and recording method

Also Published As

Publication number Publication date
JP2784858B2 (en) 1998-08-06

Similar Documents

Publication Publication Date Title
JP3706694B2 (en) Information processing apparatus, printer control method, and storage medium
US4933875A (en) Bi-directional printer for efficient of stored data and real-time input data
JPH05221070A (en) Serial printer
JPH0359835B2 (en)
JP2554379B2 (en) Thermal printer
US5408592A (en) Printer having a data output time controller
JP3045077B2 (en) Printing device
JPH0650199Y2 (en) Printer
JP2756046B2 (en) Thermal transfer printer
JPH09131931A (en) Printer controller
JPH11292324A (en) Printer and printing system
JP2973543B2 (en) Printer and control method thereof
JPH063642U (en) Thermal printer
JPH0753461B2 (en) Printer
JPH02125763A (en) Recording method and apparatus therefor
JP3072263U (en) Printing device
JPS59123086A (en) Typewriter
JPH0236956A (en) Video printer device
JPH111048A (en) Printing control method and printing apparatus
JPS61241171A (en) Printer
JPH02196323A (en) Bar code reading control system for serial printer
JPH0899443A (en) Serial recording device
JPS6125163B2 (en)
JPS59123690A (en) Carriage movement controlling system for typewriter
JPH05270068A (en) Data processing method in printer

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080529

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090529

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100529

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100529

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110529

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees