JPH0474673A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH0474673A JPH0474673A JP2188019A JP18801990A JPH0474673A JP H0474673 A JPH0474673 A JP H0474673A JP 2188019 A JP2188019 A JP 2188019A JP 18801990 A JP18801990 A JP 18801990A JP H0474673 A JPH0474673 A JP H0474673A
- Authority
- JP
- Japan
- Prior art keywords
- data
- printing
- print data
- syntax
- 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
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はホスト装置から入力した文字や図形等のデータ
を印刷する印刷装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing device that prints data such as characters and graphics input from a host device.
[従来の技術]
従来、この種の装置は、コンピュータ等の外部機器から
符号データを入力する入力部と、1つのデータ解析ルー
ル(コマンドシンタックスあるいは文法)に従って入力
データを解釈する解析部と、解釈されたデータをプリン
トへ出力する出力部とから構成される。[Prior Art] Conventionally, this type of device has an input section that inputs code data from an external device such as a computer, an analysis section that interprets the input data according to one data analysis rule (command syntax or grammar), It consists of an output unit that outputs the interpreted data to print.
[発明が解決しようとしている課題]
しかしながら、上記従来例では、外部機器の誤操作ある
いは回線切断等の何らかの原因により、コマンドシンタ
ックスの異なるあるいは崩れたデータが送られた場合に
おいても、そのまま強引に解析を受けて結果的に意味の
ない無駄な印刷物を作成してしまうという欠点があった
。[Problem to be solved by the invention] However, in the above conventional example, even if data with a different command syntax or corrupted data is sent due to some reason such as incorrect operation of an external device or disconnection of a line, it is not possible to forcefully analyze data as is. However, this method has the disadvantage that it ends up producing meaningless and wasteful printed matter.
本発明は、前記従来の欠点を除去し、無駄な印刷物を作
成しない印刷装置を提供する。The present invention eliminates the above-mentioned conventional drawbacks and provides a printing device that does not produce wasteful printed matter.
[課題を解決するための手段]
この課題を解決するために、本発明の印刷装置は、外部
から入力される印刷データに基づいて画像を印刷する印
刷装置であって、
入力した印刷データを解析してドツトイメージに変換す
る解析変換手段と、前記解析中のシンタックスエラーの
回数をカウントするカウンタ手段と、該カウンタ手段の
内容に基づいて、印刷を抑制する印刷抑制手段とを備え
る。[Means for Solving the Problem] In order to solve this problem, the printing device of the present invention is a printing device that prints an image based on print data input from the outside, and which analyzes the input print data. The present invention includes an analysis conversion means for converting the syntax error into a dot image, a counter means for counting the number of syntax errors during the analysis, and a print suppression means for suppressing printing based on the contents of the counter means.
[作用]
かかる構成において、解析部から発生されるシンタック
スエラーを積算して、その値により印刷を省く印刷抑制
手段を設けることにより、コマンドシンタックスエラー
による無駄な印刷を抑制することができる。[Operation] In such a configuration, by providing a printing suppression means that integrates syntax errors generated by the analysis unit and eliminates printing based on the value, it is possible to suppress unnecessary printing due to command syntax errors.
[実施例] 以下、図面を参照して本発明の一実施例を説明する。[Example] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.
第1図は本実施例の印刷装置の構成を示すブロック図で
あり、第2図は同印刷装置の外観を示す斜視図である。FIG. 1 is a block diagram showing the configuration of the printing apparatus of this embodiment, and FIG. 2 is a perspective view showing the external appearance of the printing apparatus.
図において、外部機器5はプリンタl側に印刷データ(
文字データや制御データ)を送る。制御コードの中には
、例えばエスケープシーケンスで始まる用紙サイズの指
定データや、ラスクイメージデータの指定データ等が有
る。受信部4はこのような外部機器5が送信する印刷デ
ータを受信するものである。この受信方式は8ビツトパ
ラレルなどの一般の印刷装置に用いられているものであ
る。In the figure, an external device 5 sends print data (
character data and control data). The control code includes, for example, paper size specification data starting with an escape sequence, rask image data specification data, and the like. The receiving unit 4 receives print data transmitted from such an external device 5. This reception method is used in general printing devices such as 8-bit parallel.
マイクロプロセッサ(CPU)6では、本実施例のプリ
ンタ装置全体の制御を行なう。ROM7は、CPU6が
実行する例えば第3図の印字制御プログラムを格納して
いる。また、RAM8はCPU6が作業領域として使用
するものである。A microprocessor (CPU) 6 controls the entire printer device of this embodiment. The ROM 7 stores, for example, a printing control program shown in FIG. 3, which is executed by the CPU 6. Further, the RAM 8 is used by the CPU 6 as a work area.
シンタックスエラーカウンタ8aはここに置かれている
。画像メモリ3はCPU6によって印刷データが解析さ
れ、ビットマツプイメージの形態に展開された画像デー
タが記憶される。出力部2は画像メモリ3の内容を読み
出してビデオ信号に変換し、プリンタ1に送る。プリン
タ1はレーザビームプリンタであり、出力部2からのビ
デオ信号を印刷する。The syntax error counter 8a is placed here. In the image memory 3, print data is analyzed by the CPU 6, and image data developed in the form of a bitmap image is stored. The output unit 2 reads out the contents of the image memory 3, converts it into a video signal, and sends it to the printer 1. The printer 1 is a laser beam printer and prints the video signal from the output section 2.
以上の構成により、外部機器5からの印刷データは、受
信部4を介してRAM8に格納される。With the above configuration, print data from the external device 5 is stored in the RAM 8 via the receiving section 4.
CPU6は印刷データを順次解析して文字データのパタ
ーン展開処理を行い、または制御データに基づく処理を
実行する。The CPU 6 sequentially analyzes print data and performs character data pattern development processing, or executes processing based on control data.
第3図は本実施例の印刷装置の処理手順を示すフローチ
ャートである。FIG. 3 is a flowchart showing the processing procedure of the printing apparatus of this embodiment.
ここではまず、ステップS1で受信部4に受信データが
有るか否かを調べ、無ければ受信を待つ。受信データが
有ればステップS3で印刷データの解析を行う、なお、
この部分は割込入力処理としても良い。Here, first, in step S1, it is checked whether or not there is reception data in the reception section 4, and if there is no reception data, the reception is waited. If there is received data, the print data is analyzed in step S3.
This part may be performed as interrupt input processing.
次に、ステップS4で印刷データが文字データか否かを
判別し、ステップ35文字データであれば文字データを
文字パターンに変換して画像メモリ3上に展開する。ま
た、印刷データが文字データでない時には、ステップS
6に進んでドツトイメージデータか否かを判別する。ド
ツトイメージデータであれば、ステップs7でこのドツ
トイメージを画像メモリ3に展開する。Next, in step S4, it is determined whether the print data is character data or not, and in step S35, if it is character data, the character data is converted into a character pattern and developed on the image memory 3. Also, if the print data is not character data, step S
Proceeding to step 6, it is determined whether the data is dot image data or not. If it is dot image data, this dot image is expanded into the image memory 3 in step s7.
ドツトイメージデータでない時は、ステップS8aで改
ページか否かを判断し、改ページデータなら1ペ一ジ分
の受信・展開終了であるので、ステップS8bでシンタ
ックスエラーカウンタ8aを調べ、“O”ならばステッ
プS9aで画像メモリ3の内容を印刷する。“l”以上
ならばシンタックスエラーなので、無駄なページである
として印刷はしない。いずれにせよ、新しいベージにな
ったので、ステップS9bでシンタックスエラーカウン
タは“O”にリセットする。If the data is not dot image data, it is determined in step S8a whether or not it is a page break, and if it is page break data, the reception and development of one page has been completed, so the syntax error counter 8a is checked in step S8b, and "O ”, the contents of the image memory 3 are printed in step S9a. If it is more than "l", it is a syntax error, so it is considered a useless page and will not be printed. In any case, since this is a new page, the syntax error counter is reset to "O" in step S9b.
ステップS8aで改ページデータでない時は、ステップ
510aで順次同様な判断をしながら、その他の処理を
行う。ステップ510aでも処理されず、ステップ51
0bでシンタックスエラーであると判断されたら、ステ
ップSllでシンタックスエラーカウンタに“1”を足
す。If it is determined in step S8a that the data is not page break data, other processing is performed while making the same determination in step 510a. Also not processed in step 510a, step 51
If it is determined in 0b that there is a syntax error, "1" is added to the syntax error counter in step Sll.
尚、上記実施例では、エラーカウンタが“1”以上の時
に印刷を抑制したが、これ以上の値で判断しても構わな
い。又、スイッチ手段を設けてしきい値を可変にしても
良い。この抑制機能そのものを無効にするスイッチ手段
を設けても良い。In the above embodiment, printing is suppressed when the error counter is equal to or greater than "1", but the determination may be made based on a value greater than this value. Alternatively, a switch means may be provided to make the threshold variable. A switch means may be provided to disable this suppression function itself.
又、ページを捨てる前にエラーメツセージを表示しても
良いし、−時停止しても良い。Also, an error message may be displayed before the page is discarded, or the page may be stopped at -.
本実施例によれば、シンタックスエラーカウンタ手段と
印刷抑制手段とを設ける事により、無駄な印刷をしない
で済む。According to this embodiment, by providing the syntax error counter means and the printing suppression means, unnecessary printing can be avoided.
[発明の効果]
本発明により、無駄な印刷物を作成しない印刷装置を提
供できる。[Effects of the Invention] According to the present invention, it is possible to provide a printing device that does not create wasteful printed matter.
第1図は本実施例の印刷装置の構成を示すブロック図、
第2図は同印刷装置の外観を示す斜視図、第3図は本実
施例の印刷装置の処理手順を示すフローチャートである
。
図中、1・・・プリンタ、2・・・出力部、3・・・画
像メモリ、4・・・受信部、
5・・・外部機器、6・・・
CPU、 7・・・ROM。
8・・・RAM、8a・・・エラー
カウンタである。FIG. 1 is a block diagram showing the configuration of the printing apparatus of this embodiment, FIG. 2 is a perspective view showing the external appearance of the printing apparatus, and FIG. 3 is a flowchart showing the processing procedure of the printing apparatus of this embodiment. In the figure, 1... printer, 2... output section, 3... image memory, 4... receiving section, 5... external device, 6... CPU, 7... ROM. 8: RAM, 8a: error counter.
Claims (1)
る印刷装置であつて、 入力した印刷データを解析してドットイメージに変換す
る解析変換手段と、 前記解析中のシンタツクスエラーの回数を カウントするカウンタ手段と、 該カウンタ手段の内容に基づいて、印刷を抑制する印刷
抑制手段とを備えることを特徴とする印刷装置。[Scope of Claim] A printing device that prints an image based on print data input from the outside, comprising: an analysis conversion unit that analyzes the input print data and converts it into a dot image; and a syntax being analyzed. A printing apparatus comprising: a counter means for counting the number of errors; and a print suppression means for suppressing printing based on the contents of the counter means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2188019A JPH0474673A (en) | 1990-07-18 | 1990-07-18 | Printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2188019A JPH0474673A (en) | 1990-07-18 | 1990-07-18 | Printer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0474673A true JPH0474673A (en) | 1992-03-10 |
Family
ID=16216242
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2188019A Pending JPH0474673A (en) | 1990-07-18 | 1990-07-18 | Printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0474673A (en) |
-
1990
- 1990-07-18 JP JP2188019A patent/JPH0474673A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3039396B2 (en) | Print control apparatus and method | |
| JPH0474673A (en) | Printer | |
| JPH01196096A (en) | output device | |
| JPH043219A (en) | Printer | |
| JP2647374B2 (en) | Output interface device | |
| KR0181137B1 (en) | Graphic printing method | |
| JP2607502B2 (en) | Facsimile interface device | |
| JPH0316754A (en) | Printer | |
| JPH0316755A (en) | Printer | |
| JPS5887622A (en) | printer control device | |
| JPS63272145A (en) | dump output device | |
| JP2737883B2 (en) | Output control device | |
| KR100193794B1 (en) | Emulation analysis method of image forming apparatus | |
| JPH0316757A (en) | Printer | |
| JPH026163A (en) | Printer | |
| JPH113189A (en) | Printing equipment | |
| JPH04290763A (en) | Printing device | |
| JP2003141445A (en) | Form definition processing device, form definition processing program, and form definition processing program recording medium | |
| JPS63242561A (en) | Font reducing system | |
| JPH05181625A (en) | Printer interface device provided with bit image evolving function | |
| JPH0316753A (en) | printing device | |
| JPS62199458A (en) | document processing device | |
| JPH02311894A (en) | Document preparing device | |
| JPH05221073A (en) | Print control device | |
| JP2006227732A (en) | Image forming program, image processing apparatus including the program, and image forming system including the image processing apparatus |