JPH05104825A - Printer control device - Google Patents

Printer control device

Info

Publication number
JPH05104825A
JPH05104825A JP3266343A JP26634391A JPH05104825A JP H05104825 A JPH05104825 A JP H05104825A JP 3266343 A JP3266343 A JP 3266343A JP 26634391 A JP26634391 A JP 26634391A JP H05104825 A JPH05104825 A JP H05104825A
Authority
JP
Japan
Prior art keywords
emulation
printer
data
printer control
character string
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
JP3266343A
Other languages
Japanese (ja)
Other versions
JP2913941B2 (en
Inventor
Osamu Igarashi
攻 五十嵐
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 JP3266343A priority Critical patent/JP2913941B2/en
Publication of JPH05104825A publication Critical patent/JPH05104825A/en
Application granted granted Critical
Publication of JP2913941B2 publication Critical patent/JP2913941B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a printer control device capable of selecting an optimal emulation from among printer control languages which control a printer using a divided printable character string. CONSTITUTION:A printer control device 21 is equipped with emulation programs corresponding to a printer control language which controls a printer using a divided printable character string. If data for printing consisting of this printer control language is received, CPU 31 selects one emulation and refers to its emulation execution table. Then if a significant character word is discovered, CPU 31 selects its emulation for processing data for printing. If not, CPU 31 selects emulations one by one sequentially and refers to their respective tables.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はホストコンピュータ等の
プリント情報源から送られてきたデータの印字を行わせ
るためのプリンタ制御装置に係わり、詳細には区切られ
た印刷可能なある文字列によりプリンタを制御するプリ
ント制御言語で送られてきたデータを基にエミュレーシ
ョンの選択を行うようにしたプリンタ制御装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control device for printing data sent from a print information source such as a host computer, and more particularly to a printer using a delimited printable character string. The present invention relates to a printer control device that selects emulation based on data sent in a print control language for controlling the printer.

【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. In the printer device 12, a printer control device 14 and a printing unit 15 as a printing mechanism are arranged. Printer controller 14
Is for developing an image for printing and for controlling 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 printer control device 14 of the printer device to correctly decode the control code sent from the host computer 11 side and perform the printing operation.

【0005】そこで従来からコントローラ内に複数のエ
ミュレーションと、これらの切換スイッチを配置したプ
リンタ装置が存在している。このようなプリンタ装置で
は、接続先のホストコンピュータの種類によってスイッ
チを切り換えて適切なエミュレーションを選択するよう
になっている。
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.

【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】また特開平1−287727号公報では、
同様に装置内部に複数のエミュレーションを配置してお
く。そして、これらのエミュレーションが選択された回
数を不揮発性の記憶手段に格納しておき、電源投入時等
の所定の場合には選択回数が最大となっているエミュレ
ーションの選択を行うようになっている。
Further, in JP-A-1-287727,
Similarly, a plurality of emulations are arranged inside the device. Then, the number of times these emulations are selected is stored in a non-volatile storage means, and the emulation having the maximum number of selections is selected in a predetermined case such as when the power is turned on. ..

【0009】[0009]

【発明が解決しようとする課題】ところで特開平1−3
14177号公報に記載の印字装置では、エミュレーシ
ョンの選択をプリンタ制御言語における制御コマンドの
識別によって行っている。ところが、プリンタ制御言語
によっては、例えばポストスクリプトのように、このよ
うな識別可能な特別の制御コマンドを使用せず、通常の
キャラクタのみで制御を行うようにしたものとがある。
特開平1−314177号公報に記載の印字装置ではこ
のようなキャラクタのみを使用したプリンタ制御言語で
送信されてきた印字用のデータを解析することができ
ず、最適なエミュレーションを選択することができな
い。
[Patent Document 1] Japanese Patent Laid-Open No. 1-3
In the printing apparatus described in Japanese Patent No. 14177, emulation is selected by identifying a control command in the printer control language. However, some printer control languages, such as Postscript, do not use such an identifiable special control command but perform control using only normal characters.
The printing device described in Japanese Patent Laid-Open No. 1-314177 cannot analyze the printing data transmitted in the printer control language using only such characters, and cannot select the optimum emulation. ..

【0010】これに対して、特開平1−287727号
公報に記載の装置では、今までに一番多く使用したエミ
ュレーションを初期設定するので、区切られた印刷可能
なある文字列によりプリンタを制御するプリンタ制御言
語で送信されてきた印字用のデータに対しても、エミュ
レーションの初期設定を行うことができる。しかしなが
ら、その選択されたエミュレーションが最適のものであ
るかどうかは全く別の問題であり、一番多く使用されて
いるプリンタ制御言語以外の言語のデータが送信されて
きた場合にはエミュレーションの選択が確実に間違って
しまうという欠点があった。
On the other hand, in the apparatus described in Japanese Patent Laid-Open No. 1-287727, the emulation that has been used most so far is initialized, so that the printer is controlled by a certain printable character string. The initial setting of emulation can also be performed on the printing data transmitted in the printer control language. However, whether or not the selected emulation is optimal is a completely different matter, and when data of a language other than the most frequently used printer control language is sent, the emulation selection may be different. It had the drawback of being definitely wrong.

【0011】そこで本発明の目的は、区切られた印刷可
能なある文字列によりプリンタを制御するプリンタ制御
言語の中で最適のエミュレーションを選択することので
きるプリンタ制御装置を提供することにある。
Therefore, an object of the present invention is to provide a printer control device capable of selecting an optimum emulation among printer control languages for controlling a printer by a certain printable character string.

【0012】[0012]

【課題を解決するための手段】請求項1記載の発明で
は、ホスト装置等のプリント情報源から送られてきた印
字用のデータを格納するデータ格納部と、エスケープシ
ーケンスを持たない複数のエミュレーションプログラム
を格納したエミュレーションプログラム格納部と複数の
エミュレーションプログラムの1つを選択し印字用のデ
ータの解析を行わせる解析処理手段と、この印字用のデ
ータの解析結果の適否を所定の時点で判定する判定手段
と、この判定手段が適切でないと判定したとき実行する
プログラムをエミュレーションプログラム格納部に格納
された他のエミュレーションプログラムに切り換える切
換手段とをプリンタ制御装置に具備させる。
According to a first aspect of the present invention, there is provided a data storage section for storing print data sent from a print information source such as a host device, and a plurality of emulation programs having no escape sequence. And an analysis processing means for selecting one of a plurality of emulation programs to analyze the printing data, and determining whether or not the analysis result of the printing data is appropriate at a predetermined time point. The printer control device is provided with a means and a switching means for switching the program to be executed when the determination means determines that it is not appropriate to another emulation program stored in the emulation program storage section.

【0013】すなわち請求項1記載の発明では、エスケ
ープシーケンスを持たない複数のエミュレーションプロ
グラムのうちの1つを用いてプリント情報源から送られ
てきた印字用のデータを解析してみて、ある時点でその
適否を判定し、解析結果として意味を持たないような印
字内容になっているような場合には、用意された他のエ
ミュレーションプログラムに切り換えることにして、最
終的に適正なエミュレーションの選択を可能にさせる。
That is, according to the first aspect of the invention, the print data sent from the print information source is analyzed using one of a plurality of emulation programs having no escape sequence. If it is judged that the printout content is meaningless as a result of analysis, it is possible to switch to another prepared emulation program and finally select the proper emulation. Let

【0014】請求項2記載の発明では、ホスト装置等の
プリント情報源から送られてきた印字用のデータを格納
するデータ格納部と、区切られた印刷可能なある文字列
によりプリンタを制御する言語に対応する複数のエミュ
レーションプログラムを少なくとも格納したエミュレー
ションプログラム格納部とデータ格納部に格納された印
字用のデータの所定部分がすべてキャラクタで構成され
ているときには区切られた印刷可能なある文字列により
プリンタを制御する言語のエミュレーションプログラム
のうちの1つを選択し印字用のデータの解析を行わせる
解析処理手段と、この印字データの解析結果の適否を所
定の時点で判定する判定手段と、この判定手段が適切で
ないと判定したとき実行するプログラムをエミュレーシ
ョンプログラム格納部に格納された区切られた印刷可能
なある文字列によりプリンタを制御する言語についての
他のエミュレーションプログラムに切り換える切換手段
とをプリンタ制御装置に具備させる。
According to a second aspect of the present invention, a language for controlling the printer by a data storage unit for storing print data sent from a print information source such as a host device and a delimited printable character string. When a predetermined portion of the print data stored in the emulation program storage unit storing at least a plurality of emulation programs corresponding to the above and the data storage unit are all composed of characters, the printer is provided with a delimited printable character string. Analysis processing means for selecting one of the emulation programs of the language for controlling the print data and analyzing the data for printing, determination means for determining the suitability of the analysis result of the print data at a predetermined time point, and this determination The program to be executed when it is determined that the means is not appropriate is the emulation program class. And switching means for switching to another emulation program for language to control the printer by stored delimited printable a string in part be provided in the printer controller.

【0015】すなわち請求項2記載の発明では、エミュ
レーションプログラム格納部に制御コマンドをもったプ
リンタ制御言語に対応するエミュレーションプログラム
だけでなく、区切られた印刷可能なある文字列によりプ
リンタを制御するプリンタ制御言語に対応するエミュレ
ーションプログラムを幾つか格納しておき、データ格納
部に格納された印字用のデータの所定部分がすべてキャ
ラクタで構成されているときには区切られた印刷可能な
ある文字列によりプリンタを制御する言語のエミュレー
ションプログラムと判別する。そして、この際にはこの
エミュレーションプログラムのうちから1つを選択して
印字用のデータの解析を行わせ、所定の時点でその解析
結果を判定して、解析結果が適切ではないと判定された
場合には区切られた印刷可能なある文字列によりプリン
タを制御する言語についての他のエミュレーションプロ
グラムに切り換えるようにしたものである。
That is, according to the second aspect of the invention, not only the emulation program corresponding to the printer control language having the control command in the emulation program storage unit but also the printer control for controlling the printer by a delimited printable character string. Some emulation programs corresponding to the language are stored, and the printer is controlled by a delimited printable character string when the specified part of the printing data stored in the data storage part is composed entirely of characters. It is determined as an emulation program for the language to be used. Then, at this time, one of the emulation programs is selected to analyze the data for printing, the analysis result is determined at a predetermined time point, and it is determined that the analysis result is not appropriate. In this case, a delimited printable character string is used to switch to another emulation program for the language for controlling the printer.

【0016】[0016]

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

【0017】図1は本発明の一実施例におけるプリンタ
制御装置の回路構成の概要を表わしたものである。プリ
ンタ制御装置21は、通信ケーブル22を介してワーク
ステーション等からなる複数のホストコンピュータ23
1 〜23N と接続されており、印字用のデータの供給を
受けるようになっている。また、プリンタ制御装置21
は、作成された印字データを用いて印字を行うためのプ
リンタエンジン24を接続している。プリンタエンジン
24は、レーザプリンタとしての基本的な構成部分から
構成されている。そして、受信した印字データを用いて
レーザビームを変調し、図示しない感光ドラムにこれを
露光走査して静電潜像の形成を行わせる。静電潜像は図
示しない現像装置で現像されトナー像が作成される。こ
のトナー像は図示しない印字用紙に転写され定着されて
印字済みの用紙として図示しないトレイに排出されるこ
とになる。
FIG. 1 shows an outline of a circuit configuration of a printer control device according to an embodiment of the present invention. The printer control device 21 includes a plurality of host computers 23 such as workstations via communication cables 22.
It is connected to 1 to 23 N and receives the data for printing. In addition, the printer control device 21
Is connected to a printer engine 24 for performing printing using the created print data. The printer engine 24 is composed of basic components as a laser printer. Then, the received print data is used to modulate the laser beam, and a photosensitive drum (not shown) is exposed and scanned to form an electrostatic latent image. The electrostatic latent image is developed by a developing device (not shown) to form a toner image. This toner image is transferred and fixed on a print sheet (not shown) and discharged as a printed sheet onto a tray (not shown).

【0018】プリンタ制御装置21は各種制御の中枢と
なるCPU31を備えている。CPU31はデータバス
等のバス32を介してROM33、RAM34、不揮発
性メモリ(NVM)35、ネットワークインタフェース
(I/F)部36、パネル制御部37、カートリッジ制
御部38および出力インターフェース部39と接続され
ている。
The printer controller 21 includes a CPU 31 which is the center of various controls. The CPU 31 is connected to a ROM 33, a RAM 34, a non-volatile memory (NVM) 35, a network interface (I / F) unit 36, a panel control unit 37, a cartridge control unit 38, and an output interface unit 39 via a bus 32 such as a data bus. ing.

【0019】ここでROM(リード・オンリ・メモリ)
33には、このプリンタ制御装置21の各種制御を行う
ためのプログラムが格納されている。RAM(ランダム
・アクセス・メモリ)34は、CPU31が各種制御を
実行する上での一時的に必要とするデータを格納する作
業用メモリとしての役割を持っている他、イメージデー
タを展開するためのページメモリや受信した印字用のデ
ータを格納する受信バッファとしての役割も備えてい
る。ここで、イメージデータは印字のためにプリンタエ
ンジン24に送られるデータである。
ROM (Read Only Memory)
A program for performing various controls of the printer control device 21 is stored in 33. 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 serves as a page memory and a reception buffer for storing the received printing data. Here, the image data is data sent to the printer engine 24 for printing.

【0020】次に、本実施例で使用される不揮発性メモ
リ35は、書き換えが可能な不揮発性メモリであり、こ
こには一般に多用される複数のエミュレーションプログ
ラムと、これらのエミュレーションプログラムの選択の
際等に使用されるエスケープシーケンステーブルや、ト
ークンテーブルが格納されている。ここでトークンと
は、エミュレーションが解釈できる意味のある文字列単
位をいう。このメモリは不揮発性なので、電源を切って
もその内容が保存されるようになっている。書き換えが
可能な不揮発性メモリとしては、フラッシュ電気的消去
ROM(Flash E 2 PROM)や電気的消去ROM(E
2 PROM)あるいはハードディスク記憶装置が代表的
である。本実施例ではフラッシュ電気的消去ROMを不
揮発性メモリとして使用している。電池によってバック
アップされたRAMも、場合により不揮発性メモリとし
て使用することができる。
Next, a non-volatile memory used in this embodiment.
The memory 35 is a rewritable nonvolatile memory.
This includes multiple emulation programs that are commonly used.
Ram and the choice of these emulation programs
Escape sequence table used for
Kun table is stored. Where the token and
Is a single string that is meaningful to the emulation.
Say rank. This memory is non-volatile, so turn off the power
The contents are also saved. Rewriting
Possible non-volatile memory is flash electrical erase
ROM (Flash E 2PROM) and electrically erasable ROM (E
2PROM) or hard disk storage device is typical
Is. In this embodiment, the flash electric erase ROM is not used.
It is used as volatile memory. Back by battery
The upgraded RAM may also be a non-volatile memory.
Can be used.

【0021】ネットワークインタフェース部36は、ネ
ットワークとの通信上のインタフェースをとるために用
意されたものである。ネットワークインタフェース部3
6は、ホストコンピュータ231 、……23N から送ら
れてきたデータを通信ケーブル22を通して取り込み、
CPU31が処理できる状態にするようになっている。
このネットワークインタフェース部36には図示しない
がFIFO(ファースト・イン・ファースト・アウト)
メモリが配置されており、データの転送速度の差を吸収
するようになっている。パネル制御部37はコントロー
ルパネル41を接続しており、各種キーと液晶ディスプ
レイに対するデータの入出力制御を行うようになってい
る。カートリッジ制御部38には必要に応じてエミュレ
ーションカートリッジ42が着脱自在に取りつけられる
ようになっている。エミュレーションカートリッジ42
は、不揮発性メモリ35に格納された複数のエミュレー
ションプログラムに追加する形で使用されるエミュレー
ションプログラムおよびそれらのエミュレーションテー
ブルを格納したメモリである。エミュレーションカート
リッジ42は、幾つかの種類に分かれており、使用する
ホストコンピュータ231 、……23N 等のプリント情
報源に対応させて最適と思われるものを選択してプリン
タ制御装置に装着できるようになっている。
The network interface section 36 is prepared to serve as an interface for communication with the network. Network interface unit 3
6 takes in the data sent from the host computers 23 1 , ... 23 N through the communication cable 22,
The CPU 31 is set to be ready for processing.
Although not shown in the figure, the network interface unit 36 includes a FIFO (first in first out)
A memory is arranged to absorb the difference in data transfer speed. 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. An emulation cartridge 42 is detachably attached to the cartridge control unit 38 as needed. Emulation cartridge 42
Is a memory that stores emulation programs used in addition to a plurality of emulation programs stored in the non-volatile memory 35 and their emulation tables. The emulation cartridge 42 is divided into several types, and it is possible to select the most suitable one corresponding to the print information source such as the host computer 23 1 , ... 23 N to be used and to mount it on the printer control device. It has become.

【0022】図2は、エスケープコードあるいはその他
の制御コードとそれに続く印刷可能な文字とによりプリ
ンタを制御するプリンタ制御言語のエミュレーション群
Aと、区切られた印刷可能なある文字列によりプリンタ
を制御するプリンタ制御言語のエミュレーション群Bと
が不揮発性メモリ35とエミュレーションカートリッジ
42に格納されているものとして、これらのエミュレー
ション群A、Bの選択を行うための処理手順の概要を表
わしたものである。
FIG. 2 shows an emulation group A of a printer control language for controlling the printer by an escape code or other control code and a printable character following it, and the printer by a certain delimited printable character string. Assuming that the printer control language emulation group B is stored in the non-volatile memory 35 and the emulation cartridge 42, an outline of a processing procedure for selecting the emulation groups A and B is shown.

【0023】まずCPU31はRAM34(図1)内に
おけるファイルを格納するメモリ(以下ファイルメモリ
という。)の内容をクリアしておいてホストコンピュー
タ231 〜23N のいずれかから印字用のデータが到来
したら、このファイルメモリに格納し(ステップS10
1;Y)、このファイルメモリの頭の部分に格納されて
いる所定量のデータ、例えば100バイト分をRAM3
4の前記した受信バッファに蓄積する(ステップS10
2)。そして、この部分がすべて文字「a」、「b」、
「c」等のキャラクタとタブ文字および副改文字で構成
されているかどうかの判別を行う(ステップS10
3)。印刷可能な文字、スペース文字、タブ文字および
復改文字(復帰文字または改行文字)のみで構成されて
いる場合には(Y)、エミュレーション群Bを選択する
(ステップS104)。そして、ステップS101で受
信したファイルをRAM34の作業領域に順次に読み込
んでエミュレーション群Bのプログラムのうちの1つに
よって解析する(ステップS105)。この解析の結
果、意味のある文字列が出現しなかった場合にはエミュ
レーション群Bの他のプログラムによって解析を行う。
このようにしてエミュレーション群Bのプログラムのい
ずれによっても意味のある文字列が出現しなかった場合
には(ステップS106;N)、エミュレーション群の
選択が間違ったものとして他方のエミュレーション群A
の選択を行う(ステップS107)。意味のある文字列
が出現していた場合には(ステップS106;Y)、出
力インターフェース部39を通じて、印字データをプリ
ンタエンジン24に送出する(ステップS108)。
First, the CPU 31 clears the contents of a memory (hereinafter referred to as a file memory) for storing files in the RAM 34 (FIG. 1), and print data arrives from any of the host computers 23 1 to 23 N. Then, store it in this file memory (step S10
1; Y), a predetermined amount of data stored in the head portion of the file memory, for example 100 bytes, is stored in the RAM 3
4 is stored in the reception buffer (step S10).
2). And this part is all letters "a", "b",
It is determined whether or not the character is a character such as "c", a tab character, and a sub-break character (step S10).
3). If it is composed only of printable characters, space characters, tab characters, and double-ended characters (return characters or line feed characters) (Y), emulation group B is selected (step S104). Then, the files received in step S101 are sequentially read into the work area of the RAM 34 and analyzed by one of the programs of the emulation group B (step S105). If no meaningful character string appears as a result of this analysis, analysis is performed by another program of the emulation group B.
In this way, when a meaningful character string does not appear in any of the programs of the emulation group B (step S106; N), it is determined that the emulation group is selected incorrectly and the other emulation group A is selected.
Is selected (step S107). When a meaningful character string appears (step S106; Y), the print data is sent to the printer engine 24 through the output interface unit 39 (step S108).

