JPH06199012A - Recording apparatus and method for analyzing recorded data in the apparatus - Google Patents

Recording apparatus and method for analyzing recorded data in the apparatus

Info

Publication number
JPH06199012A
JPH06199012A JP96493A JP96493A JPH06199012A JP H06199012 A JPH06199012 A JP H06199012A JP 96493 A JP96493 A JP 96493A JP 96493 A JP96493 A JP 96493A JP H06199012 A JPH06199012 A JP H06199012A
Authority
JP
Japan
Prior art keywords
data
recording
data analysis
print
analyzing
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.)
Withdrawn
Application number
JP96493A
Other languages
Japanese (ja)
Inventor
Toshimitsu Nakano
利満 中野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP96493A priority Critical patent/JPH06199012A/en
Publication of JPH06199012A publication Critical patent/JPH06199012A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

(57)【要約】 【目的】 外部機器より出力される印刷データの仕様に
従って自動的にその解析方法を変更して記録できる記録
装置及び該装置における記録データの解析方法を提供す
ることを目的とする。また本発明は、印字バッファの容
量を少なくして多量の印刷データを記憶できる記録装置
を提供することを目的とする。 【構成】 それぞれが異なる仕様の記録データを処理す
る複数のデータ解析プログラムを有し、入力した記録デ
ータをこれら各解析プログラムにより解析し、その記録
データに対応する、これら複数のデータ解析プログラム
の内のいずれかを選択し、その選択されたデータ解析プ
ログラムにより、入力した記録データを解析して記録す
るように動作する。
(57) [Abstract] [Purpose] It is an object of the present invention to provide a recording apparatus capable of automatically changing and analyzing the analysis method according to the specifications of print data output from an external device, and a recording data analysis method in the apparatus. To do. It is another object of the present invention to provide a recording device that can store a large amount of print data by reducing the capacity of the print buffer. [Structure] A plurality of data analysis programs, each of which processes record data of different specifications, are provided, the input record data is analyzed by each of these analysis programs, and among these data analysis programs corresponding to the record data, One of the above is selected, and the selected data analysis program operates to analyze and record the input print data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、外部機器より記録デー
タを入力して被記録媒体に記録する記録装置及び該装置
における記録データの解析方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording apparatus for inputting recording data from an external device and recording it on a recording medium, and a recording data analyzing method in the recording apparatus.

【0002】[0002]

【従来の技術】外部機器等のホストコンピュータより出
力される印刷データに従って記録紙等の被記録媒体に印
刷を行うプリンタ装置では、ホストコンピュータより送
られてくる印刷データに対応したデータ解析部によりそ
の印刷データを解析して印刷する必要がある。このよう
なホストコンピュータの中には、各種規約に基づいた印
刷データを作成する機能を有しているものがあるため、
プリンタ装置ではこのような各種規約に基づいた印刷デ
ータにも対応できるように、各種の印刷データを解析で
きる複数のデータ解析部を有しているものがある。
2. Description of the Related Art In a printer which prints on a recording medium such as recording paper according to print data output from a host computer such as an external device, a data analysis unit corresponding to the print data sent from the host computer Print data needs to be analyzed and printed. Since some of these host computers have a function of creating print data based on various rules,
Some printer apparatuses have a plurality of data analysis units capable of analyzing various print data so as to be able to handle print data based on such various regulations.

【0003】そして、このようなプリンタ装置では、こ
れら複数のデータ解析部の内から受信した印刷データの
規約に対応したデータ解析部を選択するために、次のよ
うな方法を採用している。即ち、第1の方法として、プ
リンタ装置に取付けられた、例えばディップスイッチ等
を用いて、印刷データに応じたデータ解析部がイネーブ
ルになるように選択するものがある。又、第2の方法と
して、ホストコンピュータよりプリンタ装置に対して、
印刷データに対応した規約のデータ解析部を選択するよ
うに指示する制御コードを出力し、プリンタ装置ではそ
の制御コードを受信すると、対応するデータ解析部を選
択して印刷データの解析を行って印刷を行うようにして
いた。
In such a printer device, the following method is adopted in order to select the data analysis unit corresponding to the protocol of the print data received from the plurality of data analysis units. That is, as a first method, there is a method in which, for example, a dip switch attached to the printer device is used to select so that the data analysis unit corresponding to the print data is enabled. In addition, as a second method, the host computer directs the printer device to
When the printer outputs the control code instructing to select the data analysis unit of the regulation corresponding to the print data and the printer receives the control code, the corresponding data analysis unit is selected to analyze the print data and print. Was going to do.

【0004】又、従来のプリンタ装置では、印刷データ
として、文字コードとその修飾情報、更にはその印字位
置を入力すると、印字バッファにこれら入力した印刷デ
ータを全て記憶していた。
Further, in the conventional printer, when a character code and its modification information, and further the printing position thereof are inputted as print data, all the inputted print data are stored in a print buffer.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上記従来
例の前者の方法では、ホストコンピュータより出力され
る印刷データの規約が変わる毎に、それに合わせてプリ
ンタ装置のスイッチの設定等を変更しなければならず、
操作が面倒である。また、後者の場合では、全てのホス
トコンピュータにプリンタ装置のデータ解析部を切り替
えるための特定の制御コードを登録しなければならない
ため、そのためのアプリケーション・プログラムを全て
のホストコンピュータにセットしなければならない等の
問題があった。このように従来は、プリンタ装置やホス
トコンピュータの設定に時間と手間を要し、また間違っ
てプリンタ装置のモードを設定した場合には、ホストコ
ンピュータ側の要求と異なった印刷が行われるなどの問
題があった。
However, in the former method of the above-mentioned conventional example, every time the convention of the print data output from the host computer changes, it is necessary to change the setting of the switch of the printer device according to it. No
The operation is troublesome. Further, in the latter case, a specific control code for switching the data analysis unit of the printer must be registered in all host computers, so an application program for that purpose must be set in all host computers. There was a problem such as. As described above, conventionally, it takes time and effort to set the printer device and the host computer, and when the mode of the printer device is set by mistake, printing different from the request from the host computer side is performed. was there.

【0006】また、後者の従来例では、1つの文字コー
ドに対して、その修飾情報、印字位置を記憶するため、
必要な印字バッファの容量が大きくなる等の問題があ
り、このようにメモリ容量が大きくなるとコストの上昇
を招く等の問題があった。
Further, in the latter conventional example, since the modification information and the print position are stored for one character code,
There is a problem that the required capacity of the print buffer becomes large, and such an increase in the memory capacity causes a problem such as an increase in cost.

【0007】本発明は上記従来例に鑑みてなされたもの
で、外部機器より出力される印刷データの仕様に従って
自動的にその解析方法を変更して記録できる記録装置及
び該装置における記録データの解析方法を提供すること
を目的とする。
The present invention has been made in view of the above conventional example, and a recording apparatus capable of automatically changing the analysis method according to the specifications of print data output from an external device and recording, and an analysis of the recording data in the apparatus. The purpose is to provide a method.

【0008】また本発明は、印字バッファの容量を少な
くして多量の印刷データを記憶できる記録装置を提供す
ることを目的とする。
It is another object of the present invention to provide a recording device capable of storing a large amount of print data by reducing the capacity of the print buffer.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に本発明の記録装置は以下の様な構成を備える。即ち、
外部機器より記録データを入力して被記録媒体に記録す
る記録装置であって、それぞれが異なる仕様の記録デー
タを処理する複数のデータ解析手段と、入力した記録デ
ータに対応して前記複数のデータ解析手段の内のいずれ
かを選択する選択手段と、前記選択手段により選択され
たデータ解析手段により前記入力した記録データを解析
して記録する記録手段とを有する。
In order to achieve the above object, the recording apparatus of the present invention has the following constitution. That is,
A recording device for inputting recording data from an external device and recording the recording data on a recording medium, and a plurality of data analysis means for processing recording data of different specifications, and the plurality of data corresponding to the input recording data. It has a selecting means for selecting any one of the analyzing means, and a recording means for analyzing and recording the inputted record data by the data analyzing means selected by the selecting means.

【0010】上記目的を達成するために本発明の記録装
置における記録データの解析方法は以下の様な構成を備
える。即ち、外部機器より記録データを入力して被記録
媒体に記録する記録装置における記録データの解析方法
であって、それぞれが異なる仕様の記録データを処理す
る複数のデータ解析手段の内の1つを選択する選択工程
と、その選択されたデータ解析手段を用いて入力した記
録データを解析する解析工程と、前記解析工程により解
析された総データ量が前記記録データの量に相当する
か、或いは前記解析工程により解析された特定仕様に特
有のコマンド数が所定数以上になったかを判断する判断
工程と、前記判断工程により該当すると判断されたデー
タ解析手段により、入力した記録データを解析して記録
する工程と、前記判断工程により該当しないと判断され
た時、前記選択工程により次のデータ解析手段を選択
し、前記解析工程及び前記判断工程を繰返し実行する。
In order to achieve the above object, the recording data analysis method in the recording apparatus of the present invention has the following configuration. That is, it is a method of analyzing recorded data in a recording device which inputs recorded data from an external device and records the recorded data on a recording medium, wherein one of a plurality of data analysis means for processing recorded data of different specifications is used. A selection step of selecting, an analysis step of analyzing the record data input using the selected data analysis means, and a total data amount analyzed by the analysis step corresponds to the amount of the record data, or The judgment step of judging whether the number of commands peculiar to the specific specifications analyzed by the analysis step has reached a predetermined number or more, and the data analysis means judged by the judgment step to analyze the input record data and record it. And the determination step, the next data analysis means is selected in the selection step, and the analysis step and the determination step are performed. Repeat the process to run.

【0011】[0011]

【作用】以上の構成において、それぞれが異なる仕様の
記録データを処理する複数のデータ解析手段を有し、入
力した記録データに対応してこれら複数のデータ解析手
段の内のいずれかを選択し、その選択されたデータ解析
手段により、入力した記録データを解析して記録するよ
うに動作する。
In the above structure, each has a plurality of data analysis means for processing record data of different specifications, and selects one of the plurality of data analysis means corresponding to the input record data, The selected data analysis unit operates to analyze and record the input print data.

【0012】[0012]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings.

【0013】図1は本発明の一実施例のレーザビームプ
リンタ(LBP)100の概略構成を示すブロック図、
図2はその内部構造を示す構造断面図で、LBP100
は図1のデータ源(ホストコンピュータ)11から印刷
データを入力して印刷を行うとともに、文字パターンの
登録や定型書式(フォームデータ)等の登録が行えるよ
うに構成されている。
FIG. 1 is a block diagram showing the schematic arrangement of a laser beam printer (LBP) 100 according to an embodiment of the present invention.
FIG. 2 is a structural cross-sectional view showing the internal structure of the LBP100.
Is configured to input print data from the data source (host computer) 11 of FIG. 1 for printing, and to register a character pattern and a fixed form (form data).

【0014】図2において、100はLBP本体を示
し、外部に接続されているホストコンピュータ11から
供給される文字情報(文字コード)やフォーム情報或い
はマクロ命令等を入力して記憶するとともに、それらの
情報に従って対応する文字パターンやフォームパターン
等を作成し、被記録媒体である記録紙上に像を形成す
る。300は操作のための各種スイッチ及びLED表示
器等が配されている操作パネル、101はLBP100
全体の制御及びホストコンピュータから供給される文字
情報等を解析するプリンタ制御ユニットである。このプ
リンタ制御ユニット101は主に文字情報を対応する文
字パターンのビデオ信号に変換してレーザドライバ10
2に出力する。
In FIG. 2, reference numeral 100 denotes an LBP main body, which stores character information (character code) supplied from an externally connected host computer 11, form information, macro commands, etc. and stores them. A corresponding character pattern, form pattern, or the like is created according to the information, and an image is formed on the recording paper, which is the recording medium. Reference numeral 300 is an operation panel on which various switches for operation and LED indicators are arranged, and 101 is an LBP100.
A printer control unit for controlling the entire system and analyzing character information and the like supplied from the host computer. The printer control unit 101 mainly converts the character information into a video signal of a corresponding character pattern to convert the laser driver 10 into a video signal.
Output to 2.

【0015】レーザドライバ102は半導体レーザ10
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザをオン・オフ切替している。レー
ザ光104は回転多面鏡105で左右方向に振られて静
電ドラム106上を走査する。これにより、静電ドラム
106上には文字パターンの静電潜像が形成される。こ
の潜像は静電ドラム106の周囲の現像ユニット107
により現像された後、記録紙に転写される。この記録紙
にはカットシートを用い、カセット記録紙はLBP10
0に装着した用紙カセットに収納され、給紙ローラ10
9及び搬送ローラ110と111とにより装置内に取り
込まれて、静電ドラム106に供給される。
The laser driver 102 is a semiconductor laser 10.
3 is a circuit for driving the semiconductor laser 3, and switches the semiconductor laser on and off in accordance with the input video signal. The laser light 104 is swung in the left-right direction by the rotary polygon mirror 105 to scan the electrostatic drum 106. As a result, an electrostatic latent image having a character pattern is formed on the electrostatic drum 106. The latent image is formed on the developing unit 107 around the electrostatic drum 106.
And then transferred to a recording paper. A cut sheet is used for this recording paper, and the LBP10 cassette recording paper is used.
The paper feed roller 10
It is taken into the apparatus by the 9 and the conveyance rollers 110 and 111 and is supplied to the electrostatic drum 106.

【0016】図1において、13はホストコンピュータ
11との間のデータ送受信を制御するインターフェース
(I/F)部である。14は受信バッファで、ホストコ
ンピュータ11から送信されたデータを記憶して保持し
ている。15はCPUで、ROM16に格納されている
各種プログラムに従って、どのデータ解析プログラムを
使用してデータを処理するかを判断し、その解析プログ
ラムを用いて各種データの解析を行うとともに、その解
析したデータに基づく印刷制御をも行っている。ROM
16は、図3に示すような各種プログラムを格納してい
る。17はCPU15のワークエリアとして使用される
RAMである。18は、図2に示す機構部を有するプリ
ンタ機構部である。尚、これらインターフェース部1
3、受信バッファ14、CPU15、ROM16及びR
AM17は、図2のプリンタ制御ユニット101に収容
されている。
In FIG. 1, reference numeral 13 is an interface (I / F) unit for controlling data transmission / reception with the host computer 11. A reception buffer 14 stores and holds the data transmitted from the host computer 11. A CPU 15 determines which data analysis program is used to process the data according to various programs stored in the ROM 16, analyzes the various data using the analysis program, and analyzes the analyzed data. The print control based on is also performed. ROM
Reference numeral 16 stores various programs as shown in FIG. Reference numeral 17 is a RAM used as a work area of the CPU 15. Reference numeral 18 denotes a printer mechanism section having the mechanism section shown in FIG. In addition, these interface units 1
3, reception buffer 14, CPU 15, ROM 16 and R
The AM 17 is housed in the printer control unit 101 shown in FIG.

【0017】図3は図1に示すROM16のデータ構成
を示すメモリマップ図である。
FIG. 3 is a memory map showing the data structure of the ROM 16 shown in FIG.

【0018】図3において、21はデータ解析判別プロ
グラムであり、受信バッファ14に記憶されている受信
データを、後述するそれぞれ規約の異なる複数のデータ
解析プログラム内のどのデータ解析プログラムを用いて
解析するかを判別するためのプログラムである。22は
複数のデータ解析プログラムを記憶しているエリアを示
し、それぞれ異なる規約からなる印刷データを解析する
ためのプログラムで、各規約に対応してデータ解析プロ
グラム1〜nというように規定されている。23はプリ
ンタ制御プログラムで、データ解析判別プログラム21
で選択されたデータ解析プログラムを用いて解析された
印刷データに基づいて、プリンタ機構部18を制御して
印刷行うためのプログラムである。
In FIG. 3, reference numeral 21 is a data analysis discriminating program, which analyzes received data stored in the receiving buffer 14 by using one of a plurality of data analyzing programs having different rules described later. This is a program for determining whether or not. Reference numeral 22 denotes an area storing a plurality of data analysis programs, which is a program for analyzing print data having different conventions, and is defined as data analysis programs 1 to n corresponding to the conventions. . A printer control program 23 is a data analysis determination program 21.
The program is a program for controlling the printer mechanism unit 18 to perform printing based on the print data analyzed by using the data analysis program selected in.

【0019】図4は本発明の第1実施例のレーザビーム
プリンタ100における処理の流れを示すフローチャー
トで、この処理を実行する制御プログラムはROM16
に記憶されている。尚、図3に示したように、この実施
例ではデータ解析プログラム22は、それぞれ規約の異
なるデータ解析プログラム1、データ解析プログラム
2、データ解析プログラム3の3つの場合で説明する。
FIG. 4 is a flow chart showing the flow of processing in the laser beam printer 100 of the first embodiment of the present invention. The control program for executing this processing is the ROM 16
Remembered in. Note that, as shown in FIG. 3, in this embodiment, the data analysis program 22 will be described in three cases, that is, a data analysis program 1, a data analysis program 2, and a data analysis program 3 having different rules.

【0020】図4において、まずステップS1におい
て、ホストコンピュータ11からレーザビームプリンタ
100へ印刷データが入力されると、その印刷データを
受信バッファ14に記憶して保持する(ステップS
2)。次にステップS3に進み、ROM16のデータ解
析判別プログラム21を実行し、その受信バッファ14
に記憶されている印刷データをデータ解析プログラム
1、データ解析プログラム2、データ解析プログラム3
のうちのいずれのデータ解析プログラムを用いて印刷デ
ータを解析するかを選択する(ステップS4)。ステッ
プS4でデータ解析の番号“1”が選択された場合はス
テップS5に進み、ROM16に記憶されているデータ
解析プログラム1により受信バッファ14に記憶されて
いる印刷データを解析し、その解析したデータに基づい
てステップS8でプリンタ機構部18を駆動・制御して
印刷を行う。
In FIG. 4, first, when print data is input from the host computer 11 to the laser beam printer 100 in step S1, the print data is stored and held in the reception buffer 14 (step S1).
2). Next, in step S3, the data analysis / discrimination program 21 in the ROM 16 is executed and the reception buffer 14
Print data stored in the data analysis program 1, data analysis program 2, data analysis program 3
Which of the data analysis programs is used to analyze the print data is selected (step S4). When the data analysis number "1" is selected in step S4, the process proceeds to step S5, the print data stored in the reception buffer 14 is analyzed by the data analysis program 1 stored in the ROM 16, and the analyzed data is obtained. Based on the above, the printer mechanism unit 18 is driven and controlled in step S8 to perform printing.

【0021】一方、ステップS4でデータ解析の番号
“2”が選択された場合はステップS6に進み、ROM
16に記憶されているデータ解析プログラム2を用いて
受信バッファ14の印刷データを解析し、ステップS8
で印刷を行う。また、ステップS4でデータ解析の番号
“3”が選択された場合はステップS7に進み、ROM
16に記憶されているデータ解析プログラム3を用いて
受信バッファ14の印刷データを解析し、プリンタ機構
部18を制御して印刷を行う。
On the other hand, when the data analysis number "2" is selected in step S4, the process proceeds to step S6 and the ROM
The print data in the reception buffer 14 is analyzed using the data analysis program 2 stored in step 16, and step S8
To print. If the data analysis number "3" is selected in step S4, the process proceeds to step S7 and the ROM
The print data in the reception buffer 14 is analyzed using the data analysis program 3 stored in 16, and the printer mechanism unit 18 is controlled to perform printing.

【0022】図5は、図4のフローチャートにおけるデ
ータ解析判別処理(ステップS3)の流れを示すフロー
チャートである。
FIG. 5 is a flow chart showing the flow of the data analysis discrimination process (step S3) in the flow chart of FIG.

【0023】図5において、まずステップS11で初期
化(図6のフローチャートを参照して後述する)を行
い、データ解析判別処理に必要なデータをRAM17に
初期設定する。次にステップS12に進み、このデータ
解析判別処理を終了する条件が満たされているか否かの
判断を行うためのデータ設定を行い(図7のフローチャ
ートを参照して詳しく後述する)、ステップS13で、
現在のデータ解析プログラムとは別のデータ解析プログ
ラムを選択するように変更されたか否かを判断する。ス
テップS13において変更されたと判断された場合はス
テップS12に戻る。ステップS13において変更なし
と判断された場合はステップS14に進み、受信バッフ
ァ14の印刷データを解析するデータ解析プログラム
が、ステップS12で選択されているか否かを判断し、
否と判断された場合はステップS15に進み、その印刷
データを解析するためのデータ解析プログラムを判別す
る判別処理を行ってステップS12に進む。一方、ステ
ップS14において、既にデータ解析プログラムが選択
されていると判断された場合は、このデータ解析判別処
理を終了する。
In FIG. 5, first, in step S11, initialization (which will be described later with reference to the flowchart of FIG. 6) is performed, and data required for the data analysis / discrimination processing is initialized in the RAM 17. Next, in step S12, data setting is performed to determine whether or not a condition for ending the data analysis / discrimination process is satisfied (which will be described in detail later with reference to the flowchart of FIG. 7), and in step S13. ,
It is determined whether or not the data analysis program has been changed to a different data analysis program from the current data analysis program. If it is determined in step S13 that it has been changed, the process returns to step S12. If it is determined in step S13 that there is no change, the process proceeds to step S14, and it is determined whether or not the data analysis program for analyzing the print data in the reception buffer 14 is selected in step S12.
If it is determined to be no, the process proceeds to step S15, a determination process for determining a data analysis program for analyzing the print data is performed, and the process proceeds to step S12. On the other hand, if it is determined in step S14 that the data analysis program has already been selected, this data analysis determination process ends.

【0024】図6は、図5の初期化(ステップS11)
処理の流れを示すフローチャートである。
FIG. 6 shows the initialization of FIG. 5 (step S11).
It is a flow chart which shows a flow of processing.

【0025】図6において、まずステップS21におい
て、受信バッファ14に記憶されている印刷データを読
込むために、各データ解析プログラム(1〜3)に対応
した各判別データのアドレスに受信バッファ14の印刷
データの先頭アドレスをセットする。次にステップS2
2に進み、各データ解析プログラムに対応する規約の印
刷データに固有のコマンドがいくつあるかを示す、デー
タ解析プログラム1〜3のそれぞれに対応した固有コマ
ンド・カウンタの値に“0”をセットする。このカウン
タはRAM17に設けられている。次にステップS23
に進み、後続の判別終了処理(ステップS12)又は判
別処理(ステップS15)により、その印刷データの判
定が何回変更された(データ解析プログラムが何回切替
えられたか)かを示す、データ解析プログラム1〜3の
それぞれに対応した照合カウンタに“0”をセットす
る。次にステップS24に進み、受信バッファ14の印
刷データ量を示す総データ量として、データ解析判別処
理を行うのに十分な所定値(=α)をセットする。次に
ステップS25において、現地点までに判別を行った印
刷データ量を示す値として、各データ解析プログラムに
対応した判別データ量に“0”をセットする。尚、これ
らカウンタや各種データを設定するためのエリアはRA
M17に設けられている。
In FIG. 6, first, in step S21, in order to read the print data stored in the reception buffer 14, the print data in the reception buffer 14 is set to the address of each determination data corresponding to each data analysis program (1 to 3). Set the start address of. Then step S2
2, the value of the unique command counter corresponding to each of the data analysis programs 1 to 3, which indicates the number of commands unique to the print data of the convention corresponding to each data analysis program, is set to "0". . This counter is provided in the RAM 17. Next in step S23
And a data analysis program indicating how many times the determination of the print data has been changed (how many times the data analysis program has been switched) by the subsequent determination end processing (step S12) or determination processing (step S15). "0" is set to the collation counter corresponding to each of 1-3. Next, proceeding to step S24, a predetermined value (= α) sufficient for performing the data analysis determination process is set as the total data amount indicating the print data amount of the reception buffer 14. Next, in step S25, "0" is set to the determination data amount corresponding to each data analysis program as a value indicating the amount of print data determined up to the local point. The area for setting these counters and various data is RA
It is provided in M17.

【0026】図7は図4のフローチャートにおける判別
終了処理(ステップS12)の流れを示すフローチャー
トである。
FIG. 7 is a flow chart showing the flow of the discrimination end processing (step S12) in the flow chart of FIG.

【0027】図7において、まずステップS31で、現
在選択されているデータ解析プログラムに対応する規約
の印刷データに固有のコマンドの出現回数を示す固有コ
マンド・カウンタの値が所定値(α)を越えているか否
かを判断し、越えていればステップS41に進み、現在
選択されているデータ解析プログラムを受信バッファ1
4の印刷データ処理用のプログラムとして決定する。一
方、その値(α)以下の場合にはステップS32に進
み、現在のデータ解析プログラムにより判別された印刷
データ量が印刷データの総量として前述のステップS2
4(図6)で設定された値(β)を越えているか否かを
判断し、越えていないと判断された場合はステップS3
3に進み、ホストコンピュータ11からLBP100へ
印刷データが入力されているか否かを判断する。印刷デ
ータが入力されていれば、この処理を終了するが、印刷
データが入力されていない時はステップS34に進み、
現地点までにホストコンピュータ11からLBP100
へ入力された印刷データ量が総データ量の所定値(β)
以上か否かをみる。この総データ量がαよりも小さい時
はステップS35に進み、総データ量として実際に入力
された印刷データ量をセットして、この判別処理を終了
する。又、ステップS34において、印刷データ量がこ
の総データ量(β)以上であれば、この処理を終了す
る。
In FIG. 7, first, in step S31, the value of the unique command counter indicating the number of appearances of the command unique to the print data of the convention corresponding to the currently selected data analysis program exceeds the predetermined value (α). It is determined whether or not it is present, and if it is exceeded, the process proceeds to step S41, and the currently selected data analysis program is received in the reception buffer 1
4 is determined as a print data processing program. On the other hand, if the value (α) or less, the process proceeds to step S32, and the print data amount determined by the current data analysis program is used as the total amount of print data in step S2.
It is determined whether or not the value (β) set in step 4 (FIG. 6) is exceeded, and if it is determined that the value (β) is not exceeded, step S3.
In step 3, it is determined whether print data is input from the host computer 11 to the LBP 100. If print data has been input, this process ends, but if print data has not been input, the process proceeds to step S34.
From the host computer 11 to LBP100 by the local point
The print data amount input to is a predetermined value (β) of the total data amount
See if it is above. When the total data amount is smaller than α, the process proceeds to step S35, the actually input print data amount is set as the total data amount, and the determination process is ended. If the print data amount is equal to or larger than the total data amount (β) in step S34, this process ends.

【0028】一方、ステップS32において、判別され
たデータの量が、総データ量を越えたと判断された場合
はステップS36に進み、その時のデータ解析プログラ
ムに対応する照合カウンタの値が“1”か、或いは
“2”以上かを調べ、“2”以上であると判断された場
合はステップS37に進み、全てのデータ解析プログラ
ムに対応する判別データ量が総データ量に達したか否か
を判断する。総データ量に達していない時はステップS
38に進み、予め定めた順序に従って次のデータ解析プ
ログラムを指示する。これは現在例えば、データ解析プ
ログラム1が選択されていれば、次はデータ解析プログ
ラム2というようにして決定する。そしてステップS3
9で、そのデータ解析プログラム(例えばデータ解析プ
ログラム2)に対応する照合カウンタの値を+1する。
また、ステップS37において、判別した印刷データ量
が総データ量に達したと判断するとステップS40に進
み、各データ解析プログラムに対応する固有コマンド・
カウンタの値が最大である固有コマンド・カウンタに対
応するデータ解析プログラムを選択し、受信バッファ1
4の印刷データを解析するデータ解析プログラムとして
決定する。
On the other hand, if it is determined in step S32 that the determined amount of data exceeds the total amount of data, the process proceeds to step S36, and the value of the collation counter corresponding to the data analysis program at that time is "1". , Or "2" or more, and if it is determined to be "2" or more, the process proceeds to step S37, and it is determined whether or not the discrimination data amount corresponding to all the data analysis programs has reached the total data amount. To do. If the total data amount has not been reached, step S
In step 38, the next data analysis program is instructed according to a predetermined order. For example, if the data analysis program 1 is currently selected, the data analysis program 2 is determined next. And step S3
At 9, the value of the collation counter corresponding to the data analysis program (for example, the data analysis program 2) is incremented by one.
If it is determined in step S37 that the determined print data amount has reached the total data amount, the process proceeds to step S40, and the unique command corresponding to each data analysis program
Select the data analysis program corresponding to the unique command counter with the maximum counter value, and then select the receive buffer 1
4 is determined as a data analysis program for analyzing the print data.

【0029】またステップS36において、照合カウン
タの値が“1”の時はステップS41に進み、現在のデ
ータ解析プログラムを受信バッファ14の印刷データを
解析するためのデータ解析プログラムとして選択して、
この処理を終了する。又、ステップS31において、現
在のデータ解析プログラムに対応する固有コマンド・カ
ウンタの値が閾値(α)を越えていると判断するとステ
ップS41に進み、そのデータ解析プログラムを受信バ
ッファ14の印刷データを解析するデータ解析プログラ
ムとして選択する。
When the value of the collation counter is "1" in step S36, the process proceeds to step S41, and the current data analysis program is selected as the data analysis program for analyzing the print data in the reception buffer 14,
This process ends. If it is determined in step S31 that the value of the unique command counter corresponding to the current data analysis program exceeds the threshold value (α), the process proceeds to step S41 and the data analysis program analyzes the print data in the reception buffer 14. Selected as the data analysis program.

【0030】図8は本発明の第1実施例の図4の判別処
理(ステップS15)の処理の流れを示したものであ
る。
FIG. 8 shows the processing flow of the discrimination processing (step S15) of FIG. 4 according to the first embodiment of the present invention.

【0031】図8において、まずステップS51で、現
在のデータ解析プログラムに対応する判別データアドレ
スに対応する受信バッファ14のアドレスから印刷デー
タを読込み、ステップS52で読込んだ印刷データ分だ
けアドレスを進める。次にステップS53に進み、受信
バッファ14の印刷データが、現在のデータ解析プログ
ラムが解析可能な印刷データか否かを、予めROM16
に格納されたテーブルを参照することにより判断する。
解析可能なデータであると判断するとステップS54に
進み、ステップS51で読込んだ印刷データが引数を必
要とするかを判断し、引数が必要であると判断するとス
テップS55に進み、その引数分のデータを判別データ
アドレスから読込む。そしてステップS56において、
その読込んだ印刷データ分だけ判別データの読出しアド
レスを進め、その読み込んだ印刷データが現在のデータ
解析プログラムに固有の印刷データか否かを、予めRO
M16に格納されたテーブルを参照することにより判断
する。固有の印刷データであると判断するとステップS
58に進み、現在のデータ解析プログラムに対応する固
有コマンド・カウンタの値を+1し、この判別処理を終
了する。また、ステップS57において固有のデータで
ないと判断すると、そのまま判別処理を終了する。
In FIG. 8, first, in step S51, the print data is read from the address of the receiving buffer 14 corresponding to the discrimination data address corresponding to the current data analysis program, and the address is advanced by the print data read in step S52. . Next, in step S53, it is determined in advance in the ROM 16 whether or not the print data in the reception buffer 14 is print data that can be analyzed by the current data analysis program.
Judgment is made by referring to the table stored in.
If it is determined that the data can be analyzed, the process proceeds to step S54, it is determined whether the print data read in step S51 needs an argument, and if it is determined that the argument is necessary, the process proceeds to step S55 and the number of arguments is increased. Read data from the discrimination data address. Then, in step S56,
The read address of the discrimination data is advanced by the read print data, and whether or not the read print data is the print data unique to the current data analysis program is determined in advance by RO.
The determination is made by referring to the table stored in M16. If it is determined that the print data is unique, step S
Proceeding to 58, the value of the unique command counter corresponding to the current data analysis program is incremented by 1, and this discrimination processing is ended. If it is determined in step S57 that the data is not unique, the determination process ends.

【0032】一方、ステップS54において引数がない
と判断するとそのままステップS57に進む。又、ステ
ップS53において、現在選択されているデータ解析プ
ログラムで解析不可能な印刷データであると判断すると
ステップS59に進み、前述のステップS38と同様
に、予め定めた順序に従って次のデータ解析プログラム
を選択する。そしてステップS60に進み、ステップS
39と同様に、そのデータ解析プログラムに対応する照
合カウンタの値を+1して、この判別処理を終了する。
On the other hand, if it is determined in step S54 that there is no argument, the process directly proceeds to step S57. If it is determined in step S53 that the print data cannot be analyzed by the currently selected data analysis program, the process proceeds to step S59, and the next data analysis program is executed according to a predetermined order as in step S38. select. Then, the process proceeds to step S60 and step S
Similarly to 39, the value of the collation counter corresponding to the data analysis program is incremented by 1, and this discrimination processing is ended.

【0033】以上説明したようにこの第1実施例によれ
ば、受信した印刷データに従って、最適な印刷処理プロ
グラムを選択して起動できるため、各種の異なる仕様の
印刷データを入力しても自動的に最適な印刷処理プログ
ラムが選択されて、その印刷データに基づく印刷を行う
ことができる効果がある。
As described above, according to the first embodiment, the optimum print processing program can be selected and started in accordance with the received print data, so that even if print data of various different specifications is input, The optimum print processing program is selected, and there is an effect that printing based on the print data can be performed.

【0034】次に図9以降を参照して本発明の第2実施
例を説明する。尚、この場合も、プリンタ装置100a
の構成は図2の構成と同様とする。
Next, a second embodiment of the present invention will be described with reference to FIGS. In this case also, the printer device 100a
2 is similar to that of FIG.

【0035】図9は本発明の第2実施例のプリンタ装置
100aの構成を示すブロック図で、前述の図1と共通
する部分は同じ番号で示し、それらの説明を省略する。
図9において、ROM16aは、図10のフローチャー
トで示された制御プログラムの他に、文字コードに対応
する文字フォントデータ等の各種データを記憶してい
る。19は印字データバッファで、受信した印刷データ
に含まれる文字コードに対応するROM16aのフォン
トアドレスを記憶している。
FIG. 9 is a block diagram showing the arrangement of a printer 100a according to the second embodiment of the present invention. The parts common to those in FIG. 1 described above are designated by the same reference numerals, and their description will be omitted.
In FIG. 9, the ROM 16a stores various data such as character font data corresponding to a character code, in addition to the control program shown in the flowchart of FIG. A print data buffer 19 stores the font address of the ROM 16a corresponding to the character code included in the received print data.

【0036】次に図10のフローチャートを参照して、
本発明の第2実施例を詳しく説明する。尚、このフロー
チャートで示された処理を実行する制御プログラムは、
ROM16aに記憶されている。
Next, referring to the flowchart of FIG.
The second embodiment of the present invention will be described in detail. The control program that executes the processing shown in this flowchart is
It is stored in the ROM 16a.

【0037】まずステップS71で、ホストコンピュー
タ11より伝送されるデータを受信し、ステップS72
で印刷データがない時は、この処理を終了する。印刷デ
ータが入力されるとステップS73に進み、文字修飾命
令かどうかを判断する。尚、この実施例における文字修
飾命令とは、強調印字、倍幅印字、イタリック印字等の
ように、印字する文字のスタイルを指定するための命令
を含んでいる。文字修飾命令であると判断するとステッ
プS73aに進み、それまでの文字修飾情報と異なる修
飾情報であるかをみる。そうであればステップS74に
進み、それまでの文字修飾情報を新たに入力した文字修
飾情報に従って変更し、修飾情報変更フラグをオンにす
る。一方、同じ文字修飾情報であれば何もせずにステッ
プS71に戻る。
First, in step S71, the data transmitted from the host computer 11 is received, and in step S72
If there is no print data, the process ends. When print data is input, the process proceeds to step S73, and it is determined whether the command is a character modification command. The character modification instruction in this embodiment includes an instruction for designating a character style to be printed, such as emphasized printing, double-width printing, and italic printing. If it is determined that the modification command is a character modification command, the process proceeds to step S73a, and it is determined whether the modification information is different from the character modification information up to that point. If so, the process proceeds to step S74, the character decoration information up to that time is changed according to the newly input character decoration information, and the decoration information change flag is turned on. On the other hand, if it is the same character decoration information, nothing is done and the process returns to step S71.

【0038】ステップS76で印字位置移動命令を入力
するとステップS77に進み、文字の印字位置を変更す
るとともに、印字位置変更フラグをセットする。尚、こ
れらフラグはRAM17にセットされ、また、新たに入
力した文字修飾情報或いは印字位置移動命令はRAM1
7のワークエリアに一時的に記憶されるものとする。
又、印字位置移動命令とは、例えば水平タブ等のように
印字位置を変更する命令である。
When a print position moving command is input in step S76, the flow advances to step S77 to change the character print position and set the print position change flag. These flags are set in the RAM 17, and the newly input character modification information or print position movement command is stored in the RAM 1.
It shall be temporarily stored in the work area of 7.
Further, the print position moving command is a command for changing the print position, such as a horizontal tab.

