JP2871981B2 - Printing apparatus and control method thereof - Google Patents

Printing apparatus and control method thereof

Info

Publication number
JP2871981B2
JP2871981B2 JP4334182A JP33418292A JP2871981B2 JP 2871981 B2 JP2871981 B2 JP 2871981B2 JP 4334182 A JP4334182 A JP 4334182A JP 33418292 A JP33418292 A JP 33418292A JP 2871981 B2 JP2871981 B2 JP 2871981B2
Authority
JP
Japan
Prior art keywords
command
interpreting
unit
print data
printing apparatus
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.)
Expired - Fee Related
Application number
JP4334182A
Other languages
Japanese (ja)
Other versions
JPH06183104A (en
Inventor
健 小野寺
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 JP4334182A priority Critical patent/JP2871981B2/en
Publication of JPH06183104A publication Critical patent/JPH06183104A/en
Application granted granted Critical
Publication of JP2871981B2 publication Critical patent/JP2871981B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、異なる印刷制御コマン
ドに対応する少なくとも2つ以上のコマンド解釈部を有
する印刷装置及びその制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus having at least two or more command interpreters corresponding to different print control commands, and a control method thereof.

【0002】[0002]

【従来の技術】従来、印刷制御コマンドに対応する2つ
以上のコマンド解釈部を有する印刷装置において、その
コマンド解釈部の切り換えは、操作パネル等の物理的な
スイッチを使用したり、データ内にコマンド切り換え用
の特殊なコマンドを設けたりして行なわれていた。近
年、このような煩わしい操作を行なわずに自動的にコマ
ンドを切り換える方法として、データの先頭数百バイト
をあらかじめ読み込み、各コマンドの特徴的なデータを
判断してコマンド解釈部を選択する方法が用いられてい
る。
2. Description of the Related Art Conventionally, in a printing apparatus having two or more command interpreting units corresponding to print control commands, the command interpreting unit is switched by using a physical switch such as an operation panel, or by using data in data. This has been done by providing a special command for command switching. In recent years, as a method of automatically switching commands without performing such a troublesome operation, a method of reading a few hundred bytes at the head of data in advance, judging characteristic data of each command, and selecting a command interpretation unit has been used. Have been.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
ような判定方法では、データにイメージデータ等のバイ
ナリデータが入っている場合等は正しい判定が難しくな
る。また、判定を厳密にすればするほど判定のための制
御プログラムが複雑になり、プログラムメモリ量が増大
するとともに、判定に時間がかかるようになり、全体の
パフォーマンスが低下するという問題点があった。
However, in the above-described determination method, it is difficult to make a correct determination when data includes binary data such as image data. In addition, the more strict the determination, the more complicated the control program for the determination, the larger the program memory amount, the longer the time required for the determination, and the lower the overall performance. .

【0004】本発明は上記の問題点に鑑みてなされたも
のであり、コマンド解釈部においてコマンドの解釈とコ
マンド体系の判定を統合することにより、コマンド体系
を判定するための制御プログラムの増大化を防止すると
ともに、正確なコマンド体系の判定及び迅速な印刷処理
が可能な印刷装置及びその制御方法を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and the command interpreting unit integrates interpretation of a command and determination of a command system, thereby increasing a control program for determining a command system. An object of the present invention is to provide a printing apparatus and a control method therefor, which can prevent the occurrence of a command system accurately and can perform a quick print process.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
めの本発明による印刷装置は以下の構成を備える。即
ち、入力した印刷データの印刷制御コマンドを解釈する
ためのコマンド解釈部を複数有する印刷装置であって、
入力した前記印刷データを一時的に格納する格納手段
と、前記複数のコマンド解釈部のうちの1つを用いて前
記格納手段より読みだされた印刷データを解釈する解釈
手段と、前記解釈手段の実行時に、使用中のコマンド解
釈部により処理できないコマンドが検出され場合、当該
印刷データに適するコマンド解釈部を判定することな
く、前記解釈手段の使用するコマンド解釈部を順次他の
コマンド解釈部に切り換える切換手段とを備え、前記解
釈手段は、前記印刷データの入力開始時には予め定めら
れたコマンド解釈部を用いて該印刷データの解釈を開始
し、前記切換手段によってコマンド解釈部が切り換えら
れた場合は、その切り換えられたコマンド解釈部を用い
て前記印刷データを解釈することを特徴とする。また、
上記の目的を達成するための本発明による印刷装置の制
御方法は以下の工程を備える。即ち、入力した印刷デー
タの印刷制御コマンドを解釈するためのコマンド解釈部
を複数有する印刷装置の制御方法であって、入力した前
記印刷データを一時的に記憶部に格納する格納工程と、
前記複数のコマンド解釈部のうちの1つを用いて前記記
憶部より読みだされた印刷データを解釈する解釈工程
と、前記解釈工程の実行時に、使用中のコマンド解釈部
により処理できないコマンドが検出された場合、当該印
刷データに適するコマンド解釈部を判定することなく、
前記解釈工程の使用するコマンド解釈部を順次他のコマ
ンド解釈部に切り換える切換工程とを備え、前記解釈工
程は、前記印刷データの入力開始時には予め定められた
コマンド解釈部を用いて該印刷データの解釈を開始し、
前記切換工程によってコマンド解釈部が切り換えられた
場合は、その切り換えられたコマンド解釈部を用いて前
記印刷データを解釈する。
A printing apparatus according to the present invention for achieving the above object has the following arrangement. That is, a printing apparatus having a plurality of command interpretation units for interpreting a print control command of input print data,
Storage means for temporarily storing the input print data, interpretation means for interpreting the print data read from the storage means using one of the plurality of command interpretation units, and If a command that cannot be processed by the command interpreter in use is detected during execution, the command interpreter used by the interpreter is sequentially switched to another command interpreter without determining a command interpreter suitable for the print data. Switching means, wherein the interpreting means starts interpreting the print data using a predetermined command interpreting unit at the start of inputting the print data, and when the command interpreting unit is switched by the switching means, The print data is interpreted using the switched command interpreter. Also,
A method for controlling a printing apparatus according to the present invention for achieving the above object includes the following steps. That is, a control method of a printing apparatus having a plurality of command interpretation units for interpreting a print control command of input print data, a storage step of temporarily storing the input print data in a storage unit,
An interpreting step of interpreting the print data read from the storage unit using one of the plurality of command interpreting units; and detecting a command that cannot be processed by the command interpreting unit in use during execution of the interpreting step. In this case, without determining the command interpreter suitable for the print data,
A switching step of sequentially switching the command interpreting unit used by the interpreting step to another command interpreting unit, wherein the interpreting step uses a predetermined command interpreting unit at the start of the input of the print data to convert the print data. Start interpretation,
When the command interpretation unit is switched by the switching step, the print data is interpreted using the switched command interpretation unit.

【0006】[0006]

【作用】上記の構成によれば、少なくとも2つ以上のコ
マンド解釈部を有する印刷装置において、印刷データが
入力されると、解釈手段はまず予め定められた1つのコ
マンド解釈部を用いて印刷データのコマンド解釈を行
う。そして、切換手段は、使用中のコマンド解釈部が処
理できないコマンドを検出した場合に、前記解釈手段が
用いるコマンド解釈部を、コマンド解釈部の適正を判定
することなしに順次他のコマンド解釈部に切り換える。
According to the above arrangement, in a printing apparatus having at least two or more command interpreting units, when print data is input, the interpreting means first uses one predetermined command interpreting unit to print data. Command interpretation. When the command interpreting unit in use detects a command that cannot be processed, the switching unit sequentially switches the command interpreting unit used by the interpreting unit to another command interpreting unit without determining the appropriateness of the command interpreting unit. Switch.

【0007】入力された印刷データの解釈の実行中に、
当該印刷データが解釈可能であるか否かの判定はコマン
ド解釈部が通常行っているものであり、上記構成ではコ
マンド解釈部によるこの判定結果を、使用すべきコマン
ド解釈部の自動判定のために利用する。このように構成
することにより、コマンド解釈部の自動判定のためのプ
ログラムを増大させることなく、正確なコマンド切り換
えを実現させることができる。更に、適切なコマンド解
釈部に印刷データが送られた場合は、そのまま実行する
ことが可能なため、あらかじめ判定する手間が不必要に
なり、迅速な印刷処理が可能となる。
During the interpretation of the input print data,
The determination as to whether or not the print data can be interpreted is normally made by the command interpreter. In the above configuration, the result of the determination by the command interpreter is used for automatic determination of the command interpreter to be used. Use. With this configuration, accurate command switching can be realized without increasing the program for automatic determination of the command interpretation unit. Further, when the print data is sent to an appropriate command interpreting unit, the print data can be executed as it is, so that it is not necessary to make a determination in advance and quick print processing can be performed.

【0008】[0008]

【実施例】以下、添付の図面を用いて本発明の好適な実
施例を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0009】本実施例の構成を説明する前に、本実施例
を適用するレーザ・ビーム・プリンタの構成を図1を参
照して説明する。
Before describing the configuration of this embodiment, the configuration of a laser beam printer to which this embodiment is applied will be described with reference to FIG.

【0010】図1は本実施例のレーザ・ビーム・プリン
タ(以下、LBPと略す)の内部構造を示す断面図であ
る。
FIG. 1 is a sectional view showing the internal structure of a laser beam printer (hereinafter abbreviated as LBP) of this embodiment.

【0011】図1において、100はLBP本体であ
り、外部に接続されているホスト・コンピュータ・(図
2の201)から供給される文字情報(文字コード)や
フォーム情報あるいはマクロ命令などを入力して記憶す
るとともに、それらの情報に従つて対応する文字パター
ンやフォーム・パターンなどを作成し、記録媒体である
記録用紙上に像を形成する。112は操作のためのスイ
ッチ及びLED表示器などが配されている操作パネル、
101はLBP100全体の制御及びホスト・コンピユ
ータから供給される文字情報などを解析するプリンタ制
御ユニットである。このプリンタ制御ユニット101は
主に文字情報を対応する文字パターンのビデオ信号に変
換してレーザ・ドライバ102に出力する。
In FIG. 1, reference numeral 100 denotes an LBP main unit, which inputs character information (character code), form information, macro instructions, and the like supplied from an externally connected host computer (201 in FIG. 2). In addition, a corresponding character pattern, form pattern, and the like are created according to the information, and an image is formed on a recording sheet as a recording medium. 112 is an operation panel on which switches for operation and an LED display are arranged;
Reference numeral 101 denotes a printer control unit that controls the entire LBP 100 and analyzes character information and the like supplied from the host computer. The printer control unit 101 mainly converts character information into a video signal of a corresponding character pattern and outputs the video signal to a laser driver 102.

【0012】レーザ・ドライバ102は半導体レーザ1
03を駆動するための回路であり、入力されたビデオ信
号に応じて半導体レーザ103から発射されるレーザ光
104をオン・オフ切替する。レーザ光104は回転多
面鏡105で左右方向に振られて静電ドラム106上を
操作する。これにより、静電ドラム106上には文字パ
ターンの静電潜像が形成される。この潜像は静電ドラム
106周囲の現像ユニット107により現像された後、
記録紙に転写される。この記録紙にはカット・シートを
用い、カット・シート記録紙はLBP100に装着した
用紙カセット108に収納され、給紙ローラ109及び
搬送ローラ110と111により装置内に取り込まれ
て、静電ドラム106に供給される。
The laser driver 102 is a semiconductor laser 1
A circuit for driving the semiconductor laser 103 switches on / off a laser beam 104 emitted from the semiconductor laser 103 in accordance with an input video signal. The laser beam 104 is swung right and left by a rotating polygon mirror 105 to operate on an electrostatic drum 106. Thus, an electrostatic latent image of a character pattern is formed on the electrostatic drum 106. After this latent image is developed by the developing unit 107 around the electrostatic drum 106,
Transferred to recording paper. A cut sheet is used as the recording paper. The cut sheet recording paper is stored in a paper cassette 108 mounted on the LBP 100, taken into the apparatus by a paper feed roller 109 and conveyance rollers 110 and 111, and Supplied to

【0013】図2は図1に示したLBP100の制御ユ
ニット101における概略の制御構成を示すブロック図
である。
FIG. 2 is a block diagram showing a schematic control configuration in the control unit 101 of the LBP 100 shown in FIG.

【0014】図2において、201はホスト・コンピユ
ータであり、破線で示されたLBP100の制御ユニッ
ト101とは、不図示のコネクタを介して接続されてい
る。制御ユニット101では、ホスト・コンピユータ2
01からコマンド及びデータ等を受け取って印刷出力さ
れるように構成されている。
In FIG. 2, reference numeral 201 denotes a host computer, which is connected to the control unit 101 of the LBP 100 shown by a broken line via a connector (not shown). In the control unit 101, the host computer 2
It is configured to receive a command, data, and the like from No. 01 and print it out.

【0015】203はCPUであり、本LBP100の
全制御を行なうための演算・制御を行う。204は受信
バッファであり、ホスト・コンピユータ201よりのコ
マンド及びデータ等の受信データを一時的に蓄える。2
05はプログラムROMであり、後述する図3のフロー
チャートによる一連の制御を実行するためのプログラム
等が格納されている。208はフォントROMであり、
文字フォントが格納されている。209はRAMであ
り、CPU203が各プログラムを実行する際にワーク
エリアとして機能する。212は画像出力部であり、プ
リンタエンジン部に対して画像データを出力する。更
に、本制御ユニット101には不図示の電源装置が接続
されている。
Reference numeral 203 denotes a CPU, which performs calculations and controls for performing the entire control of the LBP 100. A reception buffer 204 temporarily stores reception data such as commands and data from the host computer 201. 2
Reference numeral 05 denotes a program ROM, which stores a program for executing a series of controls according to a flowchart of FIG. 208 is a font ROM,
Contains character fonts. A RAM 209 functions as a work area when the CPU 203 executes each program. An image output unit 212 outputs image data to the printer engine unit. Further, a power supply device (not shown) is connected to the control unit 101.

【0016】また、プログラムROM205には、それ
ぞれ別々の印刷コマンドを解釈する2つのコマンド解釈
部(コマンド解釈部a206,コマンド解釈部b20
7)が格納されている。さらにRAM209には、これ
らのコマンド解釈部(206,207)を切り換えるた
めのコマンド切替フラグ210、および画像メモリ21
1とが確保されている。
The program ROM 205 has two command interpreting units (command interpreting unit a206 and command interpreting unit b20) for interpreting different print commands.
7) is stored. Further, the RAM 209 has a command switching flag 210 for switching these command interpretation units (206, 207), and an image memory 21.
1 is secured.

【0017】次に、図1及び図2の構成を備える本印刷
装置(LBP100)の動作について図3に示すフロー
チャートに従って説明する。
Next, the operation of the printing apparatus (LBP 100) having the configuration shown in FIGS. 1 and 2 will be described with reference to the flowchart shown in FIG.

【0018】図3において、まずLBP100本体に電
源が供給されると、ステップS301でコマンド切り換
えフラグ210がコマンド解釈部a206を選択するよ
うに初期化される。次に、ステップS302でホストコ
ンピユータ201よりデータを受信して、受信したデー
タを受信バッファ204に格納し、この格納した受信バ
ッファ204から1単位コード分のデータを読み取る。
そして、ステップS303でコマンド切替フラグ210
がコマンド解釈部a206およびコマンド解釈部b20
7のどちらを選択するように設定されているか判断す
る。
In FIG. 3, when power is first supplied to the main body of the LBP 100, the command switching flag 210 is initialized in step S301 so as to select the command interpreting unit a206. Next, in step S302, data is received from the host computer 201, the received data is stored in the reception buffer 204, and data for one unit code is read from the stored reception buffer 204.
Then, in step S303, the command switching flag 210
Are the command interpreter a206 and the command interpreter b20
It is determined which of 7 is set to be selected.

【0019】コマンド切替フラグ210によりコマンド
解釈部a206が選択されていれば、コマンド解釈部a
206を用いて受信データの解釈を実行する。まず、ス
テップS304で、受信データをコマンドとして解釈
し、これがコマンド解釈部a206で処理可能な正しい
コマンドか否かを判断する。正しいコマンドと判断され
ればステップS305へ進み、そのコマンドに対応した
命令を実行し、ステップS302に戻る。他方、ステッ
プS304で誤ったコマンド(コマンド解釈部a206
で処理できないコマンド)と判断された場合は、ステッ
プS306でコマンド切替フラグ210をコマンド解釈
部b207を選択するように切り替える。そして、ステ
ップS307で受信バッファ204の読み取りポインタ
を初期化し、ステップS302に戻って受信データの最
初から読み取りし直す。
If the command interpreter a 206 is selected by the command switching flag 210, the command interpreter a
Interpretation of the received data is performed using 206. First, in step S304, the received data is interpreted as a command, and it is determined whether or not this is a correct command that can be processed by the command interpreting unit a206. If it is determined that the command is correct, the process proceeds to step S305, executes an instruction corresponding to the command, and returns to step S302. On the other hand, in step S304, an erroneous command (command interpreting unit a206)
In step S306, the command switching flag 210 is switched to select the command interpreter b207 in step S306. Then, in step S307, the read pointer of the reception buffer 204 is initialized, and the process returns to step S302 to read the received data again from the beginning.