【0024】一方、ステップS103で受信バッファに
印刷可能な文字、スペース文字、タブ文字および復改文
字(復帰文字または改行文字)以外のコード情報が格納
されていた場合には(N)、エミュレーション群Aの選
択を行う(ステップS107)。エミュレーション群A
が選択された場合には、ステップS101で受信したフ
ァイルをRAM34の作業領域に順次に読み込んでエミ
ュレーション群Aにおける最適のプログラムによって解
析を実行する(ステップS109)。そして、この結果
として得られた印字データをプリンタエンジン24に送
出する(ステップS108)ことになる。
On the other hand, if code information other than printable characters, space characters, tab characters, and return characters (return character or line feed character) is stored in the receiving buffer in step S103 (N), emulation group A is selected (step S107). Emulation group A
If is selected, the files received in step S101 are sequentially read into the work area of the RAM 34, and analysis is executed by the optimum program in the emulation group A (step S109). Then, the print data obtained as a result is sent to the printer engine 24 (step S108).

【0025】図3および図5、図6は、図2に示したエ
ミュレーション群の選択によって区切られた印刷可能な
ある文字列によりプリンタを制御するプリンタ制御言語
に対応するエミュレーション群Bが選択された場合にお
けるこの中の適正なエミュレーションプログラムを選択
する手順を表わしたものである。
In FIGS. 3, 5, and 6, the emulation group B corresponding to the printer control language for controlling the printer is selected by a certain printable character string delimited by the selection of the emulation group shown in FIG. It shows a procedure for selecting an appropriate emulation program in the above case.

