JPH0452728A - Printer controller - Google Patents
Printer controllerInfo
- Publication number
- JPH0452728A JPH0452728A JP2155859A JP15585990A JPH0452728A JP H0452728 A JPH0452728 A JP H0452728A JP 2155859 A JP2155859 A JP 2155859A JP 15585990 A JP15585990 A JP 15585990A JP H0452728 A JPH0452728 A JP H0452728A
- Authority
- JP
- Japan
- Prior art keywords
- data
- area
- emulator
- switching
- font
- 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
Links
- 238000012545 processing Methods 0.000 claims abstract description 69
- 238000000034 method Methods 0.000 claims description 50
- 239000008186 active pharmaceutical agent Substances 0.000 description 24
- 239000000872 buffer Substances 0.000 description 18
- 102100028284 Collagen alpha-1(XXVI) chain Human genes 0.000 description 16
- 101710113648 Collagen alpha-1(XXVI) chain Proteins 0.000 description 16
- 238000007726 management method Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 15
- 238000013500 data storage Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 6
- 102100032066 EMI domain-containing protein 1 Human genes 0.000 description 5
- 101710133019 EMI domain-containing protein 1 Proteins 0.000 description 5
- 238000004321 preservation Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000013523 data management Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 108091008695 photoreceptors Proteins 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、複数のエミュレータを搭載したプリンタの制
御装置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a control device for a printer equipped with a plurality of emulators.
(従来の技術)
最近、複数のホスト(ホストコンピュータなど)に接続
可能なプリンタが使用されている。通常、プリンタの印
字制御は、ホストコンピュータなどのホストから一定の
プロトコル(コマンド体系)すなわちフォーマットに従
ったコマンドを印字データと共に送ることによって行な
われる。このフォーマントは、現在、各社まちまちに決
められており、ホストとプリンタが異った7オーマツト
を利用した場合には、プリンタはホストから受信したデ
ータを解析できない。そこで、複数のホストに接続可能
なプリンタにおいては、複数種の7オーマツトに対応す
る機能(エミュレータ)を搭載していて、操作パネルで
の指定、または、ホストから送られてくるエミュレータ
指定のコマンドにより、指定されたエミュレータが実行
を開始する。(Prior Art) Recently, printers that can be connected to multiple hosts (host computers, etc.) have been used. Normally, printing control of a printer is performed by sending commands according to a certain protocol (command system) or format together with printing data from a host such as a host computer. Currently, this format is determined differently by each company, and if the host and printer use different formats, the printer will not be able to analyze the data received from the host. Therefore, printers that can be connected to multiple hosts are equipped with a function (emulator) that supports multiple types of 7-ohm printers, and can be configured by specifying them on the operation panel or by commands specifying the emulator sent from the host. , the specified emulator starts running.
(発明が解決しようとする課題)
一般に、複数のホストに接続可能であって、多くのエミ
ュレータを搭載したプリンタにおいて、各々のエミュレ
ータが起動されている時には、メモリマツプやデータの
管理方法がそれぞれちがう。(Problem to be Solved by the Invention) Generally, in a printer that can be connected to multiple hosts and is equipped with many emulators, when each emulator is activated, the memory map and data management method is different.
そのため、ホストで使用するアプリケーションを切り換
えるとき、プリンタのエミュレータの切換を指定すると
、従来は、切り換えたエミュレータのためにメモリの初
期化かおこなわれ、これによりプリンタにおけるそれ以
前の状態は失われていた。Therefore, when switching the application used on the host and specifying a printer emulator switch, in the past, memory was initialized for the switched emulator, and the previous state of the printer was lost. .
この初期化によるメモリのクリアは、−人でブリンクシ
ステムを利用している場合には問題はない。Clearing the memory through this initialization poses no problem if a person is using the blink system.
しかし、特に複数のホストに接続さF′L複数のユーザ
ーが使用するシステムにおいては、エミュレータ切り換
え時に以前の状態(使用環境)を保持しておいた方がよ
いことがある。たとえば、複数のホストと1台のプリン
タが接続され、複数のユーザーがそれぞれ異なるエミュ
レータで使用していた場合を考える。1人がフォントを
ダウンロードして利用していた時に、他のユーザーがプ
リンタを使用するためエミュレータを切換えると、この
時点でダウンロードフォントのデータが消えてしまうの
で、最初のユーザーは、そのダウンロードフォントを用
いてプリントする場合に、エミュレータを切り換えるだ
けでなく、また最初からフォントをダウンロードしなお
さなければならない。However, especially in a system connected to a plurality of hosts and used by a plurality of users, it may be better to maintain the previous state (usage environment) when switching emulators. For example, consider a case where multiple hosts and one printer are connected, and multiple users are using different emulators. If one user is downloading and using a font and another user switches the emulator to use the printer, the downloaded font data will be lost at this point, so the first user will have to download the downloaded font. When printing using the emulator, you not only have to switch emulators, you also have to download the fonts from the beginning.
さらに前に設定した値は、他のユーザーから割り込まれ
るたびに初期化され消えてしまう。Furthermore, any previously set values are reset and erased every time another user interrupts.
この様に複数のユーザが異なるエミュレータを利用した
場合に連続的な作業が中断されてしまうという問題があ
る。In this way, when multiple users use different emulators, there is a problem in that continuous work is interrupted.
そこで、本出願人は、別の出願において提案したプリン
タ制御装置では、エミュレータ切換えの際に、エミュレ
ータが処理の実行においてアクセスする第1のメモリに
おいて記憶している現在のエミュレータの使用環境を設
定するデータ(ダウンロードフォントデータなど)を別
のメモリに保存しておき、以前に使用していたエミュレ
ータに戻る切換の際に、その保存しておいたデータを復
帰させる。これにより、新たにフォントデータのダウン
ロードをしなくても、直ちに印字情報の処理を開始でき
る。しかも、他のユーザーの使用環境を破壊することは
ない。Therefore, in the printer control device proposed in another application, the present applicant sets the current emulator usage environment stored in the first memory accessed by the emulator in executing processing when switching the emulator. Data (such as downloaded font data) is saved in another memory, and the saved data is restored when switching back to the previously used emulator. As a result, processing of print information can be started immediately without downloading new font data. Moreover, it does not destroy the usage environment of other users.
ここで、エミュレータ処理のための第1のメモリとデー
タ保存のための第2のメモリとを同一のメモリ空間でエ
リアを割り当てて使用すると、データ保存のだめのエリ
アの境界を浮動的に設定でき、全体としてのメモリ容量
を少なくしてメモリを効率的に利用できると考えられる
。Here, if the first memory for emulator processing and the second memory for data storage are allocated and used in the same memory space, the boundaries of the area for data storage can be set floatingly, It is thought that the overall memory capacity can be reduced and memory can be used more efficiently.
しかし、エミュレータ切換えの際に、保存するべきデー
タの量が多いと、新しいエミュレータの実行のために必
要なエリアが確保できないことがありうる。しかし、エ
リアが確保出来ない場合でも、通常未必要なエリアのサ
イズよりも小さいエリアで実行できることがある。この
ような場合、一部の機能に制限はでるとしても、エミュ
レータ切り換えを優先したい場合がある。However, when switching emulators, if there is a large amount of data to be saved, it may not be possible to secure the area necessary to run the new emulator. However, even if the area cannot be secured, it may be possible to execute the process in an area smaller than the size of the normally unnecessary area. In such cases, you may want to give priority to switching emulators, even if some functions are restricted.
本発明の目的は、複数のエミュレータを搭載したプリン
タにおいて、エミュレータ切換えの際に、エミュレータ
が処理の実行において使用するメモリエリアとデータ保
存のだめのエリアを共通化したプリンタ制御装置を提供
することである。SUMMARY OF THE INVENTION An object of the present invention is to provide a printer control device in which a memory area used by the emulators for executing processing and an area for data storage are shared when switching between emulators in a printer equipped with a plurality of emulators. .
(課題を解決するための手段)
本発明に係るプリンタ制御装置は、それぞれ異なったプ
ロトコルを処理する複数のエミュレータを備えたプリン
タにおいて、使用環境を設定するデータの記憶エリアや
ワークエリアとしてエミュレータが処理の実行において
アクセスする第1記憶エリアとデータ保存のだめの第2
記憶エリアとから構成される記憶手段と、記憶手段の使
用状況を判定する判定手段と、エミュレータ切換の指示
を受け取るデータ入力手段と、データ入力手段からエミ
ュレータ切換指示を受け取ると、指示されたエミュレー
タに切換える一方、第1記憶エリアに記憶したデータの
中の元のエミュレータの使用環境を設定するデータを第
2記憶エリアに保存し、切り換えられたエミュレータの
ための保存データが第2記憶エリアに記憶してあった場
合にその保存データを第1記憶エリアに復帰し、判定手
段が新しく指示されたエミュレータの実行に必要な通常
の大きさのエリアを確保できないと判定すると、そのエ
ミュレータの実行条件を記憶手段のエリア構成について
制限するエミュレータ切換手段を備えたことを特徴とす
る。(Means for Solving the Problems) A printer control device according to the present invention is a printer equipped with a plurality of emulators each processing a different protocol. A first storage area accessed during execution of the process and a second storage area for data storage.
a storage means comprising a storage area; a determination means for determining the usage status of the storage means; a data input means for receiving an instruction to switch the emulator; At the same time, data for setting the usage environment of the original emulator among the data stored in the first storage area is stored in the second storage area, and saved data for the switched emulator is stored in the second storage area. If the determination means determines that it is not possible to secure an area of normal size necessary for execution of the newly instructed emulator, the execution conditions of that emulator are stored. The present invention is characterized by comprising emulator switching means for restricting the area configuration of the means.
(作用)
エミュレータが処理の実行においてアクセスする第1記
憶エリアには、エミュレータの使用環境を設定するデー
タも記憶される。たとえば、文字印字を中心とした処理
を行なうエミュレータにおいてダウンロードされる7オ
ントデータがそのようなデータである。他のエミュレー
タからこのエミュレータに切り換えたときは、このダウ
ンロードフォントデータがだい2記憶エリアに保存して
あれば、そのデータを第1記憶エリアに復帰すれば、直
ちに印字情報の処理が実行できる。そこで、ホストコン
ピュータや操作パネルなどからエミュレータ切換指示を
データ入力手段が受け取ると、エミュレータ切換手段は
、第2記憶エリアに現在のエミュレータの使用環境を設
定するデータを保存する。また、エミュレータ切換手段
は、指示されたエミュレータのための保存データを第2
記憶エリアから第1記憶エリアに復帰する。(Function) The first storage area that the emulator accesses when executing processing also stores data that sets the usage environment of the emulator. For example, 7-ont data downloaded by an emulator that performs processing centered on character printing is such data. When switching from another emulator to this emulator, if the downloaded font data is saved in the second storage area, printing information can be processed immediately by restoring the data to the first storage area. Therefore, when the data input means receives an emulator switching instruction from the host computer, operation panel, etc., the emulator switching means stores data for setting the current usage environment of the emulator in the second storage area. Further, the emulator switching means transfers the saved data for the designated emulator to the second emulator.
Return from the storage area to the first storage area.
さらに、判定手段が、記憶手段の使用状況を判定する。Furthermore, the determining means determines the usage status of the storage means.
すなわち、判定手段は、保存すべきデータの大きさ、復
帰すべきデータの大きさ、エミュレータか処理の実行の
ために確保すべきエリアの大きさなどをチエツクする。That is, the determining means checks the size of data to be saved, the size of data to be restored, the size of the area to be secured for execution of emulator processing, etc.
エミュレータ切換手段は、判定手段が、新しく選択され
たエミュ一タの処理の実行のだめの通常のエリアの大き
さが確保できないと判断すると、そのエリアの大きさを
通常の大きさより小さく制限する。The emulator switching means limits the size of the area to be smaller than the normal size when the judging means judges that the normal area size for executing the process of the newly selected emulator cannot be secured.
たとえば、処理時の効率を上げるためのキャッシュエリ
アはある程度大きさを制限してもプログラムの実行上の
問題がないので、キャッシュエリアを制限する。また、
ドツトイメージを描画するだめのビットマツプエリアの
大きさを制限して、印字すべきペーパーのサイズを(た
とえばA4サイズからB5サイズに)制限する。これに
より、元のエミュレータの必要なデータを確保しつつ、
新しく選択されたエミュレータの実行を確保する。For example, the cache area is limited to improve processing efficiency because there is no problem in program execution even if the size is limited to a certain extent. Also,
By limiting the size of the bitmap area on which dot images are drawn, the size of the paper on which to print is limited (from A4 size to B5 size, for example). This preserves the necessary data of the original emulator while
Ensure the newly selected emulator runs.
以下余白 (実施例) 以下、本発明の実施例を図面を参照しつつ説明する。Margin below (Example) Embodiments of the present invention will be described below with reference to the drawings.
(a)プリンタの全体構成
第1図は本発明に係るレーザプリンタ1の外観を示す斜
視図である。(a) General structure of printer FIG. 1 is a perspective view showing the external appearance of a laser printer 1 according to the present invention.
レーザプリンタlは、電子写真プロセスによる画像形成
のための、感光体、現像器、露光用のレーザー光学系、
及び後述する画像データ処理部lOなどを備えたプリン
トエンジン4と、自動給紙ユニット5及びソータ6から
なる。自動給紙ユニット5には、上段給紙力セット51
中段給紙カセット52および下段給紙カセット53が、
装着されており、これらの中の1つの給紙カセットから
用紙がプリントエンジン4に供給される。A laser printer l includes a photoreceptor, a developing device, a laser optical system for exposure, and
It also includes a print engine 4 including an image data processing section 10, which will be described later, an automatic paper feeding unit 5, and a sorter 6. The automatic paper feeding unit 5 has an upper paper feeding power set 51.
The middle paper feed cassette 52 and the lower paper feed cassette 53 are
Paper is supplied to the print engine 4 from one of the paper feed cassettes.
プリントエンジン4の上部前面には、ユーザーによる操
作のための操作パネル44が設けられている。An operation panel 44 is provided on the upper front surface of the print engine 4 for user operation.
第2図は、操作パネル44の正面図である。FIG. 2 is a front view of the operation panel 44.
7セグメントLEDのPr1nter Status
表示3Iは、レーザプリンタlの動作状態(エラー表示
を含む)をコード表示する。サイズ指定キー35は、用
紙を供給する給紙カセット51〜53の中の1つを選択
するために設けられ、選択された給紙力セントに収納さ
れている用紙のサイズに応じてサイズ表示LEDが点灯
される。37は初期化のためのリセットキー、38はテ
スト印字のためのテストキー、39は内部の画像データ
を排出するためのフオームフィードキーである。Pr1nter Status of 7 segment LED
Display 3I displays a code indicating the operating status (including error display) of laser printer I. The size designation key 35 is provided to select one of the paper feed cassettes 51 to 53 that supplies paper, and a size display LED is displayed according to the size of the paper stored in the selected paper feed power cent. is lit. 37 is a reset key for initialization, 38 is a test key for test printing, and 39 is a form feed key for discharging internal image data.
オンラインキー40は各部の処理を一時停止させるため
に設けられ、処理が停止すると表示LED40aは消灯
する。The online key 40 is provided to temporarily stop the processing of each section, and when the processing is stopped, the display LED 40a turns off.
さらに、41は、エミュレータを選択するためのエミュ
レータ選択キーであり、キー41の押下により表示31
に表示された数字に対応するエミュレータが選択される
。Further, 41 is an emulator selection key for selecting an emulator, and when the key 41 is pressed, a display 31 is displayed.
The emulator corresponding to the number displayed will be selected.
第3図はレーザプリンタ1の画像データ処理部10の構
成を示すブロック図である。画像データ処理部10は、
画像データ処理部10の全体の動作を制御するマイクロ
コンピュータからなるCPU(中央九理装置月1、処理
のプログラムを記憶するプログラムROM12、操作パ
ネル44と接続された操作パネルインターフェイス13
、後述するようにビットマツプメモリとして用いられ且
つ各種のデータが格納されるRAM17、予め所定のフ
ォントデータが書き込まれたフォントROM18、これ
らのRAM17及び7オントROM18を制御するメモ
リコントローラ14、外部装置としてのホストコンピュ
ータ(以下「ホスト」という)に接続された外部インタ
ーフェイス15、デイツプスイッチ19、及び、プリン
トエンジン4において電子写真プロセスを制御するプリ
ントエンジン制御部に接続されたプリントエンジンイン
ターフェイス16から構成されている。FIG. 3 is a block diagram showing the configuration of the image data processing section 10 of the laser printer 1. As shown in FIG. The image data processing unit 10
A CPU consisting of a microcomputer that controls the entire operation of the image data processing section 10 (Chuo-kuri device 1), a program ROM 12 that stores processing programs, and an operation panel interface 13 that is connected to an operation panel 44.
, a RAM 17 that is used as a bitmap memory and stores various data as described later, a font ROM 18 in which predetermined font data is written in advance, a memory controller 14 that controls these RAM 17 and 7ont ROM 18, and an external device. It consists of an external interface 15 connected to a host computer (hereinafter referred to as "host"), a dip switch 19, and a print engine interface 16 connected to a print engine control unit that controls the electrophotographic process in the print engine 4. ing.
ここに、デイツプスイッチ19は、ユーザーが設定する
プリンタ動作方法のデフォルト値を決めるために設(す
られる。ユーザーは、あらかじめ自分が使用するエミュ
レータ、ペーパーサイズ、通信速度、メモリサイズなど
をデイツプスイッチ19に設定することができる。後述
のエミュレータ切換の場合のメモリ容量不足の場合のデ
ータ保存優先かデータ放棄優先(エミュレータ切換優先
)かの取り扱いの選択もデイツプスイッチ19により設
定される。この情報は、電源投入とともに読み込まれ、
デフォルト値の設定が行われる。エミュレータ切換優先
の場合は、gard fdataフラグが0に設定され
、エミュレータ切換放棄優先の場合は、そのフラグが1
に設定される(第24図(a) 584〜S86参照)
。Here, the dip switch 19 is set (used) to determine the default value of the printer operation method set by the user. The dip switch 19 can also be set to select whether to give priority to data storage or data abandonment (emulator switching priority) when there is insufficient memory capacity when switching emulators, which will be described later. Information is loaded upon power-on,
Default values are set. If emulator switching is given priority, the gard fdata flag is set to 0, and if emulator switching is given priority, the flag is set to 1.
(See Fig. 24(a) 584-S86)
.
プログラムROM12内には、ホストから送られてくる
文字データおよび複数のコマンドを解析し実行するプロ
グラム(エミュレータ)が収められている。すなわち、
本プリンタは、数種のフォーマットに対応する機能(エ
ミュレータ)を持っており、操作パネル44での指定、
あるいはホストから送られるコマンドにより、各エミュ
レータが対応を開始する。The program ROM 12 contains a program (emulator) that analyzes and executes character data and a plurality of commands sent from the host. That is,
This printer has a function (emulator) that supports several types of formats, and can be specified on the operation panel 44,
Alternatively, each emulator starts responding in response to a command sent from the host.
メモリコントローラ14は、ホストから外部インターフ
ェイス15を介して画像データが入力されると、この画
像データに基づいて、後述するRAM17内のビットマ
ツプエリアBMにイメージデータの描画を行う。イメー
ジデータの描画には、線や円などの図形描画と、フォン
トROM18又はRAM17からのフォントデータの読
み出しにより行われるフォント描画とがある。When image data is input from the host via the external interface 15, the memory controller 14 draws image data in a bitmap area BM in the RAM 17, which will be described later, based on this image data. Image data drawing includes graphic drawing such as lines and circles, and font drawing performed by reading font data from the font ROM 18 or RAM 17.
また、プリント(印字)動作時において、メモリコント
ローラ14は、ホストから送られてくるプリント開始コ
ードに対応して、プリントエンジン4内のプリントエン
ジン制御部からの同期信号に従って、RAM17内のビ
ットマツプエリアBMからイメージデータを画素の配列
順に読み出し、プリントエンジン制御部へ出力する。Further, during a print operation, the memory controller 14 selects a bitmap area in the RAM 17 in response to a print start code sent from the host and in accordance with a synchronization signal from the print engine control section in the print engine 4. Image data is read from the BM in the order of pixel arrangement and output to the print engine control section.
プリントエンジン制御部では、このイメージデータに応
じてレーザ光源の点滅を行って感光体上に潜像を形成す
る公知の電子写真プロセスにより、自動給紙ユニット5
から供給される用紙に、用紙の周囲に余白を設けた所定
のイメージサイズの画像を形成する制御が行われる。The print engine control section uses a known electrophotographic process to blink a laser light source and form a latent image on a photoreceptor according to this image data.
Control is performed to form an image of a predetermined image size with a margin around the paper on the paper supplied from the paper.
フォントROM18(第10図参照)内のフォントデー
タには、文字や記号の形をドットパターンとしてイメー
ジのとおりに表すパターン7オントデータと、文字など
輪郭のみを表すアウトラインフォント(ベクトル)オン
ト)データやデータ長の短縮を図った圧縮フォントデー
タなどからなるコード7オントデータ(内部1次データ
)とがある。The font data in the font ROM 18 (see Figure 10) includes pattern 7 ont data that represents the shapes of characters and symbols as dot patterns as shown in the image, and outline font (vector ont) data that represents only the outlines of characters. There is code 7 ont data (internal primary data) consisting of compressed font data with a reduced data length.
アウトラインフォントデータを印字に用いると、高品位
の変形文字や拡大文字などを含む画像を容易に形成する
ことができる。When outline font data is used for printing, images including high-quality deformed characters, enlarged characters, etc. can be easily formed.
また、プリントに7オントROM18内のフォントデー
タ以外のフォントが必要な場合には、ホストからパター
ンフォントデータ又はコードフォントデータからなる必
要なフォントデータ(外部1次データ)が、RAM17
ヘダウンロードされる(第8図、第11図参照)。In addition, if a font other than the font data in the 7-ont ROM 18 is required for printing, the necessary font data (external primary data) consisting of pattern font data or code font data is transferred from the host to the RAM 17.
(See Figures 8 and 11).
コードフォントデータに基づいて、RAM17のビット
マツプエリアに描画するときには、塗り潰しやドツト数
の計算などの演算処理が必要となり、描画速度が低下す
る。そこで、描画速度を高めるため、CPU11により
、プリント動作の開始前などの待機時間を利用してフォ
ント変換処理が行われ、前もってコードフォントデータ
(内部又は外部1次データ)をパターンフォントデータ
に変換し、これを2次データとしてRAM17(第11
1mのキャッンユエリアなど)に格納しておくことがあ
る。When drawing in the bitmap area of the RAM 17 based on the code font data, arithmetic processing such as filling and calculating the number of dots is required, which reduces the drawing speed. Therefore, in order to increase the drawing speed, the CPU 11 performs font conversion processing using the waiting time such as before the start of the printing operation, and converts code font data (internal or external primary data) into pattern font data in advance. , this is stored as secondary data in RAM 17 (11th
It may be stored in a 1m storage area, etc.).
(c)RAMの構成とエミュレータ
第4図は、RAM17のメモリエリアMAの構成を示す
。メモリエリアMAは単数又は複数のRAMチップによ
り構成される。メモリエリアMAは、1つのアドレス系
によりアクセス可能なメモリ空間であり、格納されるデ
ータの種類から見て、CPUIIが行なう各部の制御の
ためのシステムエリアSA、画像データに関するユーザ
ーエリアUA、 及び、ダウンロードフォントデータな
と゛をエミュレータ切り換え時に保存するデータセーブ
エリアDSに分けられる。(c) RAM Configuration and Emulator FIG. 4 shows the configuration of the memory area MA of the RAM 17. Memory area MA is composed of one or more RAM chips. The memory area MA is a memory space that can be accessed by one address system, and from the perspective of the type of data stored, it includes a system area SA for controlling various parts performed by the CPU II, a user area UA for image data, and It is divided into a data save area DS where downloaded font data and the like are saved when switching emulators.
システムエリアSAやユーザエリアUAは、その目的に
より、さらに細分化されて利用されるが、その内訳はエ
ミュレータか起動されるごとに変化する。これは各エミ
ュレータにおいてプリンタコマンドがその構造や機能が
異なるためであり、エミュレータプログラムもそれを反
映した形になり、メモリの利用目的もエミュレータごと
に変わる。The system area SA and user area UA are further divided and used depending on the purpose, and the details change each time the emulator is started. This is because the printer commands have different structures and functions in each emulator, and the emulator program also has a shape that reflects this, and the purpose of memory usage also changes depending on the emulator.
なおユーザエリアUAと、データセーブエリアDSのア
ドレスは、後で説明するように、エミュレータが起動さ
れると変化する。Note that the addresses of the user area UA and data save area DS change when the emulator is started, as will be explained later.
なお、RAMチップを増設してゆくことにより、ユーザ
エリアUAとデータセーブエリアDSを拡張することも
できる。Note that the user area UA and data save area DS can be expanded by increasing the number of RAM chips.
次に、具体的に2つのエミュレータのメモリ空間につい
て説明する。ここでは、2つのエミュレータをEMUl
、EMU2と呼ぶ。Next, the memory spaces of the two emulators will be specifically explained. Here we will use two emulators: EMUl
, called EMU2.
はじめに、エミュレータEMUIの場合のメモリ空間に
ついて説明する。First, the memory space for the emulator EMUI will be explained.
EMUIは、キャラクタの印字を中心とした処理を行な
うエミュレータであり、文字印字の際にはフォントRO
M18のパターンフォントデータ181のみを使用する
。内部での情報管理は主にキャラクタ単位に行なわれ、
文字情報、印字制御コマンドとともに画定フオーマット
に従い中間コードと呼ばれるコードに変換される。描画
時にはこの中間コードの情報をもとに処理を行なう。EMUI is an emulator that performs processing centered on character printing, and uses font RO when printing characters.
Only M18 pattern font data 181 is used. Internal information management is mainly done on a character-by-character basis.
Together with character information and print control commands, it is converted into a code called an intermediate code according to a defined format. When drawing, processing is performed based on the information in this intermediate code.
一方、EMU2は図形処理を中心とした処理を行なうエ
ミュレータであり、内部では座標データを中心とした画
像データを管理する。文字の場合も、画像データに近い
形で扱われ、最終的には画像データと同じ管理データに
まで分解される。文字印字の際は、フォントROM18
のコード7オントデータ182のみを使用する。コード
7オントデータ182は文字の輪郭情報か集められたも
のであり基本的には図形を描画する情報に近いものであ
る。On the other hand, the EMU 2 is an emulator that performs processing mainly on graphical processing, and internally manages image data mainly on coordinate data. Text is also treated in a manner similar to image data, and is ultimately broken down into the same management data as image data. When printing characters, use font ROM18
Only code 7 ont data 182 is used. The code 7 ont data 182 is a collection of character outline information, and is basically information close to drawing figures.
EMUlでは、第5図に示す様にRAMl7のメモリ配
置が行なわれる。RAM17のシステムエリアSAには
、CPUIIによる演算処理のためのパラメータなどを
格納するパラメータエリアSAa、ホストから入力され
た各種の制御のための命令フードに対応する中間コード
を格納するP−バッファエリアSAb、及びホストとの
通信用のR−バッファエリアSAcが設けられる。In EMU1, memory arrangement of RAM17 is performed as shown in FIG. The system area SA of the RAM 17 includes a parameter area SAa that stores parameters for arithmetic processing by the CPU II, and a P-buffer area SAb that stores intermediate codes corresponding to instruction food for various controls input from the host. , and an R-buffer area SAc for communication with the host.
EMUlでは、パラメータエリアSAaにはプログラム
全体を管理するための情報が記憶される(ディレクトリ
管理)。その内部は、第6図に示すように、さらにいく
つかのブロックに分けられて、管理を行なう。たとえば
エミュレータの現在の動作情報を保存するエミュレータ
管理ブロック5Aalや、ダウンロードフォントなどの
情報を管理するダウンロードデータ管理ブロック5Aa
2、データセーブエリアDSの使用情報を管理するデー
タセーブエリア管理ブロック5Aa3、画像情報全体(
たとえば中間コードやテーブルエリアのデータも)を管
理する画像情報管理ブロック5Aa4などのいくつかの
ブロックが設けられる。In EMU1, information for managing the entire program is stored in the parameter area SAa (directory management). The inside thereof is further divided into several blocks for management, as shown in FIG. For example, an emulator management block 5Aal that stores current operating information of the emulator, and a download data management block 5Aa that manages information such as downloaded fonts.
2. Data save area management block 5Aa3 that manages usage information of data save area DS, entire image information (
For example, several blocks such as an image information management block 5Aa4 for managing intermediate codes and table area data are provided.
第7図に示すように、データセーブエリアDSは、デー
タ保存エリアDSaとエミュレータ情報保存エリアDS
bとからなるデータ保存エリアDSaは、後に詳しく説
明するように、エミュレータ切換時に外部1次データな
どを保存、復帰するにめのエリアである(第21図55
56〜563参照)。As shown in FIG. 7, the data save area DS includes a data save area DSa and an emulator information save area DS.
As will be explained in detail later, the data storage area DSa consisting of .
56-563).
また、パラメータエリアの上述のエミュレータ情報管理
ブロック5Aalの内容は、エミュレータが切り換えら
れる時、データセーブエリアDS内のエミュレータ情報
保存エリアDSbにコピーされる(第21図5551参
照)。そして、次に再び元のエミュレータが起動された
時、エミュレータ情報保存エリアDSbからエミュレー
タ情報管理ブロックSAa lにコピーされる(第21
図5565参照)。Furthermore, the contents of the above-mentioned emulator information management block 5Aal in the parameter area are copied to the emulator information storage area DSb in the data save area DS when the emulator is switched (see 5551 in FIG. 21). Then, the next time the original emulator is started up again, it is copied from the emulator information storage area DSb to the emulator information management block SAa1 (21st
(See Figure 5565).
このコピーは現在のエミュレータの動作情報(使用環境
)を保存しておくために行なう作業であるが、データセ
ーブエリアDS内に保存エリアDSbを置かずにパラメ
ータエリアSAa内に置いてもよい。This copying is performed to preserve the current operating information (usage environment) of the emulator, but the saving area DSb may not be placed in the data save area DS but may be placed in the parameter area SAa.
一方、ユーザー二リアUAには、第8図に示すように、
プリントの必要に応じてホストからダウンロードされた
パターンデータを格納するフォントロードエリアFLと
、イメージデータを描画する仮想画面としてのビットマ
ツプエリアBMとが割り当てられる。ただし、EMU
lではパターンフォントデータのみを扱い、コードフォ
ントは使わない。On the other hand, the user rear UA has the following information as shown in FIG.
A font load area FL for storing pattern data downloaded from the host as required for printing, and a bitmap area BM as a virtual screen for drawing image data are allocated. However, EMU
l handles only pattern font data and does not use code fonts.
第9図に示すように、ダウンロードの際、フォントRO
M18からのパターンフォントデータがユーザー二リア
UAの端から順に格納されてゆく(斜線部)。これは7
オントロードエリアFLを使い切るまで可能であるが、
データがエリア内で一杯になると、後Iニダウンロード
されたデータは捨てられる。一方、ビットマツプエリア
BMは、ユーザー二リアUAの反対側の端から使用され
る。As shown in Figure 9, when downloading, the font RO
The pattern font data from M18 is stored sequentially from the end of the user's rear UA (shaded area). This is 7
It is possible until the Ontrode area FL is used up, but
When the data is full in the area, the data that was downloaded later is discarded. On the other hand, the bitmap area BM is used from the opposite end of the user's rear UA.
なお、図かられかるように、ユーザーエリアにおいて、
フォントロードエリアFLとビットマツプエリアBMと
は、メモリ空間を共通化していて、その破線で示す境界
は浮動的である。As you can see from the figure, in the user area,
The font load area FL and bitmap area BM share a memory space, and the boundary indicated by the broken line is floating.
第1O図は、フォントROM18の構成を示す。FIG. 1O shows the configuration of the font ROM 18.
EMUIではパターンフォントデータ181のみを利用
し、コードフォントデータ182は全く使用しない。EMUI uses only pattern font data 181 and does not use code font data 182 at all.
次に、EMU2の場合のメモリ空間について説明する。Next, the memory space in the case of EMU2 will be explained.
EMU2では、第11図の様にシステムエリアSAとユ
ーザー二リアUAが配置される。In the EMU 2, a system area SA and a user area UA are arranged as shown in FIG.
さらに、データセーブエリアDSは第7図と同様に配置
される。Furthermore, the data save area DS is arranged in the same manner as in FIG.
システムエリアSAには、EMUlと同様にパラメータ
を格納するパラメータエリアSAaとホストとの通信用
のR−バッファSAcが設けられる他、テーブルエリア
SAbが設けられる。The system area SA is provided with a parameter area SAa for storing parameters and an R-buffer SAc for communication with the host, as well as a table area SAb.
EMU2の場合には、すでに第6図に示したように、パ
ラメータエリアSAaに、さらに画像情報保存ブロック
5Aa5が作られる。これは、印字制御コマンドや、テ
ーブルエリアSA、bに保存される座標データなどが作
られる以前の情報を保存しておくエリアであり、解析途
中もしくは解析前のデータを保存する。ダウンロードフ
ォントデータなどもこのエリアSAa 5に蓄えられる
。それゆえ、7オントロードユリアFLはこのエリアの
一部に対応することになる。このエリアは画像情報管理
ブロック5Aa4によって管理される。In the case of the EMU 2, as already shown in FIG. 6, an image information storage block 5Aa5 is further created in the parameter area SAa. This is an area that stores information before the print control commands and coordinate data stored in table areas SA and b are created, and stores data that is in the middle of analysis or before analysis. Download font data and the like are also stored in this area SAa5. Therefore, 7 Ontrode Julia FL corresponds to a part of this area. This area is managed by the image information management block 5Aa4.
このように、フォントをダウンロードした場合は、EM
UIの場合と異なり、パラメータエリアSAaの内部に
フォントデータが収められる。これはフォントデータを
グラフィックなどの画像データと同一に扱うためであり
、画像を生成するためのパラメータも、このパラメータ
エリアSAa内部に収められる。In this way, if you download the font, EM
Unlike the case of the UI, font data is stored inside the parameter area SAa. This is to treat font data in the same way as image data such as graphics, and parameters for generating an image are also stored within this parameter area SAa.
EMU2では、コードフォントのみを使用し、パターン
フォントデータは扱われないので、ROM18からはコ
ード7オントデータ182のみを読み込み、フォントロ
ードエリアFLにはコードフォントデータのみが収めら
れる。Since the EMU 2 uses only code fonts and does not handle pattern font data, only the code 7 ont data 182 is read from the ROM 18, and only the code font data is stored in the font load area FL.
EMU2では中間コードは使用しないので、EMUIの
場合のような中間コードを格納するP−バッファエリア
SAbは設けない。その代わりに、第12図に示すよう
なテーブルエリアSAbが設けられ、画像データを描画
する上で必要となる座標データ、もしくは座標データを
生成する過程で作られる中間データ、もしくはプログラ
ムを管理する上で必要なアドレス情報か集められ管理さ
れる。また画像情報は分解されていくつものテーブルに
分けられるので、これら複数のテーブルを指すポインタ
(アドレス)を集めた、テーブルを管理するt:めのテ
ーブル管理テーブルがさらに作られる。これらも同様に
テーブルエリアSAb内に置かれる。Since the EMU2 does not use intermediate codes, the P-buffer area SAb for storing intermediate codes as in the case of EMUI is not provided. Instead, a table area SAb as shown in FIG. 12 is provided, and is used to store coordinate data necessary for drawing image data, intermediate data created in the process of generating coordinate data, or for managing programs. Necessary address information is collected and managed. Furthermore, since the image information is decomposed and divided into a number of tables, a t:-th table management table is created to manage the tables and collect pointers (addresses) pointing to these multiple tables. These are also placed within the table area SAb.
ユーザーエリアUAは、第11図に示すように、複数の
エリアに分割され利用される。大部分はイメージデータ
を描画する仮想画面としてのビットマツプエリアBMを
使用するが、他のエリアは描画処理を高速化するための
キャッシュエリアFC。The user area UA is divided into a plurality of areas and used as shown in FIG. The bitmap area BM is used mostly as a virtual screen for drawing image data, but the other areas are cache areas FC for speeding up the drawing process.
CAなどに割りあてられる。Allotted to CA etc.
キャッシュエリアには、フォントキャッンユエリアFC
とハーフトーンなどのキャッシュエリアCAがある。E
MU2は、図形処理を頻繁Iこ行なうエミュレータであ
るか、図形データのパラメータからビットマツプ形式へ
のハーフトーンなどのパターンデータに展開処理するに
は非常に時間がかかる。このため、1度展開したハーフ
トーンなどのパターンデータをキャッシュエリアCAに
保存し、同じパターンを使用する時にキャッシュエリア
CAからパターンデータを直接コピーする。In the cache area, there is a font cache area FC.
There are cache area CAs such as halftone and halftone. E
The MU2 is an emulator that frequently performs graphic processing, or it takes a very long time to develop the parameters of graphic data into pattern data such as halftone data in a bitmap format. For this reason, pattern data such as halftone data that has been developed once is stored in the cache area CA, and when the same pattern is used, the pattern data is directly copied from the cache area CA.
(わざわざ、図形パラメーターから展開しなおさない。(Do not go to the trouble of re-expanding the shape parameters.
)まt二、フォントの場合にはフォントキャッシュエリ
アFCに各文字(たとえばA−Z)のデータを保存する
。この時のデータは前に述べた2次フォントデータ(パ
ターンフォントデータ)に対応している。) Second, in the case of fonts, data for each character (for example, A-Z) is stored in the font cache area FC. The data at this time corresponds to the secondary font data (pattern font data) described above.
また、ユーザーエリアUAのワーキングバッファエリア
WBは、複雑な図形処理、たとえば、ハーフトーン処理
、クリッピング処理、重ねあわせ処理を行なう場合に、
−時的な作業を行なうt:めのエリアである。その処理
を行なう時には、このエリアWB上で1度図形を作成し
、その後に、ビットマツプエリ78M上にコピーする。In addition, the working buffer area WB of the user area UA is used when performing complex graphic processing, such as halftone processing, clipping processing, and superimposition processing.
- This is the area where temporary work is done. When performing this processing, a figure is created once on this area WB and then copied onto the bit map area 78M.
(d)エミュレータ切換とメモリ管理
多くのエミュレータを搭載したプリンタにおいて、複数
のユーザーが異なるエミュレータ(アプリケーションプ
ログラム)で使用する場合に、エミュレータを切換える
時、以前に設定した使用環境をメモリに保存し各ユーザ
ーの連続的な使用を可能にするために、エミュレータ切
換時に、使用環境設定のために必要なデータをメモリに
保存する(第21図参照)。(d) Emulator switching and memory management In a printer equipped with many emulators, when multiple users use different emulators (application programs), when switching emulators, the previously set usage environment is saved in memory and each In order to enable continuous use by the user, data necessary for setting the usage environment is saved in memory when switching emulators (see FIG. 21).
第13図は、エミュレータをEMUIからEMU2に切
り換え、次に再びEMU]に戻しt:場合のメモリエリ
アの構成を示す。EMUlからEMU2への切り換えに
おいては、EMUIのユーザー二リアUAのフォントロ
ードエリアFLにダウンロードされていた7オントデー
タ(斜線部)を、前述したデータセーブエリアDSに保
存しておく。FIG. 13 shows the configuration of the memory area when the emulator is switched from EMUI to EMU2 and then back to EMU again. When switching from EMU1 to EMU2, the 7-ont data (shaded area) that had been downloaded to the font load area FL of the user's rear UA of the EMUI is saved in the data save area DS described above.
そして、ふたたび現在のエミュレータEMU1に戻った
時に、データセーブエリアに保存していたダウンロード
フォントデータ(斜線部)をフォントロードエリアPL
に復帰させる。これにより、ユーザーは、外部フォント
データを読み込まなくても直ちにアプリケーションプロ
グラムを実行できる。なお、説明を簡単にするため、先
に説明したエミュレータ情報データの保存と復帰につい
ては、図示と説明を省略した。When you return to the current emulator EMU1 again, download the downloaded font data (shaded area) saved in the data save area to the font load area PL.
to be restored. This allows the user to immediately run the application program without having to read external font data. Note that, to simplify the explanation, illustration and explanation of the saving and restoring of the emulator information data described above have been omitted.
このEMU2の場合などでは、ダウンロードされたコー
ドデータ(外部1次データ)があれば元の使用環境に復
帰できるので、エミュレータ切換えの際に、1次データ
のみを保存し、2次データは捨ててもよい。In the case of EMU2, etc., if you have the downloaded code data (external primary data), you can return to the original usage environment, so when switching emulators, you can save only the primary data and discard the secondary data. Good too.
さらに第14図に示すように、エミュレータを切り換え
た時、データセーブエリアDSに空きが出ない様にして
、次のエミュレータで使用するエリアを拡張する。たと
えば前に説明したEMUIからEMU2に切り換える時
にフォントロードエリアFLからデータセーブエリアD
Sに保存する。Furthermore, as shown in FIG. 14, when the emulator is switched, the data save area DS is made free so that the area used by the next emulator is expanded. For example, when switching from EMUI to EMU2 as explained earlier, from font load area FL to data save area D
Save to S.
この時に使用済みエリア(斜線部)のみをデータセーブ
エリアDSとし、その他の余った空間をユーザエリアU
AとシステムエリアSAに割りあてる。これによりメモ
リ利用の効率化が図れる(第22図55554〜555
57.第21図3566参照)。At this time, only the used area (hatched area) is designated as the data save area DS, and the remaining space is designated as the user area U.
A and system area SA. This makes memory use more efficient (Fig. 22, 55554-555).
57. (See Figure 21 3566).
ただし、第15図に示す様にデータセーブエリアDSの
大きさによっては、次のエミュレータで使用するユーザ
ーエリアUAについて、必ずしも通常の大きさが確保で
きない場合もある。たとえば(a)の場合の様に、保存
すべきデータ(斜線部)が少ないためユーザー二リアU
Aが通常の大きさより大きくとれる場合には問題かない
が、(b)の場合の様にデータセーブエリアDSが大き
いためユーザー二リアUAにおいてキャッシュエリア(
FC,CA)やワーキングバッファエリア(WE)の通
常の大きさを確保できない時もある。However, as shown in FIG. 15, depending on the size of the data save area DS, it may not always be possible to secure a normal size for the user area UA to be used in the next emulator. For example, as in case (a), there is little data to be saved (the shaded area), so the user's rear U
There is no problem if A can be larger than the normal size, but as in the case of (b), since the data save area DS is large, the cache area (
There are times when it is not possible to secure the normal size of the FC, CA) or working buffer area (WE).
この場合(第22図55553でNO)、ユーザーによ
るデイツプスイッチ19の設定に従い設定されているフ
ラグgard fdataに対応して、データ保存優先
(gard fdata・1)又はデータ放棄優先(g
ard fdata=o)すなわちエミュレータ切換優
先の処理を行なう(第22図55558参照)。In this case (NO at 55553 in FIG. 22), data preservation priority (GARD fdata 1) or data abandonment priority (GARD fdata.
ard fdata=o), that is, emulator switching is prioritized (see FIG. 22, 55558).
データ保存優先の設定の場合には、第22図55561
−55566に示すように、ユーザーエリアUAにおい
てキャッシュエリア(FC,CA)やワーキングバッフ
ァエリア(WB)の大きさに制限をかける。これらのエ
リアは処理時の効率を上げるためのエリアであるので、
ある程度の制限はプログラムの実行自体には問題がない
。たとえば、フォントキャッシュ(F C)の場合は、
最小限1文字分があればよいし、ハーフトーンキャッシ
ュ(CA)では、最小限ハーフトーンlブロック分があ
ればよい。In case of data saving priority setting, 55561 in Fig. 22
As shown in -55566, the size of the cache area (FC, CA) and working buffer area (WB) is limited in the user area UA. These areas are areas to increase efficiency during processing, so
A certain degree of restriction does not pose a problem in program execution itself. For example, in the case of font cache (FC),
It is sufficient to have at least one character, and in the case of a halftone cache (CA), it is sufficient to have at least one halftone block.
この様に、エミュレータ切換え後に通常のユーザーエリ
アが確保できない時は、使用上に問題のない程度に(A
−Zまでのエリアが確保できないときには、たとえばA
−Nだけとする)、ユーザーエリアUAの大きさに制限
をかける。In this way, when you cannot secure a normal user area after switching emulators, you can use the
- If the area up to Z cannot be secured, for example,
-N only), limits the size of the user area UA.
以上のメモリ配置操作を行なっても最小限のメモリエリ
ア(FC,CA、WB)の大きさが確保できない時は、
さらに、ビットマツプエリアBMの大きさ、すなわち、
印字可能な最大ペーパーサイズにfllllをかけ、大
きなペーパーサイズが選択できない様にする。これによ
り、ユーザーが希望するよりも小さいサイズでの印字し
かできないことも有り得るが、エミュレータの切換は可
能になる。(また逆にEMU2からEMUIに切り換え
る時は、フォントロードエリアFLやビットマツプエリ
アBMの大きさに制限をかければよい。フォントロード
エリアFLは最低でもデータセーブエリアDSに格納さ
れているデータを復帰できるだけの容量があれば印字動
作は行えるので、その大きさにまで制限する。また、上
記最小限のフォントロードエリアが確保できない場合に
は、EMUlからEMU2への切り換え時と同様、ビッ
トマツプエリアBMに制限をかける。)
一方、ユーザーがデータ放棄優先すなわちエミュレータ
切換優先を設定した場合には、データセーブエリアDS
をクリアして外部1次データなどを捨て、エミュレータ
を切り換える。If the minimum memory area (FC, CA, WB) cannot be secured even after performing the above memory allocation operations,
Furthermore, the size of the bitmap area BM, that is,
Multiply the maximum printable paper size by fllll so that large paper sizes cannot be selected. As a result, it may be possible to print in a smaller size than the user desires, but it becomes possible to switch emulators. (Conversely, when switching from EMU2 to EMUI, you can limit the size of the font load area FL and bitmap area BM.The font load area FL can restore at least the data stored in the data save area DS. Printing can be performed as long as there is enough capacity, so limit the size to that size.Also, if the above minimum font load area cannot be secured, the bitmap area BM can be used as is when switching from EMU1 to EMU2. ) On the other hand, if the user sets data abandonment priority, that is, emulator switching priority, the data save area DS
Clear the , discard external primary data, etc., and switch the emulator.
なお、本実施例では、エミュレータ切換優先か否かを通
常のメモリエリアが確保できない場合について選択する
ようにしたが、その他の大きさ、たとえばペーパーサイ
ズが確保できない場合や最小限のメモリが確保できない
場合に選択するようにしてもよい。In this embodiment, whether or not to give priority to emulator switching is selected in cases where a normal memory area cannot be secured, but other sizes such as paper size cannot be secured or the minimum memory cannot be secured. It may be selected depending on the case.
第16図は、エミュレータを切り換える時のデータの移
動の1例について示す。ここに、LLllはEMUIで
ダウンロードされIニフォントデータであり、m2は以
前に退避したEMU2のダウンロードフォントデータで
ある。また、m3は他のエミュレータEMU3でダウン
ロードされた7オントデータである。EMUIからEM
U2へのエミュレータ切り換えの際に、EMUIのダウ
ンロードフォントデータmlはデータセーブエリアDS
へ保存され、EMU2のダウンロードフォントデータm
2はデータセーブエリアDSからシステムエリアSA中
に復帰するが、その他のエミュレータEMU3のための
m3は、EMUIからEMU2への切換に無関係である
ので、データセーブエリアDS内でそのまま保存される
。FIG. 16 shows an example of data movement when switching emulators. Here, LLll is the I-ni font data downloaded by EMUI, and m2 is the previously saved downloaded font data of EMU2. Furthermore, m3 is 7-ont data downloaded by another emulator EMU3. EMUI to EM
When switching the emulator to U2, the EMUI download font data ml is saved in the data save area DS.
Saved to EMU2 download font data m
2 returns to the system area SA from the data save area DS, but m3 for the other emulator EMU3 is unrelated to the switching from EMUI to EMU2, and is therefore saved as is in the data save area DS.
ここに、Mで示す部分がユーザーエリアUAとして利用
できるエリアであるので、ビットマツプエリアBM、7
オントキヤツンユFC,ハーフトーンなどのキャッシュ
CA、ワーキングバッファWBをこのエリアに割りふる
。Here, the part indicated by M is the area that can be used as the user area UA, so the bitmap area BM, 7
Ontokiya FC, cache CA such as halftone, and working buffer WB are allocated to this area.
(e)プリント制御のフロー 第17図は、CPUIIのメイン70−を示す。(e) Print control flow FIG. 17 shows the CPU II main 70-.
電源をONにすると、まずRAM17のパラメータエリ
アSAa内のパラメーターを初期化する(ステップSl
(以下「ステップ」を略する))。When the power is turned on, first the parameters in the parameter area SAa of the RAM 17 are initialized (step Sl
(hereinafter abbreviated as "step").
次に、受信バッファS Ac、ビットマツプエリアBM
、フォントキャッシュエリアFC,キャッシュエリアC
A、ワーキングバッファWB、パケットバッファSAb
などのエリアをクリアする(S2)。また、デフォルト
値の設定を確認するためにデイツプスイッチ19の設定
をチエツクする(S3)。この設定値は、パラメータエ
リアSAaの中に情報として保存される。Next, receive buffer S Ac, bit map area BM
, font cache area FC, cache area C
A, working buffer WB, packet buffer SAb
Clear areas such as (S2). Furthermore, the setting of the dip switch 19 is checked to confirm the default value setting (S3). This set value is stored as information in the parameter area SAa.
メイン70−は、その後、受信処理プロセス(S5)、
描画プロセス(36)、エンジン処理プロセス(S7)
および操作部処理プロセス(S8)を繰り返し行なう。The main 70- then performs a reception processing process (S5),
Drawing process (36), engine processing process (S7)
and the operation unit processing process (S8) are repeated.
ここに、受信処理プロセス(S5)は、ホストから送ら
れてくる印字データに必要な情報を付加して、内部で管
理するフォーマントに直す処理を行なう。Here, the reception processing process (S5) performs a process of adding necessary information to the print data sent from the host and converting it into a formant managed internally.
描画処理プロセス(S6)は、受信処理プロセス(S5
)で作られた7オーマツトをさらに解析し、ビットマツ
プエリアBM上に実際に印字されるイメージとして描画
してゆく。The drawing processing process (S6) is similar to the receiving processing process (S5).
) is further analyzed and drawn as an image to be actually printed on the bitmap area BM.
エンジン処理プロセス(S7)は、プリントエンジン4
の状態を監視するとともに実際のプリント動作を行なう
。これはすべてのエミュレータで共通の処理となる。The engine processing process (S7) is the print engine 4
The printer monitors the status of the printer and performs the actual printing operation. This is a common process for all emulators.
操作部処理プロセス(S8)は、操作パネル44で設定
される内容のチエツクおよび表示などを行なう。これは
すべてのエミュレータで共通の処理となる。The operation unit processing process (S8) checks and displays the contents set on the operation panel 44. This is a common process for all emulators.
data fullフラグは、エミュレータ切換時にデ
ータ保存を優先する設定においてメモリが確保できなか
ったことを示すフラグである(第22図55567参照
)。詳しくは後述するが、このフラグが立っている時は
(S4でYES)、処理が行なえないため、受信処理プ
ロセス(S5)と描画処理プロセス(S6)は実行しな
い。しかし、エンジン処理プロセス(S7)と操作部処
理プロセス(S8)は、その状態を常に監視しなければ
いけないので、その処理を実行する。ただしこの時、エ
ンジン処理プロセス(S7)と操作部処理プロセス(S
8)が使用するパラメータエリアSAa内の情報は不用
意に変更されるとプログラムが暴走する可能性があるの
で、そのエリアは変更されてはならない。The data full flag is a flag indicating that memory could not be secured in settings that give priority to data storage when switching emulators (see 55567 in FIG. 22). As will be described in detail later, when this flag is set (YES in S4), no processing can be performed, so the reception processing process (S5) and drawing processing process (S6) are not executed. However, the engine processing process (S7) and the operation unit processing process (S8) must constantly monitor their states, so these processes are executed. However, at this time, the engine processing process (S7) and the operation unit processing process (S7)
If the information in the parameter area SAa used by 8) is changed carelessly, the program may run out of control, so that area must not be changed.
第18図は、受信割り込みの処理のフローを示す。ホス
トとの通信を描画などの処理と非同期で行なうために、
ホストから受信があった時点で割り込みがかかり、受信
割込みの処理を行なう。すなわち、外部インターフェー
ス15からデータを読み込み(S9])、その内容をR
−バッファSACに出力する(S92)。そして、リタ
ーンする。FIG. 18 shows the flow of reception interrupt processing. In order to communicate with the host asynchronously with processing such as drawing,
An interrupt is generated when reception is received from the host, and the reception interrupt is processed. That is, data is read from the external interface 15 (S9) and its contents are
- Output to buffer SAC (S92). And then return.
i!19図は、デイツプスイッチ19の設定を読み込む
70−(第17図53)を示す。まずデイツプスイッチ
19の設定を確認する(531)。次に、その設定に従
い、RAM17のパラメータエリアSAaに値をセット
し、リターンする。たとえば、最初にどのエミュレータ
を起動するか調べ(S32)、起動するエミュレータの
タイプをcurr emuにセットする(S32−1−
532−n)。ニーこに、curr emuはパラメー
タエリアSAa内のあるアドレスにある。まI;、ダウ
ンロードデータ(外部1次データ)を保存するためにメ
モリを使い切る時に、ダウンロードデータを捨てるがど
うかの設定をチエツクする(S33)。ユーザーがデー
タを捨てるデータ放棄優先すなわちエミュレータ切換優
先の設定をした時には(S33でYES) 、gard
fdataフラグを0としてセットしく534)、ユー
ザーが、データを捨てないで、キャッシュなどのエリア
を減少、もしくはペーパーサイズを減少させて使用する
データ保存優先の設定をした時は、gardJdata
を1としてセットする(S35)。ここに、gardJ
dataはパラメータエリアSAc内のあるアドレスに
ある。この様にデイツプスイッチI9で設定した各々の
値は、具体的にどの様な設定にするかチエツクされ、パ
ラメータに値をセットする形で記憶される。そして、リ
ターンする。i! FIG. 19 shows 70- (FIG. 17 53) for reading the settings of the dip switch 19. First, the setting of the dip switch 19 is confirmed (531). Next, according to the settings, a value is set in the parameter area SAa of the RAM 17, and the process returns. For example, check which emulator to start first (S32), and set the type of emulator to start to curr emu (S32-1-
532-n). Specifically, curr emu is located at a certain address within parameter area SAa. Also, when the memory is used up to save the downloaded data (external primary data), check the setting to discard the downloaded data (S33). When the user sets data abandonment priority, that is, emulator switching priority (YES in S33), gard
Set the fdata flag to 0 (534), and when the user sets data preservation priority to use by reducing cache area or paper size without discarding data, gardJdata
is set to 1 (S35). Here, gardJ
data is located at a certain address within the parameter area SAc. In this way, each value set with the dip switch I9 is checked to determine the specific setting, and is stored in the form of setting the value to a parameter. And then return.
第20図は、受信処理プロセス(第13図55)のフロ
ーである。受信割り込み(第14図)でR−バッファエ
リアSAcにデータが格納されるが、このデータの有無
をチエツクしく551)、もしデータがあったら(S5
1でYES)R−バッファエリアSAcからデータを取
り出しく552)、無がったら(551でNo)この処
理を終了する。FIG. 20 is a flowchart of the reception processing process (55 in FIG. 13). Data is stored in the R-buffer area SAc by a reception interrupt (Fig. 14), but the presence or absence of this data should be checked (551), and if there is data (S5
1: YES) Retrieve data from the R-buffer area SAc 552), and if there is no more data (551: No), this process ends.
取り出したデータは、まず、エミュレータ切換えコマン
ドであるかチエツクされる(S53)。もしそうだっt
;ら(S53でYES)、次に、どのエミュレータ、タ
イプに切り換えるかをチエツクしく554)、各々のタ
イプに従ってcurr emuに値をセットしくS 5
4−1 ”554−n)、そして、現在ノエミュレータ
の動作情報を保存するためにエミュレータ切換処理を行
なう(S55、第21図参照)。The retrieved data is first checked to see if it is an emulator switching command (S53). If so
(S53: YES), then check which emulator and type to switch to (554), and set the value to curr emu according to each type.S5
4-1"554-n), and emulator switching processing is performed to save the operation information of the current emulator (S55, see FIG. 21).
次lこ、以前にcurr ernuに現在のエミュレー
タが何であるか設定しであるので(第19図参照)、そ
の値をチエツクしくs 56)、設定されたタイプのエ
ミュレータに対応した受信データ処理を行なう(S56
−1=356−n)。ここでは、受信したデータから内
部で管理するデータの書式に変換するのが主な処理であ
る。なお、内部で管理するデータの書式は、前に述べた
様にエミュレータごとに異なる。以上の処理が終わった
あと、リターンする。Next, we have previously set the current emulator in currernu (see Figure 19), so check its value. Do it (S56
-1=356-n). The main process here is to convert the received data into an internally managed data format. Note that the format of internally managed data differs depending on the emulator, as described above. After completing the above processing, return.
第21[mは、エミュレータ切換処理(第19図555
)の70−を示す。現在使用しているエミュレータは、
今後また使用する可能性があるので、現在の動作情報を
退避して保存しておく必要がある。このため、データセ
ーブエリアDS内のエミュレータ情報保存エリアDSb
にまとめて保存しておく。動作情報はパラメータエリア
SAc内にあるユミュレータ情報管理ブロック5Aal
にまとめられているので、実際にはこのエリアの内容を
そのままコピーする処理になる(5551)。(パラメ
ーター内部で保管できる場合は、そのままでよい。)
次に、データセーブエリアDSで使用しているデータ長
さを調べる(S 552)。これは、データセーブエリ
ア管理ブロック5Aa3内で管理されているので、ブロ
ック内を参照することにより調べられる。21st [m is emulator switching processing (555 in Fig. 19)
) shows 70-. The emulator I'm currently using is
Since it may be used again in the future, it is necessary to save and save the current operating information. For this reason, the emulator information storage area DSb in the data save area DS
Save them together. Operation information is stored in the emulator information management block 5Aal in the parameter area SAc.
, so the actual process is to copy the contents of this area as is (5551). (If it can be stored within the parameter, it can be left as is.) Next, the length of the data used in the data save area DS is checked (S552). Since this is managed within the data save area management block 5Aa3, it can be checked by referring to the inside of the block.
次ノこ、データを復帰し、保存するため、復帰するデー
タと保存するデータの両方のデータ長をそれぞれ求める
(S553,5554)。復帰する時は先はどと同じく
、データセーブエリアDSの管3iJ 7” aツク5
Aa3を調べ、保存データはダウンロードデータ管理ブ
ロック5Aa2を調べる。保存する時は必ずしも、ダウ
ンロードデータに関するすべての情報について保存する
わけではなく、コードフォントデータの様な基になる1
次データのみを保存する。2次的に作られたキャッシュ
内のデータなどはすべて無視される。Next, in order to restore and save the data, the data lengths of both the data to be restored and the data to be saved are determined, respectively (S553, 5554). When returning, just as before, open the data save area DS tube 3iJ 7”a tsuk 5
Aa3 is checked, and download data management block 5Aa2 is checked for saved data. When saving, not all information related to the downloaded data is necessarily saved, but the base 1 such as code font data is saved.
Save only the following data. All data in secondary caches is ignored.
実際にエミュレータを起動する前に内部で使用するバッ
ファなどのエリアのアドレスをどこに置くか決める必要
があるので、これを決定する(S555.822図参照
)。:、Z−?’ハS 552.5553.5554で
求めた値を利用して計算を行なう。Before actually starting the emulator, it is necessary to decide where to place the addresses of areas such as buffers used internally, so this is determined (see figure S555.822). :, Z-? 'HaS Perform calculations using the values found in 552.5553.5554.
メモリ配置が決まったので、実際にデータの復帰、保存
を行なう。次に起動するエミュレータに関する保存情報
が、以前にデータセーブエリア管理フロック5Aa3に
書き込まれたがどうが調べ(S556)、データが保存
されていたら(S 556でYES)、先はどのメモリ
配置処理(s 555)によりフォントロードエリアF
Lが決まったので、データセーブ管理ブロックS Aa
3を調ベコピーすべき元のデータのアドレスを決める(
S 557)。Now that the memory layout has been decided, we will actually restore and save the data. It is determined whether save information regarding the emulator to be started next was previously written to the data save area management block 5Aa3 (S556), and if the data has been saved (YES in S556), which memory allocation process ( s 555), the font load area F
Now that L has been determined, data save management block S Aa
3. Determine the address of the original data to be copied (
S 557).
そしで保存したデータの復帰を行なう(5558)。The saved data is then restored (5558).
保存時も、上述の復帰の時と同じ様に、保存するデータ
があるかどうか調べ(5561)、コピーするアドレス
を調べ(S562)、データの保存を行なう(s536
)。When saving, in the same way as when returning above, check whether there is data to save (5561), check the address to copy (S562), and save the data (s536).
).
エミュレータを切り換えると、ビットマツプエリアBM
のデータやテーブルエリアSAb(EMU2の時)やP
−バッファエミュレータSAb(EMUlの時)のデー
タなどは、必要なくなるのでクリアする(S564)。When you switch emulators, the bitmap area BM
data and table area SAb (for EMU2) and P
- Clear the data in the buffer emulator SAb (when in EMUl) because it is no longer needed (S564).
ただし、R−バッファSACのデータは、次の処理に使
うのでクリアしない。However, the data in the R-buffer SAC is not cleared because it will be used for the next process.
そして、エミュレータの情報をエミュレータ情報保存エ
リアDSbから復帰する(s 565)。エミュレータ
情報保存エリアDSbには、あらかじめ初めてエミュレ
ータを使うためのデフォルト値が入れられている。Then, the emulator information is restored from the emulator information storage area DSb (s565). Default values for using the emulator for the first time are stored in the emulator information storage area DSb in advance.
以上の処理でエミュレータの情報の入れ換え(保存と復
帰)が終ったわけであるが、メモリの一部に空きが出る
場合がある。そのため最後にデータを移動して空きをつ
める<s 566)。また以前使用したデータをそのま
ま使う時に、うまくアドレスが合わなくなった時もこの
時に調整する。Although the above process has completed exchanging (saving and restoring) the information in the emulator, there may be some free space in the memory. Therefore, the data is finally moved to fill up the space <s 566). Also, when using previously used data as is, if the addresses do not match properly, make adjustments at this time.
第22図は、メモリ配置を決める処理(第22図555
5)の70−を示す。これはEMUIからEMU2にエ
ミュレータを切り換える場合について書いであるが、他
のエミュレータに切り換える時もほぼ同じである。ユー
ザー二リアUAのFC,CA、WBのサイズを変化され
ているが、EMU2からEMUIに切り換える時にはフ
ォントロードエリアFLがこれに対応して変化すること
になる。FIG. 22 shows the process of determining memory placement (555 in FIG. 22).
5) 70- is shown. This is written about the case of switching the emulator from EMUI to EMU2, but it is almost the same when switching to other emulators. The sizes of the FC, CA, and WB of the user's rear UA have been changed, and when switching from EMU2 to EMUI, the font load area FL will change accordingly.
まず、ユーザーエリアUAとして使用できるエリアのサ
イズを求める(S5551)。このサイズは、以前に求
めたデータセーブエリアDSの使用量(S552)と復
帰するデータ長(S553)から計算できる。システム
エリアSAの使用量はエミュレータごとにサイズが決め
られているので、これらの余りがユーザーエリアUAと
して使用できるエリアとなる。First, the size of the area that can be used as the user area UA is determined (S5551). This size can be calculated from the previously determined usage amount of the data save area DS (S552) and the data length to be restored (S553). Since the usage amount of the system area SA is determined for each emulator, the remaining amount becomes an area that can be used as the user area UA.
次に、ユーザーエリア内部に割り当てられる各エリア(
たとえばEMU2の場合にはビットマツプエリアBM、
フォントキャッシュエリアFC,その他のキャッシュエ
リアCA、およびワーキングバッファWB)の大きさを
調べる(s5552)。Next, each area allocated inside the user area (
For example, in the case of EMU2, bitmap area BM,
The sizes of the font cache area FC, other cache areas CA, and working buffer WB are checked (s5552).
これはパラメータエリアSAa内に情報として収められ
ているので、これを調べればよい。This is stored as information in the parameter area SAa, so just check it.
次に、これと現在のユーザーエリアUAのサイズを比較
してサイズが確保できるかをチエツクする(s5553
)。入る場合には(S 5553でYES)、さらにユ
ーザー二リアUAで余るサイズを求め(S5554)、
各エリアに割りふるために各エリア(FC,CA、WB
)で使用している割合でサイズを分配する(S5555
)。(ただし、サイズを大きくしても意味のないもの、
たとえばビットマツプエリアBMや、一定値以上のデー
タを利用しないエリアなどには、割りふらない。たとえ
ばキャッシュエリアであっても、あるセルの大きさ以上
のグラフィックデータは扱えない様な場合であれば、意
味がないのでエリアを増やさない。)この後、各エリア
の値(サイズ、アドレス)を更新する訳であるが、各エ
リアは通常、ワード単位もしくはブロック単位に管理さ
れていることが多いので、端数などは切りすてるなどの
処理を行ない調整する(S5556)。これで、サイズ
が決まったので、これよりアドレスを割りふる(S 5
557)。そしてリターンする。Next, compare this with the current user area UA size to check whether the size can be secured (s5553
). If it does (S5553: YES), the remaining size is determined by the user's rear UA (S5554),
To allocate each area (FC, CA, WB)
) (S5555
). (However, there are cases where there is no point in increasing the size,
For example, it is not allocated to the bitmap area BM or areas where data above a certain value is not used. For example, even if it is a cache area, if graphic data larger than a certain cell size cannot be handled, there is no point in increasing the area. ) After this, the values (size, address) of each area are updated, but since each area is usually managed in units of words or blocks, it is necessary to round down the fractions etc. and make adjustments (S5556). Now that the size has been determined, we can allocate addresses from this (S 5
557). and return.
しかし、各エリアFC,CA、WBの通常のサイズが確
保できない時(S 5553でNo)には、先はどのも
しくは後述する様な、デイツプスイッチ19の設定もし
くは操作パネル44の設定でセットされるgard f
dataフラグの値を参照する(55558)。(g2
rd fdataはバラメーター二リアSAaの内部の
あるアドレスにある。)
もし通常のエリアのサイズが確保できないときにダウン
ロードデータを捨てるユーザーの指示(gard fd
ata= O)の時には(S 5558でYES)、エ
ミュレータ切換を優先するためデータセーブエリアDS
の中身をクリア(放棄)L(S5559)、ユーザー二
リアUAの内部にセットされる各エリアのアドレスを計
算する。これはS 5554〜55557の手順と同じ
手順になる。However, when the normal size of each area FC, CA, and WB cannot be secured (No in S5553), the settings of the dip switch 19 or the operation panel 44 can be set as described below. gard f
The value of the data flag is referenced (55558). (g2
rd fdata is located at a certain address inside the parameter area SAa. ) User instructions for discarding downloaded data if normal area size cannot be secured (GARD FD
When ata=O) (YES in S5558), the data save area DS is saved to give priority to emulator switching.
The contents of are cleared (abandoned) L (S5559), and the addresses of each area set inside the user's rear UA are calculated. This is the same procedure as steps S5554 to S55557.
一方、データ保存(使用環境保存)を優先するためデー
タを捨てるのを禁止している場合には(gard fd
ata −I XS 5558でNo)、FC,CA。On the other hand, if discarding data is prohibited in order to prioritize data preservation (preservation of usage environment) (GARD FD
ata-I XS 5558), FC, CA.
WBなどのエリアで最低でも必要とするサイズをパラメ
ーター二リアSAaから調べる(55561)。そして
、このデータを使ってユーザーエリアUAに入りきるか
チエツクしく55562)、入る場合には(YES)、
55554〜55557の処理により、アドレスを割り
ふる。Check the minimum required size in areas such as WB from the parameter Naria SAa (55561). Then, check if you can use this data to enter the user area UA (55562), and if so (YES),
Addresses are allocated through the processes 55554 to 55557.
さらに、ユーザー二リアUAに入らない場合では(S
5562テNo)、そノサイズを求メ(S5563)、
ビットマツプエリアBMの中からそのサイズを引<(S
5564)。この時、最低のペーパーサイズが確保でき
るかチエツクしく55565)、できるなら、確保でき
る最大のペーパー長を求める(S5566)。たとえば
、リーガルサイズのペーパーが今まで使用できたとする
。この時に、上の様な状態になった時は、レターサイズ
、A5サイズなどのペーパーまでしか選択できなくする
(リーガルサイズ〉レターサイズ〉A5)。Furthermore, if the user does not enter UA (S
5562 Te No), request size (S5563),
Subtract the size from the bitmap area BM<(S
5564). At this time, check whether the minimum paper size can be secured (55565), and if possible, find the maximum paper length that can be secured (S5566). For example, let's say that legal size paper has been available up until now. At this time, if the above situation occurs, you can only select paper sizes such as letter size and A5 size (legal size>letter size>A5).
そして、55554〜55557の手順でアドレスを割
りふる。Then, addresses are allocated according to the steps 55554 to 55557.
以上の処理をしてもメモリサイズが確保できない時は(
S 5565でNo)、データの保存ができないので操
作部44にエラー表示をするためにdata full
という変数を1にする(S5567)。そして、リター
ンする。If the memory size cannot be secured even after performing the above processing (
S5565: No), data cannot be saved, so data full is displayed to display an error on the operation panel 44.
The variable is set to 1 (S5567). And then return.
第23図は、描画処理プロセス(第13図56)のフロ
ーを示す。まず、現在のエミュレータをチエ/りしく5
61)、そのタイプに対応した描画処理を行なう(S6
2−1”562−n)。これはピントマツプエリアBM
上にイメージを描画する処理であり、受信処理で作られ
た内部データから画像データを作り描画を行なう。そし
て、リターンする。FIG. 23 shows the flow of the drawing process (56 in FIG. 13). First, check your current emulator
61), performs drawing processing corresponding to the type (S6
2-1"562-n). This is the focus map area BM
This is the process of drawing an image on top of the image, and image data is created from the internal data created in the reception process and then drawn. And then return.
第24図(a) 、 (b)は、操作部処理プロセス(
第13図58)のフローを示す。基本的には操作パネル
44のスイッチをチエツクして、内部のパラメーター(
パラメータエリア5Aa)にその情報をセットし、それ
に対応した表示を行なう。(今回はループ内で定期的に
実行される様な場合を説明したがこの時間が確保できな
い時には、タイマー割り込みによってこの処理がコール
される様にしてもよい。)
今回の説明に対応するパラメータをセットする手順が3
81〜S89である。まず、スイッチが押されたかをチ
エツクする(581)。押されたかどうかの情報は操作
パネルインターフェース13を通じて知らされる。押さ
れていない場合には内部パラメータの変更(881〜5
89)を行なわず、次の処理(5891こ移る。押され
た場合には(S81でYES)、スイッチの状態を読み
込む(382)。そして、データ保護の設定が変更され
たら(S83でYES)、その内容に従い(S84)、
前述したデータを捨てるか否か即ちエミュレータ切換か
使用環境保存かを示すgard fdataのパラメー
タを変更する(585.586)。FIGS. 24(a) and 24(b) show the operation unit processing process (
Fig. 13 shows the flow of 58). Basically, check the switches on the operation panel 44 and set the internal parameters (
The information is set in the parameter area 5Aa) and displayed accordingly. (This time we explained a case where it is executed periodically within a loop, but if this time cannot be secured, this process may be called by a timer interrupt.) Parameters corresponding to this explanation There are 3 steps to set
81 to S89. First, it is checked whether the switch has been pressed (581). Information as to whether the button has been pressed is notified through the operation panel interface 13. If not pressed, change internal parameters (881-5
89) and moves on to the next process (5891 steps). If pressed (YES in S81), the state of the switch is read (382). Then, if the data protection settings have been changed (YES in S83) , according to its contents (S84),
The gard fdata parameter indicating whether to discard the aforementioned data, ie, to switch emulators or to save the usage environment, is changed (585 and 586).
次に、エミュレータを操作パネル44から切り換えた時
には(S87でYES)、どのエミュレータを起動する
かを調べ(S 88) 、curr emuのパラメー
タにそのタイプをセットしく589−1〜589−n)
、前述したエミュレータ切換処理(S55)を行う(5
90)。Next, when switching the emulator from the operation panel 44 (S87: YES), check which emulator to start (S88) and set the type in the curr emu parameter (589-1 to 589-n).
, performs the emulator switching process (S55) described above (5
90).
次に、先はどメモリ配置処理(S555)においてda
ta fullが1にセットされていた場合にはぐS9
1’でYES)、第2図に示した操作パネルのPr1n
ter 5tatus表示31にエラー表示を行なう(
S92’)。次に復帰スイッチ(第3図のResetス
イッチ37)が押されたかをチエツクし、押された場合
には(S93でYES)、データセーブエリアDS内の
データを捨て(S94)、data fullをOにし
く595)、アドレスをもう一度決めるメモリ配置処理
(S555)を行う(S96)。Next, in the memory allocation process (S555), da
S9 if ta full is set to 1.
1': YES), Pr1n on the operation panel shown in Figure 2
Display an error on the ter 5 status display 31 (
S92'). Next, it checks whether the reset switch (Reset switch 37 in Fig. 3) has been pressed, and if it has been pressed (YES in S93), the data in the data save area DS is discarded (S94) and the data full is turned off. 595), and performs memory allocation processing (S555) to determine the address again (S96).
最後に、操作パネル44の表示を制御する表示処理(S
97)を行ない、リターンする。Finally, display processing (S
97) and return.
以上の様にユーザーがあらかじめ、ダウンロードフォン
トを優先して残すか、エミュレータの切換えを優先する
か、あらかじめ、デイツプスイッチ19で設定しておく
ことができる。これにより複数のユーザーで使用した場
合に、自分の使用環境がむやみに破壊されるのを防ぐこ
とができる。As described above, the user can use the dip switch 19 to set in advance whether to give priority to downloaded fonts or to give priority to switching emulators. This prevents your environment from being unnecessarily destroyed when multiple users use it.
また、他人の使用環境を破壊するか否かを心配せずに使
用できる。Moreover, it can be used without worrying about whether or not it will destroy the usage environment of others.
以上の説明ではシステムエリアSAのサイズが変化しな
い場合であったが、エミュレータを切り換えた時に、シ
ステムエリアSAの大きさが変化してもよい、この場合
はユーザーエリアのトップアドレスが変化する。In the above explanation, the size of the system area SA does not change, but when switching emulators, the size of the system area SA may change. In this case, the top address of the user area changes.
また、フォントROM内に格納されている1次データの
コード7オントデータからパターン7tントデータヘ変
換される途中の中間フォントデータが生成される様な場
合には、この中間データも復元可能な2次データとして
扱ってもよい。In addition, if intermediate font data is generated during the conversion from code 7 ont data of the primary data stored in the font ROM to pattern 7 ont data, this intermediate data can also be restored as secondary data. It may be treated as
また、以上の説明ではパターンデータとコードフォント
データを互いのエミュレータが利用できない場合につい
て説明したが、格納されたデータが同じタイプであって
も(を二とえばパターンデータであっても)、どちらか
が使えなければ同様である。Also, in the above explanation, we have explained the case where pattern data and code font data cannot be used by each other's emulators, but even if the stored data is of the same type (for example, pattern data), either The same thing applies if you can't use it.
また、データを保存する時には、データを圧縮して保存
してもよい。Furthermore, when saving data, the data may be compressed and saved.
また、本実施例では、設定はデイツプスイッチ19から
設定する様に説明したが、デフォルト値を操作パネル4
4であらかじめ設定しておける様にしておいてもよい。In addition, in this embodiment, the explanation was made so that the settings are made from the dip switch 19, but the default values can be set from the operation panel 4.
4 may be set in advance.
また、本実施例では、制限をかけダウンロードフォント
を消さない様に設定した時に、メモリが確保できない時
にエラーを表示し、解析データをすべて捨ててしまうが
、データを捨てるか、ダウンロードデータを捨てるかを
この時点で指示できる様にしてもよい。In addition, in this example, when setting restrictions so that the downloaded fonts are not deleted, an error is displayed when memory cannot be secured and all analysis data is discarded. It may also be possible to specify this at this point.
(発明の効果)
複数のユーザーが異なるアプリケーションで異なるエミ
ュレータを切り換えて使用する場合に、切り換え時に第
2記憶エリアに最低限の使用環境のデータを保存してお
くことにより、このデータを破壊しない。このため、元
のエミュレータに切り換えても保存データを復帰して処
理が早く行える。また、このデータ保存により、他のユ
ーザーを意識せずにプリンタを使用できる。(Effects of the Invention) When a plurality of users switch and use different emulators with different applications, this data is not destroyed by storing the minimum usage environment data in a second storage area at the time of switching. Therefore, even if you switch to the original emulator, the saved data can be restored and processing can be performed quickly. Also, by saving this data, you can use the printer without being aware of other users.
エミュレータで使用する記憶エリアとデータ保存用記憶
エリアとを共通化できるので、一部の機能に制限はでる
が、全体のメモリ容量を少なくできる。Since the storage area used by the emulator and the storage area for data storage can be shared, the overall memory capacity can be reduced, although some functions are limited.
第1図は、レーザプリンタの斜視図である。
第2図は、操作パネルの正面図である。
第3図は、画像データ処理部のブロック図である。
第4図は、RAMのメモリ構成を示す図である。
第5図は、EMUIにおけるメモリ配置を示す図である
。
第6図は、パラメータエリアの構成を示す図である。
第7図は、データセーブエリアの構成を示す図である。
第8図は、ユーザーエリアの構成を示す図である。
第9図は、ユーザーエリアの使用状況を示す図である。
第10図は、7オントROMの構成を示す図である。
第11図は、EMU2におけるメモリ構成の一部を示す
図である。
第12図は、テーブルエリアの構成を示す図である。
第13図は、データの保存と復帰を示す図である。
第14図は、データの保存と復帰を示す図である。
第15図は、通常の保存のためのメモリが確保できない
場合のデータ保存を示す図である。
第16図は、エミュレータ切換時のデータ移動の図であ
る。
第17図は、画像データ処理のメインフローチャ−トの
図である。
第18図は、受信割り込みの処理のフローチャートであ
る。
第19図は、デイツプスイッチ設定読込処理のフローチ
ャートである。
第20図は、受信処理の70−チャートである。
第21図は、エミュレータ切換処理の70−チャートで
ある。
1g22図は、メモリ配置処理のフローチャートである
。
第23図は、描画処理のフローチャートである。
第24図(a)、(b)は、操作部処理のフローチャー
トである。
IA、IB、IC・・・ホスト、
3・・・プリンタコントローラ、
4・・・プリンタエンジン、
lO・・・プリンタシステム、
11・・・画像データ処理部のCPU、17・・・RA
M。
19・・・デイツプスイッチ、
41・・・エミュレータ切換キー
44・・・操作パネル。
特許出願人 ミノルタカメラ株式会社
代 理 人 弁理士 青 山 葆 ほか2名第1図
第2図
第4図
第5図
@9図
第11図
第17図
第18図
第23図
第24図ia)
第24図(b)FIG. 1 is a perspective view of a laser printer. FIG. 2 is a front view of the operation panel. FIG. 3 is a block diagram of the image data processing section. FIG. 4 is a diagram showing the memory configuration of the RAM. FIG. 5 is a diagram showing the memory arrangement in EMUI. FIG. 6 is a diagram showing the configuration of the parameter area. FIG. 7 is a diagram showing the configuration of the data save area. FIG. 8 is a diagram showing the configuration of the user area. FIG. 9 is a diagram showing the usage status of the user area. FIG. 10 is a diagram showing the configuration of a 7-ont ROM. FIG. 11 is a diagram showing a part of the memory configuration in the EMU 2. As shown in FIG. FIG. 12 is a diagram showing the configuration of the table area. FIG. 13 is a diagram showing data storage and restoration. FIG. 14 is a diagram showing data storage and restoration. FIG. 15 is a diagram showing data storage when memory for normal storage cannot be secured. FIG. 16 is a diagram of data movement when switching emulators. FIG. 17 is a main flowchart of image data processing. FIG. 18 is a flowchart of reception interrupt processing. FIG. 19 is a flowchart of the dip switch setting reading process. FIG. 20 is a 70-chart of reception processing. FIG. 21 is a 70-chart of emulator switching processing. Figure 1g22 is a flowchart of memory allocation processing. FIG. 23 is a flowchart of the drawing process. FIGS. 24(a) and 24(b) are flowcharts of operation unit processing. IA, IB, IC...Host, 3...Printer controller, 4...Printer engine, IO...Printer system, 11...CPU of image data processing section, 17...RA
M. 19...Dip switch, 41...Emulator switching key 44...Operation panel. Patent Applicant Minolta Camera Co., Ltd. Representative Patent Attorney Aoyama Aoyama and 2 others Figure 1 Figure 2 Figure 4 Figure 5 @ Figure 9 Figure 11 Figure 17 Figure 18 Figure 23 Figure 24 Figure ia) Figure 24(b)
Claims (1)
ミュレータを備えたプリンタにおいて、使用環境を設定
するデータの記憶エリアやワークエリアとしてエミュレ
ータが処理の実行においてアクセスする第1記憶エリア
とデータ保存のための第2記憶エリアとから構成される
記憶手段と、記憶手段の使用状況を判定する判定手段と
、エミュレータ切換の指示を受け取るデータ入力手段と
、 データ入力手段からエミュレータ切換指示を受け取ると
、指示されたエミュレータに切換える一方、第1記憶エ
リアに記憶したデータの中の元のエミュレータの使用環
境を設定するデータを第2記憶エリアに保存し、切り換
えられたエミュレータのための保存データが第2記憶エ
リアに記憶してあった場合にその保存データを第1記憶
エリアに復帰し、判定手段が新しく指示されたエミュレ
ータの実行に必要な通常の大きさのエリアを確保できな
いと判定すると、そのエミュレータの実行条件を記憶手
段のエリア構成について制限するエミュレータ切換手段
を備えたことを特徴とするプリンタ制御装置。(1) In a printer equipped with multiple emulators that each process different protocols, the first storage area is used as a storage area or work area for data that sets the usage environment, and the first storage area is accessed by the emulator when executing processing. a second storage area; a determination means for determining the usage status of the storage means; a data input means for receiving an emulator switching instruction; and upon receiving the emulator switching instruction from the data input means, While switching to the emulator, the data that sets the usage environment of the original emulator among the data stored in the first storage area is saved in the second storage area, and the saved data for the switched emulator is stored in the second storage area. If the stored data has been stored, the saved data is restored to the first storage area, and if the determining means determines that it is not possible to secure an area of the normal size necessary for executing the newly specified emulator, the execution conditions of that emulator are restored. What is claimed is: 1. A printer control device comprising emulator switching means for restricting the area configuration of a storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2155859A JPH0452728A (en) | 1990-06-14 | 1990-06-14 | Printer controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2155859A JPH0452728A (en) | 1990-06-14 | 1990-06-14 | Printer controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0452728A true JPH0452728A (en) | 1992-02-20 |
Family
ID=15615067
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2155859A Pending JPH0452728A (en) | 1990-06-14 | 1990-06-14 | Printer controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0452728A (en) |
-
1990
- 1990-06-14 JP JP2155859A patent/JPH0452728A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6111654A (en) | Method and apparatus for replacing or modifying a postscript built-in font in a printer | |
| US6052202A (en) | Output device, information processing apparatus memory control method and memory medium | |
| US7280245B2 (en) | Data processing apparatus adaptable to plural environments and data processing method | |
| JP2006259986A (en) | Icon control program, computer, and method | |
| JPH1120272A (en) | Print control apparatus and method | |
| JP3907362B2 (en) | Printing control method and apparatus, and printing system | |
| JPH1063448A (en) | Method and system for memory allocation | |
| JPH0452728A (en) | Printer controller | |
| JP4612231B2 (en) | Printing system | |
| US6894795B1 (en) | Method and apparatus for enhancing the perceptual performance of a post-printing application environment | |
| JP3024170B2 (en) | Printer control device | |
| JPH0452727A (en) | Printer controller | |
| JP3013577B2 (en) | Memory management device and printer with memory management device | |
| JP3472064B2 (en) | Printing equipment | |
| JP3471870B2 (en) | Printing apparatus and processing method | |
| JP2006235933A (en) | Image processing apparatus and print job generation apparatus | |
| JPH05270055A (en) | Image recording method and device, and information processing method | |
| JP3432141B2 (en) | Editing apparatus, editing method, and storage medium storing editing control program | |
| JP2008195041A (en) | Image forming apparatus, information processing method, and information processing program | |
| JP3241767B2 (en) | Image processing device | |
| JPH09146521A (en) | Output control device and method | |
| JPH10305631A (en) | Print control apparatus and method | |
| JP2792216B2 (en) | Printer device | |
| JP2006155307A (en) | Image processing system for load balancing | |
| JP2004030260A (en) | Information processing device, printing device, and printing system |