JPH04330515A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPH04330515A
JPH04330515A JP3130638A JP13063891A JPH04330515A JP H04330515 A JPH04330515 A JP H04330515A JP 3130638 A JP3130638 A JP 3130638A JP 13063891 A JP13063891 A JP 13063891A JP H04330515 A JPH04330515 A JP H04330515A
Authority
JP
Japan
Prior art keywords
data
data processing
switching
command
input buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3130638A
Other languages
Japanese (ja)
Inventor
Satoe Mizuki
聡枝 水木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3130638A priority Critical patent/JPH04330515A/en
Publication of JPH04330515A publication Critical patent/JPH04330515A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize emulation switching free from data disappearance even when a specific memory is not used. CONSTITUTION:At the time of receiving effective data following an emulation switching instruction received from a host device in the case of processing the instruction, the effective data are saved in an address previously set up in a buffer memory, and when switched emulation has control right by the emulation switching instruction, an input buffer initialized at the time of initializing the buffer memory and then the effective data saved in the address are returned to the input buffer.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、レーザプリンタ等の
プリンタにおいて、ホスト装置及びプリンタエンジンに
接続されるプリンタ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control device connected to a host device and a printer engine in a printer such as a laser printer.

【0002】0002

【従来の技術】例えば、レーザプリンタにおけるプリン
タ制御装置においては、オフィスコンピュータ,パーソ
ナルコンピュータ,ワードプロセッサ,データ処理装置
,画像処理装置,等のホスト装置から受信する印字デー
タ及び制御命令をインプットバッファに一時的に格納し
、その格納した印字データ及び制御命令に基づいて、マ
イクロコンピュータ(CPU)及びその制御プログラム
によるデータ処理手段(エミュレーション)が画像イメ
ージデータを作成して、それをプリンタエンジンへ転送
して印字画像を出力させている。
[Prior Art] For example, in a printer control device for a laser printer, print data and control commands received from a host device such as an office computer, a personal computer, a word processor, a data processing device, an image processing device, etc. are temporarily stored in an input buffer. Based on the stored print data and control instructions, a data processing means (emulation) using a microcomputer (CPU) and its control program creates image data, and transfers it to the printer engine for printing. The image is output.

【0003】このようなプリンタ制御装置においては、
複数のエミュレーションを備え、ホスト装置から受信し
た制御命令中のデータ処理切替命令(エミュレーション
切替命令)によって指定されたエミュレーションへの切
り替え処理を行ない、各種の画像イメージデータを作成
できるようにしたものがある。
[0003] In such a printer control device,
Some devices are equipped with multiple emulations and can create various types of image data by switching to the emulation specified by a data processing switching command (emulation switching command) in a control command received from the host device. .

【0004】ところで、プリンタが受信するデータとし
ては、印字データと即時処理命令及びエミュレーション
切替命令を含む各種の制御命令とがある。即時処理命令
とは、リセットやステータス要求命令等を指す。即時処
理命令以外の受信データはプリプロセッサを通ってイン
プットバッファに格納されるが、この即時処理命令はプ
リプロセッサで他の受信データと分けられ、インプット
バッファに格納されず、即時に処理を開始させる。
By the way, the data that the printer receives includes print data and various control commands including immediate processing commands and emulation switching commands. Immediate processing instructions refer to reset and status request instructions. Received data other than immediate processing instructions are stored in the input buffer through the preprocessor, but the immediate processing instructions are separated from other received data by the preprocessor, are not stored in the input buffer, and are immediately processed.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うなプリンタ制御装置では、エミュレーションを切り替
える際には、インプットバッファを含むRAM領域のク
リアを含む各種の初期化を行なうようにしているため、
特にエミュレーションの切り替えをホスト装置からのエ
ミュレーション切替命令によって行なう場合には、その
命令の直後に他のデータが引き続き送られてきてそれが
インプットバッファに格納されると、上記の初期化処理
の際にこの受信済みの有効なデータが失われてしまうと
いう問題があった。
[Problems to be Solved by the Invention] However, in such a printer control device, various initializations including clearing the RAM area including the input buffer are performed when switching the emulation.
In particular, when switching emulation is performed by an emulation switching command from the host device, if other data is subsequently sent immediately after that command and is stored in the input buffer, during the initialization process described above, There is a problem in that this received valid data is lost.

【0006】そこで、本出願人は先に、ホスト装置から
のデータ処理切替命令によってデータ処理手段の切替処
理を行なう際に、インプットバッファに有効なデータが
あれば、そのデータを不揮発性メモリに退避させた後、
データ処理手段の切り替え及びメモリの初期化を行なっ
て、その後不揮発性メモリに退避させたデータをインプ
ットバッファに戻し、ホスト装置からデータ処理切替命
令に引き続いて送られてくる有効なデータが失われない
ようにしたプリンタ制御装置におけるデータ処理切替え
方式を提案している(特願平1−325314号)。
[0006] Therefore, the present applicant first proposed that when switching processing of data processing means is performed by a data processing switching command from a host device, if there is valid data in the input buffer, that data is saved in a non-volatile memory. After letting
After switching the data processing means and initializing the memory, the data saved in non-volatile memory is returned to the input buffer, so that valid data sent from the host device following the data processing switching command is not lost. has proposed a data processing switching system in a printer control device (Japanese Patent Application No. 1-325314).