【0020】ステップS303で、コマンド解釈部b2
07が選択されていれば、コマンド解釈部b207を用
いて受信データの解釈を実行するためにステップS30
8へ進む。ステップS308では、受信データをコマン
ドとして解釈し、正しいコマンドか否かを判断する。正
しいコマンドと判断されれば、ステップS309でその
コマンドに対応した命令を実行し、ステップS302に
戻る。他方、ステップS308で誤ったコマンドと判断
された場合は、ステップS310へ進み、コマンドのエ
ラーを表示し、本処理を終了する。
In step S303, the command interpreter b2
If 07 has been selected, step S30 is executed in order to interpret the received data using the command interpretation unit b207.
Proceed to 8. In step S308, the received data is interpreted as a command, and it is determined whether or not the command is a correct command. If it is determined that the command is correct, an instruction corresponding to the command is executed in step S309, and the process returns to step S302. On the other hand, if it is determined in step S308 that the command is an erroneous command, the process advances to step S310 to display an error of the command, and the process ends.

【0021】以上説明したように本実施例の印刷装置
(LBP100)によれば、コマンド自動判定のための
プログラムを既存のコマンド解釈部と共用させることに
より、コマンド系の自動判定のための制御プログラムに
よるプログラムメモリの増大を防止し、正確なコマンド
切り換えを実現させることができる。更に、コマンドが
適切なコマンド解釈部に送られた場合は、そのまま処理
を実行することが可能なため、あらかじめ判定する手間
が不必要となり、その分全体の実行スピードが向上する
という効果がある。
As described above, according to the printing apparatus (LBP 100) of the present embodiment, the program for automatic command determination is shared with the existing command interpreting section, so that the control program for automatic determination of the command system is provided. Can prevent an increase in program memory, and can realize accurate command switching. Further, when a command is sent to an appropriate command interpreting unit, the process can be executed as it is, so that it is not necessary to perform the work of determining in advance, and there is an effect that the execution speed of the whole is improved accordingly.

