[go: up one dir, main page]

JPH0596823A - Printer device - Google Patents

Printer device

Info

Publication number
JPH0596823A
JPH0596823A JP3258817A JP25881791A JPH0596823A JP H0596823 A JPH0596823 A JP H0596823A JP 3258817 A JP3258817 A JP 3258817A JP 25881791 A JP25881791 A JP 25881791A JP H0596823 A JPH0596823 A JP H0596823A
Authority
JP
Japan
Prior art keywords
data
emulation
comparison
weights
value
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.)
Granted
Application number
JP3258817A
Other languages
Japanese (ja)
Other versions
JP2913934B2 (en
Inventor
Toshikazu Nishioka
稔員 西岡
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3258817A priority Critical patent/JP2913934B2/en
Publication of JPH0596823A publication Critical patent/JPH0596823A/en
Application granted granted Critical
Publication of JP2913934B2 publication Critical patent/JP2913934B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To perform the selection of emulation accurately by comparatively little data by a method wherein when data in a table agrees with printing data which is sent from a host unit, the selection of emulation is performed by adding points to each emulation, considering the weights which are specified for respective data in the table. CONSTITUTION:A table to perform the comparison for data for each emulation is prepared in a nonvolatile memory 35 in a printer device 22. When printing data which is sent from a host unit such as work station, etc., agrees with data in the table on a control panel 41, points are added for each emulation considering the weights which are specified for respective data in the table, and for example, when a difference between the largest one and the one with a next value becomes a specified numerical value or larger, an emulation which corresponds with the largest one is selected. As the result, the selection of an emulation can be accurately performed using comparatively little data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はホストコンピュータ等の
プリント情報源から送られてきたデータの印字を行うプ
リンタ装置に係わり、詳細には送られてきたデータに適
合したエミュレーションによって印字処理を実行するプ
リンタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device for printing data sent from a print information source such as a host computer, and more specifically, executes printing processing by emulation suitable for the sent data. The present invention relates to a printer device.

【0002】[0002]

【従来の技術】図7は、プリント情報源の一例としての
ホストコンピュータとプリンタ装置との一般的な接続関
係を表わしたものである。ホストコンピュータ11とプ
リンタ装置12とは通信ケーブル13によって接続さ
れ、この通信ケーブル13を介して画像データや各種の
制御コードが伝送されるようになっている。プリンタ装
置12内にはコントローラ14と印字機構としての印字
部15とが配置されている。コントローラ14は、印字
のためのイメージの展開処理を行ったり印字部15の印
字制御を行うようになっている。
2. Description of the Related Art FIG. 7 shows a general connection relationship between a host computer as an example of a print information source and a printer. The host computer 11 and the printer device 12 are connected by a communication cable 13, and image data and various control codes are transmitted through the communication cable 13. A controller 14 and a printing unit 15 as a printing mechanism are arranged in the printer device 12. The controller 14 is configured to perform an image development process for printing and to control printing of the printing unit 15.

【0003】このようなプリントシステムで、ホストコ
ンピュータ11とプリンタ装置12が同一年代に製造さ
れた同一メーカの製品で両者がセットで販売されている
ようなものであれば、ホストコンピュータ11から供給
される画像データをプリンタ装置12が印字する際に特
に問題が生じることはない。
In such a printing system, if the host computer 11 and the printer device 12 are manufactured by the same maker in the same era and both are sold as a set, they are supplied from the host computer 11. There is no particular problem when the printer device 12 prints the image data.

【0004】ところが、現実にはホストコンピュータ1
1とプリンタ装置12の製造メーカが同一ではなかった
り、同一メーカの製造に係わるものでも製造された年代
が異なるような場合が多い。このような場合でもホスト
コンピュータ11側が送出した制御コードをプリンタ装
置のコントローラ14が正しく解読して印字作業を行う
必要がある。
However, in reality, the host computer 1
In many cases, the manufacturers of 1 and the printer device 12 are not the same, or even those related to the manufacture of the same manufacturer have different dates of manufacture. Even in such a case, it is necessary for the controller 14 of the printer device to correctly decode the control code sent from the host computer 11 side and perform the printing operation.

【0005】そこで従来からコントローラ内に複数のエ
ミュレーションと、これらの切換スイッチを配置したプ
リンタ装置が存在している。このようなプリンタ装置で
は、接続先のホストコンピュータの種類によってスイッ
チを切り換えて適切なエミュレーションを選択するよう
になっている。ここでエミュレーションとは、マイクロ
プログラムを用いて異なった装置の使用する制御コード
(機械語命令)をシミュレーションすることをいう。図
7におけるコントローラ14によるこのようなエミュレ
ーションによって、異なった機種の制御コードを解読し
て、印字部15で印字作業が可能になる。
Therefore, conventionally, there has been a printer apparatus in which a plurality of emulations and a changeover switch for these are arranged in a controller. In such a printer device, an appropriate emulation is selected by switching the switch depending on the type of the host computer of the connection destination. Here, the emulation means simulating control codes (machine language instructions) used by different devices by using a microprogram. By such emulation by the controller 14 in FIG. 7, it is possible to decode the control codes of different models and perform the printing operation by the printing unit 15.

【0006】ところがこのようにスイッチでエミュレー
ションの切り換えを行うプリンタ装置では、ホストコン
ピュータが変更されるたびにスイッチ操作が必要であ
り、煩わしいばかりでなくスイッチの操作を間違えると
プリンタ装置が誤動作を行ったり印字を全く行うことが
できないといった問題があった。
However, in the printer device which switches the emulation by the switch as described above, it is necessary to operate the switch each time the host computer is changed, which is not only troublesome but also causes the printer device to malfunction if the switch operation is mistaken. There was a problem that printing could not be performed at all.

【0007】このような問題点を解決するためにエミュ
レーションの切り換えを自動化したプリンタ装置が提案
されている。このうち特開平1−314177号公報に
記載の印字装置では、装置内部に複数のエミュレーショ
ンを配置しておき、外部から受信された制御コマンドコ
ードとこれら複数種類のエミュレーションとを照合する
ようになっている。そして、最も適合するエミュレーシ
ョンを自動的に選択し、制御コマンドの変換を行うよう
になっている。
In order to solve such a problem, a printer device has been proposed in which the switching of emulation is automated. Among them, in the printing device disclosed in Japanese Patent Laid-Open No. 1-314177, a plurality of emulations are arranged inside the device, and a control command code received from the outside is collated with these plural types of emulations. There is. Then, the most suitable emulation is automatically selected and the control command is converted.

【0008】また特開平2−156325号公報に記載
のコンピュータ端末装置でも、複数のエミュレーション
を装置に配置しておく。そしてこれらのエミュレーショ
ンについて、エスケープシーケンステーブルおよびキャ
ラクタセットの中の該当なしとなる個数を数え、これら
の個数が少なく最も適切であると判断されたエミュレー
ションを自動的に選択するようになっている。
Also in the computer terminal device described in Japanese Patent Laid-Open No. 2-156325, a plurality of emulations are arranged in the device. With respect to these emulations, the number of non-correspondences in the escape sequence table and the character set is counted, and the emulation judged to be the most appropriate because of the small number of these is automatically selected.

【0009】[0009]

【発明が解決しようとする課題】ところが、このように
それぞれのエミュレーションとの適合性を比較して最適
のエミュレーションを選択するようにした従来の2つの
装置では、共に比較のためのデータの量を多くしなけれ
ば最適のエミュレーションを選択する際の精度が上がら
ないという問題があった。したがって、エスケープシー
ケンスのように直ちに制御コードと判断することのでき
るコード体系のエミュレーション以外の、印刷可能な文
字でのみ記述されるエミュレーションには不向きである
といった問題があった。
However, in the two conventional devices in which the compatibility with each emulation is compared and the optimum emulation is selected in this way, the amount of data for comparison is both set. There was a problem that the accuracy in selecting the optimum emulation would not be improved unless it was increased. Therefore, there is a problem that it is unsuitable for emulation that is described only by printable characters other than emulation of a code system that can be immediately determined as a control code such as an escape sequence.

【0010】そこで本発明の目的は、比較的少ないデー
タを用いて正確にエミュレーションの選択を行うことの
できるプリンタ装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a printer device capable of accurately selecting emulation by using a relatively small amount of data.

【0011】[0011]

【課題を解決するための手段】請求項1記載の発明で
は、複数バイトのデータ列とそれらに設定された重みと
をエミュレーション別に表わしたテーブルと、ホスト装
置から送られてきたデータを前記したテーブルで検索す
る検索手段と、この検索結果として前記した複数バイト
のデータ列が合致するたびにエミュレーション別にそれ
らの重みを加算する加算手段と、加算値が最も大きなエ
ミュレーションをデータ処理用に選択する選択手段とを
プリンタ装置に具備させる。
According to a first aspect of the present invention, a table showing a data string of a plurality of bytes and the weights set therein for each emulation and a table showing the data sent from the host device are described above. Search means, adder means for adding the weights for each emulation each time the above-mentioned multi-byte data string is matched as the search result, and selecting means for selecting the emulation having the largest addition value for data processing. And the printer device.

【0012】すなわち請求項1記載の発明では、ホスト
装置から送られてきたデータをエミュレーション別に表
わしたテーブルでそれぞれ検索し、テーブル内の複数バ
イトのデータ列とそれが一致するたびにエミュレーショ
ンごとにそれらの重みを加算していく。ここで重みは例
えば特定のエミュレーションにのみ存在するデータ列に
ついては重く、幾つものエミュレーションに存在するデ
ータ列については軽く設定されているので、加算値がも
っとも大きなエミュレーションを選択すれば、それがホ
スト装置から送られてきたデータの処理に最も適したエ
ミュレーションである可能性が高くなる。
That is, according to the first aspect of the present invention, the data sent from the host device is searched in a table representing each emulation, and each time the data string of a plurality of bytes in the table matches the data string, the data is sent to each emulation. The weights of are added. Here, for example, the weight is set heavy for a data string that exists only in a specific emulation, and lightly set for the data string that exists in several emulations. It is likely that this is the most suitable emulation for processing the data sent from.

【0013】請求項2記載の発明では、複数バイトのデ
ータ列とそれらに設定された重みとをエミュレーション
別に表わしたテーブルと、ホスト装置から送られてきた
データを前記したテーブルで検索する検索手段と、この
検索結果として複数バイトのデータ列が合致するたびに
エミュレーション別にそれらの重みを加算する加算手段
と、この加算手段で求めたエミュレーション別の重みの
和における最大値と次に大きな値との差が所定の値以上
になったとき最大値に対応するエミュレーションをデー
タの処理用に選択する選択手段とをプリンタ装置に具備
させる。
According to another aspect of the present invention, a table representing a plurality of byte data strings and the weights set therein for each emulation, and a search means for searching the table for data sent from the host device. , Addition means for adding the weights for each emulation each time a data string of a plurality of bytes matches as a result of this search, and the difference between the maximum value and the next largest value in the sum of weights for each emulation obtained by this addition means. When the value exceeds a predetermined value, the printer device is provided with a selecting means for selecting the emulation corresponding to the maximum value for data processing.

【0014】すなわち請求項2記載の発明では、ホスト
装置から送られてきたデータをエミュレーション別に表
わしたテーブルでそれぞれ検索し、テーブル内の複数バ
イトのデータ列とそれが一致するたびにエミュレーショ
ンごとにそれらの重みを加算していく。そして、加算値
の最大のものと次に大きなものとの差がある程度以上に
離れたときに、加算値の最大になったエミュレーション
を選択することにして、データの処理に最適のエミュレ
ーションが選択される可能性を高めている。
That is, according to the second aspect of the present invention, the data sent from the host device is searched in a table representing each emulation, and a data string of a plurality of bytes in the table is matched with the emulation data every time the data string matches. The weights of are added. Then, when the difference between the maximum addition value and the next addition value is separated by a certain amount or more, the emulation with the maximum addition value is selected, and the optimum emulation for data processing is selected. It is increasing the possibility that

【0015】請求項3記載の発明では、複数バイトのデ
ータ列とそれらに設定された重みとをエミュレーション
別に表わしたテーブルと、ホスト装置から送られてきた
データを前記したテーブルで検索する検索手段と、この
検索結果として複数バイトのデータ列が合致するたびに
エミュレーション別にそれらの重みを加算する加算手段
と、この加算手段で求めたエミュレーション別の重みの
和における最大値と次に大きな値との差が、それまで比
較を行った前記したデータの総数に対して所定の割合以
上になったとき最大値に対応するエミュレーションをデ
ータの処理用に選択する選択手段とをプリンタ装置に具
備させる。
According to the third aspect of the present invention, a table representing a plurality of byte data strings and the weights set therein for each emulation, and a searching means for searching the table for data sent from the host device. , Addition means for adding the weights for each emulation each time a data string of a plurality of bytes matches as a result of this search, and the difference between the maximum value and the next largest value in the sum of weights for each emulation obtained by this addition means. However, the printer device is provided with a selection means for selecting the emulation corresponding to the maximum value for processing the data when the ratio becomes a predetermined ratio or more with respect to the total number of the above-mentioned data which has been compared.

【0016】すなわち請求項3記載の発明では、ホスト
装置から送られてきたデータをエミュレーション別に表
わしたテーブルでそれぞれ検索し、テーブル内の複数バ
イトのデータ列とそれが一致するたびにエミュレーショ
ンごとにそれらの重みを加算していく。そして、加算値
の最大のものと次に大きなものとの差が、ホスト装置か
ら送られてきたデータのうちでそれまで比較処理を行っ
たデータの総数に対してある割合以上になったとき、加
算値の最大になったエミュレーションを選択することに
して、データの処理数を加味した状態で最適のエミュレ
ーションが選択される可能性を高めている。
That is, according to the third aspect of the present invention, the data sent from the host device is searched in a table representing each emulation, and each time the data string of a plurality of bytes in the table is matched with the emulation data, the data is sent to each emulation. The weights of are added. Then, when the difference between the maximum addition value and the next largest addition value becomes a certain ratio or more with respect to the total number of pieces of data sent from the host device for which comparison processing has been performed, By selecting the emulation with the maximum added value, the possibility that the optimum emulation is selected in consideration of the number of data processes is increased.

【0017】[0017]

【実施例】以下実施例につき本発明を詳細に説明する。EXAMPLES The present invention will be described in detail below with reference to examples.

【0018】図2は本発明の一実施例におけるプリンタ
装置を使用したプリントシステムの概要を表わしたもの
である。リング状のネットワークを形成する通信ケーブ
ル21には、複数台のプリンタ装置221 、222 、…
…22N と、複数台のワークステーション231 、23
2 、……23M が接続されている。このプリントシステ
ムで、これらワークステーション231 、232 、……
23M がそれぞれ編集等を行った文書は、プリンタ装置
221 、222 、……22N 中の任意の1台に送られ、
ここでプリントアウトさせるようになっている。
FIG. 2 shows an outline of a printing system using a printer device according to an embodiment of the present invention. The communication cable 21 forming the ring-shaped network includes a plurality of printer devices 22 1 , 22 2 , ...
22 N and a plurality of workstations 23 1 , 23
2 , ... 23 M is connected. With this printing system, these workstations 23 1 , 23 2 , ...
The document edited by 23 M is sent to any one of the printer devices 22 1 , 22 2 , ..., 22 N ,
It is designed to be printed out here.

【0019】図1は本発明の一実施例のプリンタ装置の
概要を表わしたものである。プリンタ装置22は各種制
御の中枢となるCPU31を備えている。CPU31は
データバス等のバス32を介してROM33、RAM3
4、不揮発性メモリ(NVM)35、ネットワークイン
タフェース(I/F)部36、パネル制御部37および
エンジン制御部38と接続されている。
FIG. 1 shows an outline of a printer device according to an embodiment of the present invention. The printer device 22 includes a CPU 31 which is the center of various controls. The CPU 31 has a ROM 33 and a RAM 3 via a bus 32 such as a data bus.
4, a non-volatile memory (NVM) 35, a network interface (I / F) unit 36, a panel control unit 37, and an engine control unit 38.

【0020】ここでROM(リード・オンリ・メモリ)
33には、制御プログラムの他にこのプリンタ装置22
のネイティブなプリンタ制御言語についての処理プログ
ラムが書き込まれている。RAM(ランダム・アクセス
・メモリ)34は、CPU31が各種制御を実行する上
での一時的に必要とするデータを格納する作業用メモリ
としての役割を持っている他、イメージデータを展開す
るためのページメモリとしての役割も備えている。ここ
で、イメージデータは印字のためにエンジン制御部37
に送られるデータである。本実施例で使用される不揮発
性メモリ35は、書き換えが可能な不揮発性メモリであ
り、ここには複数のエミュレーションプログラムと、こ
れらの選択の際に使用されるエミュレーションテーブル
が格納されている。これは不揮発性メモリであるので、
電源を切ってもその内容が保存されるようになってい
る。書き換えが可能な不揮発性メモリとしては、フラッ
シュ電気的消去ROM(Flash E2 PROM)や電気的
消去ROM(E2 PROM)あるいはハードディスク記
憶装置が代表的である。本実施例ではフラッシュ電気的
消去ROMを不揮発性メモリとして使用している。電池
によってバックアップされたRAMも不揮発性メモリと
して使用することができる。
ROM (Read Only Memory)
The printer device 22 includes a control program 33
A processing program for the native printer control language of is written. A RAM (Random Access Memory) 34 has a role as a working memory for storing data temporarily required for the CPU 31 to execute various controls, and also for expanding image data. It also has a role as a page memory. Here, the image data is printed by the engine control unit 37 for printing.
Is the data sent to. The non-volatile memory 35 used in the present embodiment is a rewritable non-volatile memory, and stores a plurality of emulation programs and emulation tables used when selecting these. Since this is a non-volatile memory,
The contents are saved even when the power is turned off. As a rewritable non-volatile memory, a flash electric erase ROM (Flash E 2 PROM), an electric erase ROM (E 2 PROM), or a hard disk storage device is typical. In this embodiment, a flash electric erase ROM is used as a non-volatile memory. A RAM backed up by a battery can also be used as a non-volatile memory.

【0021】ネットワークインタフェース部36は、ネ
ットワークとの通信上のインタフェースをとるために用
意されたものである。ネットワークインタフェース部3
6は、ワークステーション231 、232 、……23M
から送られてきたデータを通信ケーブル21を通して取
り込み、CPU31が処理できる状態にするようになっ
ている。パネル制御部37はコントロールパネル41を
接続しており、各種キーと液晶ディスプレイに対するデ
ータの入出力制御を行うようになっている。
The network interface section 36 is prepared to serve as an interface for communication with the network. Network interface unit 3
6 is a workstation 23 1 , 23 2 , ... 23 M
The data transmitted from the CPU 31 is taken in through the communication cable 21 so that the CPU 31 can process the data. The panel control unit 37 is connected to a control panel 41, and controls input / output of data with respect to various keys and a liquid crystal display.

【0022】図3は、コントロールパネルにおけるこれ
らキー等の配置を表わしたものである。コントロールパ
ネル41には、その上部に液晶ディスプレイ43が配置
されており、その下には8つのキー441 〜448 が配
置されている。このうち液晶ディスプレイ43には、プ
リンタ装置22の状態が表示される他、各キー441
448 に対応したファンクションの内容が表示されるよ
うになっている。ここて、ONLINE(オンライン)
キー441 は、このプリンタ装置22をオンラインの状
態にするかオフラインの状態にするかの切り替えを行う
ようになっている。
FIG. 3 shows the arrangement of these keys and the like on the control panel. A liquid crystal display 43 is arranged above the control panel 41, and eight keys 44 1 to 44 8 are arranged below the liquid crystal display 43. Of these, the liquid crystal display 43 displays the status of the printer device 22, and the keys 44 1 ...
The contents of the function corresponding to 44 8 are displayed. Here, ONLINE (online)
Key 44 1 is adapted to perform one of the switching to the offline state to the printer device 22 in the online state.

【0023】FONT(ORIENTATION)キー
442 は、ワークステーション23から送られてきた情
報中に、使用するフォントについての情報が無かった場
合に、使用するフォントの種類を設定するモードに入る
ために使用するキーである。このFONT(ORIEN
TATION)キー442をCONTINUE(SIF
T)キー445 と同時に押した場合には、印字用紙とイ
メージの向きを設定するためのモードに入る。MODE
(EMULATION)キー443 は、各種のプリンタ
動作モードを設定するためのモードに入るために使用さ
れる。CONTINUE(SIFT)キー445 と同時
に押した場合には、エミュレーション(EMULATI
ON)状態を設定するためのモードに入るようになって
いる。
[0023] FONT (ORIENTATION) key 44 2, in the information sent from the work station 23, used for when there is no information about the font used, enters a mode for setting the type of font to be used Is the key to do. This FONT (ORIEN
TATION key 44 2 to CONTINUE (SIF
If you press at the same time as T) key 44 5, it enters a mode for setting the direction of the printing paper and image. MODE
The (EMULATION) key 44 3 is used to enter a mode for setting various printer operation modes. When pressed simultaneously with the CONTINUE (SIFT) key 44 5 , the emulation (EMULATI)
It is adapted to enter a mode for setting the (ON) state.

【0024】△(TEST)キー444 は、各設定モー
ドに入ったときに項目を選択するために使用される。C
ONTINUE(SIFT)キー445 と同時に押した
場合には、各種テストを実行するためのモードに入るよ
うになっている。CONTINUE(SIFT)キー4
5 は、致命的でないエラーが発生した場合に、そのエ
ラーを無視して所定の動作を実行するために使用され
る。また、他のキー44 2 〜444 、446 〜448
同時に押すことで、これらのキーのもう1つの機能を実
行させる。すなわち通常のキーボードにおけるシフトキ
ーと同様の作用を行う。ENTER(COPY)キー4
6 は、各設定モードにおいて選択した項目に設定を行
うときに使用する。CONTINUE(SIFT)キー
445 と同時に押した場合には、1枚分のイメージデー
タについて、何枚プリントアウトを行うかを設定するた
めのモードに入る。FORM FEED(FEEDE
R)キー447 は、プリント動作を起動する情報がホス
ト装置から届かずに、前記したRAM34の一部を構成
するページメモリ上にイメージデータが残った場合に、
これをプリント出力するために使用される。CONTI
NUE(SIFT)キー445 と同時に押した場合に
は、印字用紙を給紙するトレイを設定するためのモード
に入る。▽(RESET)キー448 は、各設定モード
において項目を変更する際に使用される。CONTIN
UE(SIFT)キー445 と同時に押した場合には、
各種のリセット機能を実行するためのモードに入る。
△ (TEST) key 44FourIs the setting mode
Used to select an item when entering the code. C
ONNTUE (SIFT) key 44FivePressed at the same time
In case you're going into a mode to run various tests
Growling. CONTINUE (SIFT) key 4
FourFiveIs a non-fatal error when an error occurs.
Used to ignore the error and perform the desired action
It Also, another key 44 2~ 44Four, 446~ 448When
Press at the same time to perform another function of these keys.
Let go. That is, the shift key on a normal keyboard
The same action as ENTER (COPY) key 4
Four6Sets the item selected in each setting mode.
Used when CONTINUE (SIFT) key
44FiveIf pressed at the same time, one image data
Setting for how many printouts
Enter the first mode. FORM FEED (FEEDE
R) key 447Has information that triggers the print operation.
A part of the RAM 34 described above without receiving from the device
If the image data remains on the page memory,
It is used to print out this. CONTI
NUE (SIFT) key 44FiveWhen pressed at the same time
Is a mode for setting the tray for feeding print paper.
to go into. ▽ (RESET) key 448Is each setting mode
Used when changing items in. CONTIN
UE (SIFT) key 44FiveIf pressed at the same time,
Enters a mode for performing various reset functions.

【0025】図4は、2つのエミュレーションモードを
選択するための液晶ディスプレイの表示内容を表わした
ものである。前記したようにMODE(EMULATI
ON)キー443 とCONTINUE(SIFT)キー
445 を同時に押した場合にはエミュレーション状態を
設定するためのモードに入る。このとき、液晶ディスプ
レイ43には、エミュレーションをオート(AUTO)
モードとアドビ社のポストスクリプト(Post Script )
言語モードのいずれかを選択させるための表示が行われ
る。オペレータは、△(TEST)キー444 あるいは
▽(RESET)キー448を押下することで、いずれ
か所望のモードに設定することができる。オペレータが
オートモードを選択すると、このプリンタ装置22は不
揮発性メモリ35に格納されている複数のエミュレーシ
ョンプログラムを適宜活用して印字用のデータに応じた
最適のデータ処理を行うようになっている。これに対し
てポストスクリプト言語モードを選択した場合には、こ
のプリンタ装置22のネイティブな言語であるポストス
クリプト言語のみが実行されることになる。
FIG. 4 shows the display contents of the liquid crystal display for selecting the two emulation modes. As mentioned above, MODE (EMULATI
When the (ON) key 44 3 and the CONTINUE (SIFT) key 44 5 are pressed simultaneously, the mode for setting the emulation state is entered. At this time, the liquid crystal display 43 is automatically emulated (AUTO).
Mode and Adobe Post Script
A display is displayed to select one of the language modes. The operator can set either desired mode by pressing the Δ (TEST) key 44 4 or ▽ (RESET) key 44 8 . When the operator selects the auto mode, the printer device 22 appropriately utilizes a plurality of emulation programs stored in the non-volatile memory 35 to perform optimum data processing according to the print data. On the other hand, when the PostScript language mode is selected, only the PostScript language which is the native language of the printer device 22 is executed.

【0026】図1に戻って説明を続ける。エンジン制御
部38にはエンジン部46が接続されている。エンジン
部46とは、プリンタ装置22の印字部であり、本実施
例ではレーザプリンタとしての基本的な構成部分から構
成されている。エンジン部46は前記したページメモリ
から読み出された印字信号を受け取ってレーザビームを
変調し、図示しない感光ドラムにこれを露光走査して静
電潜像の形成を行わせる。そして、この静電潜像を図示
しない現像装置で現像してトナー像を作成し、これを印
字用紙に転写し定着して印字済みの用紙として図示しな
いトレイに排出することになる。
Returning to FIG. 1, the description will be continued. An engine unit 46 is connected to the engine control unit 38. The engine unit 46 is a printing unit of the printer device 22, and in the present embodiment, it is composed of basic components as a laser printer. The engine unit 46 receives the print signal read from the page memory, modulates the laser beam, and exposes and scans the photosensitive drum (not shown) to form an electrostatic latent image. Then, this electrostatic latent image is developed by a developing device (not shown) to create a toner image, which is transferred onto a printing sheet, fixed, and discharged as a printed sheet onto a tray (not shown).

【0027】次の表1および表2は、図1に示した不揮
発性メモリに格納されたエミュレーションテーブルの一
部を表わしたものである。
The following Tables 1 and 2 show a part of the emulation table stored in the nonvolatile memory shown in FIG.

【0028】[0028]

【表1】 [Table 1]

【0029】[0029]

【表2】 [Table 2]

【0030】本実施例のプリンタ装置には、2つのエミ
ュレーションプログラムが格納されており、ネイティブ
なプリンタ制御言語と合わせて3つのプリンタ制御言語
に対応できるようになっている。表1および表2に示し
た比較テーブルは、2つのエミュレーションプログラム
に対応させたものである。これらの比較テーブルで、
「データ長」とはホストコンピュータとしてのワークス
テーション23から送られてくるシリアルなデータの中
で参照用に区切られるデータの長さをいう。また、「デ
ータ」とは、制御コードを構成するデータをいう。「ポ
イント」とは、ワークステーション23から送られてき
たデータが比較テーブル中のデータと一致した時の重み
をいう。この重みは、正の方向に0から10まで設定さ
れている他、表2に示したように負の方向にも設定され
ている。
The printer apparatus of this embodiment stores two emulation programs, and can cope with three printer control languages in addition to the native printer control language. The comparison tables shown in Table 1 and Table 2 correspond to two emulation programs. In these comparison tables,
The “data length” means the length of data delimited for reference in the serial data sent from the workstation 23 as a host computer. Further, "data" refers to data that constitutes a control code. The “point” means the weight when the data sent from the workstation 23 matches the data in the comparison table. This weight is set from 0 to 10 in the positive direction, and is also set in the negative direction as shown in Table 2.

【0031】ここで、重みが“0”とはデータの一致が
エミュレーションの判別を行う上で得点にも失点にもな
らない場合をいい、重みが“10”とはただ1つのエミ
ュレーション用の比較テーブルでのみデータが一致する
場合をいう。“1”から“9”までの重みについては、
データが幾つのエミュレーションの比較テーブルについ
て一致するかとか、そのデータの一般的な出現頻度等の
各種の状況を勘案して設定されている。これに対して重
みが負の場合とは、該当するプリンタ制御言語でそのよ
うなデータの出現は想定されない場合であり、マイナス
の出現確率に相当する。
Here, the weight "0" means that the coincidence of data does not give a score or a goal in judging the emulation, and the weight "10" means only one comparison table for emulation. Only when the data match. For the weights from "1" to "9",
It is set in consideration of various situations such as how many emulation comparison tables match the data and the general appearance frequency of the data. On the other hand, the case where the weight is negative refers to the case where such data is not expected to appear in the corresponding printer control language and corresponds to a negative appearance probability.

【0032】さて、本実施例のプリンタ装置による最適
のエミュレーションを選択するエミュレーション選択作
業では、比較用バッファB(図示せず)にワークステー
ション23(図2)から送られてくるデータを格納し、
これを表1等に示した比較テーブルで比較する。そし
て、一致したものについて比較テーブルごとにそれらの
ポイントを加算していく。そして、最高の加算値となっ
たエミュレーションと次に高い点数となったエミュレー
ションとの差が所定の値以上開いたとき、最高の加算値
となったエミュレーションに設定することにしている。
ここで、比較用バッファBには1バイトずつシフトさせ
ながらデータを格納し、各エミュレーションの比較テー
ブルと比較用バッファBの先頭番地からデータの比較を
行う。比較用バッファBに格納されるデータの長さは、
処理しようとする比較テーブルのデータ長の最大値と同
一である。
In the emulation selection work for selecting the optimum emulation by the printer device of this embodiment, the data sent from the workstation 23 (FIG. 2) is stored in the comparison buffer B (not shown),
This is compared with the comparison table shown in Table 1 and the like. Then, for those that match, those points are added for each comparison table. Then, when the difference between the emulation with the highest added value and the emulation with the next highest score opens beyond a predetermined value, the emulation with the highest added value is set.
Here, the data is stored in the comparison buffer B while being shifted by 1 byte, and the data is compared from the comparison table of each emulation and the head address of the comparison buffer B. The length of the data stored in the comparison buffer B is
It is the same as the maximum value of the data length of the comparison table to be processed.

【0033】図5および図6は、本実施例のプリンタ装
置によるエミュレーションの設定作業の流れを表わした
ものである。まずCPU31(図1)は表1に示した第
1のエミュレーション用の比較テーブル(以下第1の比
較テーブルという。)に対応する第1のエミュレーショ
ンの適合度を書き込む第1の適合度レジスタP(1)
と、表2に示した第2のエミュレーション用の比較テー
ブル(以下第2の比較テーブルという。)に対応する第
2のエミュレーションの適合度を書き込む第2の適合度
レジスタP(2)の内容を共に“0”にクリアする(ス
テップS101)。そして、ワークステーション23か
ら送られてきたデータを格納している入力データバッフ
ァに対するアドレスポインタPbを入力データバッファ
の先頭にセットする(ステップS102)。これは、プ
リントのために受信したデータの先頭から順に比較作業
を開始するためである。
FIG. 5 and FIG. 6 show the flow of emulation setting work by the printer device of this embodiment. First, the CPU 31 (FIG. 1) writes the first adaptability register P (which stores the adaptability of the first emulation corresponding to the first emulation comparison table (hereinafter referred to as the first comparison table) shown in Table 1). 1)
And the contents of the second fitness register P (2) in which the fitness of the second emulation corresponding to the second emulation comparison table (hereinafter referred to as the second comparison table) shown in Table 2 is written. Both are cleared to "0" (step S101). Then, the address pointer Pb for the input data buffer storing the data sent from the workstation 23 is set at the head of the input data buffer (step S102). This is because the comparison work is started in order from the beginning of the data received for printing.

【0034】次にCPU31は比較テーブル用のアドレ
スポインタPtを第1の比較テーブルの先頭に設定する
(ステップS103)。そして、第1の比較テーブルか
ら読み取ったデータを格納するテーブルバッファT(図
示せず)と、入力データから読み取った比較対象となる
データを格納する比較用バッファBの内容をクリアする
(ステップS104)。ここで比較用バッファBとテー
ブルバッファTの長さは、第1の比較テーブルにおける
データ長の最大値と同一の長さに設定されている。
Next, the CPU 31 sets the address pointer Pt for the comparison table at the head of the first comparison table (step S103). Then, the contents of the table buffer T (not shown) that stores the data read from the first comparison table and the contents of the comparison buffer B that stores the comparison target data read from the input data are cleared (step S104). .. Here, the lengths of the comparison buffer B and the table buffer T are set to the same length as the maximum value of the data length in the first comparison table.

【0035】このようにして比較のための2つのバッフ
ァT、Bが初期化されたら、入力データバッファから1
バッファ分のデータが読み取られ比較用バッファBに格
納される(ステップS105)。次に第1の比較テーブ
ルから比較しようとするデータについてのデータ長(バ
イト数)を表わした1バイト分のデータが読み取られ、
1バイト構成のデータ長用バッファL(図示せず)に格
納される(ステップS106)。そして、比較テーブル
用のアドレスポインタPtを“1”だけカウントアップ
して(ステップS107)、第1の比較テーブルから1
バイト分のデータを読み取りテーブルバッファTに格納
する(ステップS108)。
When the two buffers T and B for comparison are initialized in this way, 1 is input from the input data buffer.
The buffer data is read and stored in the comparison buffer B (step S105). Next, 1-byte data representing the data length (number of bytes) of the data to be compared is read from the first comparison table,
The data is stored in the 1-byte data length buffer L (not shown) (step S106). Then, the address pointer Pt for the comparison table is incremented by "1" (step S107), and 1 is added from the first comparison table.
The byte data is read and stored in the table buffer T (step S108).

【0036】この時点でテーブルバッファTと比較用バ
ッファBの内容が一致するかどうかの判別が行われる
(ステップS109)。一致した場合には(Y)、後続
のデータが一致するかどうかのチェックが必要になる。
そこで入力データバッファからデータ長用バッファの示
すデータの長さ(Lバイト)となるだけのデータが読み
取られ比較用バッファBに格納される(ステップS11
0)。例えば表1における1番最初のデータは2バイト
構成なので、Lは“2”であり、もう1バイトのデータ
が入力データバッファから読み出され、合計2バイトの
データが比較用バッファBに格納されることになる。同
様にして、第1の比較テーブルからデータ長用バッファ
の示すデータの長さ(Lバイト)となるだけのデータが
読み取られテーブルバッファTに格納される(ステップ
S111)。これにより、テーブルバッファTには第1
の比較テーブルから比較の対象となる長さのデータが格
納されたことになる。
At this point, it is determined whether the contents of the table buffer T and the comparison buffer B match (step S109). When they match (Y), it is necessary to check whether the following data match.
Therefore, the data as long as the data length (L bytes) indicated by the data length buffer is read from the input data buffer and stored in the comparison buffer B (step S11).
0). For example, since the first data in Table 1 has 2 bytes, L is “2”, another 1 byte of data is read from the input data buffer, and a total of 2 bytes of data is stored in the comparison buffer B. Will be. Similarly, as much data as the data length indicated by the data length buffer (L bytes) is read from the first comparison table and stored in the table buffer T (step S111). As a result, the first data is stored in the table buffer T.
The data of the length to be compared is stored from the comparison table of.

【0037】この状態で再びテーブルバッファTと比較
用バッファBの内容が一致するかどうかの判別が行われ
る(ステップS112)。一致した場合には(Y)、比
較テーブル用のアドレスポインタPtが数値“L”だけ
加算される(ステップS113)。そして第1の比較テ
ーブルからポイントを読み込んで第1の適合度レジスタ
P(1)に加算する(ステップS114)。この場合に
は、第1の比較テーブルでデータの一致が見られたの
で、第2の比較テーブルについても同様の比較作業を行
うために図6のステップS115に進む。
In this state, it is again determined whether or not the contents of the table buffer T and the comparison buffer B match (step S112). If they match (Y), the comparison table address pointer Pt is incremented by the numerical value "L" (step S113). Then, the points are read from the first comparison table and added to the first fitness register P (1) (step S114). In this case, since a data match was found in the first comparison table, the process proceeds to step S115 in FIG. 6 to perform the same comparison work for the second comparison table.

【0038】これに対して、判別結果が一致しなかった
場合には(ステップS112;N)、比較テーブル用の
アドレスポインタPtが数値“L”+“1”だけ加算さ
れる(ステップS116)。そして比較テーブル用のア
ドレスポインタPtが第1の比較テーブルの最終アドレ
スよりも大きいかどうかの判別が行われ(ステップS1
17)、大きい場合には第1の比較テーブルにおける比
較作業が終了したことになるので、図6のステップS1
15に進むことになる。比較テーブル用のアドレスポイ
ンタPtが第1の比較テーブルの最終アドレスよりも大
きくない場合には(ステップS117;N)、ステップ
S104に戻って第1の比較テーブルにおける次のデー
タについて比較作業が行われることになる。以下同様に
してステップS112でデータの一致がみられるか第1
の比較テーブルのすべてのデータについて一致がとられ
るまで同様の作業が繰り返される。なお、ステップS1
09で最初の1バイト分について一致がとられなかった
場合には(N)、データの全長についての一致がみられ
なかったのと結局同じなので、ステップS110からス
テップS112までの手順を省略してステップS116
に進むことになる。
On the other hand, if the determination results do not match (step S112; N), the comparison table address pointer Pt is incremented by the numerical value "L" + "1" (step S116). Then, it is judged whether or not the address pointer Pt for the comparison table is larger than the final address of the first comparison table (step S1).
17), if it is larger, it means that the comparison work in the first comparison table has been completed, so step S1 in FIG.
I will proceed to 15. When the address pointer Pt for the comparison table is not larger than the final address of the first comparison table (step S117; N), the process returns to step S104 and the comparison work is performed on the next data in the first comparison table. It will be. Similarly, in step S112, whether data match is found or not
The same operation is repeated until a match is obtained for all the data in the comparison table in. Note that step S1
If no match is found for the first one byte at 09 (N), it is the same as no match for the total length of the data, so the procedure from step S110 to step S112 is omitted. Step S116
Will proceed to.

【0039】ステップS115では、比較テーブル用の
アドレスポインタPtを第2の比較テーブルの先頭に配
置する。そして第2の比較テーブルから読み取ったデー
タを格納するテーブルバッファTと、入力データから読
み取った比較対象となるデータを格納する比較用バッフ
ァBの内容をクリアする(ステップS118)。ここで
比較用バッファBとテーブルバッファTの長さは、第2
の比較テーブルにおけるデータ長の最大値と同一の長さ
に設定されている。
In step S115, the address pointer Pt for the comparison table is placed at the head of the second comparison table. Then, the contents of the table buffer T that stores the data read from the second comparison table and the contents of the comparison buffer B that stores the data to be compared read from the input data are cleared (step S118). Here, the lengths of the comparison buffer B and the table buffer T are the second
It is set to the same length as the maximum value of the data length in the comparison table.

【0040】このようにして比較のための2つのバッフ
ァT、Bが初期化されたら、入力データバッファから1
バッファ分のデータが読み取られ比較用バッファBに格
納される(ステップS119)。次に第2の比較テーブ
ルから比較しようとするデータについてのデータ長(バ
イト数)を表わした1バイト分のデータが読み取られ、
1バイト構成のデータ長用バッファL(図示せず)に格
納される(ステップS120)。そして、比較テーブル
用のアドレスポインタPtを“1”だけカウントアップ
して(ステップS121)、第2の比較テーブルから1
バイト分のデータを読み取りテーブルバッファTに格納
する(ステップS122)。
When the two buffers T and B for comparison are initialized in this way, 1 is input from the input data buffer.
The buffer data is read and stored in the comparison buffer B (step S119). Next, 1-byte data representing the data length (number of bytes) of the data to be compared is read from the second comparison table,
The data is stored in the 1-byte data length buffer L (not shown) (step S120). Then, the address pointer Pt for the comparison table is incremented by "1" (step S121), and 1 is added from the second comparison table.
The byte data is read and stored in the table buffer T (step S122).