【0007】しかし、この方式では、有効データの退避
先として不揮発性メモリを用意する必要があり、通常の
RAMの他に高価なメモリを使用するために、プリンタ
のコストアップにつながるという問題がある。
However, with this method, it is necessary to prepare a non-volatile memory as a save destination for valid data, and there is a problem in that it increases the cost of the printer because it uses expensive memory in addition to ordinary RAM. .

【0008】一方、特定の命令セットを処理するエミュ
レーション切替命令は、従来から他の受信データに混っ
て順次インプットバッファに格納されており、エミュレ
ーション切替命令以降に受信されるデータは、その命令
により切替後のエミュレーションの制御命令や印字デー
タである。
On the other hand, emulation switching instructions that process a specific instruction set have conventionally been sequentially stored in an input buffer along with other received data, and data received after the emulation switching instruction is processed by that instruction. These are emulation control commands and print data after switching.

【0009】したがって、その時点で受信される即時処
理命令は切替後のエミュレーションの即時処理命令で、
そのエミュレーションに制御権が渡った際に即時処理さ
れるべきものであるが、プリプロセッサは切替前のエミ
ュレーションの命令セットのみを判断するので、この即
時処理命令はデータとしてインプットバッファに格納さ
れてしまい、即時処理としての意味があまりなかった。
Therefore, the immediate processing command received at that point is the immediate processing command of the emulation after switching,
It should be processed immediately when control is passed to the emulation, but since the preprocessor only determines the instruction set of the emulation before switching, this immediate processing instruction is stored in the input buffer as data. It didn't make much sense as an immediate process.

【0010】すなわち、エミュレーション切替命令もF
IFO構造のインプットバッファに一旦蓄えられた後処
理されるため、エミュレーション切替命令が処理される
前に(エミュレーション切替命令がインプットバッファ
中に存在している時)、その命令により切替後のエミュ
レーション用の即時処理命令が送られてくると、この命
令も他の命令又はデータと同様にインプットバッファに
蓄えられてしまうため、上記エミュレーション切替命令
によって新たなエミュレーションに切り替わったても、
即時処理命令による即時処理が行なわれないことがあっ
た。
[0010] That is, the emulation switching instruction is also F
Because it is stored once in the IFO structure input buffer and then processed, before the emulation switching instruction is processed (when the emulation switching instruction exists in the input buffer), the command for the emulation after switching is When an immediate processing instruction is sent, this instruction is stored in the input buffer like other instructions or data, so even if the emulation is switched to a new emulation using the emulation switching instruction,
Immediate processing was sometimes not performed using an immediate processing command.

【0011】また、もし切替前と切替後の各エミュレー
ションの即時処理命令が同一コードであったとしても、
その命令を受信した時点すなわち切替後のエミュレーシ
ョンが制御権を持つ前に即時処理が行なわれてしまう。 あるいは、エミュレーション切替命令を受信してから新
たなエミュレーションに切り替わるまでの間、切替前の
エミュレーションの制御で処理を行なうため、切替後の
エミュレーションのデータを切替前のエミュレーション
の即時処理命令として処理してしまうこともあり、結果
が意図するものではなくなるという欠点があった。
[0011] Furthermore, even if the immediate processing instructions of each emulation before and after switching are the same code,
Immediate processing is performed at the time the command is received, that is, before the switched emulation has control authority. Alternatively, in order to perform processing under the control of the emulation before switching from receiving an emulation switching command until switching to a new emulation, data from the emulation after switching is processed as an immediate processing command for the emulation before switching. This has the disadvantage that the results may not be what you intended.

【0012】この発明は上記の点に鑑みてなされたもの
であり、特別なメモリを使用することなく、データ消失
のないエミュレーション切り替えを実現できるようにす
ることと、ホスト装置からエミュレーション切替命令を
受信してからその命令によるエミュレーションの切替処
理が完了するまでの間に、ホスト装置から即時処理命令
を受信した場合でも、その即時処理命を切替処理後のエ
ミュレーションによって直ちに処理できるようにするこ
とも目的とする。
The present invention has been made in view of the above points, and it is possible to realize emulation switching without data loss without using a special memory, and to receive an emulation switching command from a host device. Another purpose is to enable the immediate processing command to be processed immediately by the emulation after the switching processing even if an immediate processing command is received from the host device between the time when the emulation switching processing by that command is completed. shall be.

【0013】[0013]

