JP3437482B2 - Print control device and print control method - Google Patents
Print control device and print control methodInfo
- Publication number
- JP3437482B2 JP3437482B2 JP06853099A JP6853099A JP3437482B2 JP 3437482 B2 JP3437482 B2 JP 3437482B2 JP 06853099 A JP06853099 A JP 06853099A JP 6853099 A JP6853099 A JP 6853099A JP 3437482 B2 JP3437482 B2 JP 3437482B2
- Authority
- JP
- Japan
- Prior art keywords
- print data
- input
- predetermined amount
- 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.)
- Expired - Fee Related
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、ホストコンピュータ等
の上位装置から送られてくる印刷データから印刷制御コ
マンド体系の種類を自動識別可能な印刷制御装置および
印刷制御方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control device and a print control method capable of automatically identifying the type of a print control command system from print data sent from a host computer or other host device.
【0002】[0002]
【従来の技術】従来、ホストコンピュータから送られて
くる印刷データから印刷制御コマンド体系の種類を自動
識別してコマンド体系に対応する印刷制御プログラムを
起動する機能を持つ印刷制御装置が考案されている。か
かる装置において、データ入力が開始されてから一定時
間経過するか、一定量のデータを受信した時に印刷デー
タのコマンド体系識別処理を起動する方法が考えられ
る。2. Description of the Related Art Conventionally, there has been devised a print control apparatus having a function of automatically identifying a type of print control command system from print data sent from a host computer and activating a print control program corresponding to the command system. . In such an apparatus, a method of activating a command system identification process of print data when a certain time has elapsed from the start of data input or when a certain amount of data is received can be considered.
【0003】この種の印刷制御装置ではコマンド体系の
識別は印刷データと予めROMに格納された特徴情報と
の比較参照により行われる。In this type of print control apparatus, the command system is identified by comparing and referring to the print data and the characteristic information stored in the ROM in advance.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、印刷デ
ータのコマンド体系識別処理を起動する方法では、デー
タ入力が開始されてから一定時間経過したときに、デー
タ入力が開始されてから印刷データの識別処理が開始さ
れるまでの時間が一定となるため、比較の対象となる印
刷データ数が少なくなりコマンド体系の認識率が低下す
るといった不具合があった。However, in the method of activating the print data command system identification processing, the print data identification processing is started after the data input is started when a certain time has elapsed since the data input was started. Since the time until the start is constant, there is a problem that the number of print data to be compared decreases and the recognition rate of the command system decreases.
【0005】また、一定量のデータを受信した時に起動
する方法では、データ転送が遅いホストやデータを数バ
イトずつ時間間隔をおいて転送するようなドライバの場
合は一定量のデータの受信に時間を要するため、処理開
始が遅くなってしまうという不具合があった。Further, in the method of starting when a fixed amount of data is received, in the case of a host that is slow in data transfer or a driver that transfers data at intervals of several bytes, it takes time to receive a fixed amount of data. Therefore, there is a problem that the processing start is delayed.
【0006】本発明は、上記の問題点を解決するために
なされたもので、入力される印刷データのデータ量が所
定量に満たない場合でも、解析手段の選択処理を進行さ
せて、該印刷データに適応する解析手段による解析を開
始できる印刷制御装置および印刷制御方法を提供するこ
とを目的とする。The present invention has been made in order to solve the above problems, and even when the amount of input print data is less than a predetermined amount, the selecting process of the analyzing means is advanced to perform the printing. An object of the present invention is to provide a print control device and a print control method capable of starting analysis by analysis means adapted to data.
【0007】[0007]
【課題を解決するための手段】本発明に係る第1の発明
は、複数のコマンド体系の印刷データを処理可能な印刷
制御装置において、上位装置からの印刷データを入力す
る入力手段と、前記複数のコマンド体系の印刷データを
解析する複数の解析手段と、前記複数の解析手段のう
ち、前記入力手段によって入力された印刷データを解析
すべき解析手段を選択する選択手段と、前記入力手段に
より入力された印刷データのうちの所定量の印刷データ
に基づいて前記選択手段による解析手段の選択を行わせ
る第1の制御手段と、前記入力手段により入力された印
刷データが所定量に満たない場合でも、所定量に満たな
い印刷データに基づいて前記選択手段による解析手段の
選択を開始させると判断する判断手段と、前記判断手段
の判断結果に基づいて、前記選択手段による解析手段の
選択を行わせる第2の制御手段とを有することを特徴と
する。According to a first aspect of the present invention, in a print control apparatus capable of processing print data of a plurality of command systems, input means for inputting print data from a higher-level device, and the plurality of A plurality of analyzing means for analyzing the print data of the command system, a selecting means for selecting an analyzing means for analyzing the print data input by the input means from the plurality of analyzing means, and an input by the input means. First control means for selecting the analysis means by the selection means based on a predetermined amount of print data among the printed data, and even if the print data input by the input means is less than the predetermined amount A determination unit that determines that the selection unit starts selecting the analysis unit based on print data that is less than a predetermined amount, and a determination result of the determination unit. , And having a second control means for causing the selection of the analysis means by said selection means.
【0008】本発明に係る第2の発明は、前記判断手段
は、前記入力手段により入力された印刷データが所定量
に満たない場合でも、所定時間が経過するのに応じて、
所定量に満たない印刷データに基づいて前記選択手段に
よる解析手段の選択を開始させると判断することを特徴
とする。According to a second aspect of the present invention, the judging means responds to a lapse of a predetermined time even if the print data input by the input means is less than a predetermined amount.
It is characterized in that it is determined that the selection of the analysis unit by the selection unit is started based on the print data that is less than the predetermined amount.
【0009】本発明に係る第3の発明は、前記選択手段
は、各コマンド体系の特徴情報と前記入力手段によって
入力された印刷データとに基づいて、前記印刷データを
解析すべき解析手段を選択することを特徴とする。In a third aspect of the present invention, the selecting means selects an analyzing means for analyzing the print data based on characteristic information of each command system and print data input by the input means. It is characterized by doing.
【0010】本発明に係る第4の発明は、前記所定時間
を示す値を設定変更可能なパネル操作手段を有すること
を特徴とする。A fourth invention according to the present invention is characterized by having panel operating means capable of changing the setting of the value indicating the predetermined time.
【0011】本発明に係る第5の発明は、前記所定量を
示す値を設定変更可能なパネル操作手段を有することを
特徴とする。A fifth aspect of the present invention is characterized by comprising panel operating means capable of changing the setting of the value indicating the predetermined amount.
【0012】本発明に係る第6の発明は、レーザビーム
プリンタであることを特徴とする。A sixth invention according to the present invention is a laser beam printer.
【0013】本発明に係る第7の発明は、複数のコマン
ド体系の印刷データを処理可能な印刷制御装置における
印刷制御方法において、前記複数のコマンド体系の印刷
データを解析する複数の解析手段のうち、上位装置から
入力された印刷データを解析すべき解析手段を選択する
選択工程と、前記入力された印刷データのうちの所定量
の印刷データに基づいて前記選択工程による解析手段の
選択を行わせる第1の制御工程と、上位装置から入力さ
れた印刷データが所定量に満たない場合でも、所定量に
満たない印刷データに基づいて前記選択工程による解析
手段の選択を開始させると判断する判断工程と、前記判
断工程の判断結果に基づいて、前記選択工程による解析
手段の選択を行わせる第2の制御工程とを有することを
特徴とする。本発明に係る第8の発明は、前記判断工程
は、入力された印刷データが所定量に満たない場合で
も、所定時間が経過するのに応じて、所定量に満たない
印刷データに基づいて前記選択工程による解析手段の選
択を開始させると判断することを特徴とする。本発明に
係る第9の発明は、前記選択工程は、各コマンド体系の
特徴情報と入力された印刷データとに基づいて、前記印
刷データを解析すべき解析手段を選択することを特徴と
する。本発明に係る第10の発明は、前記所定時間を示
す値は、設定変更可能なパネル操作部で設定変更される
ことを特徴とする。本発明に係る第11の発明は、前記
所定量を示す値は、設定変更可能なパネル操作部で設定
変更されることを特徴とする。According to a seventh aspect of the present invention, in a print control method in a print control apparatus capable of processing print data of a plurality of command systems, a plurality of analysis means for analyzing print data of the plurality of command systems are provided. A selecting step of selecting an analyzing means for analyzing print data input from the host device, and selecting the analyzing means by the selecting step based on a predetermined amount of print data of the input print data A first control step and a determination step of determining that the selection of the analysis means by the selection step is started based on the print data that does not reach the predetermined amount even if the print data that is input from the host device does not reach the predetermined amount. And a second control step for selecting the analysis means in the selection step based on the determination result of the determination step. According to an eighth aspect of the present invention, in the determining step, even if the input print data is less than a predetermined amount, the determination is performed based on print data that does not reach a predetermined amount as a predetermined time elapses. It is characterized in that it is judged to start the selection of the analysis means in the selection step. A ninth invention according to the present invention is characterized in that the selecting step selects an analyzing means for analyzing the print data based on the characteristic information of each command system and the input print data. A tenth aspect of the present invention is characterized in that the value indicating the predetermined time is set and changed by a panel operation unit whose setting can be changed. An eleventh aspect of the present invention is characterized in that the value indicating the predetermined amount is set and changed by a panel operation unit whose setting can be changed.
【0014】[0014]
【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.
【0015】図1は、本発明の一実施形態を示す印刷制
御装置を適用可能な印刷システムの基本構成を示すブロ
ック図である。FIG. 1 is a block diagram showing the basic arrangement of a printing system to which a printing control apparatus according to an embodiment of the present invention can be applied.
【0016】図1において、101はホストコンピュー
タであり、印刷データおよび制御コードからなる印刷情
報を印刷装置102に出力するものである。印刷装置1
02は大きく分けてコントローラ部103とエンジン部
104より構成されている。コントローラ部103は受
信バッファ105とタイマ106とデータカウンタ10
7とコマンド体系自動識別処理部113とコマンド解析
部108と描画処理部109とページメモリ110とパ
ネル操作部115とRAM116から構成されている。
エンジン部104は出力制御部111とプリンタエンジ
ン部112とから構成されている。In FIG. 1, reference numeral 101 denotes a host computer, which outputs print information consisting of print data and control codes to the printer 102. Printer 1
02 is roughly divided into a controller unit 103 and an engine unit 104. The controller unit 103 includes a reception buffer 105, a timer 106, and a data counter 10.
7, a command system automatic identification processing unit 113, a command analysis unit 108, a drawing processing unit 109, a page memory 110, a panel operation unit 115, and a RAM 116.
The engine unit 104 includes an output control unit 111 and a printer engine unit 112.
【0017】受信バッファ105はホストコンピュータ
101から受信したデータを一時的に保持する記憶手段
として機能する。コマンド体系自動識別処理部113
は、受信バッファ105の内容を一部調べ、ホストコン
ピュータ101から送られてきた印刷情報がどの種類の
コマンド体系で記述されたものか識別を行ない、コマン
ド解析部108において対応する制御プログラムを選択
するための切替え処理を行なうものである。コマンド解
析部108は各印刷制御コマンド体系に準じた制御プロ
グラムと自動識別処理のための特徴情報の対がいくつか
集まって構成されている。The reception buffer 105 functions as a storage means for temporarily holding the data received from the host computer 101. Command system automatic identification processing unit 113
Examines a part of the contents of the reception buffer 105, identifies which type of command system the print information sent from the host computer 101 describes, and selects the corresponding control program in the command analysis unit 108. The switching process for The command analysis unit 108 is configured by collecting several pairs of control programs conforming to each print control command system and characteristic information for automatic identification processing.
【0018】コマンド解析部108で解析されたコマン
ドは、印刷データの解析を行なった中間的な結果であ
り、描画処理部109において処理しやすい形式の中間
コードの形に変換される。描画処理部109では、この
中間コードに従ってページメモリ110に展開を行なっ
ていく。The command analyzed by the command analysis unit 108 is an intermediate result of analysis of print data, and is converted into an intermediate code in a format that can be easily processed by the drawing processing unit 109. The drawing processing unit 109 expands the page memory 110 according to this intermediate code.
【0019】なお、一般的には、コントローラ部103
はCPU,ROM,RAMを用いたコンピュータシステ
ムによって構成されている。出力制御部111は、ペー
ジメモリ110の内容をビデオ信号に変換し、プリンタ
エンジン部112へ画像転送を行なう。プリンタエンジ
ン部112は受けとったビデオ信号から記録紙に画像を
形成する。In general, the controller unit 103
Is composed of a computer system using a CPU, a ROM and a RAM. The output control unit 111 converts the content of the page memory 110 into a video signal and transfers the image to the printer engine unit 112. The printer engine unit 112 forms an image on recording paper from the received video signal.
【0020】この様に構成された印刷装置102におい
て、コマンド体系自動識別処理部113がホストコンピ
ュータ101から入力される印刷データとROMに記憶
される特徴情報とを比較照合して起動するいずれか1つ
の印刷制御プログラムを選択して起動し、該起動された
印刷制御プログラムに伴う印刷データ解析状態を判定し
て印刷制御プログラムを選択する処理の再開を制御する
ので、起動中の印刷制御プログラムでは解析不能となる
印刷データを連続して受信しても、該印刷データを解析
できる印刷制御プログラムが存在する場合には、エラー
とせずに連続して受信中の印刷データを解析処理するこ
とが可能となる。In the printing apparatus 102 having such a configuration, the command system automatic identification processing unit 113 starts by comparing and collating the print data input from the host computer 101 with the characteristic information stored in the ROM. One print control program is selected and started, the print data analysis state associated with the started print control program is determined, and the restart of the process of selecting the print control program is controlled. Even if print data that cannot be received continuously is received, if there is a print control program that can analyze the print data, it is possible to analyze the print data that is being continuously received without an error. Become.
【0021】また、コマンド体系自動識別処理部113
が印刷データとROMまたはRAM116に記憶される
特徴情報とを比較照合して起動するいずれか1つの印刷
制御プログラムを選択する選択処理を実行するので、新
たな印刷制御プログラムの拡張又は変更に対応して印刷
データを解析することが可能となる。The command system automatic identification processing unit 113 is also provided.
Executes a selection process of selecting one of the print control programs to be activated by comparing and collating the print data with the characteristic information stored in the ROM or the RAM 116. It is possible to analyze the print data.
【0022】さらに、ホストコンピュータ101または
パネル操作部115により設定された所望の値をタイマ
106またはデータカウンタ107による受信データ数
または計時時間の計時値が越えるかどうかをコントロー
ラ部103が判定し、該判定結果に基づいてコマンド体
系自動識別処理部113による選択処理を開始するの
で、印刷データ源のデータ転送速度が遅くても、あるい
はデータ転送単位が小さい場合でも、適切なタイミング
で印刷制御プログラムの選択処理を開始することが可能
となる。Further, the controller unit 103 judges whether the desired value set by the host computer 101 or the panel operation unit 115 exceeds the number of received data by the timer 106 or the data counter 107 or the measured value of the measured time. Since the selection process by the command system automatic identification processing unit 113 is started based on the determination result, the print control program is selected at an appropriate timing even when the data transfer speed of the print data source is slow or the data transfer unit is small. It is possible to start processing.
【0023】図2は、図1に示したプリンタエンジン部
112の一例を示す断面図であり、例えばレーザビーム
プリンタ(以下LBPと略す)の場合を示す。FIG. 2 is a sectional view showing an example of the printer engine unit 112 shown in FIG. 1, and shows a case of a laser beam printer (hereinafter abbreviated as LBP), for example.
【0024】図において、200はLBP本体であり、
外部に接続されているホストコンピュータから供給され
る印刷情報等を入力して記憶するとともに、それらの情
報に従って対応する図形を作成し、記録媒体である記録
紙上に像を形成する。In the figure, 200 is the LBP body,
Print information and the like supplied from an externally connected host computer are input and stored, and a corresponding figure is created according to the information, and an image is formed on a recording paper as a recording medium.
【0025】212は操作のためのスイッチおよびLE
D表示器等の配置されているパネル操作部である。20
1は前記LBP本体200全体の制御およびホストコン
ピュータから供給される文字情報を解析するプリンタ制
御ユニットである。このプリンタ制御ユニット201は
主に文字図形情報であるビットマップメモリのデータを
ビデオ信号に変換してレーザドライバ202に出力す
る。Reference numeral 212 denotes a switch for operation and LE.
It is a panel operation unit in which a D display device and the like are arranged. 20
A printer control unit 1 controls the entire LBP body 200 and analyzes character information supplied from a host computer. The printer control unit 201 mainly converts the data in the bit map memory, which is character and graphic information, into a video signal and outputs it to the laser driver 202.
【0026】レーザドライバ202は半導体レーザ20
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザ203から発射されるレーザ光2
04をオン・オフ切替えする。このレーザ光204は回
転多面鏡205で左右方向に振らされて静電ドラム20
6上を走査露光する。The laser driver 202 is the semiconductor laser 20.
3 is a circuit for driving the laser beam 3, and the laser beam 2 emitted from the semiconductor laser 203 according to the input video signal.
Switch 04 on / off. This laser beam 204 is oscillated in the left-right direction by the rotary polygon mirror 205 and
6 is exposed by scanning.
【0027】これにより、静電ドラム206上には出力
図形の静電潜像が形成されることになる。この潜像は静
電ドラム206周囲に配設された現像ユニット207に
より現像された後、記録紙に転写される。この記録紙に
はカットシートを用い、カットシート記録紙はLBP本
体200に装着した用紙カセット208に収納され、給
紙ローラ209および搬送ローラ210と211とによ
り、装置内に取り込まれて、静電ドラム206に供給さ
れる。As a result, an electrostatic latent image of the output figure is formed on the electrostatic drum 206. This latent image is developed by a developing unit 207 arranged around the electrostatic drum 206, and then transferred to a recording paper. A cut sheet is used as this recording sheet, and the cut sheet recording sheet is stored in a sheet cassette 208 mounted on the LBP main body 200, and is taken into the apparatus by a sheet feeding roller 209 and conveyance rollers 210 and 211, and electrostatically discharged. It is supplied to the drum 206.
【0028】次に、このように構成された印刷装置にお
いて、本実施形態における全体の印刷制御処理手段を図
3に示すフローチャートを参照しながら説明する。Next, an explanation will be given of the whole print control processing means in the present embodiment in the printing apparatus thus constituted with reference to the flow chart shown in FIG.
【0029】図3は本発明に係る印刷装置における印刷
制御手順を示すフローチャートである。なお、(1)〜
(26)は各ステップを示す。FIG. 3 is a flow chart showing a printing control procedure in the printing apparatus according to the present invention. In addition, (1) ~
(26) shows each step.
【0030】まず、ステップ(1)で処理カウンタを初
期化する。本実施形態において、処理カウンタはコマン
ド識別処理が何度行なわれたかをカウントするものであ
る。ステップ(2)では確定フラグを初期化する。確定
フラグは後述の印刷制御コマンド体系自動識別処理にお
いてコマンド体系が確定したかどうかを判断するための
フラグである。First, in step (1), the processing counter is initialized. In the present embodiment, the processing counter counts how many times the command identification processing is performed. In step (2), the confirmation flag is initialized. The confirmation flag is a flag for determining whether or not the command system has been confirmed in the print control command system automatic identification processing described later.
【0031】次に、ホストコンピュータ101より印刷
データを受信し、受信したデータを逐次受信バッファ1
05に格納する(3)。ステップ(4)で、コマンド識
別に必要とされるデータ数Mバイト以上のデータが受信
された場合はステップ(8)に進み、Mバイト未満であ
れば、ステップ(5)に進む。Next, print data is received from the host computer 101, and the received data is sequentially received in the buffer 1.
It is stored in 05 (3). In step (4), when data of M bytes or more required for command identification is received, the process proceeds to step (8), and when less than M bytes, the process proceeds to step (5).
【0032】ステップ(4)でデータの数がMバイトに
満たない時は、ステップ(5)で現在のシステム時間を
規定時刻として設定し、設定時間N秒の間データの入力
を待ち(7)、データ入力があればステップ(6)に戻
り、受信処理を行ない、それでもデータが送られてこな
ければタイムアウトしてMバイト未満のデータで処理を
続行し、ステップ(8)へ進む。When the number of data is less than M bytes in step (4), the current system time is set as the specified time in step (5), and the input of data is waited for the set time N seconds (7). If there is data input, the process returns to step (6) to perform the receiving process. If the data is not sent yet, the process times out and continues with the data of less than M bytes, and the process proceeds to step (8).
【0033】なお、最低データ数M,データ待ち時間N
の値はパネル操作部212のメニュー操作によって設定
変更可能である。The minimum number of data M and the data waiting time N
The value of can be changed by operating the menu on the panel operation unit 212.
【0034】ステップ(9)からステップ(14)は、
印刷制御コマンド体系自動識別処理に関する処理であ
り、ステップ(9)において、受信バッファ105から
データを取り出し、詳細は後述する印刷制御コマンド体
系識別処理に引き渡す。ステップ(10)における処理
は後述する。From step (9) to step (14),
This is a process relating to the print control command system automatic identification process. In step (9), the data is taken out from the reception buffer 105 and passed to the print control command system identification process which will be described in detail later. The process in step (10) will be described later.
【0035】ステップ(11)ではステップ(10)の
処理の結果、コマンド体系がどれに確定したかをチェッ
クする。コマンド体系が確定した場合はステップ(1
2)において確定したコマンド体系に対応してコマンド
解析部108の切替えを行ない、ステップ(13)で確
定フラグをオンにし、ステップ(14)で処理カウンタ
をインクリメンとする。At step (11), it is checked which command system has been decided as a result of the processing at step (10). If the command system is confirmed, step (1
The command analysis unit 108 is switched according to the command system confirmed in 2), the confirmation flag is turned on in step (13), and the process counter is incremented in step (14).
【0036】ステップ(11)において、コマンド体系
が確定していない場合は、再びステップ(9)に戻り、
さらに受信バッファからデータを読み出し識別処理を続
行する。If the command system is not determined in step (11), the process returns to step (9) again.
Further, the data is read from the reception buffer and the identification process is continued.
【0037】ただし、この繰り返しには限度があり、そ
の限度を越えても確定できない場合はデフォルトのコマ
ンド体系に確定される。However, this repetition has a limit, and if it cannot be confirmed even if the limit is exceeded, the default command system is decided.
【0038】ステップ(8)において確定フラグがON
の場合は、コマンド解析部108は確定しているので受
信バッファ105からデータを読み出し、それをコマン
ド解析部108に引き渡す。ステップ(15)から以降
のステップ処理はコマンド解析部108の処理である。At step (8), the confirmation flag is turned on.
In the case of, since the command analysis unit 108 has been determined, the data is read from the reception buffer 105 and passed to the command analysis unit 108. The step processing from step (15) is the processing of the command analysis unit 108.
【0039】コマンド解析部108は、まず、データを
受信バッファ105から読み出し(15)、データが解
析可能であるかチェックする(16)。データが解析可
能なものであれば、そのデータが排紙コマンドかチェッ
クする(17)。排紙コマンドでなければ、コマンドに
従って中間コードを作成し(18)、ページメモリ11
0への展開を行なう(19)。排紙コマンドである場合
は、プリンタエンジン部112に印刷命令を出して出力
を行なう(20)〜(22)。The command analysis unit 108 first reads the data from the reception buffer 105 (15) and checks whether the data can be analyzed (16). If the data can be analyzed, it is checked whether the data is a paper discharge command (17). If it is not a paper discharge command, an intermediate code is created according to the command (18) and the page memory 11
Expansion to 0 is performed (19). If it is a paper discharge command, a print command is issued to the printer engine unit 112 and output (20) to (22).
【0040】ステップ(16)においてデータが解析不
可能な場合は処理カウンタをチェックして(23)、デ
ータカウンタ107が「1」の場合は受信バッファ10
5から読み出したコマンドを再度受信バッファ105に
戻し(24)、確定フラグをOFFにして(25)、ス
テップ(8)へ戻り、再度コマンド体系の識別処理を行
なう。If the data cannot be analyzed in step (16), the processing counter is checked (23), and if the data counter 107 is "1", the reception buffer 10 is checked.
The command read from 5 is returned to the receiving buffer 105 again (24), the confirmation flag is turned off (25), the process returns to step (8), and the command system identification process is performed again.
【0041】一方、ステップ(23)においてデータカ
ウンタ107の値が「2」の場合は、コマンド識別処理
が2回行なわれたことを示し、その場合はエラーとして
エラー処理を行なって(26)、処理を終了する。On the other hand, if the value of the data counter 107 is "2" in step (23), it indicates that the command identification processing has been performed twice. In that case, error processing is performed as an error (26), The process ends.
【0042】次に、コマンド体系自動識別処理を詳細に
説明する。Next, the command system automatic identification processing will be described in detail.
【0043】まず、図4を参照しながら各コマンド体系
の特徴情報のエントリー方法について述べる。First, the entry method of the characteristic information of each command system will be described with reference to FIG.
【0044】図4は、図1に示したRAM116に構築
される第1のエントリテーブルと特徴情報データテーブ
ルとの関係を示す図である。FIG. 4 is a diagram showing the relationship between the first entry table and the characteristic information data table constructed in the RAM 116 shown in FIG.
【0045】まず、印刷装置起動時に内蔵された制御プ
ログラムのサーチを行ない、制御プログラムと対になっ
てROMに記憶される特徴情報データテーブル中の特徴
情報を参照し、特徴情報の先頭アドレスを次々にエント
リーテーブル400に格納する。First, the control program built in at the time of starting the printing apparatus is searched, the feature information in the feature information data table stored in the ROM paired with the control program is referred to, and the start addresses of the feature information are successively searched. In the entry table 400.
【0046】次に、図5を参照しながら特徴情報データ
テーブルの構造について説明する。Next, the structure of the characteristic information data table will be described with reference to FIG.
【0047】図5は、図4に示した特徴情報データテー
ブルのデータ構造を示す図である。FIG. 5 is a diagram showing the data structure of the characteristic information data table shown in FIG.
【0048】図5の(a)に示すように、特徴情報テー
ブル500はヘッダ部501とコマンドテーブル502
に分かれている。As shown in FIG. 5A, the feature information table 500 includes a header section 501 and a command table 502.
It is divided into
【0049】ヘッダ部501には、テーブル全体のサイ
ズを示すデータサイズ部501A,予め決められている
各コマンド体系固有の番号を示すコマンドID部501
B,コマンド形式を示すコマンド形式部501Cから構
成される。The header section 501 has a data size section 501A indicating the size of the entire table, and a command ID section 501 indicating a predetermined number unique to each command system.
B, a command format section 501C indicating a command format.
【0050】コマンド形式は、図5の(b),(c)に
示すように大別してアスキーコードの「00h〜1F
h」を使用する制御コード型と、アスキーコードの「2
0h」以上を使用する文字列型とこれらの混在型があ
る。The command formats are roughly classified into the ASCII code "00h-1F" as shown in (b) and (c) of FIG.
Control code type using "h" and ASCII code "2"
There are a character string type that uses 0h or more and a mixed type of these.
【0051】コマンドテーブル502は制御コード型と
文字列型があり、制御コマンド型の1つのコマンドデー
タにはコマンド形式と終端子の形式とコマンドの文字数
とコマンドが格納されている。The command table 502 has a control code type and a character string type, and one command data of the control command type stores the command format, the format of the terminator, the number of characters of the command, and the command.
【0052】制御コマンド型の1つのコマンドデータに
はコマンド形式とコマンドの文字数とコマンドが格納さ
れている。The command format, the number of characters of the command, and the command are stored in one command data of the control command type.
【0053】なお、ホストコンピュータ101から特徴
情報を入力する場合は、パラメータとして上記特徴情報
データテーブル500のヘッダ情報であるデータサイ
ズ,コマンドID,コマンド形式とコマンドテーブルの
内容をパラメータとして入力する。When the characteristic information is input from the host computer 101, the data size, the command ID, the command format, and the contents of the command table, which are the header information of the characteristic information data table 500, are input as the parameters.
【0054】次に、自動識別の処理について図6に示す
フローチャートを参照しながら説明する。Next, the automatic identification processing will be described with reference to the flowchart shown in FIG.
【0055】図6は、図5に示した印刷制御コマンド体
系自動識別処理手順の一例を示すフローチャートであ
る。なお、(1)〜(11)は各ステップを示す。FIG. 6 is a flow chart showing an example of the print control command system automatic identification processing procedure shown in FIG. Note that (1) to (11) indicate each step.
【0056】まず、ステップ(1)で、エントリー番号
nを初期化する。次に、コマンドテーブル502内の最
初のコマンドを参照し(2)、これと印刷データの比較
を行なう(3)。その結果、一致したかどうかをチェッ
クし(4)、一致すればエントリーnの判定カウンタを
インクリメンとして(11)、ステップ(7)以降に進
む。First, in step (1), the entry number n is initialized. Next, the first command in the command table 502 is referred to (2), and this is compared with the print data (3). As a result, it is checked whether or not they match (4). If they match, the determination counter of the entry n is incremented (11), and the process proceeds to step (7) and thereafter.
【0057】一方、ステップ(4)において一致しなか
った場合は、コマンドテーブル502内の次のコマンド
を参照し(5)、コマンドテーブルの次のデータがある
かチェックする(6)。次のデータがあれば、ステップ
(3)へ戻る。On the other hand, if they do not match in step (4), the next command in the command table 502 is referred to (5), and it is checked whether there is next data in the command table (6). If there is the next data, return to step (3).
【0058】ステップ(6)において、次のデータがな
ければエントリー番号nをインクリメントし(7)、全
てのエントリーを参照したかをチェックする(8)。全
てのエントリーを参照してなければステップ(3)へ戻
る。In step (6), if there is no next data, the entry number n is incremented (7), and it is checked whether all entries have been referenced (8). If all entries are not referenced, the process returns to step (3).
【0059】一方、ステップ(8)の判定で全てのエン
トリーを参照したと判定した場合には、各エントリーの
判定カウンタを比較し、値が最も大きいものを確定とし
(9)、確定フラグをONにする(10)。On the other hand, if it is determined in step (8) that all entries have been referenced, the determination counters of the respective entries are compared, the one with the largest value is determined (9), and the determination flag is turned on. (10).
【0060】なお、上記実施形態では、各印刷制御プロ
グラムに対応するコマンド体系特徴情報はプログラムと
ともにROMに格納したもののみを使用したが、特徴情
報をホストコンピュータ101から所定のコマンドによ
ってダウンロードすることも可能である。In the above embodiment, the command system characteristic information corresponding to each print control program is only stored in the ROM together with the program, but the characteristic information may be downloaded from the host computer 101 by a predetermined command. It is possible.
【0061】図7は、図1に示したRAM116に構築
される第2のエントリテーブルと特徴情報データテーブ
ルとの関係を示す図であり、図4と同一のものには同一
の符号を付してある。FIG. 7 is a diagram showing the relationship between the second entry table and the characteristic information data table constructed in the RAM 116 shown in FIG. 1. The same parts as those in FIG. 4 are designated by the same reference numerals. There is.
【0062】この図に示すように、ホストコンピュータ
101からコマンドによって特徴情報が入力(ダウンロ
ード)された場合、特徴情報をRAM116に格納し
て、その先頭アドレスをエミュレーションIDによって
指定された制御プログラムのエントリーに格納する。As shown in this figure, when the characteristic information is input (downloaded) from the host computer 101 by a command, the characteristic information is stored in the RAM 116, and the start address of the characteristic program entry is designated by the emulation ID. To store.
【0063】特徴情報入力コマンドのパラメータとして
データサイズと、エミュレーションIDと、コマンド形
式とコマンドテーブル400のデータが入力される。The data size, emulation ID, command format, and data of the command table 400 are input as parameters of the characteristic information input command.
【0064】また、本実施形態では、自動識別の最低デ
ータ数M、データ待ち時間Nの値をパネル操作部115
のメニュー操作により設定変更を行なったが、ホストコ
ンピュータ101側からのコマンドによる設定変更も可
能である。Further, in this embodiment, the values of the minimum number M of data for automatic identification and the data waiting time N are set to the panel operation unit 115.
Although the setting is changed by operating the menu, the setting can be changed by a command from the host computer 101 side.
【0065】また、本実施形態では、各エミュレータの
コマンドにより特徴情報を入力したが、エミュレータの
コマンド体系とは別にプリンタ制御専用の上位コマンド
体系を用いて特徴情報を入力することも可能である。Further, in the present embodiment, the characteristic information is input by the command of each emulator, but it is also possible to input the characteristic information by using the upper command system dedicated to the printer control separately from the command system of the emulator.
【0066】さらに、本実施形態では、エミュレータは
内蔵されているもののみであったが、エミュレータはカ
ートリッジあるいは外付けのハードディスクに格納する
ことも可能である。Further, in the present embodiment, the emulator is only built-in, but the emulator can be stored in a cartridge or an external hard disk.
【0067】上記実施形態によれば、異なる制御コマン
ドの印刷データがプリンタバッファ等を介して連続して
送られてきた場合でもコマンド体系の識別を可能とす
る。According to the above embodiment, the command system can be identified even when the print data of different control commands are continuously sent via the printer buffer or the like.
【0068】また、ROMに格納された特徴情報では認
識できない印刷データを生成するドライバにもドライバ
に適応した特徴情報を入力することによって自動識別が
可能となる。Further, automatic identification can be performed by inputting the characteristic information suitable for the driver to the driver for generating the print data which cannot be recognized by the characteristic information stored in the ROM.
【0069】また、データ転送速度が遅いホストやデー
タを数バイトずつ時間間隔をおいて転送するようなドラ
イバにも対応してコマンド体系の識別が可能となる。Further, the command system can be identified corresponding to a host having a low data transfer rate or a driver which transfers data by several bytes at a time interval.
【0070】なお、本発明は、複数の機器から構成され
るシステムに適用しても、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 be applied to the case where it is achieved by supplying a program to a system or an apparatus.
【0071】[0071]
【発明の効果】以上説明したように、本発明によれば、
入力手段により入力された印刷データが所定量に満たな
い場合でも、所定量に満たない印刷データに基づいて前
記選択手段による解析手段の選択を開始させるかを判断
し、判断手段の判断結果に基づいて、選択手段による解
析手段の選択を行わせるので、印刷データのデータ量が
所定量に満たない場合でも、解析手段の選択処理を進行
させて、印刷データに適応する解析手段による解析を開
始させることができ、所定量のデータの受信に時間を要
して処理開始が遅くなるのを防止するという効果を奏す
る。As described above, according to the present invention,
Even if the print data input by the input unit is less than the predetermined amount, it is determined whether to start the selection of the analysis unit by the selection unit based on the print data less than the predetermined amount, and based on the determination result of the determination unit. Since the selecting means selects the analyzing means, even if the data amount of the print data is less than the predetermined amount, the selecting process of the analyzing means is advanced to start the analysis by the analyzing means adapted to the print data. Therefore, it is possible to prevent the delay in the start of processing due to the time required to receive the predetermined amount of data.
【図1】本実施形態の一実施形態を示す印刷制御装置を
適用可能な印刷システムの基本構成を示すブロック図で
ある。FIG. 1 is a block diagram illustrating a basic configuration of a printing system to which a print control apparatus according to an embodiment of the present invention can be applied.
【図2】図1に示したプリンタエンジン部の一例を示す
断面図である。FIG. 2 is a cross-sectional view showing an example of the printer engine unit shown in FIG.
【図3】本発明に係る印刷装置における印刷制御手順を
示すフローチャートである。FIG. 3 is a flowchart showing a printing control procedure in the printing apparatus according to the present invention.
【図4】図1に示したRAMに構築される第1のエント
リテーブルと特徴情報データテーブルとの関係を示す図
である。FIG. 4 is a diagram showing a relationship between a first entry table and a characteristic information data table constructed in the RAM shown in FIG.
【図5】図4に示した特徴情報データテーブルのデータ
構造を示す図である。5 is a diagram showing a data structure of a characteristic information data table shown in FIG.
【図6】図5に示した印刷制御コマンド体系自動識別処
理手順の一例を示すフローチャートである。FIG. 6 is a flowchart illustrating an example of a print control command system automatic identification processing procedure illustrated in FIG.
【図7】図1に示したRAMに構築される第2のエント
リテーブルと特徴情報データテーブルとの関係を示す図
である。7 is a diagram showing a relationship between a second entry table and a characteristic information data table constructed in the RAM shown in FIG.
101 ホストコンピュータ 102 印刷装置 103 コントローラ部 104 エンジン部 105 受信バッファ 106 タイマ 107 データカウンタ 108 コマンド解析部 109 描画処理部 110 ページメモリ 112 プリンタエンジン部 113 コマンド体系自動識別処理部 101 host computer 102 printing device 103 controller section 104 engine 105 receive buffer 106 timer 107 data counter 108 Command parser 109 Drawing processing unit 110 page memory 112 Printer engine part 113 Command system automatic identification processing unit
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B41J 29/38 B41J 5/30 G06F 3/12 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) B41J 29/38 B41J 5/30 G06F 3/12
Claims (11)
可能な印刷制御装置において、 上位装置からの印刷データを入力する入力手段と、 前記複数のコマンド体系の印刷データを解析する複数の
解析手段と、 前記複数の解析手段のうち、前記入力手段によって入力
された印刷データを解析すべき解析手段を選択する選択
手段と、 前記入力手段により入力された印刷データのうちの所定
量の印刷データに基づいて前記選択手段による解析手段
の選択を行わせる第1の制御手段と、 前記入力手段により入力された印刷データが所定量に満
たない場合でも、所定量に満たない印刷データに基づい
て前記選択手段による解析手段の選択を開始させると判
断する判断手段と、 前記判断手段の判断結果に基づいて、前記選択手段によ
る解析手段の選択を行わせる第2の制御手段と、を有す
ることを特徴とする印刷制御装置。1. A print control device capable of processing print data of a plurality of command systems, and input means for inputting print data from a host device, and a plurality of analyzing means for analyzing print data of the plurality of command systems. A selection unit that selects an analysis unit that analyzes the print data input by the input unit from among the plurality of analysis units; and a predetermined amount of print data among the print data input by the input unit. First control means for causing the selecting means to select the analyzing means, and the selecting means based on the print data that does not reach the predetermined amount even if the print data input by the input means does not reach the predetermined amount. When starting the selection of the analysis means by the determination means for determine <br/> cross, based on the determination result of said determination means, selection of the analysis means by said selection means Print control apparatus characterized by having, a second control means to perform.
力された印刷データが所定量に満たない場合でも、所定
時間が経過するのに応じて、所定量に満たない印刷デー
タに基づいて前記選択手段による解析手段の選択を開始
させると判断することを特徴とする請求項1記載の印刷
制御装置。2. The selection means selects the print data less than a predetermined amount as the predetermined time elapses even when the print data input by the input means is less than a predetermined amount. 2. The print control apparatus according to claim 1, wherein it is determined that the selection of the analysis unit by the unit is started.
情報と前記入力手段によって入力された印刷データとに
基づいて、前記印刷データを解析すべき解析手段を選択
することを特徴とする請求項1または2記載の印刷制御
装置。3. The selecting means selects an analyzing means for analyzing the print data based on the characteristic information of each command system and the print data input by the input means. The print control device according to 1 or 2.
パネル操作手段を有することを特徴とする請求項2に記
載の印刷制御装置。4. The print control apparatus according to claim 2, further comprising panel operation means capable of setting and changing a value indicating the predetermined time.
ネル操作手段を有することを特徴とする請求項1乃至4
のいずれかに記載の印刷制御装置。5. A panel operating means capable of changing the setting of a value indicating the predetermined amount.
The print control device according to any one of 1.
とする請求項1乃至5のいずれかに記載の印刷制御装
置。6. The print control device according to claim 1, wherein the print control device is a laser beam printer.
可能な印刷制御装置における印刷制御方法において、 前記複数のコマンド体系の印刷データを解析する複数の
解析手段のうち、上位装置から入力された印刷データを
解析すべき解析手段を選択する選択工程と、 前記入力された印刷データのうちの所定量の印刷データ
に基づいて前記選択工程による解析手段の選択を行わせ
る第1の制御工程と、 上位装置から入力された印刷データが所定量に満たない
場合でも、所定量に満たない印刷データに基づいて前記
選択工程による解析手段の選択を開始させると判断する
判断工程と、 前記判断工程の判断結果に基づいて、前記選択工程によ
る解析手段の選択を行わせる第2の制御工程と、を有す
ることを特徴とする印刷制御方法。7. A print control method in a print control device capable of processing print data of a plurality of command systems, wherein a print input from a higher-level device among a plurality of analysis means for analyzing print data of the plurality of command systems is performed. A selecting step of selecting an analyzing means for analyzing the data; a first control step of causing the selecting means to select the analyzing means based on a predetermined amount of print data among the input print data; even if the print data input from the device is less than a predetermined amount, a determination step of determining the starting the selection of an analysis means by said selecting step based on the print data less than a predetermined amount, the determination result of the determining step And a second control step of causing the selection of the analysis unit to be performed by the selection step.
が所定量に満たない場合でも、所定時間が経過するのに
応じて、所定量に満たない印刷データに基づいて前記選
択工程による解析手段の選択を開始させると判断するこ
とを特徴とする請求項7記載の印刷制御方法。8. The analyzing unit according to the selecting step, in the determining step, based on the print data that does not reach a predetermined amount as the predetermined time elapses even when the input print data does not reach a predetermined amount. 8. The print control method according to claim 7, wherein it is determined that the selection of is started.
情報と入力された印刷データとに基づいて、前記印刷デ
ータを解析すべき解析手段を選択することを特徴とする
請求項7または8記載の印刷制御方法。9. The method according to claim 7, wherein the selecting step selects an analyzing unit for analyzing the print data based on the characteristic information of each command system and the input print data. Print control method.
能なパネル操作部で設定変更されることを特徴とする請
求項8に記載の印刷制御方法。10. The print control method according to claim 8, wherein the value indicating the predetermined time is set and changed by a panel operation unit whose setting can be changed.
なパネル操作部で設定変更されることを特徴とする請求
項7乃至10のいずれかに記載の印刷制御方法。11. The print control method according to claim 7, wherein the value indicating the predetermined amount is set and changed by a panel operation unit whose setting can be changed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP06853099A JP3437482B2 (en) | 1999-03-15 | 1999-03-15 | Print control device and print control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP06853099A JP3437482B2 (en) | 1999-03-15 | 1999-03-15 | Print control device and print control method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5295228A Division JP2958226B2 (en) | 1993-11-25 | 1993-11-25 | Print control device and print control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH11314442A JPH11314442A (en) | 1999-11-16 |
JP3437482B2 true JP3437482B2 (en) | 2003-08-18 |
Family
ID=13376391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP06853099A Expired - Fee Related JP3437482B2 (en) | 1999-03-15 | 1999-03-15 | Print control device and print control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3437482B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4670627B2 (en) * | 2005-12-21 | 2011-04-13 | 富士ゼロックス株式会社 | Printer control apparatus, system, method, program, and recording medium |
-
1999
- 1999-03-15 JP JP06853099A patent/JP3437482B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH11314442A (en) | 1999-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3287787B2 (en) | Output control method and device | |
JP3165268B2 (en) | Print information processing method and apparatus | |
JPH05177884A (en) | Printer control device | |
JPH05270069A (en) | Printer and controlling method therefor | |
JPH05318838A (en) | Image forming device and formation thereof | |
JP3437482B2 (en) | Print control device and print control method | |
EP0545648B1 (en) | Automatic language determination control for printer | |
JP2958226B2 (en) | Print control device and print control method | |
JP3432105B2 (en) | Information processing apparatus and control method therefor | |
JPH0926860A (en) | Printer and data communication method therefor | |
JP3610194B2 (en) | Print control apparatus, print control method, and storage medium storing computer-readable program | |
JP3073921B2 (en) | Print control device and data processing method of print control device | |
JPH08185295A (en) | Printer and its control method | |
JP2891857B2 (en) | Printing apparatus and printing method | |
JPH05104825A (en) | Printer control device | |
JPH082067A (en) | Printer and its control method | |
JPH11175273A (en) | Image processing system, its method and storage medium | |
JP4323617B2 (en) | Print control apparatus, information processing apparatus, print control method, information processing method, and storage medium storing computer-readable program | |
JPH0664252A (en) | Printing equipment having emulation mode | |
JP3402892B2 (en) | Print control device and data processing method of print control device | |
JPH07148998A (en) | Printing device | |
JPH09274545A (en) | Printing controller, printing control method and storage medium storing control program | |
JPH06255210A (en) | Printer | |
JPH09179700A (en) | Printer, printing device, printing system, and information processor | |
JPH0725106A (en) | Printer device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080606 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090606 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090606 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100606 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110606 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120606 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120606 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130606 Year of fee payment: 10 |
|
LAPS | Cancellation because of no payment of annual fees |