【0041】この時点でテーブルバッファTと比較用バ
ッファBの内容が一致するかどうかの判別が行われる
(ステップS123)。一致した場合には(Y)、後続
のデータが一致するかどうかのチェックが必要になる。
そこで入力データバッファからデータ長用バッファの示
すデータの長さ(Lバイト)となるだけのデータが読み
取られ比較用バッファBに格納される(ステップS12
4)。同様にして、第2の比較テーブルからデータ長用
バッファの示すデータの長さ(Lバイト)となるだけの
データが読み取られテーブルバッファTに格納される
(ステップS125)。これにより、テーブルバッファ
Tには第2の比較テーブルから比較の対象となる長さの
データが格納されたことになる。
At this point, it is determined whether the contents of the table buffer T and the comparison buffer B match (step S123). When they match (Y), it is necessary to check whether the following data match.
Then, the data as much as the data length (L bytes) indicated by the data length buffer is read from the input data buffer and stored in the comparison buffer B (step S12).
4). Similarly, as much data as the length (L bytes) of the data indicated by the data length buffer is read from the second comparison table and stored in the table buffer T (step S125). As a result, the data of the length to be compared is stored in the table buffer T from the second comparison table.

【0042】この状態で再びテーブルバッファTと比較
用バッファBの内容が一致するかどうかの判別が行われ
る(ステップS126)。一致した場合には(Y)、比
較テーブル用のアドレスポインタPtが数値“L”だけ
加算される(ステップS127)。そして第2の比較テ
ーブルからポイントを読み込んで第2の適合度レジスタ
P(2)に加算する(ステップS128)。この場合に
は、第2の比較テーブルでデータの一致が見られたの
で、第2の比較テーブルについても同様の比較作業を行
うためにステップS129に進む。
In this state, it is again determined whether the contents of the table buffer T and the comparison buffer B match (step S126). If they match (Y), the comparison table address pointer Pt is incremented by the numerical value "L" (step S127). Then, the points are read from the second comparison table and added to the second fitness register P (2) (step S128). In this case, since the data match was found in the second comparison table, the process proceeds to step S129 in order to perform the similar comparison work on the second comparison table.