【0022】尚、コマンド解釈部の数は2つ以上いくつ
あっても構わない。また3つ以上の場合、選択する優先
順序をパネルやコマンド等で選択できるようにしてもよ
い。
The number of command interpreting units may be two or more. In the case of three or more, the priority order to be selected may be made selectable by a panel, a command, or the like.

【0023】また、全てのコマンド解釈で誤ったコマン
ドと判断された場合、本実施例のようにエラー処理にせ
ず、あらかじめ設定された優先コマンドを実行するよう
にしてもよいし、その優先コマンドをパネルやコマンド
等で選択できるようにしても構わない。
When it is determined that all commands are erroneous in interpretation, a predetermined priority command may be executed instead of error processing as in the present embodiment. You may make it selectable by a panel, a command, etc.

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

【0025】<装置本体の概略説明>図4は、本発明が
適用できるインクジェット記録装置IJRAの概観図で
ある。同図において、駆動モータ5013の正逆回転に
連動して駆動力伝達ギア5011,5009を介して回
転するリードスクリュー5005の螺旋溝5004に対
して係合するキャリッジHCはピン(不図示)を有し、
矢印a,b方向に往復移動される。このキャリッジHC
には、インクジェットカートリッジIJCが搭載されて
いる。5002は紙押え板であり、キャリッジの移動方
向に亙って紙をプラテン5000に対して押圧する。5
007,5008はフォトカプラで、キャリッジのレバ
ー5006のこの域での存在を確認して、モータ501
3の回転方向切り換え等を行うためのホームポジション
検知手段である。5016は記録ヘッドの前面をキャッ
プするキャップ部材5022を支持する部材で、501
5はこのキャップ内を吸引する吸引手段で、キャップ内
開口5023を介して記録ヘッドの吸引回復を行う。5
017はクリーニングブレードで、5019はこのブレ
ードを前後方向に移動可能にする部材であり、本体支持
板5018にこれらが支持されている。ブレードは、こ
の形態でなく周知のクリーニングブレードが本例に適用
できることは言うまでもない。又、5012は、吸引回
復の吸引を開始するためのレバーで、キャリッジと係合
するカム5020の移動に伴って移動し、駆動モータか
らの駆動力がクラッチ切り換え等の公知の伝達手段で移
動制御される。
<Schematic Description of Apparatus Main Body> FIG. 4 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 rotation of the drive motor 5013 has a pin (not shown). And
It is reciprocated in the directions of arrows a and b. This carriage HC
Is equipped with an ink jet cartridge IJC. Reference numeral 5002 denotes a paper pressing plate, which presses the paper against the platen 5000 in the moving direction of the carriage. 5
Reference numerals 007 and 5008 denote photocouplers, which confirm the presence of a carriage lever 5006 in this region, and
This is a home position detecting means for performing the rotation direction switching and the like of No. 3. A member 5016 supports a cap member 5022 for capping the front surface of the recording head.
Reference numeral 5 denotes suction means for sucking the inside of the cap, and performs suction recovery of the recording head through the opening 5023 in the cap. 5
Reference numeral 017 denotes a cleaning blade. Reference numeral 5019 denotes a member which allows the blade to move in the front-rear direction. These members are supported by a main body support plate 5018. It goes without saying that the blade is not limited to this form and a known cleaning blade can be applied to this example. Reference numeral 5012 denotes a lever for starting suction for recovery of suction. The lever 5012 moves with the movement of the cam 5020 engaging with the carriage, and the driving force from the drive motor is controlled by known transmission means such as clutch switching. Is done.