【0026】まず図3では、RAM34(図1)におけ
る前記した受信バッファに相当する領域と区切られた印
刷可能なある文字列によりプリンタを制御するプリンタ
制御言語についてのエミュレーション実行テーブルをク
リアしておく(ステップS201)。そして、エミュレ
ーションをB群における初期設定のものに設定する(ス
テップS202)。本実施例では初期設定されるエミュ
レーションとして、次の3つのうちの1つを選ぶことが
できる。これらの選択はコントロールパネル41の図示
しないキーを押下することによって行うようになってい
る。
First, in FIG. 3, the emulation execution table for the printer control language for controlling the printer by a certain printable character string delimited from the area corresponding to the reception buffer in the RAM 34 (FIG. 1) is cleared. (Step S201). Then, the emulation is set to the initial setting in the group B (step S202). In this embodiment, one of the following three can be selected as the emulation to be initialized. These selections are made by pressing a key (not shown) on the control panel 41.

【0027】(イ)エミュレーション群Bにおける前回
選択したエミュレーション。
(B) The emulation selected last time in the emulation group B.

【0028】(ロ)エミュレーション群Bにおける今ま
で最も多く使用したエミュレーション。
(B) The emulation most frequently used so far in the emulation group B.

【0029】(ハ)エミュレーション群Bにおける今回
オペレータによって指定されたエミュレーション。
(C) Emulation specified by the operator this time in the emulation group B.