【0043】これに対して、判別結果が一致しなかった
場合には(ステップS126;N)、比較テーブル用の
アドレスポインタPtが数値“L”+“1”だけ加算さ
れる(ステップS130)。そして比較テーブル用のア
ドレスポインタPtが第2の比較テーブルの最終アドレ
スよりも大きいかどうかの判別が行われ(ステップS1
31)、大きい場合には第2の比較テーブルにおける比
較作業が終了したことになるので、ステップS129に
進むことになる。比較テーブル用のアドレスポインタP
tが第2の比較テーブルの最終アドレスよりも大きくな
い場合には(ステップS131;N)、ステップS11
8に戻って第2の比較テーブルにおける次のデータにつ
いて比較作業が行われることになる。以下同様にしてス
テップS126でデータの一致がみられるか第2の比較
テーブルのすべてのデータについて一致がとられるまで
同様の作業が繰り返される。なお、ステップS123で
最初の1バイト分について一致がとられなかった場合に
は(N)、データの全長についての一致がみられなかっ
たのと結局同じなので、ステップS124からステップ
S126までの手順を省略してステップS129に進む
ことになる。
On the other hand, if the determination results do not match (step S126; N), the comparison table address pointer Pt is incremented by the numerical value "L" + "1" (step S130). Then, it is determined whether or not the address pointer Pt for the comparison table is larger than the final address of the second comparison table (step S1).
31), if it is larger, it means that the comparison work in the second comparison table has been completed, so that the process proceeds to step S129. Address pointer P for comparison table
When t is not larger than the final address of the second comparison table (step S131; N), step S11
Returning to step 8, the comparison work is performed on the next data in the second comparison table. In the same manner, the same operation is repeated until the data match is found in step S126 or all the data in the second comparison table are matched. Note that if no match is found for the first byte in step S123 (N), it is the same as no match for the total length of the data, so the procedure from step S124 to step S126 is performed. It is omitted and the process proceeds to step S129.