【0026】これらのキャッピング、クリーニング、吸
引回復は、キャリッジがホームポジション側の領域に来
た時にリードスクリュー5005の作用によってそれら
の対応位置で所望の処理が行えるように構成されている
が、周知のタイミングで所望の作動を行うようにすれ
ば、本例にはいずれも適用できる。
The capping, cleaning, and suction recovery are configured so that desired operations can be performed at the corresponding positions by the action of the lead screw 5005 when the carriage comes to the area on the home position side. If a desired operation is performed at a timing, any of the examples can be applied.

【0027】<制御構成の説明>次に、上述した装置の
記録制御を実行するための制御構成について、図5に示
すブロック図を参照して説明する。制御回路を示す同図
において、1700は記録信号を入力するインターフェ
ース、1701はMPU、1702はMPU1701が
実行する制御プログラムを格納するプログラムROM、
1703は各種データ(上記記録信号やヘッドに供給さ
れる記録データ等)を保存しておくダイナミック型のR
OMである。1704は記録ヘッド1708に対する記
録データの供給制御を行うゲートアレイであり、インタ
ーフェース1700、MPU1701、RAM1703
間のデータ転送制御も行う。1710は記録ヘッド17
08を搬送するためのキャリアモータ、1709は記録
紙搬送のための搬送モータである。1705はヘッドを
駆動するヘッドドライバ、1706、1707はそれぞ
れ搬送モータ1709、キャリアモータ1710を駆動
するためのモータドライバである。
<Description of Control Structure> Next, a control structure for executing the recording control of the above-described apparatus will be described with reference to a block diagram shown in FIG. In the figure showing a control circuit, 1700 is an interface for inputting a recording signal, 1701 is an MPU, 1702 is a program ROM for storing a control program executed by the MPU 1701,
Reference numeral 1703 denotes a dynamic R for storing various data (such as the recording signal and recording data supplied to the head).
OM. Reference numeral 1704 denotes a gate array that controls supply of print data to the print head 1708, and includes an interface 1700, an MPU 1701, and a RAM 1703.
It also controls data transfer between them. 1710 is a recording head 17
Reference numeral 1709 denotes a transport motor for transporting recording paper. Reference numeral 1705 denotes a head driver for driving the head, and reference numerals 1706 and 1707 denote motor drivers for driving the transport motor 1709 and the carrier motor 1710, respectively.

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

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

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