【0030】このうち(イ)は、最も最近使用されプリ
ンタ制御言語でデータの送信が行われる確率が高いこと
をよりどころにした論理である。(ロ)は、統計的な見
地に基づく論理である。(ハ)は、オペレータが事前に
送信されるデータについての電話連絡を受けているよう
な場合に、その事実を活用できるようにしたものであ
る。
Among these, (a) is a logic based on the fact that the most recently used printer control language has a high probability of transmitting data. (B) is a logic based on a statistical point of view. In the case of (c), the fact can be utilized when the operator receives a telephone contact about the data to be transmitted in advance.

【0031】エミュレーションの初期設定が行われた
ら、エミュレーション実行テーブルにおける現在設定中
のエミュレーション部を実行済みに変更する(ステップ
S203)。
After the initial setting of the emulation is performed, the emulation section currently set in the emulation execution table is changed to "executed" (step S203).

【0032】図4は、エミュレーション実行テーブルの
内容の一部を表わしたものである。このエミュレーショ
ン実行テーブル10は、前記したように区切られた印刷
可能なある文字列によりプリンタを制御するプリンタ制
御言語に対応するエミュレーション群Bについてのテー
ブルである。ここには、第1〜第Mのエミュレーション
と、それらのフラグが記入されている。このうちフラグ
はステップS201でエミュレーション実行テーブル5
1がクリアされた段階でオール“0”となっている。こ
の図では、第2のエミュレーションが初期設定された状
態を表わしており、ステップS203によってこの第2
のエミュレーションについてのフラグが“0”から
“1”に変更されている。すなわち、フラグが“0”の
ときは未実行であり、“1”は実行済みであることを示
すようになっている。
FIG. 4 shows a part of the contents of the emulation execution table. The emulation execution table 10 is a table for the emulation group B corresponding to the printer control language for controlling the printer with a certain printable character string delimited as described above. The first to Mth emulations and their flags are entered here. Of these, the flag is the emulation execution table 5 in step S201.
When “1” is cleared, it becomes all “0”. In this figure, the state where the second emulation is initialized is shown, and the second emulation is performed by the step S203.
The flag for the emulation of is changed from "0" to "1". That is, when the flag is "0", it has not been executed yet, and "1" has already been executed.