【課題を解決するため手段】この発明は上記の問題点に
鑑みてなされたものであり、前述のように複数のデータ
処理手段とその切替処理を行なうデータ処理切替手段と
を備えたプリンタ制御装置において、データ処理切替手
段がホスト装置からのデータ処理切替命令を処理する際
、これに引き続いて該データ処理切替命令により切替後
のデータ処理手段のためのデータを受信済みであるか否
かを判断する手段と、該手段によって上記データが受信
済みであると判断された場合に、該データをメモリの予
め設定したアドレスに退避させる手段と、上記データ処
理切替命令により切替後のデータ処理手段が制御権を持
った際に行なわれるメモリの初期化において、インプッ
トバッファの領域が初期化済みであるかを判断する手段
と、該手段によって初期化済みであると判断された場合
に、上記アドレスに退避したデータをインプットバッフ
ァに戻す手段とを設けたものである。
[Means for Solving the Problems] The present invention has been made in view of the above-mentioned problems, and provides a printer control device equipped with a plurality of data processing means and a data processing switching means for switching between them as described above. When the data processing switching means processes a data processing switching command from the host device, it subsequently determines whether data for the data processing means after switching has been received by the data processing switching command. means for saving the data to a preset address in the memory when the data is determined to have been received by the data processing means, and the data processing means after switching is controlled by the data processing switching command. When initializing the memory, which is performed when the input buffer has the right, there is a means for determining whether the input buffer area has been initialized, and if it is determined by the means that the area has been initialized, it is saved to the above address. A means for returning the data to the input buffer is provided.

【0014】また、ホスト装置から受信したデータをイ
ンプットバッファに一時的に格納する直前に、該受信デ
ータがデータ処理切替命令か否かを判断する手段と、該
手段によってデータ処理切替命令であると判断された場
合に、その後のデータを解釈する手段を該データ処理切
替命令により切替後のデータ処理手段の命令を解釈する
手段に変更する手段と、上記切替後のデータ処理手段の
即時処理命令が受信されたか否かを判断する手段と、該
手段によって前記切替後のデータ処理手段の即時処理命
令が受信されたと判断された場合に、その即時処理命令
を前記メモリの予め設定したアドレスに一時保存する手
段と、上記データ処理切替命令により切替後のデータ処
理手段が制御権を持った際に、先ず最初に前記アドレス
に保存した即時処理命令を取り出す手段とを持つプリプ
ロセッサを設けるようにするとよい。
[0014] The present invention also includes means for determining whether or not the received data is a data processing switching instruction immediately before temporarily storing the data received from the host device in the input buffer; means for changing the means for interpreting the subsequent data to the means for interpreting the commands of the data processing means after switching, when the data processing switching command is determined, and the immediate processing command for the data processing means after switching. means for determining whether or not an immediate processing instruction has been received; and when it is determined by the means that an immediate processing instruction for the switched data processing means has been received, the immediate processing instruction is temporarily stored at a preset address in the memory; It is preferable to provide a preprocessor having means for first retrieving the immediate processing command stored at the address when the data processing means after switching has control authority due to the data processing switching command.

【0015】[0015]

【作用】この発明のプリンタ制御装置によれば、ホスト
装置からのデータ処理切替命令を処理する際、これに引
き続いて該データ処理切替命令により切替後のデータ処
理手段のためのデータを受信した場合に、そのデータを
メモリの予め設定したアドレスに退避させ、その後上記
データ処理切替命令により切替後のデータ処理手段が制
御権を持った際に行なわれるメモリの初期化において、
インプットバッファの領域が初期化された後、上記アド
レスに退避したデータをインプットバッファに戻すよう
にしたので、データ処理手段の切替処理と共に行なう初
期化処理の際に、ホスト装置からデータ処理切替命令に
引き続いて有効なデータを受信しても、そのデータの消
失を防ぐことができる。しかも、有効データの退避先と
して通常のRAMの一部を使用するようにしたので、コ
ストをアップせずに済む。
[Operation] According to the printer control device of the present invention, when processing a data processing switching command from a host device, and subsequently receiving data for the data processing means after switching due to the data processing switching command, In the initialization of the memory, which is performed when the data is saved to a preset address in the memory and the data processing means after switching has control authority by the data processing switching command,
After the input buffer area is initialized, the data saved at the above address is returned to the input buffer, so when the data processing switching command is sent from the host device during the initialization processing that is performed together with the switching processing of the data processing means, Even if valid data is subsequently received, the data can be prevented from being lost. Furthermore, since a part of the normal RAM is used as the save destination for valid data, there is no need to increase costs.

【0016】また、ホスト装置から受信したデータをイ
ンプットバッファに一時的に格納する直前にその受信デ
ータがデータ処理切替命令か否かをチェックし、データ
処理切替命令である場合、その後のデータを解釈する手
段を該データ処理切替命令により切替後のデータ処理手
段の命令を解釈する手段に変更し、その後上記切替後の
データ処理手段の即時処理命令が受信された場合に、そ
の即時処理命令をメモリの予め設定したアドレスに一時
保存し、上記データ処理切替命令により切替後のデータ
処理手段が制御権を持った際に、先ず最初に上記アドレ
スに保存した即時処理命令を取り出すようにすれば、ホ
スト装置からデータ処理切替命令を受信してからその命
令によりデータ処理手段の切り替えが行なわれるまでの
間に、その命令により切替後のエミュレーション用の即
時処理命令が送られてきても、前述したような種々の不
具合を生じる恐れがなくなる。
[0016] Immediately before data received from the host device is temporarily stored in the input buffer, it is checked whether the received data is a data processing switching command, and if it is a data processing switching command, the subsequent data is interpreted. The means for interpreting the command of the data processing means after switching is changed by the data processing switching command to a means for interpreting the command of the data processing means after switching, and when an immediate processing command of the data processing means after switching is received, the immediate processing command is stored in the memory. If the data processing means is temporarily stored in a preset address of the host, and when the data processing means after switching has control authority by the data processing switching command, the immediate processing command stored in the above address is retrieved first. Even if an immediate processing command for emulation after switching is sent by that command between the time a data processing switching command is received from the device and the time when the data processing means is switched by that command, the above-mentioned There is no possibility of various problems occurring.

【0017】[0017]

【実施例】以下、この発明の実施例を図面に基づいて具
体的に説明する。図2は、この発明を実施したレーザプ
リンタのプリンタ制御装置の構成を示すブロック図であ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram showing the configuration of a printer control device for a laser printer embodying the present invention.

【0018】このプリンタ制御装置(プリンタコントロ
ーラ)1は、ホストインタフェース2,パネルインタフ
ェース3,エンジンインタフェース4の各インタフェー
ス回路と、マイクロコンピュータ(以下「CPU」と略
称する)5,プログラムROM6,フォントROM7,
バッファメモリ8,出力バッファ9と、コネクタ10〜
12とを備えている。なお、コネクタ10〜12を除く
各部はアドレスバス,制御バス,及びデータバスからな
るバスライン13によって相互に接続されている。
This printer control device (printer controller) 1 includes interface circuits such as a host interface 2, a panel interface 3, and an engine interface 4, a microcomputer (hereinafter abbreviated as "CPU") 5, a program ROM 6, a font ROM 7,
Buffer memory 8, output buffer 9, and connector 10~
12. Note that each part except the connectors 10 to 12 is interconnected by a bus line 13 consisting of an address bus, a control bus, and a data bus.

【0019】ホストインタフェース2は、コネクタ10
を介してホストコンピュータ(ホスト装置)14との間
で各種の制御命令やデータの送受信を司るためのインタ
フェース回路であり、接続するホストコンピュータに合
わせて各種のシリアルインタフェースあるいはパラレル
インタフェースを選択する。パネルインタフェース3は
、コネクタ11を介して操作表示パネル15との間で表
示制御データの送信と各キー情報の受信を行なっている
。エンジンインタフェース4は、コネクタ12を介して
プリンタエンジン16との間で命令コマンドやステータ
ス情報等のデータの送受信を司る。
The host interface 2 is a connector 10
It is an interface circuit for managing the transmission and reception of various control commands and data with the host computer (host device) 14 via the host computer (host device), and selects various serial interfaces or parallel interfaces according to the host computer to be connected. The panel interface 3 transmits display control data to and from the operation display panel 15 via the connector 11 and receives each key information. The engine interface 4 is in charge of sending and receiving data such as commands and status information to and from the printer engine 16 via the connector 12.

【0020】CPU5は、汎用の16又は32ビットの
中央処理装置であり、このプリンタ制御装置1全体の統
括制御を司る。このCPU5は、後述するプログラムR
OM6に記憶されているプログラムを使用することによ
り、ホストコンピュータ14から受信する制御命令及び
印字データに基づいてタイプの異なる種々の画像イメー
ジデータを作成することができる。このCPU5とそれ
ぞれのプログラムの組み合わせによって、複数のエミュ
レーション(データ処理手段)を構成する。
The CPU 5 is a general-purpose 16 or 32-bit central processing unit, and is in charge of overall control of the printer control device 1 as a whole. This CPU 5 is a program R to be described later.
By using the programs stored in the OM 6, it is possible to create various types of image data based on control commands and print data received from the host computer 14. The combination of this CPU 5 and each program constitutes a plurality of emulations (data processing means).

【0021】プログラムROM6はプリプロセッサを含
む制御プログラムを記憶しているリードオンメモリ、フ
ォントROM7はフオントデータを格納しているリード
オンメモリである。ここで、プリプロセッサとは上記制
御プログラムの一部で現在どのエミュレーションのどん
なデータを受信しているかを識別するためのプログラム
である。
The program ROM 6 is a read-on memory that stores a control program including a preprocessor, and the font ROM 7 is a read-on memory that stores font data. Here, the preprocessor is a part of the control program and is a program for identifying which data of which emulation is currently being received.