【0031】[0031]

【発明の効果】以上説明してきたように本発明によれ
ば、コマンド解釈部においてコマンドの解釈とコマンド
体系の判定を統合することにより、コマンド体系を判定
するための制御プログラムの増大化を防止し、正確なコ
マンド体系の判定及び迅速な印刷処理が可能となる。
As described above, according to the present invention, the command interpreter integrates the interpretation of the command and the determination of the command system, thereby preventing an increase in the number of control programs for determining the command system. Thus, it is possible to determine an accurate command system and to perform a quick print process.

【0032】[0032]

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

【図1】本実施例のレーザ・ビーム・プリンタの内部構
造を示す断面図である。
FIG. 1 is a sectional view showing the internal structure of a laser beam printer according to the present embodiment.

【図2】制御ユニットにおける概略の制御構成を示すブ
ロック図である。
FIG. 2 is a block diagram illustrating a schematic control configuration in a control unit.

【図3】本実施例のレーザ・ビーム・プリンタにおける
印刷動作を表すフローチャートである。
FIG. 3 is a flowchart illustrating a printing operation in the laser beam printer according to the present embodiment.

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

【図5】インクジェット記録装置の記録制御を実行する
ための制御構成を表すブロック図である。
FIG. 5 is a block diagram illustrating a control configuration for executing printing control of the inkjet printing apparatus.

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