【0033】このようにしてエミュレーション実行テー
ブル51の変更が行われたら、CPU31はポインタを
ファイルバッファに格納されたデータの先頭位置に設定
する(ステップS204)。そして、ファイルバッファ
に格納されたデータの先頭を1バイト読み出し、これに
伴ってポインタを次の読み出しが行われる箇所まで進め
る(ステップS205)。そして、この読み出したデー
タが現エミュレーションとしての第2のエミュレーショ
ンで規定している区切り文字に該当するかどうかのチェ
ックが行われる(ステップS206)。該当していなけ
れば(N)、この1バイト分のデータを受信バッファに
格納する(ステップS207)。そしてステップS20
5に帰って同様の動作を繰り返す。このようにして第2
のエミュレーションを規定している区切り文字に該当し
た場合には(ステップS206;Y)、受信バッファに
格納された文字列を意味のある文字列単位としてのトー
クンとする(ステップS208)。そして、第2のエミ
ュレーションについての前記したトークンテーブルの中
に同一のトークンが存在するかの検索を行う(ステップ
S209)。
When the emulation execution table 51 is changed in this way, the CPU 31 sets the pointer to the head position of the data stored in the file buffer (step S204). Then, the first byte of the data stored in the file buffer is read out, and the pointer is advanced to the position where the next reading is performed (step S205). Then, it is checked whether or not the read data corresponds to the delimiter defined by the second emulation as the current emulation (step S206). If not (N), this 1-byte data is stored in the reception buffer (step S207). And step S20
Return to 5 and repeat the same operation. In this way the second
If the delimiter character that defines the emulation is specified (step S206; Y), the character string stored in the reception buffer is used as a token in a meaningful character string unit (step S208). Then, it is searched whether the same token exists in the above-mentioned token table for the second emulation (step S209).