【0022】バッファメモリ8はRAMで構成されてお
り、CPU5のワーキングメモリ,ホストコンピュータ
14から受信するエミュレーション切替命令等の制御命
令(即時処理命令は除く)及び印字データを一時格納す
るインプットバッファ,そのインプットバッファに一時
格納した制御命令及び印字データに基づいて作成される
ページデータを格納するページバッファ,ホストコンピ
ュータ14から受信するダウンロードフォントデータを
格納するフォントファイル等に使用される。出力バッフ
ア9は、バッファメモリ8のページバッファ上のデータ
とフォントファイル上のフォントデータ等によってペー
ジ単位で作成される画像イメージデータ(ビデオデータ
)を一時格納するメモリである。
The buffer memory 8 is composed of a RAM, and includes a working memory of the CPU 5, an input buffer for temporarily storing control commands (excluding immediate processing commands) such as emulation switching commands received from the host computer 14, and print data; It is used as a page buffer for storing page data created based on control commands and print data temporarily stored in the input buffer, a font file for storing downloaded font data received from the host computer 14, and the like. The output buffer 9 is a memory that temporarily stores image data (video data) created page by page based on the data on the page buffer of the buffer memory 8 and the font data on the font file.

【0023】ホストコンピュータ14は、オフィスコン
ピュータ,パーソナルコンピュータ,ワードプロセッサ
,データ処理装置,画像処理装置等のホストコンピュー
タであり、これらにおいて作成された文書情報等をプリ
ントするために、プリンタ制御装置1へ対応する制御命
令及び印字データを送信する。操作表示パネル15は、
各種情報を入出力するための各種の操作キー及び表示器
を備えている。
The host computer 14 is a host computer such as an office computer, a personal computer, a word processor, a data processing device, an image processing device, etc., and corresponds to the printer control device 1 in order to print document information etc. created in these devices. control commands and print data to be sent. The operation display panel 15 is
It is equipped with various operation keys and displays for inputting and outputting various information.

【0024】プリンタエンジン16は、感光体上を画像
イメージデータに応じて変調されるレーザ光によって光
学的に走査するレーザ書込ユニット,感光体とその周囲
の各プロセス機器から構成される画像形成ユニット,並
びにレジストローラ対等の各ローラ等からなる用紙搬送
部などからなる機構部と、その制御部であるエンジンド
ライバとからなり、プリンタ制御装置1からのコマンド
及び画像イメージデータによって、エンジンドライバが
画像形成ユニット及び用紙搬送部のシーケンス動作とレ
ーザ書込ユニットへのヒデオ変調信号を制御してプリン
トを実行する。
The printer engine 16 is an image forming unit consisting of a laser writing unit that optically scans a photoconductor with a laser beam modulated in accordance with image data, and a photoconductor and various process devices surrounding the photoconductor. It consists of a mechanism section consisting of a paper transport section, etc., which is made up of rollers such as , registration rollers, etc., and an engine driver that is its control section.The engine driver performs image formation according to commands and image data from the printer controller 1 Printing is executed by controlling the sequential operations of the unit and paper transport section and the video modulation signal to the laser writing unit.

【0025】次に、このように構成したこの実施例の作
用を説明する。図1は図2のCPU5によるこの発明に
係わる処理を示すフローチャートであり、このルーチン
はホストコンピュータ14からデータが受信されてバッ
ファメモリ8上のインプットバッファに格納されるとス
タートし、まずそのデータを1バイトずつ読み出してそ
れが制御命令か否かを判断する。
Next, the operation of this embodiment configured as described above will be explained. FIG. 1 is a flowchart showing the processing according to the present invention by the CPU 5 in FIG. 2. This routine starts when data is received from the host computer 14 and stored in the input buffer on the buffer memory 8. It reads each byte and determines whether it is a control command or not.

【0026】そして、そのデータが制御命令ではなく印
字データならば、印字処理すなわちその印字データに応
じた画像イメージデータを作成するためのデータ処理を
実行した後、再び制御命令か否かのステップに戻ってこ
の処理を繰り返す。また、制御命令ならば、その制御命
令がエミュレーション切替命令か否かを判断し、そうで
なければその制御命令に応じた各処理を実行して、制御
命令か否かのステップに戻ってこの処理を繰り返す。
[0026] If the data is not a control command but print data, after executing print processing, that is, data processing for creating image data according to the print data, the process returns to the step of determining whether it is a control command or not. Go back and repeat this process. If it is a control command, it is determined whether the control command is an emulation switching command or not, and if not, it executes each process according to the control command, and returns to the step to determine whether it is a control command. repeat.