100 LBP本体 101 プリンタ制御ユニット 201 ホスト・コンピュータ 203 CPU 204 受信バッファ 205 プログラムROM 206 コマンド解釈部a 207 コマンド解釈部b 208 フォントROM 209 RAM 210 コマンド切替フラグ 211 画像メモリ 212 画像出力部 100 LBP main unit 101 Printer control unit 201 Host computer 203 CPU 204 Receive buffer 205 Program ROM 206 Command interpreter a 207 Command interpreter b 208 Font ROM 209 RAM 210 Command switching flag 211 Image memory 212 Image output unit

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力した印刷データの印刷制御コマンド
を解釈するためのコマンド解釈部を複数有する印刷装置
であって、 入力した前記印刷データを一時的に格納する格納手段
と、 前記複数のコマンド解釈部のうちの1つを用いて前記格
納手段より読みだされた印刷データを解釈する解釈手段
と、 前記解釈手段の実行時に、使用中のコマンド解釈部によ
り処理できないコマンドが検出され場合、当該印刷デー
タに適するコマンド解釈部を判定することなく、前記解
釈手段の使用するコマンド解釈部を順次他のコマンド解
釈部に切り換える切換手段とを備え、 前記解釈手段は、前記印刷データの入力開始時には予め
定められたコマンド解釈部を用いて該印刷データの解釈
を開始し、前記切換手段によってコマンド解釈部が切り
換えられた場合は、その切り換えられたコマンド解釈部
を用いて前記印刷データを解釈することを特徴とする印
刷装置。
1. A printing apparatus having a plurality of command interpreting units for interpreting a print control command of input print data, comprising: a storage unit for temporarily storing the input print data; Interpreting means for interpreting the print data read from the storage means using one of the units, and when a command which cannot be processed by the command interpreting unit in use is detected during execution of the interpreting means, the printing is performed. Switching means for sequentially switching the command interpreting section used by the interpreting means to another command interpreting section without determining a command interpreting section suitable for data, wherein the interpreting means is predetermined at the start of input of the print data. When the interpretation of the print data is started using the command interpreting unit that has been set, and the command interpreting unit is switched by the switching unit. Printing apparatus characterized by interpreting the print data using the switched command interpreter.
【請求項2】 前記切替手段により当該印刷装置の備え
るコマンド解釈部の全てが処理できない制御コマンドを
検出したときに、印刷処理を中止するとともにこれを報
知する報知手段を更に備えることを特徴とする請求項1
に記載の印刷装置。
2. The printing apparatus according to claim 1, further comprising a notifying unit for stopping the printing process and notifying the control process when the switching unit detects a control command that cannot be processed by all of the command interpreting units included in the printing apparatus. Claim 1
A printing device according to claim 1.
【請求項3】 前記切替手段により当該印刷装置の備え
るコマンド解釈部の全てが処理できない制御コマンドを
検出したときに、所定のコマンド解釈部を採用して印刷
処理を続行する続行手段を更に備えることを特徴とする
請求項1に記載の印刷装置。
3. A continuation unit that employs a predetermined command interpretation unit to continue printing processing when the switching unit detects a control command that cannot be processed by all of the command interpretation units included in the printing apparatus. The printing device according to claim 1, wherein:
【請求項4】 入力した印刷データの印刷制御コマンド
を解釈するためのコマンド解釈部を複数有する印刷装置
の制御方法であって、 入力した前記印刷データを一時的に記憶部に格納する格
納工程と、 前記複数のコマンド解釈部のうちの1つを用いて前記記
憶部より読みだされた印刷データを解釈する解釈工程
と、 前記解釈工程の実行時に、使用中のコマンド解釈部によ
り処理できないコマンドが検出された場合、当該印刷デ
ータに適するコマンド解釈部を判定することなく、前記
解釈工程の使用するコマンド解釈部を順次他のコマンド
解釈部に切り換える切換工程とを備え、 前記解釈工程は、前記印刷データの入力開始時には予め
定められたコマンド解釈部を用いて該印刷データの解釈
を開始し、前記切換工程によってコマンド解釈部が切り
換えられた場合は、その切り換えられたコマンド解釈部
を用いて前記印刷データを解釈することを特徴とする印
刷装置の制御方法。
4. A control method for a printing apparatus having a plurality of command interpretation units for interpreting a print control command of input print data, comprising: a storage step of temporarily storing the input print data in a storage unit; An interpreting step of interpreting the print data read from the storage unit using one of the plurality of command interpreting units; and a command which cannot be processed by the command interpreting unit in use at the time of executing the interpreting step. A switching step of sequentially switching a command interpreting section used in the interpreting step to another command interpreting section without determining a command interpreting section suitable for the print data when the detection is performed. At the start of data input, the interpretation of the print data is started using a predetermined command interpretation unit, and the command interpretation unit If Rikae was, method for controlling the printing apparatus characterized by interpreting the print data using the switched command interpreter.
【請求項5】 前記切替工程により当該印刷装置の備え
るコマンド解釈部の全てが処理できない制御コマンドを
検出したときに、印刷処理を中止するとともにこれを報
知する処理工程を更に備えることを特徴とする請求項4
に記載の印刷装置の制御方法。
5. The printing apparatus according to claim 1, further comprising a processing step of, when a control command that cannot be processed by all of the command interpretation units of the printing apparatus is detected in the switching step, stopping printing processing and notifying the user of the printing command. Claim 4
6. A method for controlling a printing apparatus according to claim 1.
【請求項6】 前記切替工程により当該印刷装置の備え
るコマンド解釈部の全てが処理できない制御コマンドを
検出したときに、所定のコマンド解釈部を採用して印刷
処理を続行する続行工程を更に備えることを特徴とする
請求項4に記載の印刷装置の制御方法。
6. A continuation step of adopting a predetermined command interpretation unit and continuing printing processing when a control command which cannot be processed by all of the command interpretation units of the printing apparatus is detected in the switching step. The method for controlling a printing apparatus according to claim 4, wherein:
JP4334182A 1992-12-15 1992-12-15 Printing apparatus and control method thereof Expired - Fee Related JP2871981B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4334182A JP2871981B2 (en) 1992-12-15 1992-12-15 Printing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4334182A JP2871981B2 (en) 1992-12-15 1992-12-15 Printing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JPH06183104A JPH06183104A (en) 1994-07-05
JP2871981B2 true JP2871981B2 (en) 1999-03-17