【0034】この結果、トークンテーブルに一致するト
ークンが存在した場合には(ステップS210;Y)、
そのトークンを処理することになる(ステップS21
1)。このとき、そのトークンがファイルの終端を示す
ファイル終端記号であるか(ステップS212)と、プ
リンタエンジン24への出力命令であるか(ステップS
213)の2点について重ねてチェックする。そして、
ファイル終端記号であった場合には(ステップS21
2;Y)、処理を終了させる(エンド)。これに対し
て、出力命令であった場合には(ステップS213;
Y)、プリンタエンジン24に処理後の印字データを送
出する(ステップS219)。そして、1ページ分の印
字用に設けられていたページバッファの内容をクリアす
る(ステップS215)。そして、処理後の受信バッフ
ァの内容もクリアし(ステップS216)、再びステッ
プS205に戻って次のページの処理を開始することに
なる。
As a result, if there is a matching token in the token table (step S210; Y),
The token will be processed (step S21).
1). At this time, whether the token is a file end symbol indicating the end of the file (step S212) or an output command to the printer engine 24 (step S212).
Check two points of 213) again. And
If it is a file terminal symbol (step S21)
2; Y), the processing is ended (end). On the other hand, if it is an output command (step S213;
Y), and sends the processed print data to the printer engine 24 (step S219). Then, the contents of the page buffer provided for printing one page are cleared (step S215). Then, the contents of the reception buffer after processing are also cleared (step S216), and the process returns to step S205 to start the processing of the next page.

【0035】一方、処理をしたトークンがファイル終端
記号でも出力命令でもなかった場合には(ステップS2
13;N)、その処理結果をページバッファに展開する
(ステップS217)。そして、処理後の受信バッファ
をクリアして(ステップS216)、同様にステップS
205に戻ることになる。このようにして、最終的にフ
ァイル終端記号が出現したとき(ステップS212;
Y)、すべての処理が終了することになる。
On the other hand, if the processed token is neither a file end symbol nor an output command (step S2)
13; N), the processing result is expanded in the page buffer (step S217). Then, the processed reception buffer is cleared (step S216), and similarly, step S216
We will return to 205. Thus, when the file terminal symbol finally appears (step S212;
Y), all the processing will be completed.

【0036】以上、第2のエミュレーションによる処理
が順調に行われた場合を説明した。これに対して図5の
ステップS210で第2のエミュレーションのトークン
テーブルに該当するトークンが存在しなかった場合には
(N)、現エミュレーションとしての第2のエミュレー
ションによる文法のエラーを表示し(ステップS21
8)、この後、エミュレーションB群における実行して
いないエミュレーションが存在するかどうかが判別され
る(ステップS219)。図4に示したエミュレーショ
ン実行テーブル51で、未実行のフラグ“0”があれば
存在すると判別され、ない場合には存在しないと判別さ
れる。存在していないと判別された場合には(N)、プ
リント実行エラー表示を行って(ステップS210)、
処理が終了する(エンド)。
The case where the processing by the second emulation is smoothly performed has been described above. On the other hand, if the corresponding token does not exist in the token table of the second emulation in step S210 of FIG. 5 (N), the grammatical error due to the second emulation as the current emulation is displayed (step S21
8) After that, it is judged whether or not there is an unexecuted emulation in the emulation B group (step S219). In the emulation execution table 51 shown in FIG. 4, if there is an unexecuted flag “0”, it is determined to be present, and if not, it is determined not to be present. If it is determined that the file does not exist (N), a print execution error is displayed (step S210),
The process ends (end).

【0037】一方、エミュレーションB群における実行
していないエミュレーションが存在すると判別された場
合には(ステップS219;Y)、実行していない次の
エミュレーションへの切り替えが行われる(ステップS
211)。次順位への切り替えの論理は、エミュレーシ
ョンの初期設定に用いた論理を同様に用いることができ
る。切り替えが行われたら、受信バッファの内容がクリ
アされ(ステップS212)、図3のステップS203
に戻って前記したと同様な制御が行われることになる。
On the other hand, when it is determined that there is an unexecuted emulation in the emulation group B (step S219; Y), switching to the next unexecuted emulation is performed (step S).
211). As the logic for switching to the next order, the logic used for initial setting of emulation can be used similarly. When the switching is performed, the contents of the reception buffer are cleared (step S212) and step S203 of FIG.
Then, the same control as described above is performed.