【0044】ステップS129では、第2の適合度レジ
スタP(2)の値と第1の適合度レジスタP(1)の値
との大小関係が調べられる。この結果、第2の適合度レ
ジスタP(2)の値の方が大きかった場合には(Y)、
更に第2の適合度レジスタP(2)の値の方が第1の適
合度レジスタP(1)の値の方よりも加算値が“30”
より大きいかどうかの判別が行われる(ステップS13
2)。そして、“30”より大きい場合には第2のエミ
ュレーションが最適なものとして確定し、データ処理の
ために第2のエミュレーションプログラムが設定される
(ステップS133)。加算値が“30”以下であった
場合には(ステップS132;N)、入力データバッフ
ァに対するアドレスポインタPbが次の位置になるよう
に加算される(ステップS134)。そしてステップS
103に戻って第1の比較テーブルから順にデータの一
致の有無が調べられることになる。
In step S129, the magnitude relation between the value of the second fitness register P (2) and the value of the first fitness register P (1) is checked. As a result, if the value of the second fitness register P (2) is larger (Y),
Furthermore, the added value of the value of the second fitness register P (2) is “30” as compared with the value of the first fitness register P (1).
It is determined whether or not it is larger (step S13).
2). If it is larger than "30", the second emulation is determined to be the optimum one, and the second emulation program is set for data processing (step S133). When the added value is equal to or less than "30" (step S132; N), the address pointer Pb for the input data buffer is added so as to be at the next position (step S134). And step S
Returning to 103, it is checked from the first comparison table whether or not the data match.

