JPH0381820A - Printing data edition system - Google Patents

Printing data edition system

Info

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
print
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
Application number
JP1218926A
Other languages
Japanese (ja)
Inventor
Kiyoshi Takahashi
潔 高橋
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1218926A priority Critical patent/JPH0381820A/en
Publication of JPH0381820A publication Critical patent/JPH0381820A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily resend data from a high order device when a data error occurs by providing the printing data edition system with a format storing register whose contents are instantaneously updated at the time of receiving data and a format storage register whose contents are updated after ending data edition. CONSTITUTION:Received data are sent from the high order device 1 to a buffer 2 and whether the received data is a data error or not is checked by an error detection part 3. In the case of a data error, a data error signal is turned on, the data error is informed to the device 1 and a printing data edition part 4 and the format storage register 10 to be instantaneously updated at the time of receiving data is cleared. When the received data is not the data error but a printing start code, a printing start code detection pat 5 turns on a reception disable signal 9 to request the stop of transmission to the device 1. The edition part 4 outputs printing data are cleared, only the part corresponding to the newly set part of the register 10 are updated in the format storage register 11. Then a reception enable signal 8 is turned on to receive the succeeding printing line.

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.

〔従来の技術〕[Conventional technology]

従来、この種の印字データの編集は、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. .

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の印字データ編集は、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.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の活字式シリアルプリンタの印字データ編集方式
は、上位装置からの印字データを受け取る受信バッファ
と、受信データのデータエラーを検出し上位装置にエラ
ーを知らせるデータエラー検出部と受信データから改行
コード等の印字開始コードを検出し上位装置にプリンタ
の受信可又は受信不可状態を知らせる印字開始コード検
出部と受信バッファから受信データを取り出し印字デー
タの編集をする印字データ編集部と受信データにより更
新される書式記憶レジスタと印字データ編集部が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.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 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.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明はデータ受信時即更新される
書式記憶レジスタと印字データ編集終了後更新される書
式記憶レジスタの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.

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

第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)

【特許請求の範囲】[Claims] 上位装置からの印字データを受け取る受信バッファと受
信データのデータエラーを検出し、上位装置にエラーを
知らせるデータエラー検出部と受信データから改行コー
ド等の印字開始コードを検出し上位装置にプリンタの受
信可又は受信不可状態を知らせる印字開始コード検出部
と受信バッファから受信データを取り出し印字データの
編集をする印字データ編集部と受信データにより更新さ
れる書式記憶レジスタとデータ編集部が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.
JP1218926A 1989-08-24 1989-08-24 Printing data edition system Pending JPH0381820A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08185292A (en) * 1994-12-27 1996-07-16 Nec Corp Bidirectional printer interface

Cited By (1)

* Cited by examiner, † Cited by third party
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)