JPH0381820A - Printing data edition system - Google Patents
Printing data edition systemInfo
- Publication number
- JPH0381820A JPH0381820A JP1218926A JP21892689A JPH0381820A JP H0381820 A JPH0381820 A JP H0381820A JP 1218926 A JP1218926 A JP 1218926A JP 21892689 A JP21892689 A JP 21892689A JP H0381820 A JPH0381820 A JP H0381820A
- Authority
- JP
- Japan
- Prior art keywords
- data
- updated
- error
- printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims abstract description 14
- 238000000034 method Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は活字式シリアルプリンタに関し、特に印字デー
タの編集方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a typeface serial printer, and more particularly to a print data editing method.
従来、この種の印字データの編集は、1つの書式記憶レ
ジスタを持ちその内容により印字後のキャリッジの横送
り量、用紙の送り量、インクリボンの送り量、又印字の
色指定を行なっていた。Conventionally, this type of print data editing has had one format storage register, and the content of the register has been used to specify the horizontal feed amount of the carriage after printing, the feed amount of the paper, the feed amount of the ink ribbon, and the print color. .
上述した従来の印字データ編集は、1つの書式記憶レジ
スタにより、印字後のキャリッジの横送り、用紙送りの
量、インクリボンの送り量、印字の色等を決定している
。このためパリティ−エラー等のデータエラーが発生し
たとき、データの信頼度を上げるため、上位装置がエラ
ー発生した行−桁分を再送したくても、エラー発生した
1行分のデータの途中に書式を変更するデータがあった
場合、再送された最初のデータから、変更後の書式で印
字されてしまう、又、この現象を避けるため書式記憶レ
ジスタを初期設定すると、エラー発主杆以前の正常受信
データにより設定された書式までクリヤしてしまう欠点
があった。In the conventional print data editing described above, one format storage register determines the horizontal feed of the carriage after printing, the amount of paper feed, the amount of ink ribbon feed, the color of print, etc. Therefore, when a data error such as a parity error occurs, even if the host device wants to resend the row or column where the error occurred in order to increase the reliability of the data, If there is data to change the format, the first data that is retransmitted will be printed in the changed format, and to avoid this phenomenon, initializing the format memory register will restore normality before the error occurred. There was a drawback that even the format set by the received data was cleared.
本発明の活字式シリアルプリンタの印字データ編集方式
は、上位装置からの印字データを受け取る受信バッファ
と、受信データのデータエラーを検出し上位装置にエラ
ーを知らせるデータエラー検出部と受信データから改行
コード等の印字開始コードを検出し上位装置にプリンタ
の受信可又は受信不可状態を知らせる印字開始コード検
出部と受信バッファから受信データを取り出し印字デー
タの編集をする印字データ編集部と受信データにより更
新される書式記憶レジスタと印字データ編集部が1行分
のデータ編集終了後更新される書式記憶レジスタを有し
ている。The print data editing method of the typeface serial printer of the present invention consists of a receiving buffer that receives print data from a host device, a data error detection section that detects data errors in the received data and notifies the host device, and a line feed code from the received data. A print start code detection unit detects a print start code such as and notifies the host device of whether the printer is ready or unable to receive data, a print data editing unit takes out received data from the receive buffer and edits the print data, and the print data is updated by the received data. The print data editing section has a format storage register that is updated after editing of data for one line is completed.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例のブロック図である。本ブロ
ック図に示されるように本発明の一実施例は上位装置1
、受信バッファ2、データエラー検出部3、印字データ
編集部4、印字開始コード検出部5、ブタ−エラー信号
6、データバス7、受信可信号8、受信不可信号9、デ
ータ受信時即更新される書式記憶レジスタ10、印字デ
ータ編集終了後更新される書式記憶レジスタ11、編集
後の印字データ12、印字機構制御部13により構成さ
れる。FIG. 1 is a block diagram of one embodiment of the present invention. As shown in this block diagram, one embodiment of the present invention is a host device 1.
, reception buffer 2, data error detection section 3, print data editing section 4, print start code detection section 5, pig error signal 6, data bus 7, receivable signal 8, unreceivable signal 9, updated immediately upon data reception. It is composed of a format storage register 10 that is updated after editing the print data, a format storage register 11 that is updated after editing of print data, print data 12 after editing, and a print mechanism control section 13.
第2図を参照して、本実施例の動作を説明する。上位装
置1からの受信データは受信バッファ2に入る。受信バ
ッファ2に入ったデータはデータエラー検出部3により
チエツクされ、もしデータエラーの場合データエラー信
号6がONになり上位装置1及び印字データ編集部4に
知らされ、データ受信時即更新される書式記憶レジスタ
10をクリヤする。正常データの場合、データは印字開
始コード検出部5によりチエツクされ、もし印字開始コ
ードでなければ、印字データ編集部4により書式変更デ
ータがチエツクされる。ここでもし書式変更データであ
れば書式記憶、レジスタ10の内容が更新される。書式
変更データでなければ印字データとして印字データ編集
部4によりデータ編集される。もし受信データが印字開
始コードであれば印字開始コード検出部5は受信不可信
号9をONL上位装置1.に送信停止を要求する。そし
て印字データ編集部4は印字データ12を印字機構制御
部13に順次出力する。この動作は編集後のデータが空
になるまで続き、空になったとき印字データ編集終了後
更新される。書式記憶レジスタ11は書式記憶レジスタ
10が新規設定された部分に対応する部分だけ更新され
る。その後受信可信号がONL、次の印字行の受信が可
能となる。The operation of this embodiment will be explained with reference to FIG. Received data from the host device 1 enters the reception buffer 2. The data that has entered the reception buffer 2 is checked by the data error detection section 3, and if there is a data error, the data error signal 6 is turned ON and is notified to the host device 1 and the print data editing section 4, which are updated immediately upon receiving the data. Clear the format storage register 10. If the data is normal, the print start code detection section 5 checks the data, and if it is not a print start code, the print data editing section 4 checks the format change data. Here, if it is format change data, the format storage and the contents of the register 10 are updated. If the data is not format change data, the data is edited by the print data editing section 4 as print data. If the received data is a print start code, the print start code detection unit 5 sends a reception impossible signal 9 to the ONL host device 1. request to stop sending. Then, the print data editing section 4 sequentially outputs the print data 12 to the printing mechanism control section 13. This operation continues until the edited data becomes empty, and when it becomes empty, the print data is updated after editing is completed. The format storage register 11 is updated only in the portion corresponding to the newly set portion of the format storage register 10. After that, the receivable signal is ONL, and the next print line can be received.
以上説明したように本発明はデータ受信時即更新される
書式記憶レジスタと印字データ編集終了後更新される書
式記憶レジスタの2つのレジスタを有することにより、
データエラー発生時、上位装置がデータ再送を簡単にで
きる効果がある。As explained above, the present invention has two registers: a format storage register that is updated immediately when data is received, and a format storage register that is updated after editing the print data.
This has the effect that when a data error occurs, the host device can easily retransmit data.
第1図は本発明の実施例のブロック図、第2図は本実施
例の動作を示すフローチャートである。
1・・・上位装置、2・・・受信バッファ、3・・・デ
ータエラー検出部、4・・・印字データ編集部、5・・
・印字開始コード検出部、6・・・データエラー信号、
7・・・データバス、8・・・受信可信号、9・・・受
信不可信号、10・・・データ受信時即更新される書式
記憶レジスタ、11・・・印字データ編集終了後更新さ
れる書式記憶レジスタ、12・・・編集後の印字データ
、13・・・印字機構制御部。FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of this embodiment. DESCRIPTION OF SYMBOLS 1... Upper device, 2... Reception buffer, 3... Data error detection part, 4... Print data editing part, 5...
・Print start code detection unit, 6...data error signal,
7...Data bus, 8...Receivable signal, 9...Receive not possible signal, 10...Format storage register updated immediately upon data reception, 11...Updated after print data editing is completed. Format storage register, 12... Edited print data, 13... Printing mechanism control unit.
Claims (1)
信データのデータエラーを検出し、上位装置にエラーを
知らせるデータエラー検出部と受信データから改行コー
ド等の印字開始コードを検出し上位装置にプリンタの受
信可又は受信不可状態を知らせる印字開始コード検出部
と受信バッファから受信データを取り出し印字データの
編集をする印字データ編集部と受信データにより更新さ
れる書式記憶レジスタとデータ編集部が1行分のデータ
編集終了後更新される書式記憶レジスタとを有する活字
式シリアルプリンタの印字データ編集方式。A reception buffer that receives print data from the host device, a data error detection section that detects data errors in the received data and notifies the host device of the error, and a data error detection section that detects print start codes such as line feed codes from the received data and sends the printer to the host device. A print start code detection unit that informs whether reception is possible or not possible, a print data editing unit that takes out received data from the reception buffer and edits the print data, a format storage register that is updated with the received data, and a data editing unit that generates data for one line. A print data editing method for a typeface serial printer having a format storage register that is updated after editing is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1218926A JPH0381820A (en) | 1989-08-24 | 1989-08-24 | Printing data edition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1218926A JPH0381820A (en) | 1989-08-24 | 1989-08-24 | Printing data edition system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0381820A true JPH0381820A (en) | 1991-04-08 |
Family
ID=16727487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1218926A Pending JPH0381820A (en) | 1989-08-24 | 1989-08-24 | Printing data edition system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0381820A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08185292A (en) * | 1994-12-27 | 1996-07-16 | Nec Corp | Bidirectional printer interface |
-
1989
- 1989-08-24 JP JP1218926A patent/JPH0381820A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08185292A (en) * | 1994-12-27 | 1996-07-16 | Nec Corp | Bidirectional printer interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS60116464A (en) | Printer | |
JPS6356866B2 (en) | ||
JPH0381820A (en) | Printing data edition system | |
JPS6159920B2 (en) | ||
JP2002036640A (en) | Label printer | |
JPS6216166A (en) | Printing controller | |
JPS5942357B2 (en) | Character pattern error check method | |
JPS635767B2 (en) | ||
JPS6338318B2 (en) | ||
JPH02110626A (en) | Error display control device for printing device | |
JPS62271189A (en) | Mark read control system | |
JPS5922766A (en) | Space control system of line dot printer | |
JPH02286382A (en) | Printing apparatus | |
JP3250118B2 (en) | Printing device data management method | |
JPH01281551A (en) | Recorder | |
KR200146385Y1 (en) | Inkjet printer system of dual bus structure for bus switch | |
JPS609792A (en) | Printer | |
JPH04357068A (en) | Printing control apparatus | |
KR910009064B1 (en) | Method for compensating character size of printer | |
JPH01101174A (en) | Dot matrix printer | |
JPH0213631B2 (en) | ||
JPH06168082A (en) | Data processing system | |
JPS58220779A (en) | Returning and line-shifting system for serial printer | |
JPH04103376A (en) | Printer device | |
JPS635765B2 (en) |