【0045】一方、ステップS129で第1の適合度レ
ジスタP(1)の値の方が第2の適合度レジスタP
(2)の値よりも大きかったり、両者が等しかった場合
には(N)、第1の適合度レジスタP(1)の値の方が
第2の適合度レジスタP(2)の値の方よりも加算値が
“30”より大きいかどうかの判別が行われる(ステッ
プS135)。そして、“30”より大きい場合には第
1のエミュレーションが最適なものとして確定し、デー
タ処理のために第1のエミュレーションプログラムが設
定される(ステップS136)。加算値が“30”以下
であった場合には(N)、入力データバッファに対する
アドレスポインタPbが次の位置になるように加算され
る(ステップS134)。そしてステップS103に戻
って第1の比較テーブルから順にデータの一致の有無が
調べられることになる。
On the other hand, in step S129, the value of the first fitness register P (1) is the second fitness register P (1).
If it is larger than the value of (2) or both are equal (N), the value of the first fitness register P (1) is the value of the second fitness register P (2). It is determined whether the added value is larger than "30" (step S135). If it is larger than "30", the first emulation is determined to be the optimum one, and the first emulation program is set for data processing (step S136). If the added value is equal to or less than "30" (N), the address pointer Pb for the input data buffer is added so as to be at the next position (step S134). Then, the process returns to step S103, and it is sequentially checked from the first comparison table whether or not the data match.

【0046】以上説明した実施例では、最大の加算値と
次に大きな加算値との差がある値(実施例では“3
0”)よりも大きくなったときに最大の加算値に対応す
るエミュレーションを選択することにしたが、この差
が、ホスト装置側から送られてきたデータの中でそれま
で比較したデータの総数に対して所定の割合以上になっ
たときに最大値に対応するエミュレーションを選択する
ようにしてもよい。また、ホスト装置側から送られてき
たデータをある程度の量処理した結果として、最大の加
算値を獲得したエミュレーションを単純に選択するよう
にしてもよい。
In the embodiment described above, a value having a difference between the maximum addition value and the next largest addition value (“3” in the embodiment).
We decided to select the emulation corresponding to the maximum addition value when it became larger than 0 "), but this difference is the total number of data compared up to that time among the data sent from the host device side. On the other hand, the emulation corresponding to the maximum value may be selected when the ratio exceeds a predetermined ratio, or the maximum addition value as a result of processing a certain amount of data sent from the host device side. The emulation that has acquired may be simply selected.

【0047】また、実施例では2つのエミュレーション
プログラムについて比較用のテーブルを設けて比較作業
を行ったが、3つ以上のエミュレーションプログラムを
格納しているプリンタ装置の場合には、これらの数だけ
の比較用テーブルを用いてエミュレーションごとにポイ
ントの総和を求めて行き、最終的に最大値を有するエミ
ュレーションプログラムを選択するようにすればよい。
Further, in the embodiment, a comparison table is provided for the two emulation programs to perform the comparison work. However, in the case of a printer device which stores three or more emulation programs, only these numbers are used. It suffices to obtain the sum of points for each emulation using the comparison table and finally select the emulation program having the maximum value.

【0048】[0048]

【発明の効果】以上説明したように請求項1〜請求項3
記載の発明によれば、比較用のデータに重みを付けたの
で、ホスト装置から送られてくるデータの全部を処理す
ることなく、最も確からしいプリンタ制御言語を迅速に
選択することができるという効果がある。また、単純に
データとデータの比較を行うことにしたので、エスケー
プシーケンスを持たないエミュレーションについても、
比較判断を行うことができるという効果もある。
As described above, claims 1 to 3 are as follows.
According to the described invention, since the data for comparison is weighted, it is possible to quickly select the most probable printer control language without processing all of the data sent from the host device. There is. Also, since I decided to simply compare data with data, even for emulation that does not have an escape sequence,
There is also an effect that a comparative judgment can be made.

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

【図1】 本発明の一実施例のプリンタ装置の回路構成
の概要を表わしたブロック図である。
FIG. 1 is a block diagram showing an outline of a circuit configuration of a printer device according to an embodiment of the present invention.

【図2】 実施例のプリンタ装置を使用したプリントシ
ステムの概要を表わしたシステム構成図である。
FIG. 2 is a system configuration diagram showing an outline of a print system using the printer device of the embodiment.

【図3】 本実施例におけるコントロールパネルのキー
等の配置を示した平面図である。
FIG. 3 is a plan view showing an arrangement of keys and the like of a control panel in this embodiment.

【図4】 2つのエミュレーションモードを選択するた
めの液晶ディスプレイの表示内容を表わした平面図であ
る。
FIG. 4 is a plan view showing the display contents of a liquid crystal display for selecting two emulation modes.

