JPH0553739A - Method and device for selecting emulation - Google Patents

Method and device for selecting emulation

Info

Publication number
JPH0553739A
JPH0553739A JP3240267A JP24026791A JPH0553739A JP H0553739 A JPH0553739 A JP H0553739A JP 3240267 A JP3240267 A JP 3240267A JP 24026791 A JP24026791 A JP 24026791A JP H0553739 A JPH0553739 A JP H0553739A
Authority
JP
Japan
Prior art keywords
emulation
emulations
data
host computer
printer
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
JP3240267A
Other languages
Japanese (ja)
Inventor
Masashi Odawara
昌司 小田原
Manabu Uehara
学 上原
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 JP3240267A priority Critical patent/JPH0553739A/en
Publication of JPH0553739A publication Critical patent/JPH0553739A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the misprint caused between the emulations which are hard to automatically decide and at the same time to correctly perform the automatic switching of emulations even though the commands of the same form exist between the different emulations. CONSTITUTION:A sub-module is provided on a program ROM 13 in order to decide a specific emulation to which the data given from a host computer 4 are subjected. Based on this deciding result, the emulations to be automatically selected are set to a RAM 15 in the form of an emulation list. When a combination of emulations that cannot be automatically selected is set, an alarm is shown at the display part of a control panel device 3 to show the wrong set contents. At the same time, the emulation set later is validated and the emulations set precedently are deleted out of the automatic selection subjects among those combinations of emulations which cannot be automatically selected.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ポストコンピュータか
らのデータを受信し、該データをビデオ信号に変換して
プリンタエンジンに送信するプリンタコントローラにお
けるエミュレーション選択方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emulation selection method and apparatus in a printer controller for receiving data from a post computer, converting the data into a video signal and transmitting the video signal to a printer engine.

【0002】[0002]

【従来の技術】プリンタコントローラにおいては、従来
機種との互換性を維持するため、しばしば複数のエミュ
レーションを持ち、アプリケーションの出力に合致する
エミュレーションを選択して使用する場合がある。
2. Description of the Related Art In order to maintain compatibility with a conventional model, a printer controller often has a plurality of emulations and sometimes selects and uses an emulation that matches the output of an application.

【0003】このような場合、従来のプリンタコントロ
ーラでは、プリンタの操作パネル装置から手動でエミュ
レーションを選択するか、ホストコンピュータからの明
示的なエミュレーション選択コマンドによってエミュレ
ーションを選択していた。
In such a case, in the conventional printer controller, the emulation is manually selected from the printer operation panel device, or the emulation is selected by an explicit emulation selection command from the host computer.

【0004】これを、具体的に説明すると、あるエミュ
レーションが選択されており、ホストコンピュータから
送られてきたデータとそのエミュレーションが合わない
場合、プリンタ処理を中断し、適当と思われるエミュレ
ーションを選択し、オペレータ(利用者)に明示するとい
うものである。
To explain this concretely, when a certain emulation is selected and the data sent from the host computer does not match the emulation, the printer processing is interrupted and the emulation considered to be appropriate is selected. , The operator (user) to specify.

【0005】これは、プリンタ処理は中断されてしまっ
ているので、この後、オペレータ(利用者)は選択された
エミュレーションを確認してからデータを再送せねばな
らず、エミュレーションの選択は完全に自動化されてい
ない。
This is because the printer processing has been interrupted, and after this, the operator (user) must confirm the selected emulation and then retransmit the data, and the selection of emulation is completely automated. It has not been.

【0006】そこで、エミュレーション選択の自動化方
法として、ホストコンピュータからのデータを受信し、
そのデータをビデオ信号に変換するコマンド体系として
のエミュレーションを複数有し、前記ホストコンピュー
タからのデータが、どのエミュレーションにしたがって
いるか判別し、自動的にエミュレーションを選択する方
法が提案されている。
Therefore, as an automated method of selecting emulation, data from the host computer is received,
A method has been proposed which has a plurality of emulations as a command system for converting the data into a video signal, determines which emulation the data from the host computer follows, and automatically selects the emulation.

【0007】[0007]

【発明が解決しようとする課題】上述した従来のエミュ
レーション自動選択方法では判別可能なエミュレーショ
ンに関する制限は特にないが、プリンタに搭載された複
数のエミュレーションの中には同じ形式をとるコマンド
で異なる動作をするものが有り、ホストコンピュータか
らのデータでは判別が困難なエミュレーションが存在す
る。これらのエミュレーションも含めプリンタに搭載さ
れた全てのエミュレーションを自動判別の対象とする
と、判別が困難なエミュレーション間で相互に誤印字が
発生する。
Although there is no particular limitation on the emulation that can be discriminated by the above-mentioned conventional emulation automatic selection method, a plurality of emulations installed in the printer may have different operations depending on the command having the same format. There is emulation that is difficult to distinguish from the data from the host computer. If all the emulations installed in the printer, including these emulations, are targeted for automatic discrimination, erroneous printing occurs between the emulations that are difficult to discriminate.

【0008】本発明は、自動判別が可能なエミュレーシ
ョンの組合せの設定を可能にすることで、自動判別が困
難なエミュレーション間で発生する誤印字を防止するこ
とを第1の目的とする。
It is a first object of the present invention to prevent erroneous printing that occurs between emulations that are difficult to distinguish automatically by enabling the setting of a combination of emulations that allows automatic judgment.

【0009】また、エミュレーションの自動切替えは通
常コマンドの形式を見て行なうが、異なるエミュレーシ
ョンの間で同じ形式をとるコマンドが存在する場合があ
る。その場合、どちらのエミュレーションに切替えるの
が判断がつかない。
Further, although the automatic switching of emulation is usually performed by looking at the format of the command, there are cases where commands having the same format exist among different emulations. In that case, it is difficult to determine which emulation to switch to.