【0038】以上説明した実施例では、エスケープコー
ドあるいはその他の制御コードとそれに続く印刷可能な
文字とによりプリンタを制御するプリンタ制御言語が複
数存在する場合の選択方法については特に説明しなかっ
たが、これらについては既に提案された各種の選択方法
をそのまま用いることができる。
In the embodiment described above, the selection method in the case where there are a plurality of printer control languages for controlling the printer by the escape code or other control code and the printable characters following it is not particularly described. For these, various selection methods already proposed can be used as they are.

【0039】また、実施例ではエスケープコードあるい
はその他の制御コードとそれに続く印刷可能な文字とに
よりプリンタを制御するプリンタ制御言語と区切られた
印刷可能なある文字列によりプリンタを制御するプリン
タ制御言語の双方についてのエミュレーションプログラ
ムを用意してこれらの選択を行ったが、区切られた印刷
可能なある文字列によりプリンタを制御するプリンタ制
御言語のみが受信されることを前提としたプリンタ制御
装置では、エミュレーションA群かエミュレーションB
群かの選択作業を行う必要なく、図3〜図6で説明した
制御のみを行えばよいことは当然である。
In the embodiment, a printer control language for controlling the printer by an escape code or other control code and a printable character following the escape code and a printer control language for controlling the printer by a certain printable character string separated from each other. Although the emulation programs for both sides were prepared and these selections were made, in the printer control device that assumes that only the printer control language for controlling the printer is received by a certain delimited printable character string, the emulation Group A or emulation B
Of course, it is only necessary to perform the control described in FIGS. 3 to 6 without performing the work of selecting a group.

【0040】[0040]

【発明の効果】以上説明したように本発明によれば、区
切られた印刷可能なある文字列によりプリンタを制御す
る複数のプリンタ制御言語にそれぞれ対応する複数のエ
ミュレーションのうちから1つずつ選択して印字用のデ
ータの解析を行い、意味のある文字列が見出せなかった
ような場合には他のエミュレーションの解析を行うとい
うようにデータの解析を順次行って最適のエミュレーシ
ョンの設定を行うようにしたので、エミュレーションの
選択を確実に行うことができるという効果がある。
As described above, according to the present invention, one of a plurality of emulations corresponding to a plurality of printer control languages for controlling a printer by a certain printable character string is selected. The data for printing is analyzed in this way, and if a meaningful character string is not found, another emulation is analyzed, and the data is analyzed sequentially to set the optimum emulation. Therefore, there is an effect that the emulation can be surely selected.

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

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

【図2】 2つのエミュレーション群A、Bの選択を行
うための処理手順の概要を表わした流れ図である。
FIG. 2 is a flowchart showing an outline of a processing procedure for selecting two emulation groups A and B.

【図3】 区切られた印刷可能なある文字列によりプリ
ンタを制御するプリンタ制御言語に対応するエミュレー
ション群Bが選択された場合の制御の流れの一部を示す
流れ図である。
FIG. 3 is a flowchart showing a part of a control flow when an emulation group B corresponding to a printer control language for controlling a printer by a certain delimited printable character string is selected.

【図4】 実施例におけるエミュレーション実行テーブ
ルの内容の一部を示す説明図である。
FIG. 4 is an explanatory diagram showing a part of the contents of an emulation execution table in the embodiment.

【図5】 区切られた印刷可能なある文字列によりプリ
ンタを制御するプリンタ制御言語に対応するエミュレー
ション群Bが選択された場合の制御の流れの他の一部を
示す流れ図である。
FIG. 5 is a flowchart showing another part of the control flow when the emulation group B corresponding to the printer control language for controlling the printer by the certain delimited printable character string is selected.

【図6】 区切られた印刷可能なある文字列によりプリ
ンタを制御するプリンタ制御言語に対応するエミュレー
ション群Bが選択された場合の制御の流れの残りの部分
を示す流れ図である。
FIG. 6 is a flowchart showing the remaining part of the control flow when the emulation group B corresponding to the printer control language for controlling the printer by the certain delimited printable character string is selected.

【図7】 プリント情報源の一例としてのホストコンピ
ュータとプリンタ装置との一般的な接続関係を表わした
説明図である。
FIG. 7 is an explanatory diagram showing a general connection relationship between a host computer as an example of a print information source and a printer device.

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

21…プリンタ制御装置、231 〜23N …ホストコン
ピュータ、24…プリンタエンジン、31…CPU、3
3…ROM、34…RAM、35…不揮発性メモリ、3
6…ネットワークインターフェース部、42…エミュレ
ーションカートリッジ、51…エミュレーション実行テ
ーブル
21 ... Printer control device, 23 1 to 23 N ... Host computer, 24 ... Printer engine, 31 ... CPU, 3
3 ... ROM, 34 ... RAM, 35 ... Non-volatile memory, 3
6 ... Network interface section, 42 ... Emulation cartridge, 51 ... Emulation execution table

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホスト装置等のプリント情報源から送ら
れてきた印字用のデータを格納するデータ格納部と、 エスケープシーケンスを持たない複数のエミュレーショ
ンプログラムを格納したエミュレーションプログラム格
納部と前記複数のエミュレーションプログラムの1つを
選択し前記印字用のデータの解析を行わせる解析処理手
段と、 この印字用のデータの解析結果の適否を所定の時点で判
定する判定手段と、 この判定手段が適切でないと判定したとき実行するプロ
グラムを前記エミュレーションプログラム格納部に格納
された他のエミュレーションプログラムに切り換える切
換手段とを具備することを特徴とするプリンタ制御装
置。
1. A data storage unit for storing print data sent from a print information source such as a host device, an emulation program storage unit for storing a plurality of emulation programs without an escape sequence, and the plurality of emulations. An analysis processing means for selecting one of the programs to analyze the printing data, a judging means for judging the suitability of the analysis result of the printing data at a predetermined time point, and this judging means being inappropriate. A printer control device comprising: a switching unit that switches a program to be executed when the determination is made to another emulation program stored in the emulation program storage unit.
【請求項2】 ホスト装置等のプリント情報源から送ら
れてきた印字用のデータを格納するデータ格納部と、 区切られた印刷可能なある文字列によりプリンタを制御
する言語に対応する複数のエミュレーションプログラム
を少なくとも格納したエミュレーションプログラム格納
部と前記データ格納部に格納された印字用のデータの所
定部分がすべてキャラクタで構成されているときには区
切られた印刷可能なある文字列によりプリンタを制御す
る言語のエミュレーションプログラムのうちの1つを選
択し前記印字用のデータの解析を行わせる解析処理手段
と、 この印字用のデータの解析結果の適否を所定の時点で判
定する判定手段と、 この判定手段が適切でないと判定したとき実行するプロ
グラムを前記エミュレーションプログラム格納部に格納
された区切られた印刷可能なある文字列によりプリンタ
を制御する言語についての他のエミュレーションプログ
ラムに切り換える切換手段とを具備することを特徴とす
るプリンタ制御装置。
2. A data storage unit for storing print data sent from a print information source such as a host device, and a plurality of emulations corresponding to a language for controlling a printer by a delimited printable character string. When the emulation program storage unit that stores at least the program and the predetermined portion of the printing data stored in the data storage unit are all composed of characters, a language for controlling the printer by a delimited printable character string is used. An analysis processing unit that selects one of the emulation programs and analyzes the printing data, a determination unit that determines whether or not the analysis result of the printing data is appropriate at a predetermined time point, and the determination unit A program to be executed when it is determined to be inappropriate is stored in the emulation program storage section. A printer control device, comprising: switching means for switching to another emulation program for a language for controlling the printer according to a stored delimited printable character string.
JP3266343A 1991-10-15 1991-10-15 Printer control device Expired - Fee Related JP2913941B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3266343A JP2913941B2 (en) 1991-10-15 1991-10-15 Printer control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3266343A JP2913941B2 (en) 1991-10-15 1991-10-15 Printer control device

Publications (2)

Publication Number Publication Date
JPH05104825A true JPH05104825A (en) 1993-04-27
JP2913941B2 JP2913941B2 (en) 1999-06-28

Family

ID=17429618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3266343A Expired - Fee Related JP2913941B2 (en) 1991-10-15 1991-10-15 Printer control device

Country Status (1)

Country Link
JP (1) JP2913941B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06183104A (en) * 1992-12-15 1994-07-05 Canon Inc Printing apparatus
JPH0772996A (en) * 1993-09-07 1995-03-17 Casio Electron Mfg Co Ltd Printer device
JPH0930089A (en) * 1995-07-24 1997-02-04 Nec Corp Printer device and document creating device
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06183104A (en) * 1992-12-15 1994-07-05 Canon Inc Printing apparatus
JPH0772996A (en) * 1993-09-07 1995-03-17 Casio Electron Mfg Co Ltd Printer device
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
JPH0930089A (en) * 1995-07-24 1997-02-04 Nec Corp Printer device and document creating device

Also Published As

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

Similar Documents

Publication Publication Date Title
US6985257B2 (en) Job processing apparatus
US7057748B2 (en) Information processing apparatus and method that determines the presence or absence of a printer connected to a network, and storage medium storing program therefor
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
US5295233A (en) Controller for printing apparatus
JP2615137B2 (en) Printing device
JP2913941B2 (en) Printer control device
JP2913942B2 (en) Printer control device
US6738149B2 (en) Method and apparatus for selecting a preferential font
US5306102A (en) Print simulation for mode selection
JPH02156325A (en) Computer terminal equipment
US6927867B2 (en) Output control method and apparatus therefor
JP2913934B2 (en) Printer device
JPH0596824A (en) Printer device
JPH09254498A (en) Printer apparatus
US6433879B1 (en) Printing control apparatus and control program selecting method
JP2595978B2 (en) Font management device
JP3073921B2 (en) Print control device and data processing method of print control device
JP3437482B2 (en) Print control device and print control method
JP3045656B2 (en) Page printer
JP2958226B2 (en) Print control device and print control method
JP2891857B2 (en) Printing apparatus and printing method
JP2915673B2 (en) Print control device and print data identification method
JPH05104822A (en) Printer
JPH04144763A (en) Printer
JP3466869B2 (en) Font data management method and apparatus, and recording medium

Legal Events

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