【0027】もし、制御命令がエミュレーション切替命
令である場合には、インプットバッファに有効データが
あるか否かを判断し、あればその有効データとそのサイ
ズをバッファメモリ8の予め設定したアドレス(以下単
に「設定アドレス」という)に退避させる。ここで、有
効データとは、エミュレーション切替命令に引き続いて
ホストコンピュータ14から受信した制御命令あるいは
印字データをさす。また、設定アドレスは、切替後の新
たなエミュレーション用のインプットバッファ以外の領
域で、現在のエミュレーションと新たなエミュレーショ
ンとの間で設定しておく。
If the control command is an emulation switching command, it is determined whether or not there is valid data in the input buffer, and if so, the valid data and its size are stored at a preset address in the buffer memory 8 (hereinafter referred to as (simply referred to as the "setting address"). Here, the valid data refers to the control command or print data received from the host computer 14 following the emulation switching command. Further, the setting address is set between the current emulation and the new emulation in an area other than the input buffer for the new emulation after switching.

【0028】次いで、エミュレーションの切替処理を行
ない、新たなエミュレーションに制御権が渡った後、バ
ッファメモリ8の初期化を開始し、続いて設定アドレス
に有効データがあるか否かを判断し、あれば初期化中に
新たなインプットバッファの領域が初期化済みか否かを
判断し、初期化済みならば有効データをサイズ分退避し
ていた設定アドレスから取りだし、それを上記インプッ
トバッファに戻す。
Next, the emulation is switched, and after control is handed over to the new emulation, initialization of the buffer memory 8 is started, and then it is determined whether or not there is valid data at the set address, and the control is transferred to the new emulation. For example, during initialization, it is determined whether the area of the new input buffer has been initialized or not, and if it has been initialized, valid data is retrieved from the set address where the size has been saved, and it is returned to the input buffer.

【0029】図3及び図4は図2のCPU5によるこの
発明に係わる図1と異なる処理を示すフローチャートで
あり、まずホストコンピュータ14からデータを受信す
ると、プリプロセッサX(現在制御権を持っているエミ
ュレーションの命令セットを判断するもの)によってそ
のデータが即時処理命令か否かを判断し、即時処理命令
なら即時処理を開始する。
FIGS. 3 and 4 are flowcharts showing processing performed by the CPU 5 of FIG. 2 that is different from that shown in FIG. (which determines the instruction set of) determines whether the data is an immediate processing instruction, and if it is an immediate processing instruction, immediate processing is started.

【0030】また、そのデータが即時処理命令でなけれ
ば、次にそのデータがエミュレーション切替命令か否か
を判断し、エミュレーション切替命令でなければそのデ
ータをそのままバッファメモリ8内に確保されたインプ
ットバッファに一時的に格納し、エミュレーション切替
命令ならばその命令により切替後のエミュレーションの
命令セットを判断するプロセッサYに切り替えた後、そ
のエミュレーション切替命令をインプットバッファに一
時的に格納する。
If the data is not an immediate processing instruction, then it is determined whether the data is an emulation switching instruction, and if it is not an emulation switching instruction, the data is directly transferred to the input buffer secured in the buffer memory 8. If it is an emulation switching instruction, the emulation switching instruction is temporarily stored in the input buffer after switching to the processor Y which determines the instruction set of the emulation after switching based on the instruction.

【0031】なお、インプットバッファに格納されたデ
ータは通常のプログラムによって読み出し、そのデータ
が制御命令か印字データかを解釈し、制御命令なら各処
理を行ない、印字データなら印字処理を行なう。この制
御命令とそれに対応する処理の組合せがエミュレーショ
ンを構成する。
The data stored in the input buffer is read by a normal program, and it is interpreted whether the data is a control command or print data.If the data is a control command, various processes are performed, and if it is print data, print processing is performed. A combination of this control command and its corresponding processing constitutes emulation.

【0032】プリプロセッサYに切り替わった後、前の
エミュレーションの処理がすべて完了しているか否かを
チェックし、完了している時はエミュレーション切替処
理が行なわれる時であるので、エミュレーション切替ル
ーチンに入る。また、前のエミュレーションの処理が完
了していない場合は、順次受信データを受け付け、即時
処理命令が受信された場合には、その即時処理命令とそ
のサイズをバッファメモリ8の予め設定したアドレスA
に一時格納し、即時処理命令以外のデータが受信された
場合には、そのデータをインプットバッファに一時格納
する。
After switching to preprocessor Y, it is checked whether all previous emulation processing has been completed, and when it has been completed, it is time for emulation switching processing to be performed, so the emulation switching routine is entered. In addition, if the processing of the previous emulation has not been completed, the received data is sequentially received, and if an immediate processing command is received, the immediate processing command and its size are stored at a preset address A in the buffer memory 8.
If data other than an immediate processing instruction is received, that data is temporarily stored in the input buffer.

【0033】その後、前のエミュレーションの処理が完
了すると、エミュレーション切替ルーチンに入ってバッ
ファメモリ(RAM)の初期化を行なうが、その初期化
処理を行なう前に、インプットバッファに有効データが
あるかどうかを判断し、あればその有効データとそのサ
イズをバッファメモリ8の予め設定したアドレスBに一
時退避する。ここで、その設定アドレスBは設定アドレ
スAと共に切替後の新たなエミュレーション用のインプ
ットバッファ以外の領域で、現在のエミュレーションと
新たなエミュレーションとの間で設定しておく。
After that, when the previous emulation processing is completed, the emulation switching routine is entered and the buffer memory (RAM) is initialized, but before the initialization processing is performed, it is checked whether there is valid data in the input buffer. If any, the valid data and its size are temporarily saved in a preset address B of the buffer memory 8. Here, the setting address B is set together with the setting address A in an area other than the input buffer for the new emulation after switching, between the current emulation and the new emulation.

【0034】その後、エミュレーションの切替処理を行
ない、新たなエミュレーションに制御権が渡った後、バ
ッファメモリ8の初期化を開始し、続いて設定アドレス
Bに有効データがあるか否かを判断し、あれば初期化中
に新たなインプットバッファの領域が初期化済みか否か
を判断し、初期化済みならば有効データをサイズ分退避
していたアドレスBから取りだし、それを上記インプッ
トバッファに戻す。
[0034] After that, the emulation is switched, and after control is handed over to the new emulation, initialization of the buffer memory 8 is started, and then it is determined whether or not there is valid data at the set address B. If so, it is determined during initialization whether the area of the new input buffer has been initialized or not, and if it has been initialized, valid data corresponding to the size is taken out from the address B where it was saved and returned to the input buffer.

【0035】次いで、設定アドレスAに即時処理命令が
あるか否かを判断し、あれば即時処理命令をサイズ分取
り出して即時処理を開始し、さらに新たなエミュレーシ
ョンによって通常のデータ処理を開始する。
Next, it is determined whether or not there is an immediate processing instruction at the set address A, and if so, the immediate processing instruction is taken out for the size and immediate processing is started, and normal data processing is started by new emulation.

【0036】以上、この発明をレーザプリンタにおける
プリンタ制御装置に適用した実施例について説明したが
、この発明はLEDプリンタ,液晶シャッタプリンタ等
の他の光プリンタには勿論、ワイヤドットプリンタやサ
ーマルプリンタ,インクジェットプリンタ等のドットプ
リンタ、さらにはデジタル複写機のプリンタ部等のそれ
ぞれホスト装置及びプリンタエンジンに接続される各種
のプリンタ制御装置に適用可能である。
The embodiments in which the present invention is applied to a printer control device for a laser printer have been described above, but the present invention is applicable not only to other optical printers such as LED printers and liquid crystal shutter printers, but also to wire dot printers, thermal printers, The present invention is applicable to dot printers such as inkjet printers, and various printer control devices connected to a host device and a printer engine, such as a printer section of a digital copier, respectively.

【0037】[0037]

【発明の効果】以上説明したように、この発明によれば
、エミュレーションの切り替えの際、その切替命令に引
き続いて受信される有効データを通常のメモリの予め設
定したアドレスに一時退避させるようにしたので、特別
なメモリを使用しなくても、データロスのないエミュレ
ーション切り替えを実現することができる。
[Effects of the Invention] As explained above, according to the present invention, when switching emulations, valid data received following the switching command is temporarily saved to a preset address in normal memory. Therefore, emulation switching without data loss can be achieved without using special memory.

【0038】また、請求項2の発明によれば、ホスト装
置からエミュレーション切替命令を受信してからその命
令によるエミュレーションの切替処理が完了するまでの
間に、ホスト装置から即時処理命令を受信した場合でも
、その即時処理命を切替処理後のエミュレーションによ
って直ちに処理できるので、前述したような従来の問題
を解消することができる。
According to the second aspect of the invention, if an immediate processing command is received from the host device after the emulation switching command is received from the host device and until the emulation switching processing according to the command is completed. However, since the immediate processing command can be immediately processed by emulation after switching processing, the conventional problems described above can be solved.

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

【図1】図2のCPU5によるこの発明に係わる処理を
示すフロー図である。
FIG. 1 is a flow diagram showing processing according to the present invention by a CPU 5 in FIG. 2;

【図2】この発明を実施したレーザプリンタのプリンタ
制御装置を示すブロック構成図である。
FIG. 2 is a block configuration diagram showing a printer control device for a laser printer embodying the present invention.

【図3】図2のCPU5によるこの発明に係わる図1と
異なる処理を示すフロー図である。
FIG. 3 is a flowchart showing processing different from that in FIG. 1 according to the present invention by the CPU 5 in FIG. 2;

【図4】図3の処理の続きを示すフロー図である。FIG. 4 is a flow diagram showing a continuation of the process in FIG. 3;

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

1  プリンタ制御装置(プリンタコントローラ)5 
 中央処理装置(CPU)    6  プログラムR
OM7  フォントROM            8
  バッファメモリ9  出力バッファ       
       14  ホストコンピュータ(ホスト装
置) 16  プリンタエンジン
1 Printer control device (printer controller) 5
Central processing unit (CPU) 6 Program R
OM7 Font ROM 8
Buffer memory 9 Output buffer
14 Host computer (host device) 16 Printer engine

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  ホスト装置及びプリンタエンジンに接
続され、前記ホスト装置から受信する印字データ及び制
御命令を一時的に格納するインプットバッファと、その
インプットバッファに一時的に格納した印字データ及び
制御命令に基づいて画像イメージデータを作成する複数
のデータ処理手段と、前記ホスト装置から受信した制御
命令中のデータ処理切替命令によって、前記複数のデー
タ処理手段の切替処理及び前記インプットバッファのク
リアを含むメモリの初期化を行なうデータ処理切替手段
とを備え、前記複数のデータ処理手段のいずれかによっ
て作成された画像イメージデータを前記プリンタエンジ
ンへ転送して印字画像を出力させるプリンタ制御装置に
おいて、前記データ処理切替手段が前記ホスト装置から
のデータ処理切替命令を処理する際、これに引き続いて
該データ処理切替命令により切替後のデータ処理手段の
ためのデータを受信済みであるか否かを判断する手段と
、該手段によって前記データが受信済みであると判断さ
れた場合に、該データを前記メモリの予め設定したアド
レスに退避させる手段と、前記データ処理切替命令によ
り切替後のデータ処理手段が制御権を持った際に行なわ
れるメモリの初期化において、前記インプットバッファ
の領域が初期化済みであるかを判断する手段と、該手段
によって初期化済みであると判断された場合に、前記ア
ドレスに退避したデータを前記インプットバッファに戻
す手段とを設けたことを特徴とするプリンタ制御装置。
1. An input buffer that is connected to a host device and a printer engine and temporarily stores print data and control instructions received from the host device; A plurality of data processing means that create image data based on the data processing means, and a data processing switching command included in a control command received from the host device, perform processing of switching the plurality of data processing means and clearing the input buffer. a data processing switching means for performing initialization, and transmitting image data created by any of the plurality of data processing means to the printer engine to output a printed image, wherein the data processing switching means When the means processes a data processing switching command from the host device, subsequently determining whether data for the data processing means after switching has been received by the data processing switching command; means for saving the data to a preset address in the memory when it is determined by the means that the data has been received, and a data processing means after switching by the data processing switching command having control authority. means for determining whether the input buffer area has been initialized during memory initialization performed when the input buffer is initialized, and data saved at the address when the input buffer area is determined to have been initialized A printer control device comprising: means for returning the input buffer to the input buffer.
【請求項2】  請求項1記載のプリンタ制御装置にお
いて、前記ホスト装置から受信したデータを前記インプ
ットバッファに一時的に格納する直前に、該受信データ
がデータ処理切替命令か否かを判断する手段と、該手段
によってデータ処理切替命令であると判断された場合に
、その後のデータを解釈する手段を該データ処理切替命
令により切替後のデータ処理手段の命令を解釈する手段
に変更する手段と、前記切替後のデータ処理手段の即時
処理命令が受信されたか否かを判断する手段と、該手段
によって前記切替後のデータ処理手段の即時処理命令が
受信されたと判断された場合に、その即時処理命令を前
記メモリの予め設定したアドレスに一時保存する手段と
、前記データ処理切替命令により切替後のデータ処理手
段が制御権を持った際に、先ず最初に前記アドレスに保
存した即時処理命令を取り出す手段とを持つプリプロセ
ッサを有することを特徴とするプリンタ制御装置。
2. The printer control device according to claim 1, further comprising means for determining whether the received data is a data processing switching command immediately before the data received from the host device is temporarily stored in the input buffer. and means for changing the means for interpreting the subsequent data to the means for interpreting the command of the data processing means after switching by the data processing switching command, if the means determines that it is a data processing switching command; means for determining whether or not an immediate processing command of the switched data processing means has been received; and when the means determines that an immediate processing command of the switched data processing means has been received, immediate processing thereof; Means for temporarily storing an instruction at a preset address in the memory, and when the data processing means after switching has control authority due to the data processing switching instruction, first retrieves the immediate processing instruction stored at the address. 1. A printer control device comprising a preprocessor having means.
JP3130638A 1991-05-02 1991-05-02 Printer controller Pending JPH04330515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3130638A JPH04330515A (en) 1991-05-02 1991-05-02 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3130638A JPH04330515A (en) 1991-05-02 1991-05-02 Printer controller

Publications (1)

Publication Number Publication Date
JPH04330515A true JPH04330515A (en) 1992-11-18

Family

ID=15039046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3130638A Pending JPH04330515A (en) 1991-05-02 1991-05-02 Printer controller

Country Status (1)

Country Link
JP (1) JPH04330515A (en)

Similar Documents

Publication Publication Date Title
JP2871275B2 (en) Print control apparatus and emulation program selection method in the apparatus
US6216176B1 (en) Method of passing right to use input/output port between softwares
JPH06286229A (en) Printer
JP2000187569A (en) Printer, data output device and computer readable storage medium
JPH10187393A (en) Method for controlling printing and device therefor and storage medium
JPH04330515A (en) Printer controller
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP3478519B2 (en) Printer device
JP3129679B2 (en) Printer
JP3559620B2 (en) Printer system
JP3284457B2 (en) Printer
JP3225096B2 (en) Image forming device
KR100544165B1 (en) Method for changing registered information of printer in printer driver
JP3073921B2 (en) Print control device and data processing method of print control device
JPH0798638A (en) Image forming device
JPH04328934A (en) Printer
JP2891860B2 (en) output method
JP2000020275A (en) Printer
JPH03184883A (en) Data processing change-over system in printer controller
JPH096556A (en) Printing data transfer system
JPH11272434A (en) Picture forming device
JPH01263063A (en) Printing controller
JPH09240081A (en) Printer
JP2000037929A (en) Printing system
JPH11170668A (en) Image formation apparatus