Family

ID=18274459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4334182A Expired - Fee Related JP2871981B2 (en) 1992-12-15 1992-12-15 Printing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP2871981B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5691323B2 (en) 2010-09-13 2015-04-01 セイコーエプソン株式会社 Electronic device, control method of electronic device, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02156325A (en) * 1988-12-08 1990-06-15 Ricoh Co Ltd Computer terminal equipment
JP2913941B2 (en) * 1991-10-15 1999-06-28 富士ゼロックス株式会社 Printer control device

Also Published As

Publication number Publication date
JPH06183104A (en) 1994-07-05

Similar Documents

Publication Publication Date Title
EP0902357B1 (en) Output method and apparatus
US5758041A (en) Output control method and apparatus
US6052204A (en) Output apparatus and output method
EP0583891B1 (en) Output method and apparatus
JP2871981B2 (en) Printing apparatus and control method thereof
US6397265B1 (en) Print control apparatus for communicating with a selected external apparatus to control a printer
JPH08244314A (en) Printer system and printer and information processing apparatus in said system
JP3202841B2 (en) Printing apparatus, printing system, and printing control method
JPH09188015A (en) Printer and printing control method
JP2860210B2 (en) Printing control device
JPH06210907A (en) Printer control method and apparatus
JP3332432B2 (en) Data communication method and print control device
JP3313919B2 (en) Output device and output method
JP3323680B2 (en) Output device and output method
JPH0695814A (en) Printing data transfer system
JPH10187373A (en) Print system and saving power mode notifying method in print system
JPH0615930A (en) Printing device
JPH0675673A (en) Interface device and printing device equipped with the same
JPH064241A (en) Method and device for printing
JPH0687253A (en) Printer
JP2003036149A (en) Output device, control method for output device, medium providing control program, and control program
JPH07319647A (en) Printer and its control method
JPH06238991A (en) Method and apparatus for printing
JPH0667826A (en) Printer
JP2000177208A (en) Image forming apparatus and image forming method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981207

LAPS Cancellation because of no payment of annual fees