【0039】ステップS76で印字位置の移動命令でな
い時はステップS79に進み、文字コードかどうかを判
断し、文字コードでない時はステップS71に戻る。文
字コードであればステップS80に進み、修飾情報変更
フラグがオンかどうかを調べ、オンであればステップS
81に進み、ステップS74でRAM17に記憶されて
いた文字修飾情報を印字データバッファ19に記憶し、
ステップS82で、その修飾情報変更フラグをオフにす
る。このとき、それまで計数していた文字個数の値を印
字データバッファ19に保存し、文字個数カウンタの値
を“0”にリセットする。
If the command is not a print position movement command in step S76, the process proceeds to step S79 to determine whether it is a character code. If it is not a character code, the process returns to step S71. If it is a character code, the process proceeds to step S80 to check whether the modification information change flag is on, and if it is on, step S
In step 81, the character decoration information stored in the RAM 17 in step S74 is stored in the print data buffer 19,
In step S82, the decoration information change flag is turned off. At this time, the value of the number of characters counted up to that point is stored in the print data buffer 19, and the value of the character number counter is reset to "0".

【0040】又、ステップS83で印字位置変更フラグ
を参照して、印字位置が変更されたかどうかを調べ、印
字位置変更フラグがオン、即ち、印字位置が変更されて
いればステップS84に進み、ステップS77でRAM
17に記憶されている印字位置を印字データバッファ1
9に記憶し、ステップS85で、その印字位置変更フラ
グをオフにする。
In step S83, the print position change flag is referred to check whether or not the print position is changed. If the print position change flag is on, that is, if the print position is changed, the process proceeds to step S84, RAM in S77
The print position stored in 17 is the print data buffer 1
9, and the print position change flag is turned off in step S85.

【0041】こうしてステップS86に進み、印字デー
タバッファ19の次のアドレスに、入力した文字コード
に対応する文字パターンが記憶されているROM16a
のフォントアドレス(フォントデータ位置)をセット
し、ステップS87でその文字修飾情報に対応する文字
の個数を計数するカウンタの値を+1する。
Thus, the process proceeds to step S86, and the ROM 16a in which the character pattern corresponding to the input character code is stored at the next address of the print data buffer 19
The font address (font data position) is set, and the value of the counter for counting the number of characters corresponding to the character modification information is incremented by 1 in step S87.

【0042】次に図11〜図16を参照して、図10の
フローチャートで示された処理の具体例を詳しく説明す
る。
Next, a specific example of the processing shown in the flowchart of FIG. 10 will be described in detail with reference to FIGS.

【0043】図11は、まず最初に文字Aの文字コード
と、その修飾情報が入力されて印字データバッファ19
に格納された状態を示す図である。図12は、この状態
で次に文字Bの文字コードが入力された状態を示し、文
字Aのフォントアドレスに続くエリア120に文字Bの
フォントアドレスが記憶され(ステップS86)、文字
個数の計数値が“2”にカウントアップされる(ステッ
プS87)。尚、図11に続いて、文字Bのコードと、
文字Aの場合と同じ文字修飾情報が入力された場合に
は、ステップS73aよりステップS76にスキップし
て修飾情報変更フラグがセットされなくなるため、図1
2に示す場合と同様の結果となる。これは以下の図1
4、図16の場合も同様である。
In FIG. 11, first, the character code of the character A and its modification information are input and the print data buffer 19 is input.
It is a figure which shows the state stored in. FIG. 12 shows a state in which the character code of the character B is next input in this state, the font address of the character B is stored in the area 120 following the font address of the character A (step S86), and the count value of the number of characters is calculated. Is counted up to "2" (step S87). In addition, following FIG. 11, the code of the letter B,
When the same character decoration information as in the case of the character A is input, the decoration information change flag is not set by skipping from step S73a to step S76.
The result is similar to that shown in FIG. This is shown in Figure 1 below.
4 and FIG. 16 are the same.

【0044】図13は、更に次に文字修飾情報が入力さ
れ、続いて文字Cの文字コードが入力された時の印字デ
ータバッファ19の内容を示す。この場合には、直前の
文字修飾情報と異なる文字修飾情報を入力した時点で修
飾情報変更フラグがオンにセットされ(ステップS7
5)、次に文字Cの文字コードを入力すると、その修飾
情報変更フラグがオンかどうかを調べる(ステップS8
0)。ここでは、その修飾情報変更フラグがオンとなっ
ているため、新たに入力してRAM17に退避されてい
た(ステップS74)文字修飾情報を印字データバッフ
ァ19のエリア121に記憶し、エリア122に文字C
のフォントアドレスを記憶する(ステップS86)。図
14は文字Cに引き続き、文字Dの文字コードを入力し
た状態を示し、ここではエリア122の次のエリア12
3に文字Dのフォントアドレスが記憶される。
FIG. 13 shows the contents of the print data buffer 19 when the character modification information is further input and the character code of the character C is subsequently input. In this case, the modification information change flag is set to ON when the character modification information different from the immediately preceding character modification information is input (step S7).
5) Next, when the character code of the character C is input, it is checked whether or not the modification information change flag is on (step S8).
0). Here, since the modification information change flag is turned on, the character modification information newly input and saved in the RAM 17 (step S74) is stored in the area 121 of the print data buffer 19, and the characters are stored in the area 122. C
The font address of is stored (step S86). FIG. 14 shows a state in which the character code of the character D is input subsequent to the character C. Here, the area 12 next to the area 122 is displayed.
The font address of the character D is stored in 3.

【0045】図15は次に印字位置移動命令を入力し、
その次に文字Eの文字コードを入力した場合を示してい
る。この場合には、印字位置移動命令が入力されると印
字位置変更フラグがオンされ(ステップS77)、次に
文字Eのコードが入力されると、印字位置変更フラグが
オンかどうかが判断される(ステップS83)。ここで
は、この印字位置変更フラグがオンとなっているため、
RAM17に退避されていた印字位置がエリア124に
格納され、次のエリア125に文字Eの文字フォントの
先頭アドレスがセットされる(ステップS86)。又、
図16は、更にその後に、文字Fの文字コードが入力さ
れた場合を示し、エリア125に続くエリア126に文
字Fのフォントアドレスを格納し(ステップS86)、
文字個数の計数値が“4”にカウントアップされる。
In FIG. 15, the print position moving command is input next,
The case where the character code of the character E is input next is shown. In this case, when the print position movement command is input, the print position change flag is turned on (step S77), and when the code of the letter E is input next, it is determined whether the print position change flag is turned on. (Step S83). Here, because this print position change flag is on,
The print position saved in the RAM 17 is stored in the area 124, and the start address of the character font of the character E is set in the next area 125 (step S86). or,
FIG. 16 shows a case where the character code of the character F is further input after that, and the font address of the character F is stored in the area 126 following the area 125 (step S86).
The count value of the number of characters is incremented to "4".

【0046】以上説明したように第2実施例によれば、
受信した印字データを少ないメモリ容量の印字バッファ
に記憶することができる。
As described above, according to the second embodiment,
The received print data can be stored in the print buffer having a small memory capacity.

【0047】尚、本実施例のプリンタ装置として、レー
ザビームプリンタを例にして説明したが、これに限定さ
れるものでなく、以下で説明するインクジェットプリン
タ等にも適応可能である。
Although the laser beam printer has been described as an example of the printer device of the present embodiment, the printer device is not limited to this, and the invention can be applied to an ink jet printer described below.

【0048】図17は、本発明が適用できるインクジェ
ット記録装置IJRAの概観図である。同図において、
駆動モータ5013の正逆回転に連動して駆動力伝達ギ
ア5011,5009を介して回転するリードスクリュ
ー5005の螺旋溝5004に対して係合するキャリッ
ジHCはピン(不図示)を有し、矢印a,b方向に往復
移動される。このキャリッジHCには、インクジェット
カートリッジIJCが搭載されている。5002は紙押
え板であり、キャリッジの移動方向に亙って紙をプラテ
ン5000に対して押圧する。5007,5008はフ
ォトカプラで、キャリッジのレバー5006のこの域で
の存在を確認して、モータ5013の回転方向切り換え
等を行うためのホームポジション検知手段である。50
16は記録ヘッドの前面をキャップするキャップ部材5
022を支持する部材で、5015はこのキャップ内を
吸引する吸引手段で、キャップ内開口5023を介して
記録ヘッドの吸引回復を行う。5017はクリーニング
ブレードで、5019はこのブレードを前後方向に移動
可能にする部材であり、本体支持板5018にこれらが
支持されている。ブレードは、この形態でなく周知のク
リーニングブレードが本例に適用できることは言うまで
もない。又、5012は、吸引回復の吸引を開始するた
めのレバーで、キャリッジと係合するカム5020の移
動に伴って移動し、駆動モータからの駆動力がクラッチ
切り換え等の公知の伝達手段で移動制御される。
FIG. 17 is a schematic view of an ink jet recording apparatus IJRA to which the present invention can be applied. In the figure,
The carriage HC that engages with the spiral groove 5004 of the lead screw 5005 that rotates via the driving force transmission gears 5011 and 5009 in conjunction with the forward and reverse rotations of the drive motor 5013 has a pin (not shown), and has an arrow a. , B direction. An inkjet cartridge IJC is mounted on the carriage HC. A paper pressing plate 5002 presses the paper against the platen 5000 in the moving direction of the carriage. Reference numerals 5007 and 5008 denote photocouplers, which are home position detecting means for confirming the presence of the carriage lever 5006 in this area and switching the rotation direction of the motor 5013. Fifty
16 is a cap member 5 for capping the front surface of the recording head.
Numeral 5015 is a member for supporting 022, and suction means 5015 is for suctioning the inside of the cap, and performs suction recovery of the recording head through the opening 5023 in the cap. Reference numeral 5017 is a cleaning blade, and 5019 is a member that allows this blade to move in the front-rear direction, and these are supported by a main body support plate 5018. Needless to say, a well-known cleaning blade can be applied to this example instead of this form. Reference numeral 5012 denotes a lever for starting suction for suction recovery, which moves in accordance with the movement of the cam 5020 that engages with the carriage, and the movement of the driving force from the driving motor is controlled by a known transmission means such as clutch switching. To be done.

【0049】これらのキャッピング、クリーニング、吸
引回復は、キャリッジがホームポジション側の領域に来
た時にリードスクリュー5005の作用によってそれら
の対応位置で所望の処理が行えるように構成されている
が、周知のタイミングで所望の作動を行うようにすれ
ば、本例にはいずれも適用できる。 <制御構成の説明>次に、上述した装置の記録制御を実
行するための制御構成について、図18に示すブロック
図を参照して説明する。制御回路を示す同図において、
1700は記録信号を入力するインターフェース、17
01はMPU、1702はMPU1701が実行する制
御プログラムを格納するプログラムROM、1703は
各種データ(上記記録信号やヘッドに供給される記録デ
ータ等)を保存しておくダイナミック型のRAMであ
る。1704は記録ヘッド1708に対する記録データ
の供給制御を行うゲートアレイであり、インターフェー
ス1700、MPU1701、RAM1703間のデー
タ転送制御も行う。1710は記録ヘッド1708を搬
送するためのキャリアモータ、1709は記録紙搬送の
ための搬送モータである。1705はヘッドを駆動する
ヘッドドライバ、1706,1707はそれぞれ搬送モ
ータ1709、キャリアモータ1710を駆動するため
のモータドライバである。
The capping, cleaning, and suction recovery are configured so that the desired processing can be performed at their corresponding positions by the action of the lead screw 5005 when the carriage comes to the area on the home position side. As long as the desired operation is performed at the timing, any of the above can be applied to this example. <Description of Control Configuration> Next, a control configuration for executing the recording control of the above-described apparatus will be described with reference to the block diagram shown in FIG. In the figure showing the control circuit,
1700 is an interface for inputting a recording signal, 17
Reference numeral 01 is an MPU, 1702 is a program ROM for storing a control program executed by the MPU 1701, and 1703 is a dynamic RAM for storing various data (the above-mentioned recording signals, recording data supplied to the head, etc.). A gate array 1704 controls supply of print data to the print head 1708, and also controls data transfer between the interface 1700, the MPU 1701, and the RAM 1703. Reference numeral 1710 is a carrier motor for carrying the recording head 1708, and 1709 is a carrying motor for carrying the recording paper. Reference numeral 1705 is a head driver for driving the head, and 1706 and 1707 are motor drivers for driving the carry motor 1709 and the carrier motor 1710, respectively.

【0050】上記制御構成の動作を説明すると、インタ
ーフェース1700に記録信号が入るとゲートアレイ1
704とMPU1701との間で記録信号がプリント用
の記録データに変換される。そして、モータドライバ1
706、1707が駆動されると共に、ヘッドドライバ
1705に送られた記録データに従って記録ヘッドが駆
動され、印字が行われる。
The operation of the above control structure will be described. When a recording signal is input to the interface 1700, the gate array 1
A recording signal is converted between the 704 and the MPU 1701 to print data for printing. And the motor driver 1
The recording heads 706 and 1707 are driven, and the recording head is driven according to the recording data sent to the head driver 1705 to perform printing.

【0051】以上のようなインクジェットプリンタの制
御構成に、本発明の構成要素を組み込むことが可能であ
り、本発明は前述のレーザビームプリンタに限らず、上
記インクジェットプリンタ等にも適用できることは明ら
かである。
It is obvious that the constituent elements of the present invention can be incorporated in the control configuration of the ink jet printer as described above, and the present invention is not limited to the above laser beam printer and can be applied to the above ink jet printer and the like. is there.

【0052】尚、本発明は複数の機器から構成されるシ
ステムに適用しても、1つの機器からなる装置に適用し
ても良い。また、本発明はシステム或は装置に、本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0053】[0053]

【発明の効果】以上説明したように本発明によれば、外
部機器より出力される印刷データ仕様に従って自動的に
その解析方法を変更して記録できる効果がある。
As described above, according to the present invention, there is an effect that the analysis method can be automatically changed and recorded according to the print data specifications output from the external device.

【0054】また他の発明によれば、印字バッファの容
量を少なくして多量の印刷データを記憶できる効果があ
る。
According to another invention, there is an effect that the capacity of the print buffer is reduced and a large amount of print data can be stored.

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

【図1】本発明の第1実施例のレーザビームプリンタの
概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a laser beam printer according to a first embodiment of the present invention.

【図2】本実施例のレーザビームプリンタの構造を示す
構造断面図である。
FIG. 2 is a structural cross-sectional view showing the structure of the laser beam printer of this embodiment.

【図3】本発明の第1実施例のROMに記憶されたプロ
グラムの構成を示すメモリ・マップ図である。
FIG. 3 is a memory map diagram showing a configuration of a program stored in a ROM according to the first embodiment of the present invention.

【図4】本発明の第1実施例のレーザビームプリンタに
おける動作の流れを示すフローチャートである。
FIG. 4 is a flowchart showing a flow of operations in the laser beam printer according to the first embodiment of the present invention.

【図5】図4のステップS3のデータ解析判別処理の流
れを示すフローチャートである。
5 is a flowchart showing a flow of data analysis determination processing in step S3 of FIG.

【図6】図5のステップS11の初期化処理の流れを示
すフローチャートである。
FIG. 6 is a flowchart showing a flow of initialization processing in step S11 of FIG.

【図7】図5のステップS12の判別終了処理の流れを
示すフローチャートである。
FIG. 7 is a flowchart showing a flow of determination end processing in step S12 of FIG.

【図8】図5のステップS15の判別処理の流れを示す
フローチャートである。
FIG. 8 is a flowchart showing a flow of determination processing in step S15 of FIG.

【図9】本発明の第2実施例のレーザビームプリンタの
概略構成を示すブロック図である。
FIG. 9 is a block diagram showing a schematic configuration of a laser beam printer according to a second embodiment of the present invention.

【図10】本発明の第2実施例を説明するフローチャー
トである。
FIG. 10 is a flowchart illustrating a second embodiment of the present invention.

【図11】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 11 is a diagram for explaining a specific operation example of the second embodiment.

【図12】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 12 is a diagram for explaining a specific operation example of the second embodiment.

【図13】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 13 is a diagram for explaining a specific operation example of the second embodiment.

【図14】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 14 is a diagram for explaining a specific operation example of the second embodiment.

【図15】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 15 is a diagram for explaining a specific operation example of the second embodiment.

【図16】第2実施例の具体的な動作例を説明するため
の図である。
FIG. 16 is a diagram for explaining a specific operation example of the second embodiment.

【図17】本発明が適用できるインクジェット記録装置
IJRAの概観図である。
FIG. 17 is a schematic view of an inkjet recording apparatus IJRA to which the present invention can be applied.

【図18】図17のインクジェット記録装置の概略構成
を示すブロック図である。
FIG. 18 is a block diagram showing a schematic configuration of the inkjet recording apparatus of FIG.

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

11 ホストコンピュータ 13 インターフェース(I/F)部 14 受信バッファ 15 中央演算処理装置(CPU) 16,16a ROM 17 RAM 18 プリンタ機構部 19 印字データバッファ 100,100a レーザビームプリンタ(LBP) 11 host computer 13 interface (I / F) unit 14 reception buffer 15 central processing unit (CPU) 16, 16a ROM 17 RAM 18 printer mechanism unit 19 print data buffer 100, 100a laser beam printer (LBP)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 外部機器より記録データを入力して被記
録媒体に記録する記録装置であって、 それぞれが異なる仕様の記録データを処理する複数のデ
ータ解析手段と、 入力した記録データに対応して前記複数のデータ解析手
段の内のいずれかを選択する選択手段と、 前記選択手段により選択されたデータ解析手段により前
記入力した記録データを解析して記録する記録手段と、 を有することを特徴とする記録装置。
1. A recording device for inputting recording data from an external device and recording the recording data on a recording medium, the recording device corresponding to a plurality of data analyzing means for processing recording data having different specifications. Selecting means for selecting any one of the plurality of data analyzing means, and recording means for analyzing and recording the input record data by the data analyzing means selected by the selecting means. Recording device.
【請求項2】 前記選択手段は、前記複数のデータ解析
手段のそれぞれにより解析された記録データに含まれ
る、ある仕様に特有のコマンドの発生回数を計数する計
数手段を有し、前記計数手段の計数値が最も大きくなる
データ解析手段を選択することを特徴とする請求項1に
記載の記録装置。
2. The selecting means has a counting means for counting the number of times a command peculiar to a certain specification included in the record data analyzed by each of the plurality of data analyzing means is counted. 2. The recording apparatus according to claim 1, wherein the data analysis means having the largest count value is selected.
【請求項3】 外部機器より記録データを入力して被記
録媒体に記録する記録装置における記録データの解析方
法であって、 それぞれが異なる仕様の記録データを処理する複数のデ
ータ解析手段の内の1つを選択する選択工程と、 その選択されたデータ解析手段を用いて入力した記録デ
ータを解析する解析工程と、 前記解析工程により解析された総データ量が前記記録デ
ータの量に相当するか、或いは前記解析工程により解析
された特定仕様に特有のコマンド数が所定数以上になっ
たかを判断する判断工程と、 前記判断工程により該当すると判断されたデータ解析手
段により、入力した記録データを解析して記録する工程
と、 前記判断工程により該当しないと判断された時、前記選
択工程により次のデータ解析手段を選択し、前記解析工
程及び前記判断工程を繰返し実行することを特徴とする
記録装置における記録データの解析方法。
3. A method of analyzing recorded data in a recording device for inputting recorded data from an external device and recording the recorded data on a recording medium, the method comprising: a plurality of data analyzing means for processing recorded data having different specifications. A selection step of selecting one, an analysis step of analyzing the record data input using the selected data analysis means, and whether the total data amount analyzed by the analysis step corresponds to the amount of the record data Alternatively, the input record data is analyzed by a determination step of determining whether or not the number of commands peculiar to the specific specifications analyzed by the analysis step has reached a predetermined number or more, and a data analysis unit determined to be applicable by the determination step. And the step of recording, and when it is judged that the judgment is not applicable, the next data analysis means is selected in the selection step, and the analysis step is performed. Analysis method of recording data in the recording apparatus characterized by repeating the fine said determination step.
【請求項4】 外部機器より記録データを入力して被記
録媒体に記録する記録装置であって、 文字コード及び該文字コードに付随する付属情報を入力
する入力手段と、 前記入力手段により入力された付属情報が現在の付属情
報と一致しないかどうかを判別する判別手段と、 前記判別手段により一致しないと判別された場合に、前
記付属情報を前記文字コードと共に記憶する記憶手段
と、 前記記憶手段に記憶されたデータに基づいて記録する記
録手段と、 を有することを特徴とする記録装置。
4. A recording device for inputting recording data from an external device to record on a recording medium, the input device inputting a character code and auxiliary information accompanying the character code, and the input device. Discriminating means for discriminating whether the attached information does not match the present attached information, storage means for storing the attached information together with the character code when the attached information determines that the attached information does not match, and the storing means. A recording device for recording based on the data stored in the recording device.
JP96493A 1993-01-07 1993-01-07 Recording apparatus and method for analyzing recorded data in the apparatus Withdrawn JPH06199012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP96493A JPH06199012A (en) 1993-01-07 1993-01-07 Recording apparatus and method for analyzing recorded data in the apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP96493A JPH06199012A (en) 1993-01-07 1993-01-07 Recording apparatus and method for analyzing recorded data in the apparatus

Publications (1)

Publication Number Publication Date
JPH06199012A true JPH06199012A (en) 1994-07-19

Family

ID=11488327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP96493A Withdrawn JPH06199012A (en) 1993-01-07 1993-01-07 Recording apparatus and method for analyzing recorded data in the apparatus

Country Status (1)

Country Link
JP (1) JPH06199012A (en)

Similar Documents

Publication Publication Date Title
EP0902357B1 (en) Output method and apparatus
US6028676A (en) Output method and apparatus for estimating image quality prior to output
JPH06149490A (en) Printing system and item setting method in the system
US5889930A (en) Output method and apparatus
US6559957B1 (en) Discriminating a rule for processing data
US5696891A (en) Printing apparatus and method for storing various printing parameters
JPH06199012A (en) Recording apparatus and method for analyzing recorded data in the apparatus
JPH06210907A (en) Printer control method and apparatus
EP0634731B1 (en) Output apparatus and method using plural data processing units
JPH07101109A (en) Printer and control method thereof
JP3382299B2 (en) Character processing method and apparatus
JP2871981B2 (en) Printing apparatus and control method thereof
JP2860210B2 (en) Printing control device
JP2834631B2 (en) Print control apparatus and method
JP3106025B2 (en) Print control apparatus and method
JPH07239763A (en) Print control device and control method thereof
JP3323680B2 (en) Output device and output method
JP3195097B2 (en) Output control method and device
JPH0691989A (en) Printing device and method
JP3581432B2 (en) Printing apparatus and control method thereof
JPH0675673A (en) Interface device and printing device equipped with the same
US6295135B1 (en) Release of busy signal when free capacity of a reception buffer exceeds a predetermined amount
JP3809285B2 (en) Image forming apparatus and image forming method
JP2006110789A (en) Resolution selection for printing devices with various interfaces
JPH0713722A (en) Printing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307