【0010】そのため、複数のエミュレーションのイン
タープリンタを同時に動かし、判断がついた時に1つの
エミュレーションのインタープリンタのみ動かすことに
よって、エミュレーションの自動切替えが間違いなく行
なうことを第2の目的とする。
Therefore, a second object is to perform automatic switching of emulation without fail by simultaneously moving a plurality of emulation interprinters and moving only one emulation interprinter when a decision is made.

【0011】[0011]

【課題を解決するための手段】本発明の上記第1の目的
を達成するため、ホストコンピュータからのデータを受
信し、該データをビデオ信号に変換してプリンタエンジ
ンに送信するプリンタコントローラにおいて、前記デー
タをビデオ信号に変換するコマンド体系としてのエミュ
レーションを少なくとも3種類以上有するとき、前記ホ
ストコンピュータからのデータが何れのエミュレーショ
ンに従っているかを判別し、その判別により自動選択の
対象となるエミュレーションを設定するようにしたこと
を特徴とする。
In order to achieve the first object of the present invention, in a printer controller for receiving data from a host computer, converting the data into a video signal and transmitting the video signal to a printer engine, When there are at least three types of emulation as a command system for converting data into a video signal, it is determined which emulation the data from the host computer complies with, and the emulation to be the target of automatic selection is set by the determination. It is characterized by having done.

【0012】また、本発明の上記第2の目的を達成する
ため、複数のエミュレーションのインタープリンタを同
時に動作させ、その動作した全てのインタープリンタ
で、ホストコンピュータからのコマンド列を処理し、エ
ミュレーションを一意に確定出来た時点で、他のエミュ
レーションのインタープリンタの動作を停止し、エミュ
レーションを自動的に切替えることを特徴とする。
In order to achieve the second object of the present invention, a plurality of emulation interprinters are simultaneously operated, and all the operated interprinters process command sequences from the host computer to perform emulation. When it can be uniquely determined, the operation of the other emulation interprinter is stopped and the emulation is automatically switched.

【0013】[0013]

【作用】本発明の第1の解決手段によれば、ホストコン
ピュータからのデータを基にプリンタでエミュレーショ
ンを自動選択する際、自動選択できないエミュレーショ
ンの組み合わせを設定できないようにすることで、誤っ
てエミュレーション選択による誤印字を防止する。
According to the first solution of the present invention, when the printer automatically selects the emulation based on the data from the host computer, the emulation combination that cannot be automatically selected cannot be set. Prevent erroneous printing due to selection.

【0014】また、オペレータが自動選択できないエミ
ュレーションの組み合わせが設定したときは、警告を出
し正しいエミュレーションの組み合わせの設定をオペレ
ータに促す。更に、自動選択できないエミュレーション
の組み合わせを設定されたときは、後から設定されたエ
ミュレーションを有効にすることで、オペレータは以前
に設定されていたエミュレーションを自動切替の対象か
ら除外して、自分が使い易いエミュレーションをセット
し、操作をわかり易くする。
When the operator sets a combination of emulations that cannot be automatically selected, a warning is issued to prompt the operator to set the correct combination of emulations. Furthermore, when a combination of emulations that cannot be automatically selected is set, the emulation set later is enabled so that the operator excludes the previously set emulation from the target of automatic switching and uses it. Set an easy emulation to make the operation easy to understand.

【0015】また、本発明の第2の解決手段によれば、
複数のエミュレーションのインタープリンタを同時に動
かし、エミュレーションの判断がついた時に1つのエミ
ュレーションのインタープリンタのみ動かすことによっ
て、間違うことなく自動的にエミュレーションを切替え
ることができる。
According to the second solving means of the present invention,
By moving a plurality of emulation interprinters at the same time and moving only one emulation interprinter when the emulation is determined, the emulation can be automatically switched without making a mistake.

【0016】[0016]

【実施例】図1ないし図6は本発明の請求項1ないし4
の実施例を説明する図であり、図1は本発明を実施する
一例のレーザープリンタにおけるプリンタコントローラ
の構成を示すブロック図である。
1 to 6 show the claims 1 to 4 of the present invention.
FIG. 1 is a block diagram showing the configuration of a printer controller in an example laser printer embodying the present invention.

【0017】プリンタローラ1は、その時設定されてい
る制御モード及びホストコンピュータからの制御コード
に従って、ホストコンピュータからの印字データを、ビ
デオデータに変換してプリンタエンジンへ出力する制御
機構の総称で、以下のようなモジュールで構成される。
The printer roller 1 is a general term for a control mechanism that converts print data from the host computer into video data and outputs the video data to the printer engine according to the control mode set at that time and the control code from the host computer. It is composed of modules like.

【0018】CPU10はプログラムROM13に記憶され
たプログラムにしたがって、ホストコンピュータ4から
のデータ(印字データ,制御データ)を制御する。ICカ
ード11はフォントデータやエミュレーションプログラム
等を外部から供給する。
The CPU 10 controls data (print data, control data) from the host computer 4 according to a program stored in the program ROM 13. The IC card 11 supplies font data, emulation programs, etc. from the outside.

【0019】不揮発性記憶装置(NVRAM)12は、操作
パネル装置3からの動作モード指示などを記憶する他、
本発明の実施に係る自動選択可能なエミュレーションの
組み合わせの初期値を、ここに記憶させる。
The non-volatile storage device (NVRAM) 12 stores the operation mode instruction from the operation panel device 3 and the like.
The initial values of the automatically selectable emulation combinations according to the implementation of the present invention are stored here.

【0020】上記プログラムROM13はプリンタコント
ローラ1の制御プログラムが格納されていて、プリンタ
コントローラ内でのデータの処理や、周辺のモジュール
を制御する他、本発明の実施に係るホストコンピュータ
4からデータがどのエミュレーションに従っているかを
判別するためプログラムROM13上にサブモジュール
(図2参照)として存在している。フォントROM14はフ
ォントのパターンデータ等を記憶してある。
The program ROM 13 stores a control program for the printer controller 1, controls data processing in the printer controller and peripheral modules, and also receives data from the host computer 4 according to the embodiment of the present invention. Sub-module on program ROM 13 to determine if emulation is followed
Exists (see FIG. 2). The font ROM 14 stores font pattern data and the like.

【0021】RAM15は上記CPU10のワークメモリと
して用いられ、ホストコンピュータ4からの入力データ
のバッファー、印字データ用のページバッファーやダウ
ンロードフォント用のメモリ等に使用する他、本発明の
実施例に係るエミュレーションリスト(EM List…
図3参照)が作られる。
The RAM 15 is used as a work memory of the CPU 10 and is used as a buffer for input data from the host computer 4, a page buffer for print data, a memory for download fonts, etc., and also emulation according to an embodiment of the present invention. List (EM List ...
(See FIG. 3).

【0022】プリンタエンジンインターフェース(I/
F)16は、プリンタエンジン2とコマンド及びステータ
スの印字制御データの通信や、ビデオ信号に変換された
ホストコンピュータ4からのデータをプリンタエンジン
2に送出する。
Printer engine interface (I /
F) 16 communicates with the printer engine 2 for print control data of commands and statuses, and sends the data converted from the video signal from the host computer 4 to the printer engine 2.

【0023】パネルインターフェース(I/F)17は、操
作パネル装置3とコマンド及びステータスの通信を行な
うものであり、プリンタの状態,モード,フォント等の
切替えを行なうための信号が授受される。
The panel interface (I / F) 17 communicates commands and statuses with the operation panel device 3, and receives and sends signals for switching the printer status, mode, font and the like.

【0024】ホストインターフェース(I/F)18は、ホ
ストコンピュータ4と通信を行なうためのものであり、
通常はセントロニクスI/FやRS232Cでなる。
The host interface (I / F) 18 is for communicating with the host computer 4,
It is usually a Centronics I / F or RS232C.

【0025】ディスクインターフェース(I/F)19は、
ディスク装置5と通信を行なうためのものである。
The disk interface (I / F) 19 is
It is for communicating with the disk device 5.

【0026】なお、上記CPU10〜ディスクI/F19は
バスで接続され、制御信号やデータ等の授受が行なわれ
る。
The CPU 10 to the disk I / F 19 are connected by a bus to exchange control signals and data.

【0027】ここで、プリンタエンジン2は、プリンタ
コントローラ1からのビデオ信号及び制御信号により感
光体上に静電潜像を作り、現像し、また給紙部より転写
紙を給紙し、転写及び定着し、画像を形成する。操作パ
ネル装置3は、現在のプリンタの状態をオペレータ(使
用者)に知らせるための表示部と、動作モードの指示を
行なうためのキー入力部とを備え、表示部には本発明の
実施例に係る自動選択出来ないエミュレーションの組み
合わせが設定された場合、設定内容が誤っていることを
表示する。ホストコンピュータ4はプリンタの上位装置
であり、ホストインターフェース(I/F)18を介してプ
リンタ(コントローラ1)へデータ(印字データ,制御デ
ータ)を送る。
Here, the printer engine 2 forms an electrostatic latent image on the photoconductor by the video signal and the control signal from the printer controller 1, develops the latent image, and feeds the transfer paper from the paper feed unit to transfer and transfer the latent image. Fix and form an image. The operation panel device 3 includes a display unit for notifying an operator (user) of the current printer status and a key input unit for instructing an operation mode, and the display unit according to the embodiment of the present invention. When a combination of such emulations that cannot be automatically selected is set, it is displayed that the setting contents are incorrect. The host computer 4 is a higher-level device of the printer, and sends data (print data, control data) to the printer (controller 1) via the host interface (I / F) 18.

【0028】ディスク装置5は、フォントデータやプロ
グラムや印字データなどの様々のデータを記憶してお
り、これは、フロッピディスク装置やハードディスク装
置などがある。
The disk device 5 stores various data such as font data, programs, print data, and the like, such as a floppy disk device and a hard disk device.

【0029】上記構成のプリンタコントローラの動作を
簡単に説明すると、ホスト(I/F)18を通してホストコ
ンピュータ4から送られきたデータは、CPU10により
印字データ及び印字制御データ(SP,CR,LF,H
T,VT,...等)とその他に分けられ、印字データ及び
印字制御データは、RAM15に記憶される。ホストコン
ピュータ4からのプリント命令又はホストコンピュータ
4から受け取ったデータが1ページ分を超えた時、プリ
ンタコントローラ1はプリンタエンジン(I/F)16を通
してプリンタエンジン2にプリントスタートの命令を出
す。
The operation of the printer controller having the above configuration will be briefly described. The data sent from the host computer 4 through the host (I / F) 18 is print data and print control data (SP, CR, LF, H) by the CPU 10.
T, VT, etc.) and others, and the print data and print control data are stored in the RAM 15. When the print command from the host computer 4 or the data received from the host computer 4 exceeds one page, the printer controller 1 issues a print start command to the printer engine 2 through the printer engine (I / F) 16.

【0030】以上のような一連の流れで、ホストコンピ
ュータ4からの印字データがプリンタエンジン2を介し
て印字される。
The print data from the host computer 4 is printed through the printer engine 2 in the above-described series of steps.

【0031】上述した図1に示すプリンタコントローラ
は、従来機種との互換性を維持するため、例えば、tp
s,tpc1,tpr0,tfxの4つのエミュレーシ
ョンを有することとし、各エミュレーションのコマンド
例の一部を表(1),表(2),表(3)に示す。
The above-described printer controller shown in FIG. 1 is, for example, tp in order to maintain compatibility with conventional models.
It has four emulations of s, tpc1, tpr0, and tfx, and a part of command examples of each emulation is shown in Table (1), Table (2), and Table (3).

【0032】これら各エミュレーションは、夫々異なる
コマンド体系であるが、tpr0とtfxは、表(3)-
1,表(3)-2の“c-1”,“d-1”に示すように同じコード
で異なる動作を行なうコマンドが存在するため、コマン
ドからエミュレーションを判別出来ない。
Each of these emulations has a different command system, but tpr0 and tfx are shown in Table (3)-
1. As shown in "c-1" and "d-1" of Table (3) -2, there are commands that perform different operations with the same code, so emulation cannot be determined from the command.

【0033】本実施例においては、エミュレーションを
判別するための手段として、図1のプログラムROM13
上にサブモジュールとして存在することを前述した。図
2はエミュレーション判別の概念図を示し、図2におい
て、20はエミュレーションを自動判別するためのエミュ
レーション判別部、21,22,23,24は表(1)〜表(3)に示
すtps,tpc1,tpr0,tfxの各エミュレー
ション処理部である。
In the present embodiment, the program ROM 13 shown in FIG. 1 is used as means for discriminating the emulation.
It was mentioned above that it exists as a sub-module above. FIG. 2 shows a conceptual diagram of emulation discrimination. In FIG. 2, 20 is an emulation discrimination unit for automatically discriminating emulation, and 21, 22, 23, and 24 are tps and tpc1 shown in Tables (1) to (3). , Tpr0, and tfx emulation processing units.

【0034】これは、ホストコンピュータ4からの入力
データ4Aと、操作パネル装置3等からの自動判別の対
象となるエミュレーションを指示するための信号3A
が、エミュレーション判別部20に入力されると、該エミ
ュレーション判別部20は、ホストコンピュータから入力
データ4Aを認識し、自動判別し、その時、有効な該当
するエミュレーションを夫々のデータ伝送路21A〜24A
を介して該当するエミュレーション処理部21〜24へ伝送
する。
This is the input data 4A from the host computer 4 and the signal 3A for instructing the emulation which is the object of automatic discrimination from the operation panel device 3 or the like.
Is input to the emulation discriminating unit 20, the emulation discriminating unit 20 recognizes the input data 4A from the host computer and automatically discriminates it.
To the corresponding emulation processing units 21 to 24 via.

【0035】上記該当するエミュレーション処理部21〜
24の何れかで処理されたビデオデータ21B〜24Bの何れ
か1つはプリンタエンジン(I/F)16を介してプリンタ
エンジン2へ送出される。
The applicable emulation processing unit 21 to
Any one of the video data 21B to 24B processed by any one of 24 is sent to the printer engine 2 via the printer engine (I / F) 16.

【0036】次に自動選択の対象となるエミュレーショ
ン(EM)の設定方法を説明する。
Next, a method of setting an emulation (EM) which is a target of automatic selection will be described.

【0037】図3に判別可能なエミュレーションを記憶
するためのエミュレーション・リスト・テーブル“EM
List”のフォーマットを示す。各エミュレーショ
ンEMには各々固有のEMIDが与えられ、その時自動
選択の対象となっているエミュレーションのEMIDが
登録されている。本実施例では、EMID1をtps,
EMID2をtpc1,EMID3をtpr0,EMI
D4をtfxとする。このエミュレーション・リスト・
テーブル“EM List”は図1のRAM15内に作ら
れる。
FIG. 3 shows an emulation list table "EM" for storing distinguishable emulations.
The format of “List” is shown. A unique EMID is given to each emulation EM, and the EMID of the emulation which is the target of automatic selection at that time is registered.
EMID2 is tpc1, EMID3 is tpr0, EMI
Let D4 be tfx. This emulation list
The table "EM List" is created in the RAM 15 of FIG.

【0038】図4はエミュレーションのファイルフォー
マットを示し、このエミュレーションファイルは、エミ
ュレーションファイルヘッダー部41とエミュレーション
プログラム部42に分かれる。エミュレーションファイル
ヘッダー部41にはエミュレーションファイルの属性(コ
ピーライト、バージョン等)が登録されている部分45
と、エミュレーションの自動判別に必要な属性として、
そのエミュレーションの種類を示すEMIDXX43と、
このエミュレーションとの組合せで自動選択が不可能な
エミュレーションのIDが登録された“Un Comb
List”44と、エミュレーション判別用の辞書46があ
る。
FIG. 4 shows an emulation file format. This emulation file is divided into an emulation file header section 41 and an emulation program section 42. In the emulation file header section 41, the section in which the attributes of the emulation file (copyright, version, etc.) are registered 45
And, as an attribute necessary for automatic discrimination of emulation,
EMIDXX43, which indicates the type of emulation,
In combination with this emulation, the ID of the emulation that cannot be automatically selected is registered as “Un Comb”.
There is a List ”44 and a dictionary 46 for identifying emulation.

【0039】図5はエミュレーションの設定手順を示す
フローチャートであり、始めに、電源オン又はリセット
操作により起動される(S1)。次に図1のNVRAM12
内に設定された自動選択可能なエミュレーションの組合
せの初期値を図3の“EMList”にセットする
(S2)。次に新たなエミュレーションの設定操作を持つ
(S3)。
FIG. 5 is a flow chart showing the emulation setting procedure. First, the power is turned on or a reset operation is started (S 1 ). Next, the NVRAM 12 of FIG.
The initial value of the combination of automatically selectable emulations set in is set to "EMList" in FIG.
(S 2 ). Next has a new emulation setting operation
(S 3 ).

【0040】設定操作があると、“EM List”(図
3)内に、新たなエミュレーションのファイルヘッダー
の“Un Comb List”44に登録されているエミ
ュレーションと同じものが存在するか否かチェックする
(S4)。同じエミュレーションが存在した場合(新たなエ
ミュレーションを自動選択の対象に加えると、自動選択
出来ないエミュレーションの組合せが存在する場合)オ
ペレータに設定操作を続けさせると既に設定されたエミ
ュレーションが削除されることを警告表示と設定操作を
続行するか否かの問い合わせ表示を操作パネル装置3の
表示部に行なう(S5)。
When the setting operation is performed, it is checked whether or not the same emulation as that registered in the "Un Comb List" 44 of the file header of the new emulation exists in "EM List" (FIG. 3).
(S 4 ). If the same emulation exists (when a new emulation is added to the target of automatic selection and there is a combination of emulations that cannot be automatically selected), letting the operator continue the setting operation deletes the already set emulation. A warning display and an inquiry display as to whether or not to continue the setting operation are displayed on the display section of the operation panel device 3 (S 5 ).

【0041】新たなエミュレーションを設定しない場合
は、再度エミュレーションの設定操作有無のチェック
(S3)の処理に移る(S6)。設定操作を行なう場合は、
“EMList”(図3)から“Un Comb Lis
t”44に登録されているエミュレーションを削除する
(S7)。
If a new emulation is not set, check again whether the emulation setting operation has been performed.
(S 3) moves to the processing (S 6). When performing the setting operation,
From "EMList" (Fig. 3) to "Un Comb Lis"
Delete the emulation registered in t "44
(S 7 ).

【0042】本実施例で、新たに設定するエミュレーシ
ョンをtfxすると、“UnComb List”44に
はEMID4が登録されており、“EM List”(図
3)のEMID3(tpr0)が削除される。次に新たに
設定されたエミュレーションを“EM List”(図
3)に登録する(S8)。又ステップS4に新たに設定する
エミュレーションが自動選択可能な場合はEMIDを直
ちに“EMList”に登録する(S8)。
In this embodiment, when the newly set emulation is tfx, EMID4 is registered in "UnComb List" 44, and EMID3 (tpr0) in "EM List" (FIG. 3) is deleted. Then newly set emulation "EM the List" is registered in (FIG. 3) (S 8). The emulation to be newly set in the step S 4 is if automatic selectable registers immediately "EMList" the EMID (S 8).

【0043】次にエミュレーション(EM)の自動選択の
流れを示すフローチャートを図6に示し、上述したホス
トコンピュータからのデータが何れのエミュレーション
に従っているかの判断処理は、RAM15に設定されたエ
ミュレーション判断用のワークバッファを確保すること
により行なわれる。即ち、ワークバッファにはホストコ
ンピュータから送られてきたデータが格納され、このデ
ータに対しエミュレーションモードが確立するまで印字
処理は行なわない。
Next, FIG. 6 is a flowchart showing the flow of automatic selection of emulation (EM). The above-described processing for judging which emulation the data from the host computer follows is based on the emulation judgment set in the RAM 15. This is done by allocating a work buffer. That is, the work buffer stores the data sent from the host computer, and the printing process is not performed for this data until the emulation mode is established.

【0044】まずホストコンピュータ4からのデータを
1バイトワークバッファに取り込む(S9)。次に“EM
List”を順次スキャンするためのEMCNT(図示
しないが、図1のRAM15内に確保されるEMカウン
タ)に“0”をセットする(S10)。次にEMCNTで示
される“EM List”の内容がEOFか否かチェッ
クする(S11)。EOFでない場合は次に、EMCNTで
示される“EM List”のエミュレーションの辞書4
6(図4)を参照し、ホストコンピュータ4からのデータ
がそのエミュレーションか否かチェックする(S12)。
First, the data from the host computer 4 is loaded into the 1-byte work buffer (S 9 ). Then "EM
“0” is set to EMCNT (not shown, but EM counter secured in RAM 15 of FIG. 1) for sequentially scanning “List” (S 10 ). Next, the content of “EM List” indicated by EMCNT Is an EOF (S 11 ). If it is not EOF, then the emulation dictionary 4 of “EM List” indicated by EMCNT.
6 (FIG. 4), it is checked whether the data from the host computer 4 is the emulation (S 12 ).

【0045】ホストコンピュータからのデータがそのエ
ミュレーションと判断された場合はそのエミュレーショ
ンを動作させ印字処理を行なう(S13)。またホストコン
ピュータからのデータがそのエミュレーションでないと
判断された場合はEMCNTをインクリメントし
(S14)、ステップS11の処理へ戻る。
[0045] When the data from the host computer is determined and its emulation performing printing processing by operating the emulation (S 13). If it is determined that the data from the host computer is not the emulation, EMCNT is incremented.
(S 14 ), the process returns to step S 11 .

【0046】一方ステップS11でEOFと判断された場
合はワークバッファが一杯か否かチェックする(S15)。
一杯でない場合はステップS9に戻り再度ホストコンピ
ュータからのデータを取り込む。ワークバッファが一杯
になった場合はEMCNTの値を“EM List”の
内容がデフォルトエミュレーションにセットされている
配列番号にセットし(S16)、その内容に従いデフォルト
エミュレーションを動作させ印字処理を行なう(S13)
(デフォルトエミュレーションの情報はNVRAM12に
セットされている)。
On the other hand, if EOF is determined in step S 11 , it is checked whether the work buffer is full (S 15 ).
If not full capture data again from the host computer returns to step S 9. If the work buffer is full is set in SEQ ID value content of "EM the List" of EMCNT is set to the default emulation (S 16), performs printing processing by operating the default emulation accordance with the contents ( S 13 )
(Default emulation information is set in NVRAM12).

【0047】これは一切プリンタのコマンドを使わずに
テキストだけがデータとして送られて来た場合である
が、本実施例ではテキストだけの処理はtpc1で行な
えるため、デフォルトエミュレーションをtpc1にし
ておくことにより正常な動作ができる。
This is a case where only text is sent as data without using any printer command. In this embodiment, since only text can be processed by tpc1, the default emulation is set to tpc1. This allows normal operation.

【0048】次に本発明の請求項5の実施例について、
前記図1のプリンタコントローラと図7の動作フローチ
ャートにより説明する。
Next, the fifth embodiment of the present invention will be described.
The operation will be described with reference to the printer controller shown in FIG.

【0049】本実施例においては2つのエミュレーショ
ン1,2の場合を説明する。まず、2つのエミュレーシ
ョンのインタープリンタを同時に起動し(S17)、ホスト
コンピュータ4からのコマンドを両方のエミュレーショ
ンのインタープリンタで解析および実行する(S18)。
In this embodiment, the case of two emulations 1 and 2 will be described. First, start the two emulation Inter printer simultaneously (S 17), analyzes and executes the inter printers both command emulation from a host computer 4 (S 18).

【0050】インタープリンタはホストコンピュータか
らデータを1つ受けとり、それがエスケープコードかど
うかを判断する。エスケープコードでない場合は、各エ
ミュレーションごとに用意されているテーブルに従いキ
ャラクタの印字、コントロールコードの実行等を行な
う。また、エスケープコードである場合には、やはり、
各エミュレーションごとに持っているエスケープシーケ
ンステーブルを用意する。その後、ホストコンピュータ
から次のコードを受けとり、エスケープシーケンステー
ブルを参照してコマンドを認識し、そのコマンドに該当
する処理を行なう。
The interprinter receives one piece of data from the host computer and determines whether it is an escape code. If it is not an escape code, characters are printed and control codes are executed according to the table prepared for each emulation. Also, if it is an escape code,
Prepare an escape sequence table for each emulation. Then, the next code is received from the host computer, the command is recognized by referring to the escape sequence table, and the process corresponding to the command is performed.

【0051】いま、ホストコンピュータから受けとった
コマンドが片方のエミュレーション(以下エミュレーシ
ョン1)のエスケープシーケンステーブルにない場合(S
19のNo)、エミュレーション2が正しいエミュレーシ
ョンであると判断し、エミュレーション1のインタープ
リンタを止めて(S20)、もう一方のエミュレーション
(以下エミュレーション2)インタープリンタで残りのコ
マンド列を処理することにより(S21,S22)、エミュレ
ーションをエミュレーション2に切替える(S23)。
If the command received from the host computer is not in the escape sequence table of one emulation (hereinafter, emulation 1) (S
19 No of), determines that the emulation 2 is the correct emulation stop inter printer emulation 1 (S 20), the other emulation
(Emulation 2 below) By processing the remaining command sequence by the interprinter (S 21 , S 22 ), the emulation is switched to emulation 2 (S 23 ).

【0052】逆に、エミュレーション1のエスケープシ
ーケンステーブルには存在するが、エミュレーション2
のエスケープシーケンステーブルにはないコマンドに遭
遇した場合、エミュレーション1が正しいエミュレーシ
ョンであると判断し、エミュレーション2のインタープ
リンタを止めて(S24)、エミュレーション1のインター
プリンタのみで残りのコマンド列を処理することにより
(S21,S22)、エミュレーションをエミュレーション1
に切替える(S19)。
On the contrary, although it exists in the escape sequence table of the emulation 1, the emulation 2
If a command that is not in the escape sequence table is encountered, the emulation 1 is determined to be the correct emulation, the emulation 2 interprinter is stopped (S 24 ), and only the emulation 1 interprinter processes the remaining command sequence. By doing
(S 21 , S 22 ), emulation emulation 1
(S 19 ).

【0053】コマンド解析の結果、両方のエミュレーシ
ョンのエスケープシーケンステーブルにも存在するコマ
ンドであった場合、どちらのエミュレーションが正しい
エミュレーションであるか判断できないため、両方のエ
ミュレーションのインタープリンタで処理し(S25)、ど
ちらかのエミュレーションのエスケープシーケンステー
ブルに存在しないコマンドに遭遇するまで、両方のエミ
ュレーションのインタープリンタで処理を行なう。
As a result of the command analysis, if the command is also present in the escape sequence tables of both emulations, it cannot be determined which one is the correct emulation, so the interprinters of both emulations process (S 25 ), Until it encounters a command that does not exist in either emulation's escape sequence table, it will process in both emulation's interprinters.

【0054】3つ以上のインタープリンタを使用する場
合も同様なシーケンスで解析が可能である。
Even when three or more interprinters are used, analysis can be performed in the same sequence.

【0055】[0055]

【表1】 [Table 1]

【0056】[0056]

【表2】 [Table 2]

【0057】[0057]

【表3−1】 [Table 3-1]

【0058】[0058]

【表3−2】 [Table 3-2]

【0059】[0059]

【発明の効果】以上説明したように本発明のエミュレー
ション選択方法及び装置は次のような効果を有する。
As described above, the emulation selection method and device of the present invention have the following effects.

【0060】ホストコンピュータからのデータを基にエ
ミュレーションを自動選択するプリンタにおいて、自動
選択できないエミュレーションの組合せを設定できない
ようにすることで、誤ったエミュレーション選択による
誤印字を防止できる。
In a printer that automatically selects emulation based on data from a host computer, by preventing the combination of emulations that cannot be automatically selected from being set, it is possible to prevent erroneous printing due to incorrect emulation selection.

【0061】ホストコンピュータからのデータを基にエ
ミュレーションを自動選択するプリンタにおいて、オペ
レータが自動選択できないエミュレーションの組合せを
設定した時に警告を発することで、オペレータに正しい
エミュレーションの組合せの設定を促すことで、オペレ
ータの誤設定を防止できる。
In a printer that automatically selects emulation based on data from the host computer, a warning is issued when the operator sets a combination of emulations that cannot be automatically selected, thereby prompting the operator to set the correct combination of emulations. It is possible to prevent erroneous setting by the operator.

【0062】[0062]

【発明の効果】以上説明したように本発明のエミュレー
ション選択方法及び装置は次のような効果を有する。
As described above, the emulation selection method and device of the present invention have the following effects.

【0063】ホストコンピュータからのデータを基にエ
ミュレーションを自動選択するプリンタにおいて、自動
選択できないエミュレーションの組合せを設定できない
ようにすることで、誤ったエミュレーション選択による
誤印字を防止できる。
By preventing a combination of emulations that cannot be automatically selected from being set in a printer that automatically selects emulation based on data from the host computer, erroneous printing due to incorrect emulation selection can be prevented.

【0064】ホストコンピュータからのデータを基にエ
ミュレーションを自動選択するプリンタにおいて、オペ
レータが自動選択できないエミュレーションの組合せを
設定した時に警告を発することで、オペレータに正しい
エミュレーションの組合せの設定を促すことで、オペレ
ータの誤設定を防止できる。
In a printer that automatically selects emulation based on data from the host computer, a warning is issued when the operator sets an emulation combination that cannot be automatically selected, thereby prompting the operator to set the correct emulation combination. It is possible to prevent erroneous setting by the operator.

【0065】ホストコンピュータからのデータを基にエ
ミュレーションを自動選択するプリンタにおいて、自動
選択できないエミュレーションの組合せが設定された場
合、後から設定されたエミュレーションを有効にするこ
とでオペレータは以前に設定されていたエミュレーショ
ンを意識することなく、自分が使いたいエミュレーショ
ンをセットすれば良く、エミュレーションの操作が分か
りやすい。
In a printer that automatically selects emulation based on data from the host computer, if an emulation combination that cannot be automatically selected is set, the operator is set previously by enabling the emulation that is set later. You can set the emulation you want to use without being aware of the emulation, and the operation of emulation is easy to understand.

【0066】複数のエミュレーションのインタープリン
タを同時に動かし、エミュレーションの判別がついた時
に1つのエミュレーションのインタープリンタのみ動か
すことによって、間違うことなく自動的にエミュレーシ
ョンを切替えることができる。
By moving a plurality of emulation interprinters at the same time and moving only one emulation interprinter when the emulation is determined, it is possible to automatically switch the emulation without making a mistake.

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

【図1】本発明を実施する一例のレーザープリンタにお
けるプリンタコントローラの構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of a printer controller in an example of a laser printer embodying the present invention.

【図2】本発明の一実施例によるエミュレーション判別
の概念図である。
FIG. 2 is a conceptual diagram of emulation discrimination according to an embodiment of the present invention.

【図3】本発明の一実施例による判別可能なエミュレー
ションを記憶するためのエミュレーション・リストテー
ブルのフォーマットを示す図である。
FIG. 3 is a diagram showing a format of an emulation list table for storing distinguishable emulations according to an embodiment of the present invention.

【図4】本発明の一実施例によるエミュレーションのフ
ァイルフォーマットを示す図である。
FIG. 4 is a diagram showing a file format of emulation according to an embodiment of the present invention.

【図5】本発明の一実施例によるエミュレーションの設
定手順を示すフローチャートである。
FIG. 5 is a flowchart showing an emulation setting procedure according to an embodiment of the present invention.

【図6】本発明の一実施例によるエミュレーションの自
動選択の流れを示すフローチャートである。
FIG. 6 is a flowchart showing a flow of automatic selection of emulation according to an embodiment of the present invention.

【図7】本発明の他の実施例によるエミュレーションを
自動的に切替えるフローチャートである。
FIG. 7 is a flow chart for automatically switching emulation according to another embodiment of the present invention.

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

1…プリンタコントローラ、 2…プリンタエンジン、
3…操作パネル装置、4…ホストコンピュータ、 5
…ディスク装置、 10…CPU、 11…ICカード、
12…不揮発性記憶装置(NVRAM)、 13…プログラム
ROM、 14…フォントROM、 15…RAM、 16…
プリンタエンジンインターフェース(I/F)、 17…パ
ネルインターフェース(I/F)、 18…ホストインター
フェース(I/F)、 19…ディスクインターフェース
(I/F)、 20…エミュレーション判別部、 21〜24…
エミュレーション処理部、 41…エミュレーションファ
イルヘッダー部、 42…エミュレーションプログラム
部、 43…EMIDXX、 44…Un Comb Lis
t、 45…エミュレーションファイルの属性、 46…辞
書。
1 ... Printer controller, 2 ... Printer engine,
3 ... Operation panel device, 4 ... Host computer, 5
… Disk device, 10… CPU, 11… IC card,
12 ... Non-volatile memory (NVRAM), 13 ... Program ROM, 14 ... Font ROM, 15 ... RAM, 16 ...
Printer engine interface (I / F), 17 ... Panel interface (I / F), 18 ... Host interface (I / F), 19 ... Disk interface
(I / F), 20 ... Emulation discrimination section, 21-24 ...
Emulation processing section, 41 ... Emulation file header section, 42 ... Emulation program section, 43 ... EMIDXX, 44 ... Un Comb Lis
t, 45 ... Attributes of emulation file, 46 ... Dictionary.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータからのデータを受信
し、該データをビデオ信号に変換してプリンタエンジン
に送信するプリンタコントローラにおいて、 前記データをビデオ信号に変換するコマンド体系として
のエミュレーションを少なくとも3種類以上有すると
き、前記ホストコンピュータからのデータが何れのエミ
ュレーションに従っているかを判別し、その判別により
自動選択の対象となるエミュレーションを設定するよう
にしたことを特徴とするエミュレーション選択方法。
1. A printer controller for receiving data from a host computer, converting the data into a video signal, and transmitting the video signal to a printer engine. At least three types of emulation as a command system for converting the data into a video signal. When it has, it is determined which emulation the data from the host computer follows, and the emulation to be the target of automatic selection is set based on the determination.
【請求項2】 自動的に選択出来ないエミュレーション
の組み合わせが設定されたときは、その設定内容の誤り
を明示するようにしたことを特徴とする請求項1記載の
エミュレーション選択方法。
2. The emulation selection method according to claim 1, wherein when a combination of emulations that cannot be automatically selected is set, an error in the set contents is clearly indicated.
【請求項3】 自動的に選択出来ないエミュレーション
の組み合わせが設定されたときは、後から設定されたエ
ミュレーションを有効とし、前記自動的に選択出来ない
エミュレーションの組み合わせの中で、以前に設定され
ていたエミュレーションを自動選択の対象から除外する
ようにしたことを特徴とする請求項1記載のエミュレー
ション選択方法。
3. When an emulation combination that cannot be automatically selected is set, the emulation that is set later is validated, and the emulation combination that cannot be automatically selected is previously set. The emulation selection method according to claim 1, wherein the emulation is excluded from the target of automatic selection.
【請求項4】 ホストコンピュータからのデータがどの
エミュレーションに従っているかを判別する手段と、該
判別手段により自動選択の対象となるエミュレーション
を設定する手段とを有することを特徴とするプリンタの
エミュレーション選択装置。
4. An emulation selection device for a printer, comprising: means for determining which emulation the data from the host computer follows, and means for setting the emulation to be the target of automatic selection by the determination means.
【請求項5】 複数のエミュレーションのインタープリ
ンタを同時に動作させ、その動作した全てのインタープ
リンタで、ホストコンピュータからのコマンド列を処理
し、エミュレーションを一意に確定出来た時点で、他の
エミュレーションのインタープリンタの動作を停止し、
エミュレーションを自動的に切替えることを特徴とする
エミュレーション選択方法。
5. A plurality of emulation interprinters are simultaneously operated, and all the operated interprinters process the command sequence from the host computer, and when the emulation can be uniquely determined, the other emulation interprinters are processed. Stop the printer working,
An emulation selection method characterized by automatically switching emulation.
JP3240267A 1991-08-28 1991-08-28 Method and device for selecting emulation Pending JPH0553739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3240267A JPH0553739A (en) 1991-08-28 1991-08-28 Method and device for selecting emulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3240267A JPH0553739A (en) 1991-08-28 1991-08-28 Method and device for selecting emulation

Publications (1)

Publication Number Publication Date
JPH0553739A true JPH0553739A (en) 1993-03-05

Family

ID=17056955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3240267A Pending JPH0553739A (en) 1991-08-28 1991-08-28 Method and device for selecting emulation

Country Status (1)

Country Link
JP (1) JPH0553739A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005182382A (en) * 2003-12-18 2005-07-07 Oki Data Corp Setting item list printing method and information processor
CN113626950A (en) * 2021-08-11 2021-11-09 广东皓耘科技有限公司 Bundling machine design method and device, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005182382A (en) * 2003-12-18 2005-07-07 Oki Data Corp Setting item list printing method and information processor
CN113626950A (en) * 2021-08-11 2021-11-09 广东皓耘科技有限公司 Bundling machine design method and device, storage medium and electronic equipment
CN113626950B (en) * 2021-08-11 2024-03-19 广东皓耘科技有限公司 Bundling machine design method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
JP3325907B2 (en) Command language determination method and system
US8125662B2 (en) Department management printing system and method, program product used in department management printing, and authentication method
US5854940A (en) Output control system for interpreting input data according to a specific control language based upon outputs from a plurality of control language determining devices
JP3039396B2 (en) Print control apparatus and method
US8355144B2 (en) Apparatus and method of changing printer driver, and printing system and method using the same
JPH05177884A (en) Controller for printer
US8441670B2 (en) In-line system for the validation of a page description language within a print data stream
KR20010006818A (en) A printing device, information processing device, contlol method thereof and information recording medium
US6052204A (en) Output apparatus and output method
JPH0553739A (en) Method and device for selecting emulation
US20050134890A1 (en) Image forming device and a method of selecting emulation automatically thereof
US5727133A (en) Output apparatus with selection of externally stored control programs from input data
US6724496B1 (en) Remote print job processing
JP3225891B2 (en) Printer with error detection function
JP3985135B2 (en) Device initialization method in control system, control system, program for causing computer to execute device initialization method, and recording medium recording this program
JP4329203B2 (en) Printing apparatus and method
US10768867B2 (en) Image forming apparatus having held print job analysis, control method of image forming apparatus, and storage medium
JPH05177885A (en) Controller for printer
KR100334102B1 (en) Method for management of history in the printer
US20060055957A1 (en) Image forming apparatus
JP2910687B2 (en) Printing apparatus and printing method
JP3097558B2 (en) Printing control method and printing apparatus
JP2002248840A (en) Printing controller, method for processing data and storage medium
KR100509455B1 (en) Printer and printing method for supporting automatic emulation switching
JP2003076098A (en) Color printer and color printing system