【図5】 本実施例のプリンタ装置によるエミュレーシ
ョンの設定作業のうち主として第1の比較テーブルによ
る作業を表わした流れ図である。
FIG. 5 is a flowchart mainly showing an operation by a first comparison table among emulation setting operations by the printer apparatus of the present embodiment.

【図6】 本実施例のプリンタ装置によるエミュレーシ
ョンの設定作業のうち主として第2の比較テーブルによ
る作業と最終的な選択作業の様子を表わした流れ図であ
る。
FIG. 6 is a flowchart mainly showing a state of a work by a second comparison table and a final selection work among emulation setting works by the printer apparatus of the present embodiment.

【図7】 ホストコンピュータとプリンタ装置との一般
的な接続関係を表わしたブロック図である。
FIG. 7 is a block diagram showing a general connection relationship between a host computer and a printer device.

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

22…プリンタ装置、23…ワークステーション(ホス
ト装置)、31…CPU、33…ROM、34…RA
M、35…不揮発性メモリ、46…エンジン部
22 ... Printer device, 23 ... Workstation (host device), 31 ... CPU, 33 ... ROM, 34 ... RA
M, 35 ... Non-volatile memory, 46 ... Engine part

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数バイトのデータ列とそれらに設定さ
れた重みとをエミュレーション別に表わしたテーブル
と、 ホスト装置から送られてきたデータを前記テーブルで検
索する検索手段と、 この検索結果として前記複数バイトのデータ列が合致す
るたびにエミュレーション別にそれらの重みを加算する
加算手段と、 加算値が最も大きなエミュレーションを前記データの処
理用に選択する選択手段とを具備することを特徴とする
プリンタ装置。
1. A table in which a data string of a plurality of bytes and weights set therein are represented by emulation, a search means for searching the data sent from the host device in the table, and the plurality of data as a result of the search. A printer apparatus comprising: an addition unit that adds weights for each emulation each time a data string of bytes matches, and a selection unit that selects an emulation having the largest addition value for processing the data.
【請求項2】 複数バイトのデータ列とそれらに設定さ
れた重みとをエミュレーション別に表わしたテーブル
と、 ホスト装置から送られてきたデータを前記テーブルで検
索する検索手段と、 この検索結果として前記複数バイトのデータ列が合致す
るたびにエミュレーション別にそれらの重みを加算する
加算手段と、 この加算手段で求めたエミュレーション別の重みの和に
おける最大値と次に大きな値との差が所定の値以上にな
ったとき前記最大値に対応するエミュレーションを前記
データの処理用に選択する選択手段とを具備することを
特徴とするプリンタ装置。
2. A table in which a data string of a plurality of bytes and weights set therein are represented by emulation, a search means for searching the table for data sent from a host device, and the plurality of data are obtained as a result of the search. Addition means for adding the weights for each emulation each time a byte data string matches, and a difference between the maximum value and the next largest value in the sum of emulation weights obtained by this addition means is greater than or equal to a predetermined value. And a selection unit that selects an emulation corresponding to the maximum value for processing the data when the maximum value is reached.
【請求項3】 複数バイトのデータ列とそれらに設定さ
れた重みとをエミュレーション別に表わしたテーブル
と、 ホスト装置から送られてきたデータを前記テーブルで検
索する検索手段と、 この検索結果として前記複数バイトのデータ列が合致す
るたびにエミュレーション別にそれらの重みを加算する
加算手段と、 この加算手段で求めたエミュレーション別の重みの和に
おける最大値と次に大きな値との差が、それまで比較を
行った前記データの総数に対して所定の割合以上になっ
たとき前記最大値に対応するエミュレーションを前記デ
ータの処理用に選択する選択手段とを具備することを特
徴とするプリンタ装置。
3. A table in which a data string of a plurality of bytes and weights set therein are represented by emulation, a search means for searching the table for data sent from a host device, and a plurality of the plurality of data as a result of the search. Addition means for adding the weights for each emulation each time the data string of bytes matches, and the difference between the maximum value and the next largest value in the sum of emulation weights obtained by this addition means is compared until then. A printer device, comprising: selecting means for selecting an emulation corresponding to the maximum value for processing the data when the ratio becomes a predetermined ratio or more with respect to the total number of the executed data.
JP3258817A 1991-10-07 1991-10-07 Printer device Expired - Fee Related JP2913934B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3258817A JP2913934B2 (en) 1991-10-07 1991-10-07 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3258817A JP2913934B2 (en) 1991-10-07 1991-10-07 Printer device

Publications (2)

Publication Number Publication Date
JPH0596823A true JPH0596823A (en) 1993-04-20
JP2913934B2 JP2913934B2 (en) 1999-06-28

Family

ID=17325457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3258817A Expired - Fee Related JP2913934B2 (en) 1991-10-07 1991-10-07 Printer device

Country Status (1)

Country Link
JP (1) JP2913934B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854940A (en) * 1995-04-24 1998-12-29 Fuji Xerox Co., Ltd. Output control system for interpreting input data according to a specific control language based upon outputs from a plurality of control language determining devices
US7973954B2 (en) 2006-08-28 2011-07-05 Sharp Laboratories Of America, Inc. Method and apparatus for automatic language switching for an imaging device
JP2013020369A (en) * 2011-07-08 2013-01-31 Toshiba Mitsubishi-Electric Industrial System Corp Printer alternative print data display unit and printer alternative print data display method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854940A (en) * 1995-04-24 1998-12-29 Fuji Xerox Co., Ltd. Output control system for interpreting input data according to a specific control language based upon outputs from a plurality of control language determining devices
US7973954B2 (en) 2006-08-28 2011-07-05 Sharp Laboratories Of America, Inc. Method and apparatus for automatic language switching for an imaging device
US8218187B2 (en) 2006-08-28 2012-07-10 Sharp Laboratories Of America, Inc. Method and apparatus for automatic language switching for an imaging device
JP2013020369A (en) * 2011-07-08 2013-01-31 Toshiba Mitsubishi-Electric Industrial System Corp Printer alternative print data display unit and printer alternative print data display method

Also Published As

Publication number Publication date
JP2913934B2 (en) 1999-06-28

Similar Documents

Publication Publication Date Title
US7236262B2 (en) Recording medium, printer control method, and printer control system
US5790766A (en) Method of printing on both sides of sheet without using a both side printing mechanism and an apparatus for use therewith
US5297876A (en) Page printer with internal and external memories
EP0478965A1 (en) Output method
JP2913934B2 (en) Printer device
US20030133149A1 (en) Print controller, print control method and printer
US5306102A (en) Print simulation for mode selection
JPH02156325A (en) Computer terminal equipment
JP2913941B2 (en) Printer control device
JP3585206B2 (en) Output device and output method
JP2959238B2 (en) Printing system
EP0686937B1 (en) Printing control apparatus and control program selecting method
JP2853409B2 (en) Image output device
JP2891857B2 (en) Printing apparatus and printing method
JP3610194B2 (en) Print control apparatus, print control method, and storage medium storing computer-readable program
JPH05104822A (en) Printer
JPH08185295A (en) Printer and its control method
JP2913942B2 (en) Printer control device
JPH0596824A (en) Printer device
JP3513305B2 (en) Display device and display control method for display device
JP2958226B2 (en) Print control device and print control method
JPH02216521A (en) Imaging device
JPH082067A (en) Printer and its control method
JP2000177215A (en) Printer apparatus
JPH03281379A (en) Image forming apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees