JP2968161B2 - Printing control device - Google Patents
Printing control deviceInfo
- Publication number
- JP2968161B2 JP2968161B2 JP5338437A JP33843793A JP2968161B2 JP 2968161 B2 JP2968161 B2 JP 2968161B2 JP 5338437 A JP5338437 A JP 5338437A JP 33843793 A JP33843793 A JP 33843793A JP 2968161 B2 JP2968161 B2 JP 2968161B2
- Authority
- JP
- Japan
- Prior art keywords
- control code
- unit
- analysis unit
- selections
- external device
- 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
Links
Landscapes
- Record Information Processing For Printing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、ホストコンピュータ等
の外部装置から制御コードや文字コードを受信し、印字
を行う印刷装置を制御する印刷制御装置に関するもので
ある。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing control device which receives a control code or a character code from an external device such as a host computer and controls a printing device for printing.
【0002】[0002]
【従来の技術】この種の印刷装置は、種々の外部装置が
接続する関係から、複数の制御コード解析部を有してい
る場合がある。そして、どの制御コード解析部を使用す
るかは、従来は利用者が予め印刷装置の操作パネルを使
って選択するか、もしくは外部装置からの専用コマンド
によって切り替えを行っていた。2. Description of the Related Art A printing apparatus of this type may have a plurality of control code analysis units due to the connection of various external devices. Conventionally, the control code analysis unit to be used is selected by the user in advance using the operation panel of the printing apparatus or switched by a dedicated command from an external device.
【0003】また、印刷装置内で、制御コード解析部が
入力データを処理する前に、入力データ中のコマンドシ
ーケンスから入力データがどの制御コード解析部で処理
するのが最適かを判別する制御コード判別部を設けて、
印刷装置が自動的に判別を行うものもあったが、コマン
ドシーケンスが類似していたり、入力データが少なかっ
た場合などは、あらかじめ決められた固定の制御コード
解析部を選択していた。In a printing apparatus, before a control code analysis unit processes input data, a control code for determining which control code analysis unit is best suited to process the input data based on a command sequence in the input data. By providing a discriminator,
In some cases, the printing apparatus automatically performs the determination, but when the command sequence is similar or the input data is small, a predetermined fixed control code analysis unit is selected.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記従
来例においては、外部装置との接続操作時に、制御コー
ド解析部を選択するために、利用者の操作パネル等を使
った選択操作や、外部装置からの専用コマンドの送出が
不可欠であり、繁雑であった。However, in the above-mentioned prior art, when a connection operation with an external device is performed, a selection operation using a user's operation panel or the like in order to select a control code analysis unit or an external device. The transmission of a dedicated command from is indispensable and complicated.
【0005】また、制御コード判別部を有する印刷装置
においても、入力データが少なかった場合などは制御コ
ード判別部でどの制御コード解析部を使用するか特定で
きない場合があるが、こうした場合には利用者の使用状
況にかかわらず、あらかじめ決められた特定の制御コー
ド解析部を選択しており、不便であった。In a printing apparatus having a control code discriminating unit, it may not be possible to specify which control code analyzing unit is to be used by the control code discriminating unit when there is little input data. Regardless of the user's usage, a predetermined specific control code analysis unit was selected, which was inconvenient.
【0006】本発明は、上記の問題点を解消するために
なされたもので、受信した制御コードを解析するに相応
しい解析部を異なる選択条件レベルに従って判別処理を
繰り返すことにより、解析部を選択するための判別順位
を動的に更新して、受信した制御コードを解析するに最
も相応しい解析部を効率よく自動選択できる印刷制御装
置を提供することを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above problem, and an analysis unit suitable for analyzing a received control code is selected by repeating a determination process according to different selection condition levels. It is an object of the present invention to provide a print control apparatus capable of dynamically updating the determination order for the above and dynamically automatically selecting an analysis unit most suitable for analyzing a received control code.
【0007】[0007]
【課題を解決するための手段】本発明に係る第1の印刷
装置は、外部装置から受信したデータを解析する複数の
制御コード解析部と、これらの制御コード解析部を選択
するための選択条件レベルを設定するレベル設定手段
と、このレベル設定手段により設定された選択条件レベ
ルに基づいて受信した制御コードを解析するために最適
かどうかを所定の優先順位に従って各制御コード解析部
を順次判別する判別手段と、この判別手段による判別結
果に基づいて選択条件レベルを緩和する条件切り換え手
段とを有するものである。A first printing apparatus according to the present invention comprises a plurality of control code analysis units for analyzing data received from an external device, and selection conditions for selecting these control code analysis units. Level setting means for setting a level, and sequentially determining each control code analyzing section according to a predetermined priority order as to whether or not the control code is optimal for analyzing the received control code based on the selection condition level set by the level setting means. It has a determining means and a condition switching means for relaxing the selection condition level based on the result of the determination by the determining means.
【0008】本発明に係る第2の印刷装置は、判別手段
が最適と判別した制御コード解析部の選択回数を記憶す
る不揮発性メモリを設け、前記判別手段が判別不能とな
る場合に、前記不揮発性メモリに記憶された各制御コー
ド解析部の選択回数を参照して選択回数の多い制御コー
ド解析部を自動選択するように構成したものである。The second printing apparatus according to the present invention is provided with a non-volatile memory for storing the number of selections of the control code analysis unit which the discriminating means has determined to be optimum. With reference to the number of selections of each control code analysis unit stored in the memory, the control code analysis unit having a large number of selections is automatically selected.
【0009】本発明に係る第3の印刷装置は、判別手段
が最適と判別した制御コード解析部の選択回数を記憶す
る不揮発性メモリと、前記不揮発性メモリに記憶された
各制御コード解析部の選択回数を参照して各制御コード
解析部の判別優先順位を自動更新する優先順位更新手段
とを有するものである。In a third printing apparatus according to the present invention, a non-volatile memory for storing the number of selections of the control code analysis section determined by the determination means to be optimum, and a control code analysis section for each control code analysis section stored in the non-volatile memory. Priority order updating means for automatically updating the determination priority order of each control code analysis unit with reference to the number of selections.
【0010】本発明に係る第4の印刷装置は、外部装置
と印刷手段を接続している双方向インタフェースを通じ
て各制御コード解析部がこれまでに選択された回数を外
部装置に通知する通知手段を設けたものである。A fourth printing apparatus according to the present invention comprises a notifying means for notifying the external device of the number of times each control code analysis unit has selected so far through a bidirectional interface connecting the external device and the printing means. It is provided.
【0011】[0011]
【作用】第1の発明においては、レベル設定手段により
設定された選択条件レベルに基づいて受信した制御コー
ドを解析するために最適かどうかを所定の優先順位に従
って各制御コード解析部を順次判別する判別手段による
判別結果に基づいて条件切り換え手段は選択条件レベル
を緩和して、可能な限り受信した制御コードを解析する
に相応しいいずれかの制御コード解析部を選択するもの
である。According to the first aspect of the present invention, each control code analyzing unit sequentially determines whether the received control code is optimal for analyzing the received control code based on the selection condition level set by the level setting means according to a predetermined priority order. Based on the result of the determination by the determining means, the condition switching means relaxes the selection condition level and selects any control code analysis unit suitable for analyzing the received control code as much as possible.
【0012】第2の発明においては、判別手段が判別不
能となる場合に、判別手段が不揮発性メモリに記憶され
た各制御コード解析部の選択回数を参照して選択回数の
多い制御コード解析部を自動選択して、各制御コード解
析部の使用履歴に応じて相応しいいずれかの制御コード
解析部を選択するものである。In the second invention, when the discriminating means cannot be discriminated, the discriminating means refers to the number of selections of each control code analyzing section stored in the non-volatile memory and selects the control code analyzing section having a large number of selections. Is automatically selected, and any suitable control code analysis unit is selected according to the use history of each control code analysis unit.
【0013】第3の発明においては、不揮発性メモリに
記憶された各制御コード解析部の選択回数を参照して優
先順位更新手段は各制御コード解析部の判別優先順位を
自動更新して、各制御コード解析部の使用履歴に応じて
相応しい制御コード解析部を確率よく選択するものであ
る。In the third invention, the priority order updating means automatically updates the discrimination priority order of each control code analyzing unit by referring to the number of selections of each control code analyzing unit stored in the nonvolatile memory. A suitable control code analysis unit is selected with a high probability according to the use history of the control code analysis unit.
【0014】第4の発明においては、通知手段は外部装
置と印刷手段を接続している双方向インタフェースを通
じて各制御コード解析部がこれまでに選択された回数を
外部装置に通知して、外部装置が選択されるべき制御コ
ード解析部に応じて転送する印刷データの形式を決定す
るのに有効な情報を提示するものである。In the fourth invention, the notifying means notifies the external device of the number of times each control code analysis unit has selected so far through a bidirectional interface connecting the external device and the printing means, and Presents information effective for determining the format of print data to be transferred according to the control code analysis unit to be selected.
【0015】[0015]
〔第1実施例〕以下、添付図面を参照して本発明の好適
な実施例を詳細に説明する。[First Embodiment] Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.
【0016】本実施例の構成を説明する前に、本実施例
を適用するレーザビームプリンタの構成を図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.
【0017】図1は本発明を適用可能な印刷装置の構成
を示す断面図であり、例えばレーザビームプリンタ(以
下LBPと称す)の場合に対応する。FIG. 1 is a sectional view showing a configuration of a printing apparatus to which the present invention can be applied, and corresponds to, for example, a case of a laser beam printer (hereinafter referred to as LBP).
【0018】図において、100はLBP本体であり、
接続されている外部装置から供給される文字情報(文字
コード)やフォーム情報あるいはマクロ命令などを入力
して記憶するとともに、それらの情報に従って対応する
文字パターンやフォームパターンなどを作成し、記録媒
体である記録紙上に像を形成する。In the figure, 100 is an LBP main body,
Input and store character information (character code), form information, macro instructions, and the like supplied from a connected external device, and create a corresponding character pattern or form pattern in accordance with the information, and use a recording medium. An image is formed on a certain recording paper.
【0019】101は操作のためのスイッチ及びLE
D,LCE表示器などが配置されている操作パネル、1
はLBP100全体の制御及び外部装置から供給される
文字情報などを解析する印刷装置の制御部である。この
制御部1は文字情報などを対応する文字パターンのビデ
オ信号に変換してレーザドライバ102に出力する。Reference numeral 101 denotes a switch and an LE for operation.
Operation panel on which D, LCE display, etc. are arranged, 1
A control unit of the printing apparatus controls the entire LBP 100 and analyzes character information and the like supplied from an external device. The control unit 1 converts character information and the like into a video signal of a corresponding character pattern and outputs the video signal to the laser driver 102.
【0020】レーザドライバ102は半導体レーザ10
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザ103から発射されるレーザ光1
04をオン・オフ切り替えする。レーザ光104は回転
多面鏡105で左右方向にふられて静電ドラム106上
を走査する。これにより、静電ドラム106上には文字
パターンの静電潜像が形成される。この潜像は静電ドラ
ム106周囲の現像ユニット107により現像された
後、記録紙に転写される。この記録紙にはカットシート
を用い、カットシート記録紙はLBP100に装着した
用紙カセット108に収納され、給紙ローラ109及び
搬送ローラ110と搬送ローラ111とにより装置内に
取り込まれて、静電ドラム106に供給される。The laser driver 102 is a semiconductor laser 10
3 for driving the laser light 1 emitted from the semiconductor laser 103 in accordance with the input video signal.
04 is turned on / off. The laser beam 104 is swept right and left by a rotary polygon mirror 105 to scan on an electrostatic drum 106. Thus, an electrostatic latent image of a character pattern is formed on the electrostatic drum 106. This latent image is developed by a developing unit 107 around the electrostatic drum 106 and then transferred to a recording sheet. A cut sheet is used as the recording paper, and the cut sheet recording paper is stored in a paper cassette 108 mounted on the LBP 100, is taken into the apparatus by a paper feed roller 109, a conveyance roller 110, and a conveyance roller 111, and is supplied to an electrostatic drum. 106.
【0021】図2は本発明の一実施例を示す印刷制御装
置の構成を説明するブロック図であり、図1に示した制
御部1に相応する。FIG. 2 is a block diagram illustrating the configuration of a print control apparatus according to an embodiment of the present invention, and corresponds to the control unit 1 shown in FIG.
【0022】図において、2は外部装置、3は入力部、
4は制御コード判別部、5,6,7は制御コード解析
部、8は展開部,9はフレームメモリ、10は出力部、
11は出力機構、12は記録媒体、25はNVRAM
(不揮発性メモリ)である。In the figure, 2 is an external device, 3 is an input unit,
4 is a control code discriminating unit, 5, 6, and 7 are control code analyzing units, 8 is a developing unit, 9 is a frame memory, 10 is an output unit,
11 is an output mechanism, 12 is a recording medium, 25 is NVRAM
(Non-volatile memory).
【0023】外部装置2から転送されたデータは、一旦
入力部3に格納される。入力部3に格納されたデータ量
が予め決められた基準値に達するか、または、基準値に
達しなくても最後のデータを格納してから一定時間以上
経過すると、入力部3に格納されたデータは、制御コー
ド判別部4に送られる。The data transferred from the external device 2 is temporarily stored in the input unit 3. When the amount of data stored in the input unit 3 reaches a predetermined reference value, or when a predetermined time or more has elapsed since the last data was stored even if the data amount did not reach the reference value, the data stored in the input unit 3 was stored. The data is sent to the control code determining unit 4.
【0024】制御コード判別部4では、データ中の制御
コードがどの制御コード解析部のものに相当するかの判
断を行い、データは該当する制御コード解析部5,6,
7のうちの一つに送られる。このとき制御コード判別部
4は、これまでに各制御コード解析部が選択された回数
をNVRAM25内に記憶しておく。The control code discriminating unit 4 judges which control code in the data corresponds to which control code analyzing unit.
Sent to one of the seven. At this time, the control code discrimination unit 4 stores the number of times each control code analysis unit has been selected so far in the NVRAM 25.
【0025】制御コード解析部5,6,7のうちの一つ
によって処理された情報は、展開部8に送られ、例えば
1ページ分のビットマップメモリの形式で、フレームメ
モリ9上に出力イメージが生成される。出力部10は、
前記フレームメモリ9に従って、出力機構11に対しレ
ーザビームのON/OFF制御を行うことで、用紙等の
記録媒体12に印刷結果を記録している。The information processed by one of the control code analysis units 5, 6, and 7 is sent to a development unit 8 and output to a frame memory 9 in the form of a bit map memory for one page, for example. Is generated. The output unit 10
The print result is recorded on a recording medium 12 such as a sheet by performing ON / OFF control of the laser beam for the output mechanism 11 in accordance with the frame memory 9.
【0026】この様に構成された印刷制御装置におい
て、後述するCPU22より設定された選択条件レベル
に基づいて受信した制御コードを解析するために最適か
どうかを所定の優先順位に従って各制御コード解析部5
〜7を順次判別する制御コード判別部4による判別結果
に基づいて選択条件レベル(後述する)を緩和して、可
能な限り受信した制御コードを解析するに相応しいいず
れかの制御コード解析部を選択するものである。In the printing control apparatus thus configured, each control code analyzing unit determines whether the received control code is optimal for analyzing the received control code based on the selection condition level set by the CPU 22 according to a predetermined priority order. 5
The selection condition level (described later) is relaxed based on the determination result by the control code determination unit 4 for sequentially determining the control codes 1 to 7, and any control code analysis unit suitable for analyzing the received control code is selected as much as possible. Is what you do.
【0027】また、判別手段が判別不能となる場合に、
判別手段が不揮発性メモリ(NVRAM25)に記憶さ
れた各制御コード解析部5〜7の選択回数を参照して選
択回数の多い制御コード解析部を自動選択して、各制御
コード解析部の使用履歴に応じて相応しいいずれかの制
御コード解析部を選択するものである。When the discriminating means cannot be discriminated,
The determination means refers to the number of selections of each of the control code analysis units 5 to 7 stored in the non-volatile memory (NVRAM 25), automatically selects the control code analysis unit having a large number of selections, and uses the control code analysis unit. And selecting one of the appropriate control code analysis units.
【0028】さらに、不揮発性メモリ(NVRAM2
5)に記憶された各制御コード解析部の選択回数を参照
して優先順位更新手段は各制御コード解析部の判別優先
順位を自動更新して、各制御コード解析部の使用履歴に
応じて相応しい制御コード解析部を確率よく選択するも
のである。Further, a nonvolatile memory (NVRAM2)
The priority updating means automatically updates the discrimination priority of each control code analyzing unit with reference to the number of selections of each control code analyzing unit stored in 5), and is suitable according to the use history of each control code analyzing unit. The control code analysis unit is selected with high probability.
【0029】また、入力部3は外部装置2と印刷装置を
接続している双方向インタフェースを通じて各制御コー
ド解析部5〜7がこれまでに選択された回数を外部装置
2に通知して、外部装置2が選択されるべき制御コード
解析部に応じて転送する印刷データの形式を決定するの
に有効な情報を提示するものである。The input unit 3 notifies the external device 2 of the number of times that each of the control code analyzing units 5 to 7 has been selected so far through the bidirectional interface connecting the external device 2 and the printing device. This is to present information effective for determining the format of the print data to be transferred according to the control code analysis unit to be selected by the device 2.
【0030】以下、制御コード判別部4について更に詳
しく説明する。Hereinafter, the control code determining section 4 will be described in more detail.
【0031】制御コード判別部4における制御コードの
判別基準は、以下のように3段階に別れており、各判断
条件を満足した時点でその制御コード解析部を選択する
ものとする。The control code discrimination criterion in the control code discrimination unit 4 is divided into three stages as follows, and when each judgment condition is satisfied, the control code analysis unit is selected.
【0032】なお、本実施例では、第1段階が最も厳密
な判断基準となっており、段階が進むにつれて判断基準
が緩くなるという特徴がある。 (第1段階)他の解析部にはなく、当該解析部に固有の
制御コードが存在している。 (第2段階)他の解析部にもあるが、当該解析部にある
制御コードが一定数以上存在している。 (第3段階)その解析部にはない制御コードが存在しな
い。In the present embodiment, the first stage is the strictest criterion, and the criterion is loosened as the stage progresses. (First stage) There is a control code unique to the other analysis unit, not the other analysis unit. (Second stage) Although there are other analysis units, a certain number or more of control codes exist in the analysis units. (Third stage) There is no control code not present in the analysis unit.
【0033】以下、図3に示すフローチャートを参照し
ながら本発明に係る印刷制御装置における制御コード判
別処理動作について説明する。Hereinafter, the control code discriminating operation of the print control apparatus according to the present invention will be described with reference to the flowchart shown in FIG.
【0034】図3は本発明に係る印刷制御装置における
制御コード判別処理手順の一例を示すフローチャートで
ある。なお、(1)〜(21)は各ステップを示す。FIG. 3 is a flowchart showing an example of a control code discrimination processing procedure in the print control apparatus according to the present invention. Note that (1) to (21) indicate each step.
【0035】制御コード判別部4においては、まず、ス
テップ(1)で判別基準を最も厳しい第1段階に設定
し、ステップ(2)ですべての解析部の判別処理を有効
とする。次に、不揮発性メモリ25中に保存されてい
る、これまでに各解析部が使用された回数の多い順に決
定された解析優先順位(本実施例では、現在制御コード
解析部5,6,7の順番で優先順位が高い状態であるこ
とを想定する)の順位で、第1段階での各制御コード判
別処理が行われる。なお、説明を簡単にするため、制御
コード解析部5,6,7をこの順に解析部1〜3と呼
ぶ。In the control code discriminating section 4, first, the discriminating criterion is set to the strictest first step in step (1), and discriminating processing of all the analyzing sections is made effective in step (2). Next, the analysis priorities stored in the nonvolatile memory 25 and determined in ascending order of the number of times each analysis unit has been used (in this embodiment, the current control code analysis units 5, 6, 7 The control code discriminating process in the first stage is performed in the order of (assuming that the state of priority is higher in the order of (1)). For simplicity, the control code analysis units 5, 6, and 7 are referred to as analysis units 1 to 3 in this order.
【0036】まず、ステップ(3)では、初期状態なの
で解析部1の解析処理は有効であり、ステップ(4)で
第1段階の判断基準に従って解析部1の制御コード特有
の特徴があるかどうか判断する。First, in step (3), the analysis process of the analysis unit 1 is effective because it is in the initial state. In step (4), it is determined whether or not there is a characteristic unique to the control code of the analysis unit 1 according to the first-stage criterion. to decide.
【0037】ここで解析部1の制御コードであると判断
できた場合には、ステップ(5)に進み、解析部1に決
定し、解析部の選択回数をインクリメントした後ステッ
プ(20)処理を終了する。If it is determined that the control code is the control code of the analysis unit 1, the process proceeds to step (5), the determination is made by the analysis unit 1, and the number of selections of the analysis unit is incremented. finish.
【0038】しかし、判断できなかった場合にはステッ
プ(6)に進み解析部1の制御コードではないと判断で
きる特徴があるかどうかの判別処理を行う。ここで解析
部1の制御コードではないと判断できた場合には、ステ
ップ(7)で解析部1の判別処理を無効とし、以下第
2,第3段階での解析部1の判別処理を禁止する。However, if it cannot be determined, the process proceeds to step (6) to determine whether or not there is a feature that can be determined to be not the control code of the analysis unit 1. If it is determined that the control code is not the control code of the analysis unit 1, the determination processing of the analysis unit 1 is invalidated in step (7), and the determination processing of the analysis unit 1 in the second and third stages is prohibited. I do.
【0039】ここで解析部1の制御コードでないと判別
できなかった場合には、第1段階での解析部1の判別処
理を終了し、解析部2の判別処理に移るためステップ
(8)に進む。If it cannot be determined that the control code is not the control code of the analysis unit 1, the process of the analysis unit 1 in the first stage is terminated, and the process proceeds to step (8) to proceed to the determination process of the analysis unit 2. move on.
【0040】以下、ステップ(8)からステップ(1
8)まで、解析部1と同様の処理を解析部2,3に対し
て行う。そして、この時点でもどの解析部の制御コード
であるか判断できなかった場合には、ステップ(19)
で判別基準を第2段階に緩める。Hereinafter, from step (8) to step (1)
Until 8), the same processing as the analysis unit 1 is performed on the analysis units 2 and 3. If it is not possible at this time to determine which control unit the control code belongs to, step (19)
To loosen the determination criterion to the second stage.
【0041】そして、第2,第3段階での判別処理を、
ステップ(3)からステップ(18)まで第1段階と同
様に行う。ここで、以前の段階において、その解析部で
はないとすでに判断されていた場合には、判断処理は行
わないものとするステップ(3),ステップ(8),ス
テップ(13)。Then, the discrimination processing in the second and third stages is
Steps (3) to (18) are performed in the same manner as in the first stage. Here, if it is determined in the previous stage that the analysis unit is not the analysis unit, steps (3), (8), and (13) assume that the determination processing is not performed.
【0042】これにより、無駄な判断処理を行わなくて
すむので、判別処理時間の短縮を図ることができる。As a result, it is not necessary to perform a useless determination process, and the determination processing time can be reduced.
【0043】第3段階の判別処理を終了しても、どの解
析部の制御コードか判断できなかった場合には、これま
でに選択された回数が最も多い解析部をデフォルトの解
析部として選択し(21)、解析処理を終了する。If it is not possible to determine which control unit is the control code even after the end of the third-stage determination process, the control unit that has been selected the most frequently is selected as the default analyzer. (21) The analysis process ends.
【0044】なお、ステップ(5),(10),(1
5)実行後、決定された解析部の選択回数をインクリメ
ントして(20)、処理を終了する。Steps (5), (10), (1)
5) After the execution, the determined number of selections of the analysis unit is incremented (20), and the process is terminated.
【0045】図4は、図2に示した制御部1の具体的構
成例を示すブロック図である。なお、図2と同一のもの
には同一の符号を付してあり、外部装置2から印刷情報
が入力される。FIG. 4 is a block diagram showing a specific configuration example of the control unit 1 shown in FIG. The same components as those in FIG. 2 are denoted by the same reference numerals, and print information is input from the external device 2.
【0046】図において、21は外部装置2より印刷情
報を入力する入力インタフェースで、22は制御部1全
体の制御を司るCPUである。23はCPU22の動作
処理手順(図3に示したフローチャートに係るプログラ
ム等)を記憶していると共に、文字フォントパターン等
を記憶しているROM、24はCPU22のワークエリ
ア、外部装置2より受信した印刷データを格納するため
の受信バッファ、受信した印刷情報から1ページ分の出
力イメージを構築するためのページデータ等の格納に用
いられるRAMである。In the figure, reference numeral 21 denotes an input interface for inputting print information from the external device 2, and reference numeral 22 denotes a CPU which controls the entire control unit 1. A ROM 23 stores an operation processing procedure of the CPU 22 (such as a program according to the flowchart shown in FIG. 3) and also stores a character font pattern and the like. A ROM 24 receives a work area of the CPU 22 from the external device 2. A reception buffer for storing print data and a RAM used for storing page data and the like for constructing an output image for one page from the received print information.
【0047】なお、NVRAM(不揮発性メモリ)25
には制御部1のデフォルト印字環境や各解析部の選択回
数などが記憶されている。The NVRAM (non-volatile memory) 25
Stores the default printing environment of the control unit 1 and the number of selections of each analysis unit.
【0048】26は出力イメージを展開するフレームメ
モリであり、RAMで構成される。27は出力イメージ
を、実際に印刷を行う出力部10に出力するための出力
インタフェースである。これら各構成要素はシステムバ
ス31に接続されている。 〔第2実施例〕上記第1実施例では、制御部1内で入力
データを解析し自動的に最適な解析部を選択するための
方法を説明したが、NVRAM25中に保存されている
各解析部が選択された回数を、制御部1から外部装置2
に送ることにより、外部装置2がどの解析部に対応する
データを送るか選択する時の有効な情報を提供するよう
に、すなわち図2において、外部装置2と入力部3との
間は、RS232Cやセントロニクス等の双方向インタ
フェースで接続されている。Reference numeral 26 denotes a frame memory for developing an output image, which is constituted by a RAM. Reference numeral 27 denotes an output interface for outputting an output image to the output unit 10 that actually performs printing. These components are connected to the system bus 31. [Second Embodiment] In the first embodiment, a method for analyzing input data in the control unit 1 and automatically selecting an optimal analysis unit has been described. The number of times the unit has been selected is determined from the control unit 1 by the external device 2.
To provide valid information when the external device 2 selects which analysis unit to send data to, that is, in FIG. 2, between the external device 2 and the input unit 3, the RS232C And a bidirectional interface such as Centronics.
【0049】上記第1実施例で説明したように、制御コ
ード判別部4では各制御コード解析部が選択された回数
をNVRAM25内に保存している。外部装置2から各
制御コード解析部の選択回数を要求する制御コードが送
られてきたなら、その回数を入力部3を通じて外部装置
2に転送する制御してもよい。 〔第3実施例〕上記第1実施例では、制御コード判別部
4における判別基準は3段階である場合について説明し
たが、その数は限定されるものではなく何段階でも構わ
ない。また、制御コード解析部5,6,7も3種類に限
定されるものではなく、2種類での4種類以上でも構わ
ない。さらに、制御コード解析部とそれに対応する制御
コード判別部を一つのプログラム単位として扱い、これ
を自由に組み合わせることで、拡張性に優れた印刷装置
とすることも可能である。As described in the first embodiment, the control code discriminating section 4 stores the number of times each control code analyzing section is selected in the NVRAM 25. If a control code requesting the number of selections of each control code analysis unit is sent from the external device 2, the number of times may be controlled to be transferred to the external device 2 through the input unit 3. [Third Embodiment] In the first embodiment, the case where the control code discriminating section 4 has three discrimination criteria has been described. However, the number of discrimination criteria is not limited and may be any number. Also, the control code analysis units 5, 6, and 7 are not limited to three types, but may be four or more of the two types. Furthermore, a control apparatus that has excellent expandability can be provided by treating the control code analysis unit and the corresponding control code discrimination unit as one program unit and freely combining them.
【0050】なお、本発明は、複数の機器から構成され
るシステムに適用しても、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.
【0051】以上説明したように、本実施例によれば、
複数の制御コード解析部を持つ印刷装置において、外部
装置からの制御コードを判別し自動的に使用する制御コ
ード解析部を選択することができるので、利用者が使用
する制御コード解析部をあらかじめ操作パネルを用いて
設定したり、外部装置から専用コマンドによって設定し
ておく必要がなくなるので、外部装置との接続操作が容
易となる。As described above, according to this embodiment,
In a printing device with multiple control code analysis units, control codes from external devices can be identified and the control code analysis unit used automatically can be selected. Since there is no need to set using a panel or to set using an exclusive command from an external device, the connection operation with the external device is facilitated.
【0052】また、制御コード判別の基準を複数段階持
ち、基準の厳しい順番に判別処理を行い、前段階におい
てその解析部の制御コードでないと判断された場合に
は、以降の判別処理を禁止することにより、非常に確率
の高い制御コード判別処理を容易に実現することがで
き、また判別処理時間の短縮も図ることができる。The control code has a plurality of criteria for discriminating the control code. The discriminating process is performed in the order of the stricter criteria. If it is determined in the preceding step that the control code is not the control code of the analyzing unit, the subsequent discriminating process is prohibited. This makes it possible to easily realize a control code discrimination process with a very high probability, and to shorten the discrimination processing time.
【0053】さらに、各制御コード解析部がこれまでに
選択された回数を記憶しておき、回数の多い順に制御コ
ード判別処理における優先順位を高くし、どの制御コー
ド解析部のデータであるかを判別できなかった場合に、
これまでに選択された回数の最も多い制御コード解析部
を選択することができるので、ユーザで使われている環
境に応じて最適で、非常に確率の高い制御コード判別処
理を実施することができる。Further, each control code analysis unit stores the number of times selected so far, and sets a higher priority in the control code discrimination process in descending order of the number of times, and determines which control code analysis unit is the data. If it cannot be determined,
Since the control code analysis unit having the largest number of selections so far can be selected, it is possible to execute a control code discrimination process which is optimal according to the environment used by the user and has a very high probability. .
【0054】また、各制御コード解析部がこれまでに選
択された回数を、双方向インタフェースを用いて外部装
置に転送することができるので、外部装置がどの解析部
のデータを送るかを決定する時の有効な情報として使用
することができる。Also, since the number of times selected by each control code analysis unit can be transferred to an external device using the bidirectional interface, the external device determines which analysis unit data to send. It can be used as useful information at the time.
【0055】[0055]
【発明の効果】以上説明したように、本発明に係る第1
の発明によれば、レベル設定手段により設定された選択
条件レベルに基づいて受信した制御コードを解析するた
めに最適かどうかを所定の優先順位に従って各制御コー
ド解析部を順次判別する判別手段による判別結果に基づ
いて条件切り換え手段は選択条件レベルを緩和するの
で、可能な限り受信した制御コードを解析するに相応し
いいずれかの制御コード解析部を選択することができ
る。As described above, the first embodiment according to the present invention is described.
According to the invention, determination by the determination means for sequentially determining each control code analysis unit according to a predetermined priority order is performed to determine whether or not the received control code is optimal based on the selection condition level set by the level setting means. Since the condition switching means relaxes the selection condition level based on the result, it is possible to select any control code analysis unit suitable for analyzing the received control code as much as possible.
【0056】第2の発明によれば、判別手段が判別不能
となる場合に、判別手段が不揮発性メモリに記憶された
各制御コード解析部の選択回数を参照して選択回数の多
い制御コード解析部を自動選択するので、各制御コード
解析部の使用履歴に応じて相応しいずれかの制御コード
解析部を選択することができる。According to the second aspect, when the discrimination means cannot be discriminated, the discrimination means refers to the number of selections of each control code analysis unit stored in the non-volatile memory and analyzes the control code having a large number of selections. Since the units are automatically selected, any one of the control code analysis units can be selected according to the use history of each control code analysis unit.
【0057】第3の発明によれば、不揮発性メモリに記
憶された各制御コード解析部の選択回数を参照して優先
順位更新手段は各制御コード解析部の判別優先順位を自
動更新するので、各制御コード解析部の使用履歴に応じ
て相応しい制御コード解析部を確率よく選択することが
できる。According to the third aspect, the priority order updating means automatically updates the discrimination priority of each control code analysis unit by referring to the number of selections of each control code analysis unit stored in the nonvolatile memory. A suitable control code analysis unit can be selected with high probability according to the usage history of each control code analysis unit.
【0058】第4の発明によれば、通知手段は外部装置
と印刷手段を接続している双方向インタフェースを通じ
て各制御コード解析部がこれまでに選択された回数を外
部装置に通知するので、外部装置が選択されるべき制御
コード解析部に応じて転送する印刷データの形式を決定
するのに有効な情報を提示することができる。According to the fourth aspect, the notifying means notifies the external device of the number of times each control code analyzing section has selected so far through the bidirectional interface connecting the external device and the printing means. Information that is effective for determining the format of print data to be transferred according to the control code analysis unit to be selected by the device can be presented.
【0059】従って、解析部を選択するための判別順位
を動的に更新して、受信した制御コードを解析するに最
も相応しい解析部を効率よく自動選択できる効果を奏す
る。Therefore, the determination order for selecting the analysis unit is dynamically updated, and an effect is obtained that the analysis unit most suitable for analyzing the received control code can be efficiently and automatically selected.
【図1】本発明を適用可能な印刷装置の構成を示す断面
図である。FIG. 1 is a cross-sectional view illustrating a configuration of a printing apparatus to which the present invention can be applied.
【図2】本発明の一実施例を示す印刷制御装置の構成を
説明するブロック図である。FIG. 2 is a block diagram illustrating a configuration of a print control apparatus according to an exemplary embodiment of the present invention.
【図3】本発明に係る印刷制御装置における制御コード
判別処理手順の一例を示すフローチャートである。FIG. 3 is a flowchart illustrating an example of a control code determination process procedure in the print control apparatus according to the present invention.
【図4】図2に示した制御部1の具体的構成例を示すブ
ロック図である。FIG. 4 is a block diagram showing a specific configuration example of a control unit 1 shown in FIG.
1 制御部 2 外部装置 3 入力部 4 制御コード判別部 5 制御コード解析部 6 制御コード解析部 7 制御コード解析部 8 展開部 9 フレームメモリ 10 出力部 11 出力機構 12 記録媒体 REFERENCE SIGNS LIST 1 control unit 2 external device 3 input unit 4 control code determination unit 5 control code analysis unit 6 control code analysis unit 7 control code analysis unit 8 development unit 9 frame memory 10 output unit 11 output mechanism 12 recording medium
フロントページの続き (56)参考文献 特開 平3−189173(JP,A) 特開 昭64−64029(JP,A) 特開 平1−287727(JP,A) 特開 平4−257913(JP,A) 特開 平5−19990(JP,A) 特開 平5−53739(JP,A) 特開 平5−131726(JP,A) 特開 平5−282109(JP,A) 特開 平6−214736(JP,A) 特開 平6−242898(JP,A) 実開 平4−17960(JP,U) (58)調査した分野(Int.Cl.6,DB名) G06F 3/12 B41J 5/30 Continuation of the front page (56) References JP-A-3-189173 (JP, A) JP-A-64-64029 (JP, A) JP-A-1-287727 (JP, A) JP-A-4-257913 (JP) JP-A-5-19990 (JP, A) JP-A-5-53739 (JP, A) JP-A-5-131726 (JP, A) JP-A-5-282109 (JP, A) 6-214736 (JP, A) JP-A-6-242898 (JP, A) JP-A-4-17960 (JP, U) (58) Fields investigated (Int. Cl. 6 , DB name) G06F 3/12 B41J 5/30
Claims (4)
受信し印字を行う印刷手段を制御する印刷制御装置にお
いて、外部装置から受信したデータを解析する複数の制
御コード解析部と、これらの制御コード解析部を選択す
るための選択条件レベルを設定するレベル設定手段と、
このレベル設定手段により設定された選択条件レベルに
基づいて受信した制御コードを解析するために最適かど
うかを所定の優先順位に従って各制御コード解析部を順
次判別する判別手段と、この判別手段による判別結果に
基づいて選択条件レベルを緩和する条件切り換え手段と
を有することを特徴とする印刷制御装置。1. A printing control apparatus for receiving a control code or a character code from an external device and controlling a printing unit for performing printing, comprising: a plurality of control code analyzing units for analyzing data received from the external device; Level setting means for setting a selection condition level for selecting an analysis unit;
Discriminating means for sequentially discriminating each control code analyzing unit according to a predetermined priority order to determine whether or not the control code received is optimal based on the selection condition level set by the level setting means; And a condition switching means for relaxing a selection condition level based on a result.
析部の選択回数を記憶する不揮発性メモリを設け、前記
判別手段が判別不能となる場合に、前記不揮発性メモリ
に記憶された各制御コード解析部の選択回数を参照して
選択回数の多い制御コード解析部を自動選択することを
特徴とする請求項1記載の印刷制御装置。2. A non-volatile memory for storing the number of selections of a control code analysis unit determined by the determination means to be optimum, and each control code stored in the nonvolatile memory when the determination means cannot be determined. 2. The printing control apparatus according to claim 1, wherein the control code analyzing unit having a large number of selections is automatically selected with reference to the number of selections of the analysis unit.
析部の選択回数を記憶する不揮発性メモリと、前記不揮
発性メモリに記憶された各制御コード解析部の選択回数
を参照して各制御コード解析部の判別優先順位を自動更
新する優先順位更新手段とを具備したことを特徴とする
請求項1記載の印刷制御装置。3. A non-volatile memory for storing the number of selections of the control code analysis unit determined by the determination unit to be optimum, and each control code is referred to by referring to the number of selections of each control code analysis unit stored in the non-volatile memory. 2. The print control apparatus according to claim 1, further comprising: a priority update unit that automatically updates a determination priority of the analysis unit.
向インタフェースを通じて各制御コード解析部がこれま
でに選択された回数を外部装置に通知する通知手段を設
けたことを特徴とする請求項1記載の印刷制御装置。4. A notifying means for notifying the external device of the number of times each control code analyzing unit has selected so far through a bidirectional interface connecting the external device and the printing means. 2. The print control device according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5338437A JP2968161B2 (en) | 1993-12-28 | 1993-12-28 | Printing control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5338437A JP2968161B2 (en) | 1993-12-28 | 1993-12-28 | Printing control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07200198A JPH07200198A (en) | 1995-08-04 |
| JP2968161B2 true JP2968161B2 (en) | 1999-10-25 |
Family
ID=18318151
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5338437A Expired - Fee Related JP2968161B2 (en) | 1993-12-28 | 1993-12-28 | Printing control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2968161B2 (en) |
-
1993
- 1993-12-28 JP JP5338437A patent/JP2968161B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07200198A (en) | 1995-08-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20010048533A1 (en) | Data processing apparatus and method thereof, and memory medium | |
| JP3165268B2 (en) | Print information processing method and apparatus | |
| US5469373A (en) | Printing apparatus and method that discriminates which analyzer should analyze information | |
| EP0453221B1 (en) | Character outputting apparatus and method | |
| USRE37691E1 (en) | Output method | |
| JP2968161B2 (en) | Printing control device | |
| JP2595855B2 (en) | Printer control device | |
| US6144457A (en) | Print control apparatus and method therefor | |
| JP3017343B2 (en) | Print control apparatus and method | |
| KR0155082B1 (en) | How to Convert Data in the Printer Driver | |
| JP2860201B2 (en) | Output device and method | |
| JP3032682B2 (en) | Printing apparatus and control method thereof | |
| JP3471870B2 (en) | Printing apparatus and processing method | |
| JP2915673B2 (en) | Print control device and print data identification method | |
| EP1956521A1 (en) | Printing control apparatus and control program selecting method | |
| JP4109755B2 (en) | Printing device | |
| JP2958226B2 (en) | Print control device and print control method | |
| JPH0926860A (en) | Printing device and data communication method of printing device | |
| JPH05270092A (en) | Image forming method and apparatus | |
| JP3728083B2 (en) | Image output apparatus and image output method | |
| JP3187262B2 (en) | Character data processing method, character data processing apparatus, and image forming apparatus | |
| JPH05284186A (en) | Printing device | |
| JPH06286221A (en) | Printing method and its device | |
| JPH09309247A (en) | Printing control method and printing apparatus | |
| JPH11314442A (en) | Print control device and print control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |