JPH04101866A - Serial printer - Google Patents

Serial printer

Info

Publication number
JPH04101866A
JPH04101866A JP22031390A JP22031390A JPH04101866A JP H04101866 A JPH04101866 A JP H04101866A JP 22031390 A JP22031390 A JP 22031390A JP 22031390 A JP22031390 A JP 22031390A JP H04101866 A JPH04101866 A JP H04101866A
Authority
JP
Japan
Prior art keywords
received data
time
sent
code data
reception
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
JP22031390A
Other languages
Japanese (ja)
Other versions
JP2604491B2 (en
Inventor
Kyoichi Fujioka
藤岡 恭一
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2220313A priority Critical patent/JP2604491B2/en
Publication of JPH04101866A publication Critical patent/JPH04101866A/en
Application granted granted Critical
Publication of JP2604491B2 publication Critical patent/JP2604491B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To obtain a serial printer which is easy to be used and excellent in operation property by a method wherein in the case where fetch of a reception data does not exist for a specific time, printing treatment of the residual reception data is performed. CONSTITUTION:When a code data to be sent from a host computer is gone, all signals from a reception buffer 4 are sent to an image buffer side to evacuate the reception buffer 4, a timer is started, and the procedure waits until a specific time elapses. Further, this time is longer than the maximum value of a time interval between the code data to be sent from the host computer, is not too longer time than that, and is established to approx. 200msec. Furthermore, in the case where there is no reception data and the reception buffer 4 is blank after a specific time has elapsed, when a dot pattern code data remains on the image buffer 5, the residual code data is printed by indicating start of printing.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、印字制御の方法を改良したシリアルプリンタ
に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a serial printer with improved printing control method.

〈従来の技術〉 従来、シリアルプリンタにおいて、ホストコンピュータ
から送られてきた受信データ(コードデータ)を16進
数で印字する方式、いわゆるHex(r Hexade
cimal Jの略)ダンプ・モードがある。
<Prior art> Conventionally, in serial printers, a method of printing received data (code data) sent from a host computer in hexadecimal numbers, so-called Hex (r Hexade), has been used.
There is a dump mode (abbreviation for cimal J).

この)Iexダンプ・モードでは、1行に印字するバイ
ト数(通常16バイト)分の受信データが受信バッファ
に溜る毎に印字処理をする方法がとられている。
In this Iex dump mode, a method is used in which printing is performed every time received data equal to the number of bytes to be printed in one line (usually 16 bytes) accumulates in the reception buffer.

〈発明が解決しようとする課題〉 しかしながら、上述した従来の印字処理方法では、ホス
トコンピュータから送信されて来る受信データが1行分
のバイト数に満たないときには印字されず、また1行分
のバイト数以上のときにおいても!に後の端数バイトは
印字されない、このため、印字終了をする場合には、特
別な処理操作を行い、残留している受信データを印字処
理する必要があり、操作性が悪い問題点などがあった。
<Problems to be Solved by the Invention> However, in the conventional printing processing method described above, if the received data sent from the host computer is less than the number of bytes for one line, it is not printed, and the number of bytes for one line is not printed. Even when there are more than numbers! Fractional bytes after the printout are not printed. Therefore, when printing ends, special processing operations must be performed to print the remaining received data, which may cause problems such as poor operability. Ta.

本発明は、上記問題点に鑑みてなされたものであり、そ
の目的は使い易く操作性の優れたシリアルプリンタを提
供することにある。
The present invention has been made in view of the above problems, and its purpose is to provide a serial printer that is easy to use and has excellent operability.

く課題を解決するための手段〉 上記目的を達成するため、本発明に係るシリアルプリン
タは、受信データを順次取り込み所定数バイト溜る毎に
印字処理をするとともに、前記受信データの取り込みが
一定時間ない場合に残留している受信データの印字処理
を行う制御手段を設けたものである。
Means for Solving the Problems> In order to achieve the above object, the serial printer according to the present invention sequentially receives received data and prints it every time a predetermined number of bytes accumulate, and when the received data is not received for a certain period of time. The system is equipped with a control means for printing the remaining received data when the received data is received.

く作用〉 この構成によれば、一定時間経過した後もコードデータ
が送られてこない場合は、残留している受信データを自
動的に印字処理するので、最後の端数バイトがいつまで
も印字されずに残ることもなくなる。これにより、残留
受信データを印字処理する特別な操作が不要になる。
According to this configuration, if code data is not sent after a certain period of time, the remaining received data is automatically printed, so the last fractional byte is not printed forever. There will be nothing left. This eliminates the need for special operations for printing residual received data.

〈実施例〉 以下、本発明の実施例について図面を用いて詳細に説明
する。
<Example> Hereinafter, an example of the present invention will be described in detail using the drawings.

第1図は、本発明に係るシリアルプリンタの一実施例を
示す概略制御回路ブロック図である。
FIG. 1 is a schematic control circuit block diagram showing an embodiment of a serial printer according to the present invention.

第1図において、このシリアルプリンタ1には、このシ
リアルプリンタ1の全体の動作を制御するための制御回
路(CPU)2と、この制御回路2とポストコンピュー
タ(不図示)との間を結ぶインタフェース(I/F)3
とを備えるとともに、制御回路2に受信バッファ4.イ
メージ・バッファ5.キャラクタ・ジェネレータ6がそ
れぞれ接続されている。加えて、制御回路2の出力側に
は、ドライバ7を介して印字ヘッド8が接続されている
とともに、ドライバ9を介してスペース用モータ10.
ドライバ11を介して用紙給送モータ12がそれぞれ接
続されている。
In FIG. 1, this serial printer 1 includes a control circuit (CPU) 2 for controlling the overall operation of this serial printer 1, and an interface connecting this control circuit 2 and a post computer (not shown). (I/F)3
In addition, the control circuit 2 includes a reception buffer 4. Image buffer5. Character generators 6 are connected to each. In addition, a print head 8 is connected to the output side of the control circuit 2 via a driver 7, and a space motor 10.
A paper feed motor 12 is connected via a driver 11, respectively.

次に、このシリアルプリンタ1における概略印字処理動
作について説明すると、まず、ホストコンピュータより
信号が送られてくると、インタフェース3を通して受信
データとして制御回路2に読み込まれ、この受信データ
が受信バッファ4に一旦格納される。また、この受信バ
ッファ4に格納された受信データは、再び制御回路2に
読み込まれ、そのコードデータに対応したドツト・パタ
ーンをキャラクタ・ジェネレータ6より読み込み、これ
をイメージ・バッファ5へ格納する。
Next, to explain the general print processing operation of this serial printer 1, first, when a signal is sent from the host computer, it is read into the control circuit 2 as received data through the interface 3, and this received data is stored in the reception buffer 4. Once stored. The received data stored in the receive buffer 4 is again read into the control circuit 2, and a dot pattern corresponding to the code data is read from the character generator 6 and stored in the image buffer 5.

方、受信バッファ4内に受信データが蓄えられるときに
は、この受信データが16進数の文字コードに変換され
、またイメージ・バッファ5に一性分のコードデータが
そろったら印字処理が指示される。すると、このイメー
ジ・バッファ5中のドツト・パターンが制御回路2を通
してドライバ7に送られ、印字ヘッド8を介して印字さ
れる。
On the other hand, when received data is stored in the receive buffer 4, this received data is converted into a hexadecimal character code, and when the image buffer 5 has all the code data for one character, printing processing is instructed. Then, the dot pattern in the image buffer 5 is sent to the driver 7 through the control circuit 2 and printed through the print head 8.

第2図(a)、(b)は、第1図に示したシリアルプリ
ンタの印字処理手順を示すフローチャートで、同図(a
)はその制御手順の概略フローチャート、同図(b)は
同図(a>に示した制御手順をさらに詳細に示すフロー
チャートである。
FIGS. 2(a) and 2(b) are flowcharts showing the printing process procedure of the serial printer shown in FIG.
) is a schematic flowchart of the control procedure, and (b) is a flowchart showing the control procedure shown in (a>) in more detail.

そこで、第2図(a)、(b)と共に第1図に示したシ
リアルプリンタの動作をさらに説明する。
Therefore, the operation of the serial printer shown in FIG. 1 together with FIGS. 2(a) and 2(b) will be further explained.

まず、基本的には、ホストコンピュータからコードデー
タが送られて来ると、第2図(a)に示すように、受信
割り込みが働き、定められた受信処理が行われ、再び通
常のルーチンに戻るようになっている。
First, basically, when code data is sent from the host computer, as shown in Figure 2 (a), a reception interrupt is activated, the prescribed reception processing is performed, and then the normal routine returns again. It looks like this.

そして、受信割り込みが働くと、第2図(b)に示すサ
ブルーチンのフローチャートに従って処理(Hexダン
プ モード処理)される、すなわち、ここでは受信割り
込みが働いて受信処理が行われると、受信バッファ4に
受信データが順次蓄えられる。この場合、受信バッファ
4には受信データが順次入力されて行くので、ステップ
ST1からはステップST2へ進み、また受信データは
16進数の文字コードに変換処理された後。
When the reception interrupt is activated, processing is performed (Hex dump mode processing) according to the subroutine flowchart shown in FIG. Received data is stored sequentially. In this case, since the received data is sequentially input to the receive buffer 4, the process advances from step ST1 to step ST2, and the received data is converted into a hexadecimal character code.

キャラクタ・ジェネレータ6内でドツトパターンに展開
されてイメージ・バッファ5内に蓄えられる(ステップ
5T3)、こうして、イメージ・バッファ5内に受信デ
ータが蓄えられ、−性分のコードデータがそろうと印字
処理が指示されて(ステップST4.ステップST5m
これが印字される。
The received data is developed into a dot pattern in the character generator 6 and stored in the image buffer 5 (step 5T3).The received data is thus stored in the image buffer 5, and when the code data for the - character is complete, printing processing begins. is instructed (Step ST4. Step ST5m)
This will be printed.

これに対して、ホストコンピュータから送られてくるコ
ードデータがなくなり、受信バッファ4からの信号が全
てイメージ・バッファ側へ送られて受信バッファ4内が
空になると、ステップST1からステップST6へ進ん
で不図示のタイマを起動させ、一定時間経過(タイムア
ウト)するまで待つ(ステップ5T7)、なお、この時
間は、ホストコンピュータから送られてくるコードデー
タ間の時間間隔の最大値より長く、かつこれよりも余り
長過ぎない時間で、約200m5l!c程度に設定され
る。また、一定時間経過後、ステップST8へ進む、そ
して、このステップST8で受信バッファ4内に受信デ
ータが残っているか否かが判断され、受信データがなく
受信バッファ4が空の場合はステップST9へ進んでイ
メージ・バッファ5内のドツト・パターン・コードデー
タの有無を判断する。このとき、イメージ・バッファ5
上にドツト・パターン・コードデータが残っているとき
はステップ5TIOへ進んで印字起動を指示して残留コ
ードデータを印字する。一方、ステップST8で受信バ
ッファ4内が空でないと判断された場合はステップST
2へ進んで、その後は上述したステップST3〜ステッ
プST5を経て処理がなされる。
On the other hand, when there is no more code data sent from the host computer and all the signals from the reception buffer 4 are sent to the image buffer side and the reception buffer 4 becomes empty, the process advances from step ST1 to step ST6. Activate a timer (not shown) and wait until a certain period of time has elapsed (timeout) (step 5T7). Note that this time is longer than the maximum time interval between code data sent from the host computer, and longer than this. It's not too long, and it's about 200m5l! It is set to about c. Also, after a certain period of time has elapsed, the process proceeds to step ST8, and in this step ST8 it is determined whether or not there is any received data remaining in the receive buffer 4. If there is no received data and the receive buffer 4 is empty, the process proceeds to step ST9. Then, it is determined whether there is dot pattern code data in the image buffer 5. At this time, image buffer 5
If dot pattern code data remains on the top, the process advances to step 5TIO, instructs to start printing, and prints the remaining code data. On the other hand, if it is determined in step ST8 that the reception buffer 4 is not empty, step ST8
2, and thereafter the processing is performed through steps ST3 to ST5 described above.

したがって、この実施例によるシリアルプリンタによれ
ば、一定時間経過した後もコードデータが送られてこな
い場合は、残留している受信データを自動的に印字処理
するようにしたので、最後の端数バイトがいつまでも印
字されずに残ることがなくなる。また、このための特別
な処理をしなくても良いので、操作性が向上する。
Therefore, according to the serial printer according to this embodiment, if code data is not sent after a certain period of time, the remaining received data is automatically printed, so the last fractional byte is will no longer remain unprinted. Further, since no special processing is required for this purpose, operability is improved.

なお、上記実施例では、−行に印字するバイト数を16
バイトに設定した場合について説明したが、勿論16バ
イト以外であっても差し支えないものである。
Note that in the above embodiment, the number of bytes printed on the - line is 16.
Although the case where it is set to byte has been described, it goes without saying that it may be set to a value other than 16 bytes.

〈発明の効果〉 以上説明したとおり、本発明に係るシリアルプリンタに
よれば、一定時間経過した後もコードデータが送られて
こない場合は、残留している受信データを自動的に印字
処理するので、最後の端数バイトがいつまでも印字され
ずに残ることもなくなる。これにより、残留受信データ
を印字処理する特別な操作が不要になり、操作性も向上
する。
<Effects of the Invention> As explained above, according to the serial printer according to the present invention, if code data is not sent after a certain period of time, the remaining received data is automatically printed. , the last fractional byte will no longer remain unprinted. This eliminates the need for special operations for printing residual received data, and improves operability.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るシリアルプリンタの一実施例を示
す概略制御ブロック図、 第2図(a)、(b)は第1図に示した同上シリアルプ
リンタの要部制御手順を示すフローチャートである。 1・・・シリアルプリンタ、 2・・・制御回路(制御手段)。 特許出願人     沖電気工業株式会社代理人   
     弁理士 船 橋 國 則シタ、rL7シンタ elpグヘ/六 〇 λへ′−シぐΔqt−夕 21EDす泣びf−夕 ≠に/2りγの度Ell’1llPE/ノi7〃ンクZ
テ第1図
FIG. 1 is a schematic control block diagram showing an embodiment of the serial printer according to the present invention, and FIGS. 2(a) and 2(b) are flowcharts showing main part control procedures of the serial printer shown in FIG. 1. be. 1... Serial printer, 2... Control circuit (control means). Patent applicant Oki Electric Industry Co., Ltd. Agent
Patent attorney Norishita Funabashi, rL7 synta elp ghe/60 λ to'-sigΔqt-evening 21ED crying f-evening≠ni/2riγ every time Ell'1llPE/noi7〃nk Z
Figure 1

Claims (1)

【特許請求の範囲】 受信データが所定数バイト溜る毎に印字処理するシリア
ルプリンタにおいて、 前記受信データを順次取り込み前記印字処理をするとと
もに、前記受信データの取り込みが一定時間ない場合に
残留している受信データの印字処理を行う制御手段を設
けたことを特徴とするシリアルプリンタ。
[Claims] In a serial printer that performs printing processing every time a predetermined number of bytes of received data accumulate, the received data is sequentially fetched and subjected to the printing processing, and if the received data is not fetched for a certain period of time, the data remains. A serial printer characterized in that it is provided with a control means for printing received data.
JP2220313A 1990-08-22 1990-08-22 Serial printer Expired - Lifetime JP2604491B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2220313A JP2604491B2 (en) 1990-08-22 1990-08-22 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2220313A JP2604491B2 (en) 1990-08-22 1990-08-22 Serial printer

Publications (2)

Publication Number Publication Date
JPH04101866A true JPH04101866A (en) 1992-04-03
JP2604491B2 JP2604491B2 (en) 1997-04-30

Family

ID=16749187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2220313A Expired - Lifetime JP2604491B2 (en) 1990-08-22 1990-08-22 Serial printer

Country Status (1)

Country Link
JP (1) JP2604491B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324268A (en) * 1992-05-27 1993-12-07 Mita Ind Co Ltd Data transfer system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6216156A (en) * 1985-07-16 1987-01-24 Fuji Xerox Co Ltd Apparatus for controlling printer
JPS63249222A (en) * 1987-04-03 1988-10-17 Hitachi Ltd Printer controller
JPH01159262A (en) * 1987-12-16 1989-06-22 Tokyo Electric Co Ltd Printer
JPH0216625A (en) * 1988-07-05 1990-01-19 Nec Corp Serial printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6216156A (en) * 1985-07-16 1987-01-24 Fuji Xerox Co Ltd Apparatus for controlling printer
JPS63249222A (en) * 1987-04-03 1988-10-17 Hitachi Ltd Printer controller
JPH01159262A (en) * 1987-12-16 1989-06-22 Tokyo Electric Co Ltd Printer
JPH0216625A (en) * 1988-07-05 1990-01-19 Nec Corp Serial printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324268A (en) * 1992-05-27 1993-12-07 Mita Ind Co Ltd Data transfer system

Also Published As

Publication number Publication date
JP2604491B2 (en) 1997-04-30

Similar Documents

Publication Publication Date Title
US5722781A (en) Printing apparatus
JPH0911554A (en) Host base printer
JPH04101866A (en) Serial printer
JP3641922B2 (en) ASIC control apparatus and method
JPH01109422A (en) Printing activating control system for printing device
JP2776743B2 (en) Electrophotographic printer
JPS59171256A (en) Printer circuit
JPS62167063A (en) Recording apparatus
JP2001260435A (en) Imaging apparatus
JPH02169288A (en) Printer
JPH0254328A (en) Time-over preventing system for printer
JPH0615884A (en) Printer
JPH11115257A (en) Image-forming system
JP2002370409A (en) Print system, print control method, program and storage medium
JPS63126029A (en) Test printing system for printer
JPS6094371A (en) Printer
KR19980021893A (en) How to print a page skip
JPH0527928A (en) Printing data control system
JPH05246117A (en) Image forming device and method
JPH06127083A (en) Information processing device
JPS6010672B2 (en) Printer control device
JPH11198499A (en) Printer
JPH0592647A (en) Printer
JP2001096867A (en) Printer device and printing system
JPH0628124A (en) Image processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090129

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100129

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20100129

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20110129

Year of fee payment: 14

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110129

Year of fee payment: 14