JP2885951B2 - Print control device and control program selection method - Google Patents

Print control device and control program selection method

Info

Publication number
JP2885951B2
JP2885951B2 JP3046365A JP4636591A JP2885951B2 JP 2885951 B2 JP2885951 B2 JP 2885951B2 JP 3046365 A JP3046365 A JP 3046365A JP 4636591 A JP4636591 A JP 4636591A JP 2885951 B2 JP2885951 B2 JP 2885951B2
Authority
JP
Japan
Prior art keywords
control program
control
program
print
code
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.)
Expired - Fee Related
Application number
JP3046365A
Other languages
Japanese (ja)
Other versions
JPH04282270A (en
Inventor
邦男 岡田
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.)
Canon Inc
Original Assignee
Canon Inc
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
Priority to JP3046365A priority Critical patent/JP2885951B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to EP92302043A priority patent/EP0503902B1/en
Priority to DE69233395T priority patent/DE69233395T2/en
Priority to DE69229650T priority patent/DE69229650T2/en
Priority to EP98202714A priority patent/EP0881565B1/en
Priority to KR1019920004064A priority patent/KR950005223B1/en
Publication of JPH04282270A publication Critical patent/JPH04282270A/en
Priority to US08/480,291 priority patent/US5561744A/en
Application granted granted Critical
Publication of JP2885951B2 publication Critical patent/JP2885951B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は印刷制御装置及び制御プ
ログラム選択方法、詳しくは印刷データを受信し解析し
て出力データを印刷部で印刷させる印刷制御装置及び印
刷データを解析し、出力データを生成するための制御プ
ログラムを選択するための方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control apparatus and a control program selection method, and more particularly, to a print control apparatus for receiving and analyzing print data and printing output data in a printing section, and analyzing the print data to obtain output data. The present invention relates to a method for selecting a control program to be generated.

【0002】[0002]

【従来の技術】近年のこの種の装置には、内蔵の第1の
制御プログラムの他に着脱可能なプログラム格納媒体を
用意し、第1の制御プログラムとは異なる動作の第2の
制御プログラムを該プログラム格納媒体に入れ、内蔵プ
ログラムと切換えて使用できるようになっているものが
ある。
2. Description of the Related Art In recent devices of this type, a removable program storage medium is prepared in addition to a built-in first control program, and a second control program having an operation different from that of the first control program is stored in the medium. Some programs are stored in the program storage medium and can be used by switching to a built-in program.

【0003】特に、この第2の制御プログラムの多く
は、第1の制御プログラムとは異なったコマンド体系の
データを判断、そして実行する(所謂、エミュレートす
る)プログラムである。この第2の制御プログラムを用
いることで、それまで当該記録装置を使用できなかった
ホスト側の既存のアプリケーションプログラムを何1つ
修正することなく使用することが可能になる。例えば、
これによって、該第1の制御プログラムが有する新しい
高機能タイプのコマンド体系と、低機能ではあるが従来
から利用されているコマンド体系の両立を計る等が可能
になる。
In particular, most of the second control program is a program for judging and executing (so-called emulating) data having a command system different from that of the first control program. By using the second control program, it becomes possible to use the existing application program on the host side, which has not been able to use the recording apparatus, without any modification. For example,
This makes it possible to balance the new high-function type command system of the first control program with the low-function but conventionally used command system.

【0004】[0004]

【発明が解決しようとしている課題】上記従来例では、
第2の制御プログラムがサポートしている第2のコマン
ド体系に合ったデータに基づいて記録印刷させる場合、
予めホストコンピュータは先ず、制御プログラムの切替
コマンドを送り、それから第2のコマンド体系のデータ
を記録装置に送っている。
In the above conventional example,
When recording and printing based on data that conforms to the second command system supported by the second control program,
In advance, the host computer first sends a switching command of the control program, and then sends data of the second command system to the recording device.

【0005】ところが、第2の制御プログラムを格納し
た格納媒体は着脱可能であることもあって、意図に反し
て第3のコマンド体系をサポートした第3の制御プログ
ラムを格納した格納媒体が印刷装置に装着されている場
合を想定してみる。この場合、着脱可能な格納媒体に納
められた制御プログラムのサポートしているコマンド体
系と、ホストコンピュータ側の送った印刷データのコマ
ンド体系が合わず、希望の印字が得られないという欠点
があつた。
However, since the storage medium storing the second control program is detachable, the storage medium storing the third control program that supports the third command system contrary to the intention is stored in the printing apparatus. Let's assume that it is attached to In this case, the command system supported by the control program stored in the removable storage medium does not match the command system of the print data sent from the host computer, and a desired print cannot be obtained. .

【0006】本発明はかかる問題点に鑑みなされたもの
であり、制御プログラム指定コードに従って該当する制
御プログラムを選択し、実行させることで正しい制御プ
ログラムが確実に選択されることを保証し、且つ、その
選択しようとする制御プログラムが存在しない場合に
は、それ以降の印刷データから次の制御プログラム指定
コードを受信するまでの間で受信した印刷データについ
ては処理を行わない印刷制御装置及び制御プログラム選
択方法を提供しようとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and ensures that a correct control program is reliably selected by selecting and executing a corresponding control program according to a control program designating code. If the control program to be selected does not exist, a print control apparatus and a control program for not performing processing on print data received from the subsequent print data until the next control program designation code is received. It seeks to provide a way.

【0007】[0007]

【課題を解決するための手段】この課題を解決するた
め、たとえば本発明の印刷制御装置は以下の構成を備え
る。すなわち、複数の制御プログラムを装備可能であっ
て、前記複数の制御プログラムの1つでもって外部装置
から受信した印刷データを解析し、出力データを生成し
て印刷部で印刷させる印刷制御装置であって、制御コー
ドを含む印刷データを受信する受信手段と、前記印刷デ
ータに含まれる制御プログラム指定コードに基づいて、
前記複数の制御プログラムから該当する制御プログラム
が存在するか否かを判別する判別手段と、該判別手段に
よって該当する制御プログラムが存在することが判別さ
れた場合には、当該制御プログラムを選択して実行し、
前記判別手段によって該当する制御プログラムが存在し
ないことが判別された場合、次の制御プログラム指定コ
ードを受信するまでの間、前記受信手段で受信する印刷
データを読み飛ばす制御手段とを備えることを特徴とす
る印刷制御装置。
In order to solve this problem, for example, a print control apparatus according to the present invention has the following arrangement. That is, the printing control apparatus can be provided with a plurality of control programs, analyzes print data received from an external device by one of the plurality of control programs, generates output data, and prints the output data at the printing unit. Receiving means for receiving print data including a control code, based on a control program designation code included in the print data,
Determining means for determining whether a corresponding control program exists from the plurality of control programs; and, when determining that the corresponding control program exists, selecting the control program. Run,
When the determination unit determines that the corresponding control program does not exist, the control unit skips print data received by the reception unit until a next control program designation code is received. Printing control device.

【0008】[0008]

【作用】かかる本発明の構成において、制御プログラム
指定コードに対応する制御プログラムが存在すると判別
された場合には、当該制御プログラムを選択して実行す
る。そして、該当する制御プログラムが存在しない場合
には、次の制御プログラム指定コードを受信するまでの
間、受信手段で受信する印刷データを読み飛ばす。
In the configuration of the present invention, when it is determined that a control program corresponding to the control program designation code exists, the control program is selected and executed. If there is no corresponding control program, the print data received by the receiving unit is skipped until the next control program designation code is received.

【0009】[0009]

【実施例】以下、添付図面に従って本発明に係る実施例
を詳細に説明する。尚、本実施例は画像記録装置として
レーザビームプリンタを例にして説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, a laser beam printer will be described as an example of an image recording apparatus.

【0010】図1は、実施例におけるレーザビームプリ
ンタのブロック構成図である。図中、100がレーザビ
ームプリンタであり、1000は記録データの発生源と
なるホストコンピュータである。
FIG. 1 is a block diagram of a laser beam printer according to an embodiment. In the figure, 100 is a laser beam printer, and 1000 is a host computer that is a source of recording data.

【0011】レーザビームプリンタ100は大きく分け
て印刷機構部109と、ホストコンピュータ1000か
ら記録データを受信すると共に印刷機構部109を制御
する印刷制御部101とから構成されている。印刷機構
部109は、画像信号を受けて記録紙(記録媒体)の供
給、レーザ光のON/OFF、画像の用紙への転写、定
着といつたレーザビームプリンタの一連の印刷プロセス
を行なう。ここで、印刷機構部109は公知の構成をし
ているものとして、その詳述は省略する。
The laser beam printer 100 is roughly composed of a printing mechanism section 109 and a printing control section 101 which receives print data from the host computer 1000 and controls the printing mechanism section 109. Upon receiving the image signal, the printing mechanism unit 109 performs a series of printing processes of a laser beam printer, such as supply of a recording paper (recording medium), ON / OFF of a laser beam, transfer of an image to paper, and fixing. Here, it is assumed that the printing mechanism unit 109 has a known configuration, and a detailed description thereof will be omitted.

【0012】さて、レーザビームプリンタ100の印刷
制御部101の構成について以下に説明する。
Now, the configuration of the print control unit 101 of the laser beam printer 100 will be described below.

【0013】102は本装置全体を制御するCPUであ
る。103はホストコンピュータ1000からのデータ
を入力信号線S11を介して受信する入力インターフエ
ース回路であり、本回路によりCPU102にデータの
受信が知らされる。また、この入力インタフェース回路
103により、出力信号線S12を介して本装置の各種
ステイタス情報が送出される。104はROMであり、
第1のプリンタコマンド体系の記録処理を実現する第1
のプログラム(後述する図6に係るプログラム)、及
び、第1のプログラムが使用する制御情報や文字ドット
パターン等を格納している。105は制御プログラムが
使用するRAMであり、制御プログラムの作業領域や1
ページ分のデータをビツトマツプイメージ化した画像メ
モリ領域に使用される。106は一般の7セグメントL
EDで構成される表示パネルであり、CPU102によ
り各種状態表示を行なうのに用いられる。107はRA
M105上の画像メモリ領域に展開される1ページ分の
ビツトマツプイメージデータを画像信号に変換する画像
信号発生器であり、印刷機構部109からの同期信号S
21に同期して画像信号S22を印刷機構部109へ出
力する。108は印刷制御部101と印刷機構部109
との間の入出力を行なう出力インターフエース回路であ
る。110はプログラムカートリッジ112と制御部1
00の電気的なインターフエースとなるカートリッジイ
ンターフエース回路であり、CPU102は本回路を介
して、プログラムカートリッジ上のROMをアクセス
し、または、プログラムカートリッジの有無をセンスす
る。プログラムカートリッジ112はROM及びその関
連素子で構成されたROM回路基板をカートリッジとし
て納めたものであり、前述のROM104に格納された
第1の制御プログラムとは別のプリンタコマンド体系
(以下、第2のコマンド体系と称す)をもつ第2の制御
プログラム(第1の制御プログラム同様、本レーザビー
ムプリンタ100の制御を司るプログラム)が格納され
ている。その一例として図7のフローチャートがある。
このプログラムカートリッジ112は、印刷制御部10
1のカートリッジコネクタ111により、着脱可能な構
造となり、第3の制御プログラムを格納した別のプログ
ラムカートリッジとの交換も可能である。
Reference numeral 102 denotes a CPU for controlling the entire apparatus. An input interface circuit 103 receives data from the host computer 1000 via the input signal line S11, and this circuit notifies the CPU 102 of the data reception. The input interface circuit 103 sends out various status information of the apparatus via the output signal line S12. 104 is a ROM,
First to realize the recording process of the first printer command system
(A program according to FIG. 6 to be described later), control information used by the first program, a character dot pattern, and the like. Reference numeral 105 denotes a RAM used by the control program.
It is used for an image memory area where bit map data is converted into a bit map image. 106 is a general 7 segment L
The display panel includes an ED, and is used by the CPU 102 to display various states. 107 is RA
An image signal generator for converting bit map image data for one page developed in the image memory area on the M105 into an image signal.
An image signal S22 is output to the printing mechanism unit 109 in synchronization with 21. 108, a print control unit 101 and a print mechanism unit 109
This is an output interface circuit that performs input and output between the input and output. 110 is a program cartridge 112 and control unit 1
The CPU 102 accesses the ROM on the program cartridge via this circuit, or senses the presence or absence of the program cartridge. The program cartridge 112 is a cartridge containing a ROM and a ROM circuit board composed of related elements as a cartridge. A second control program having a command system (which is a program for controlling the laser beam printer 100 as well as the first control program) is stored. One example is the flowchart of FIG.
The program cartridge 112 includes the print control unit 10.
The first cartridge connector 111 has a detachable structure, and can be replaced with another program cartridge storing the third control program.

【0014】以下、ROM104上の第1の制御プログ
ラムをプログラムA、プログラムカートリッジ112上
の制御プログラムをプログラムBi(i=1,2,…)
と呼ぶ。
Hereinafter, the first control program on the ROM 104 is program A, and the control program on the program cartridge 112 is program Bi (i = 1, 2,...).
Call.

【0015】図2は前述のプログラムカートリッジ11
2に納めるプログラムBiのROM上の格納形式200
を示した図である。この図において、201はプログラ
ム識別番号を格納するプログラム識別領域であり、RO
M上の先頭0番号から4バイト分(アドレス0〜3)に
格納する制御プログラムの種類に応じて一意の番号を与
えておく。202はプログラムBiのオブジエクトコー
ドを格納するプログラム領域であり、ここではROMの
先頭4番地からプログラムがスタートする。プログラム
カートリッジ12には任意のプログラムBiが格納でき
るが、そのうちの1つを図7に示す(以下、このフロー
チャートに係るプログラムをプログラムBjという)。
FIG. 2 shows the program cartridge 11 described above.
Storage format 200 of program Bi stored in ROM
FIG. In this figure, reference numeral 201 denotes a program identification area for storing a program identification number.
A unique number is given according to the type of control program stored in four bytes (addresses 0 to 3) from the leading 0 number on M. Reference numeral 202 denotes a program area for storing an object code of the program Bi. Here, the program starts from the first four addresses of the ROM. An arbitrary program Bi can be stored in the program cartridge 12, one of which is shown in FIG. 7 (the program according to this flowchart is hereinafter referred to as a program Bj).

【0016】図3はROM104に納められたプログラ
ムAに適用されるプリンタコマンドの一つで、プログラ
ムAからプログラムカートリッジ112上のプログラム
Biへの移行を指示するコマンドのコマンド形式を示し
たものである。
FIG. 3 shows a command format of one of the printer commands applied to the program A stored in the ROM 104 and instructing a transition from the program A to the program Bi on the program cartridge 112. .

【0017】本コマンド形式は、所謂、エスケープシー
ケンスのコマンド体系であり、301のコマンドの先頭
を表わす制御ESC(1BH ,Hは16進数を示す)、
302の移行するプログラムBiのプログラム識別番
号、303のコマンド終了子“P”(同時に移行コマン
ドを表わすコマンド識別名を兼ねる)と定義する。
This command format is a so-called escape sequence command system, and includes a control ESC (1B H , H indicates a hexadecimal number) indicating the head of the command of 301.
A program identification number 302 is the program identification number of the program Bi to be migrated, and a command terminator “P” 303 is also defined (also serves as a command identification name representing a migration command).

【0018】プログラムAから、プログラムカートリッ
ジ112側のプログラムBiへの切替を行なう場合、ホ
ストコンピュータから本コマンドを送信し、これをプロ
グラムAがコマンド解析し、プログラムカートリッジ1
12上のプログラムBiへ制御を受け渡す。
When switching from the program A to the program Bi on the program cartridge 112 side, this command is transmitted from the host computer, and the command is analyzed by the program A.
The control is transferred to the program Bi on the server 12.

【0019】以下、これら301〜303を総称して本
コマンドをカートリッジ移行コマンド300と呼ぶ。
Hereinafter, these commands are collectively referred to as a cartridge transfer command 300.

【0020】図4は、プログラムカートリッジ112上
のプログラムBiの一例としてのプログラムBjに適用
するプリンタコマンドの1つで、プログラムBjからR
OM104へ納められたプログラムAへの制御の移行を
指示するコマンドのコマンド形式を示したものである。
尚、これは、本体内のROM104に格納されているも
ともとのプログラムAに移行するものであるから、以下
では本体移行コマンドという。
FIG. 4 shows one of the printer commands applied to the program Bj as an example of the program Bi on the program cartridge 112.
It shows a command format of a command instructed to transfer control to the program A stored in the OM 104.
Incidentally, since this is to shift to the original program A stored in the ROM 104 in the main unit, it is hereinafter referred to as a main unit shift command.

【0021】機能的には図3のプログラムAからプログ
ラムBiへの移行のコマンドと同様のものであり、それ
ぞれのプログラムカートリッジ112内のコマンド体系
に従った形式をとっている。ここでは、テキスト形式の
コマンド形式をとり、401がコマンドの最初を指示す
る識別子の文字コード列“@%”であり、以下にコマン
ド文字列が続くことになる。402はプログラムAへの
移行を指示するコマンド文字列“GOTONATIV
E”であり、プログラムBjは、本体移行コマンド40
0を検知すると、プログラムAへ処理を移す。
Functionally, the command is the same as the command for shifting from the program A to the program Bi in FIG. 3, and has a format according to the command system in each program cartridge 112. Here, the command format is a text format, and 401 is a character code string “$%” of an identifier indicating the beginning of a command, and a command character string follows. Reference numeral 402 denotes a command character string “GOTONATIV” instructing a shift to program A.
E ", and the program Bj is the main body shift command 40
When 0 is detected, the processing is shifted to program A.

【0022】図5はROM104上に用意される本体移
行コマンドテーブル500のデータ構造を示している。
FIG. 5 shows the data structure of the main body transfer command table 500 prepared on the ROM 104.

【0023】前述したように、本装置には 複数種類の
プログラムカートリッジ112が着脱自在になってい
る。これらのプログラムカートリッジ内に格納されたプ
ログラムBi(i=1,2,…)の持つそれぞれのコマ
ンド体系における各々の本体移行コマンドiを印刷制御
部100上のROM104に記憶させておくのがこの本
体移行コマンドテーブル500である。このテーブルは
501,502,503の3要素からなり、501がプ
ログラムカートリッジ上のプログラムBiのプログラム
識別番号iをセットしておく識別番号領域、502が本
体移行コマンドの長さli (バイト数)をセットしてお
くコマンド長領域、503が本体移行コマンドiのコー
ド列を入れておくコード領域である。この3要素の組が
提供される種々プログラムカートリッジ分用意され、テ
ーブル500を構成する。504はプログラムBiの一
例であるプログラムBjに対応する識別番号領域、コマ
ンド長領域、本体移行コマンドの組である。
As described above, a plurality of types of program cartridges 112 are detachable from the apparatus. The main body transfer command i in each command system of the program Bi (i = 1, 2,...) Stored in the program cartridge is stored in the ROM 104 of the print control unit 100. 6 is a migration command table 500. This table is composed of three elements 501, 502, and 503, where 501 is an identification number area in which the program identification number i of the program Bi on the program cartridge is set, and 502 is the length l i (number of bytes) of the main body transfer command. Is a command length area in which is set, and 503 is a code area in which the code string of the body shift command i is inserted. A set of these three elements is prepared for various program cartridges to be provided, and constitutes a table 500. Reference numeral 504 denotes a set of an identification number area, a command length area, and a body shift command corresponding to a program Bj which is an example of the program Bi.

【0024】以上のような構成をもつ本実施例のレーザ
ビームプリンタにおける本体側の制御プログラムである
プログラムAと、プログラムカートリッジ側の制御プロ
グラムであるプログラムBjとの制御の切替動作をそれ
ぞれのフローチャート図6,図7を用いて説明する。
In the laser beam printer of the present embodiment having the above-described configuration, the control switching operation between the program A, which is a control program on the main body side, and the program Bj, which is a control program on the program cartridge side, are flow charts respectively. This will be described with reference to FIG.

【0025】先ず、ROM104内に格納されているプ
ログラムAの動作を図6のフローチャートに従って説明
する。
First, the operation of the program A stored in the ROM 104 will be described with reference to the flowchart of FIG.

【0026】本装置に電源が投入されると、ステップS
601でプログラムの初期化処理を施し、ステップS6
02で入力インターフエース回路103をチエツクし
て、ホストコンピュータ1000からの入力データ待機
状態になる。
When the apparatus is powered on, step S
At 601, a program initialization process is performed, and step S 6 is performed.
In step 02, the input interface circuit 103 is checked to enter a state of waiting for input data from the host computer 1000.

【0027】データが受信されれば、ステップS603
へ進み、入力インターフエース回路から入力データをと
り出し、データ解析を行う。ここで、入力データがコマ
ンドか文字コードかが見分けられ、入力データが図3の
カートリッジ移行コマンド300に合致するものであれ
ば、ステップS604で分岐して後述のステップS60
8に進み、プログラム切替処理にはいる。また、それ以
外のコマンド又は文字コード等の場合、ステップS60
5に進み、ROM104から対応する文字ドットパター
ンを選び出し、RAM105上の画像メモリ領域にドッ
トパターン展開して出力ページの画像を作り上げて行
く。そして、ステップS606へ進み、1ページ分のデ
ータ解析が終了するまで、ステップS602からステッ
プS606を繰り返させる。1ページ分の画像作成が終
了すると、ステップS607へ進み、RAM105上の
画像メモリ領域の情報を画像信号発生器107へ送り、
印刷機構部109に印刷を行なわさせる。そして、ステ
ップS602へ戻り、次のページの処理にはいる。
If the data is received, step S603
Then, the input data is extracted from the input interface circuit and the data is analyzed. Here, it is discriminated whether the input data is a command or a character code. If the input data matches the cartridge transfer command 300 in FIG. 3, the flow branches to step S604 to branch to step S60 to be described later.
Proceed to step 8 to enter the program switching process. In the case of other commands or character codes, step S60
The process proceeds to step 5, where a corresponding character dot pattern is selected from the ROM 104, and a dot pattern is developed in an image memory area on the RAM 105 to form an output page image. Then, the process proceeds to step S606, and steps S602 to S606 are repeated until data analysis for one page is completed. When the creation of the image for one page is completed, the process proceeds to step S607, where the information of the image memory area on the RAM 105 is sent to the image signal generator 107.
The printing mechanism 109 prints. Then, the process returns to step S602 to enter the process for the next page.

【0028】さて、ステップS604でカートリッジ移
行コマンド300が検知された場合、ステップS608
へ進み、まず、プログラムカートリッジが装着されてい
るかをチェックする。装着されていれば、ステップS6
09でカートリッジ移行コマンド300で指示されてい
るプログラム識別番号302とプログラムカートリッジ
上のプログラム識別領域201にセットされているプロ
グラム識別番号が合致するかをチエツクし、合致してい
れば指示されているプログラムBi(ここではプログラ
ムBj)が存在するので、プログラムカートリッジ上の
プログラム領域202の先頭へジャンプし、プログラム
Bjへ(すなわち、後述のステップS701へ)制御を
移す(ステップS610)。
If the cartridge transfer command 300 is detected in step S604, step S608 is executed.
The process first proceeds to check whether the program cartridge is mounted. If it is attached, step S6
In step 09, it is checked whether the program identification number 302 specified by the cartridge transfer command 300 matches the program identification number set in the program identification area 201 on the program cartridge. Since Bi (here, the program Bj) exists, the program jumps to the beginning of the program area 202 on the program cartridge, and transfers control to the program Bj (that is, to step S701 described later) (step S610).

【0029】また、ステップS608で、プログラムカ
ートリッジが装着されていない場合、またステップS6
09でプログラム識別番号が合致しない場合、これはホ
ストコンピュータが指示したプログラムBiが存在しな
いことを表わすので、処理はステップS611以降に進
む。
If it is determined in step S608 that no program cartridge is mounted,
If the program identification numbers do not match in 09, this indicates that the program Bi specified by the host computer does not exist, and the process proceeds to step S611 and subsequent steps.

【0030】先ず、このステップS611では、表示パ
ネル106にエラー表示として警告マークを表示させ、
指定されたプログラムBjが存在しない旨のメッセージ
(エラーコード等でも良い)を表示する。次に、ステッ
プS612において、エラーメッセージを構成している
各文字のドットパターンをROM104より読み出し、
それを画像メモリ領域に展開させ、これを画像信号発生
器107へ送って、エラーメッセージのページを1枚印
刷させる。
First, in step S611, a warning mark is displayed on the display panel 106 as an error display.
A message indicating that the specified program Bj does not exist (an error code or the like may be displayed) is displayed. Next, in step S612, the dot pattern of each character constituting the error message is read from the ROM 104,
The image is developed in the image memory area and sent to the image signal generator 107 to print one page of the error message.

【0031】さて、ホストコンピュータ1000側は、
カートリッジ以降コマンドを送った後、プログラムBj
に対応するデータ群を送信してくる。そこで、先ず、ス
テップS613で、ステップS602で検知したカート
リッジ移行コマンド300のプログラム識別番号302
に対応する本体移行コマンドのコード列をコード503
から取り出してくる。本実施例では、プログラムBjに
対応したテーブル要素504を選び出し、本体移行コマ
ンドのコード列“@%GOTONATIVE”を取り出
す。
Now, on the host computer 1000 side,
After sending the command after the cartridge, the program Bj
Is transmitted. Therefore, first, in step S613, the program identification number 302 of the cartridge transfer command 300 detected in step S602.
The code string of the body shift command corresponding to
Take it out of In the present embodiment, the table element 504 corresponding to the program Bj is selected, and the code string “$% GOTONATIVE” of the body shift command is extracted.

【0032】そして、次のステップS614でステップ
S602と同様、ホストコンピュータ1000からのデ
ータ受信を待つ。そして、次のステップS615におい
て、受信したデータが先に取り出した本体移行コマンド
であると判断されるまで、受信したデータを読み飛ば
す。
Then, in the next step S614, similarly to step S602, reception of data from the host computer 1000 is waited. Then, in the next step S615, the received data is skipped until it is determined that the received data is the main body transfer command extracted earlier.

【0033】こうして、該当する本体移行コマンドのコ
ード列を検出すると、以後、ホストコンピュータ100
0はプログラムAに対応するコマンド体系に基づくデー
タを送出してくることになるから、ステップS616で
表示パネル106の警告マーク及びメッセージを消し、
ステップS602に戻る。
When the corresponding code string of the body migration command is detected, the host computer 100
0 means that data based on the command system corresponding to the program A is transmitted, so that the warning mark and the message on the display panel 106 are erased in step S616,
It returns to step S602.

【0034】次に、図7のフローチャートに従って、プ
ログラムカートリッジ112上のプログラムBjの処理
内容を説明する。この処理は、図6で説明したように、
本装置がROM104内のプログラムAを実行している
最中に、カートリッジ移行コマンド300を受信したと
きに実行開始する。
Next, the processing contents of the program Bj on the program cartridge 112 will be described with reference to the flowchart of FIG. This processing is performed as described with reference to FIG.
When the apparatus receives the cartridge transfer command 300 while the apparatus is executing the program A in the ROM 104, the execution starts.

【0035】先ず、ステップS701でプログラムBj
としての初期化処理を実施し、これまでのプログラムA
による印刷制御部100の状態をリセットする。次に、
ステップS702でホストコンピュータ1000からの
データの受信を待つ。
First, in step S701, the program Bj
The initialization process is performed as
Reset the state of the print control unit 100. next,
In step S702, reception of data from the host computer 1000 is waited.

【0036】データが受信されたときには、ステップS
703で入力されたデータのデータ解析を行なう。ここ
では、プログラムBjがサポートするコマンド体系に従
つたデータ解析としてコマンドと文字コードが見分けら
れる。入力データが図4の本体移行コマンド400に合
致するものであれば、ステップS704で分岐し、RO
M104上のプログラムAへ(すなわち、ステップS6
01へ)、制御が移される(ステップS708)。
When data has been received, step S
In step 703, data analysis of the input data is performed. Here, a command and a character code are distinguished as data analysis according to a command system supported by the program Bj. If the input data matches the main body transfer command 400 in FIG.
To program A on M104 (that is, in step S6
01), and control is transferred (step S708).

【0037】プログラムBjの専用コマンド或いは文字
コードの場合、ステップS705へ進み、対応する文字
パターン等をRAM104上の画像メモリ領域に展開
し、ステップS706で1ページ分の画像ができるま
で、ステップS702からステップS706を繰り返さ
せる。1ページの画像が完成すれば、ステップS707
へ進み、でき上がった画像情報を画像信号発生器107
へ送り、1ページ分の印刷を行なわさせる。そして、ス
テップS702へ戻り、次のページへの処理を続ける。
In the case of a dedicated command or a character code of the program Bj, the process proceeds to step S705, where the corresponding character pattern or the like is developed in the image memory area on the RAM 104, and from step S702 until the image of one page is formed in step S706. Step S706 is repeated. If the image of one page is completed, step S707
To the image signal generator 107
To print one page. Then, the process returns to step S702 to continue the processing for the next page.

【0038】以上、説明したように本実施例によれば、
指示された第2の制御プログラムが存在しなかった場
合、表示パネルにその旨が表示されるので、利用者に注
意を促すことが可能となる。
As described above, according to the present embodiment,
If the instructed second control program does not exist, the fact is displayed on the display panel, so that the user can be alerted.

【0039】また、指示された制御プログラムが実在し
なかったことを示すエラーメッセージを印刷出力するの
で、この記録紙があれば(或いは挟まっていれば)、そ
れ以降に記録しなかったデータが存在することを知るこ
とが可能となる。従って、本装置にバッテリーバックア
ップされたタイマを備え、エラーメッセージを印刷する
ときにその時刻も併せて印刷するようにすれば、時間が
経過した後でも、いつの時点以降のデータが印字しなか
ったを知ることが可能となる。
Further, since an error message indicating that the designated control program does not exist is printed out, if there is this recording paper (or if the recording paper is sandwiched), there is no data which has not been recorded since then. It becomes possible to know what to do. Therefore, if this device is equipped with a timer that is backed up by a battery, and the time is printed when the error message is printed, even if the time has elapsed, it is possible to check that no data was printed after any time. It becomes possible to know.

【0040】尚、実施例では、カートリッジ移行コマン
ドで指示されたプログラム識別番号の制御プログラムが
存在しなかった場合の報知手段として、表示パネル上へ
の警告マーク及びメッセージの表示、更にはエラーメッ
セージ付き印刷を行なったが、本発明はこれによって限
定されるものではない。
In this embodiment, a warning mark and a message are displayed on the display panel as an informing means when there is no control program of the program identification number designated by the cartridge transfer command. Printing was performed, but the present invention is not limited thereby.

【0041】例えば、出力信号性S12を介してホスト
コンピュータ側に、指示した制御プログラムの有無を伝
えても良い。この場合、ホストコンピュータは、先ずカ
ートリッジ移行コマンドを送信し、プリンタからの応答
信号を待ってから、所望の制御プログラムに対応する印
字データを送信することができ、もし指定の制御プログ
ラムがなければ印刷データの送信を中止することができ
る。従って、プリンタ側のデータの読み飛ばし処理が不
要となり、無駄なデータ送信を避けることが可能とな
る。
For example, the presence or absence of the designated control program may be transmitted to the host computer via the output signal S12. In this case, the host computer can first transmit a cartridge transfer command, wait for a response signal from the printer, and then transmit print data corresponding to a desired control program. Data transmission can be stopped. Therefore, the data skipping process on the printer side becomes unnecessary, and useless data transmission can be avoided.

【0042】尚、実施例では、レーザビームプリンタを
例にして説明したが、本発明の主旨に従えば、これのみ
に限定されるものではないことは明らかである。
Although the embodiment has been described by taking a laser beam printer as an example, it is obvious that the present invention is not limited to this only according to the gist of the present invention.

【0043】また、実施例ではプログラムカートリッジ
111には1個のプログラムカートリッジのみしか装着
できない例を説明したが、このコネクタを複数備えれば
複数のコマンド体系に適応させることが可能となる。こ
のとき、各プログラムカートリッジから別のプログラム
カートリッジへのコマンド体系への移行を許可するた
め、各プログラムBiからプログラムAに移行するコマ
ンドテーブルのみではなく、それらの組み合せ分のテー
ブルを用意する。そして、例えば図6のステップS61
3では、指示されたプログラムBjから移行し得るコマ
ンドの文字列を抽出し、ステップS615ではそれらの
うちどれか1つと合致したか否かを判断する。合致した
ものがあれば、そのコマンド体系に移行させれば良い。
In the embodiment, an example in which only one program cartridge can be mounted on the program cartridge 111 has been described. However, if a plurality of connectors are provided, it is possible to adapt to a plurality of command systems. At this time, in order to permit the transition from each program cartridge to the command system of another program cartridge, not only a command table for transition from each program Bi to the program A but also a table for a combination thereof is prepared. Then, for example, step S61 in FIG.
In step S3, a character string of a command that can be transferred from the designated program Bj is extracted. In step S615, it is determined whether any one of them is matched. If there is a match, it is sufficient to shift to that command system.

【0044】[0044]

【発明の効果】以上説明したように本発明によれば、制
御プログラム指定コードに従って該当する制御プログラ
ムを選択し、実行させることで正しい制御プログラムが
確実に選択されることを保証し、且つ、その選択しよう
とする制御プログラムが存在しない場合には、それ以降
の印刷データから次の制御プログラム指定コードを受信
するまでの間で受信した印刷データについては処理を行
わないようにすることが可能になる。
As described above, according to the present invention, by selecting and executing a corresponding control program according to a control program designating code, it is ensured that a correct control program is selected, and If the control program to be selected does not exist, it is possible to not perform processing on print data received from the subsequent print data until the next control program designation code is received. .

【0045】また、制御プログラム指定コードで指定さ
れた制御プログラムが存在しない場合にはその旨を操作
パネルに表示させることで、外部装置から出力中の印刷
データについては印刷されないことを確認できる。ま
た、制御プログラムの存在しない場合に、外部装置に出
力することで、外部装置の操作者に対して無駄な印刷デ
ータの出力を止めさせることができるようになる。
If the control program designated by the control program designation code does not exist, by displaying the fact on the operation panel, it can be confirmed that the print data being output from the external device is not printed. In addition, when the control program does not exist, by outputting to the external device, it becomes possible to stop the operator of the external device from outputting useless print data.

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

【図1】実施例におけるレーザビームプリンタのブロッ
ク構成図である。
FIG. 1 is a block diagram of a laser beam printer according to an embodiment.

【図2】実施例におけるプログラムカートリッジ上の格
納形式を表わす図である。
FIG. 2 is a diagram illustrating a storage format on a program cartridge in the embodiment.

【図3】実施例におけるカートリッジ移行コマンドのコ
マンド形式を示す図である。
FIG. 3 is a diagram illustrating a command format of a cartridge transfer command in the embodiment.

【図4】実施例における本体移行コマンドのコマンド形
式を示す図である。
FIG. 4 is a diagram showing a command format of a main body transfer command in the embodiment.

【図5】実施例における本体移行コマンドテーブルのデ
ータ構造図である。
FIG. 5 is a data structure diagram of a main body transfer command table in the embodiment.

【図6】装置本体内のプログラムのフローチャートであ
る。
FIG. 6 is a flowchart of a program in the apparatus main body.

【図7】プログラムカートリッジ内のプログラムのフロ
ーチャートの一例を示す図である。
FIG. 7 is a diagram illustrating an example of a flowchart of a program in a program cartridge.

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

100 レーザビームプリンタ 101 印刷制御部 102 CPU 103 入力インターフエース回路 104 ROM 105 RAM 106 表示パネル 107 画像信号発生器 108 出力インターフエース回路 109 印刷機構部 110 カートリッジインターフエース回路 111 カートリッジコネクタ 112 カートリッジプログラム 201 プログラム識別領域 300 カートリッジ移行コマンド形式 400 本体移行コマンド形式 500 本体移行コマンドテーブル 1000 ホストコンピュータ REFERENCE SIGNS LIST 100 laser beam printer 101 print control unit 102 CPU 103 input interface circuit 104 ROM 105 RAM 106 display panel 107 image signal generator 108 output interface circuit 109 printing mechanism unit 110 cartridge interface circuit 111 cartridge connector 112 cartridge program 201 program identification Area 300 Cartridge transfer command format 400 Main unit transfer command format 500 Main unit transfer command table 1000 Host computer

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭64−64029(JP,A) 特開 平1−180621(JP,A) 特開 平4−43063(JP,A) 特開 平2−302815(JP,A) 特開 平1−314177(JP,A) 特開 平4−230514(JP,A) 特開 平4−239315(JP,A) 特開 昭63−29393(JP,A) 特開 昭63−216756(JP,A) (58)調査した分野(Int.Cl.6,DB名) B41J 5/30 B41J 29/38 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-64-64029 (JP, A) JP-A-1-180621 (JP, A) JP-A-4-43063 (JP, A) JP-A-2- 302815 (JP, A) JP-A-1-314177 (JP, A) JP-A-4-230514 (JP, A) JP-A-4-239315 (JP, A) JP-A-63-29393 (JP, A) JP-A-63-216756 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) B41J 5/30 B41J 29/38

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の制御プログラムを装備可能であっ
て、前記複数の制御プログラムの1つでもって外部装置
から受信した印刷データを解析し、出力データを生成し
て印刷部で印刷させる印刷制御装置であって、 制御コードを含む印刷データを受信する受信手段と、 前記印刷データに含まれる制御プログラム指定コードに
基づいて、前記複数の制御プログラムから該当する制御
プログラムが存在するか否かを判別する判別手段と、 該判別手段によって該当する制御プログラムが存在する
ことが判別された場合には、当該制御プログラムを選択
して実行し、 前記判別手段によって該当する制御プログラムが存在し
ないことが判別された場合、次の制御プログラム指定コ
ードを受信するまでの間、前記受信手段で受信する印刷
データを読み飛ばす制御手段とを備えることを特徴とす
る印刷制御装置。
1. A print control which can be provided with a plurality of control programs, analyzes print data received from an external device by one of the plurality of control programs, generates output data, and prints the output data in a printing unit. An apparatus, comprising: receiving means for receiving print data including a control code; and determining whether a corresponding control program is present from the plurality of control programs based on a control program designation code included in the print data. And a determining unit that determines that a corresponding control program exists. If the determining unit determines that the corresponding control program exists, the control unit selects and executes the control program. The determining unit determines that the corresponding control program does not exist. The print data received by the receiving means is skipped until the next control program designation code is received. Print control apparatus characterized by comprising a controls unit.
【請求項2】 前記制御手段は、前記判別手段の判別結
果を前記印刷制御装置上の表示パネルに表示することを
特徴とする請求項第1項に記載の印刷制御装置。
2. The print control device according to claim 1, wherein the control unit displays a result of the determination by the determination unit on a display panel on the print control device.
【請求項3】 前記制御手段は、前記判別手段の判別結
果を前記外部装置に出力することを特徴とする請求項第
1項に記載の印刷制御装置。
3. The print control apparatus according to claim 1, wherein the control unit outputs a result of the determination by the determination unit to the external device.
【請求項4】 前記制御プログラム指定コードは、指定
された制御プログラムから当該制御プログラムとは異な
る他の制御プログラムへの移行を指示するコードである
ことを特徴とする請求項第1項に記載の印刷制御装置。
4. The control program according to claim 1, wherein the control program designation code is a code for instructing a transition from the designated control program to another control program different from the control program. Print control device.
【請求項5】 複数の制御プログラムを装備可能であっ
て、前記複数の制御プログラムの1つでもって外部装置
から受信した印刷データを解析し、出力データを生成し
て印刷部で印刷させる印刷制御装置における制御プログ
ラム選択方法であって、 受信した印刷データ中の制御プログラム指定コードに基
づいて、前記複数の制御プログラムから該当する制御プ
ログラムが存在するか否かを判別し、 該当する制御プログラムが存在することが判別された場
合には、当該制御プログラムを選択して実行し、 該当する制御プログラムが存在しないことが判別された
場合、次の制御プログラム指定コードを受信するまでの
間、受信する印刷データを読み飛ばすことを特徴とする
制御プログラム選択方法。
5. A print control which can be provided with a plurality of control programs, analyzes print data received from an external device by one of the plurality of control programs, generates output data, and prints the output data in a printing unit. A method of selecting a control program in an apparatus, comprising: determining whether a corresponding control program exists from the plurality of control programs based on a control program designation code in received print data; If it is determined that the control program is to be executed, the control program is selected and executed, and if it is determined that the corresponding control program does not exist, the print program to be received is received until the next control program designation code is received. A control program selection method characterized by skipping data.
【請求項6】 前記制御プログラム指定コードで指定さ
れた制御プログラムが存在するか否かの判別結果を、前
記印刷制御装置上に設けられた操作パネルに表示するこ
とを特徴とする請求項第5項に記載の制御プログラム選
択方法。
6. The control panel according to claim 5, wherein a result of determining whether or not a control program specified by the control program specifying code exists is displayed on an operation panel provided on the print control apparatus. The control program selection method according to the paragraph.
【請求項7】 前記制御プログラム指定コードで指定さ
れた制御プログラムが存在するか否かの判別結果を、前
記外部装置に出力することを特徴とする請求項第5項に
記載の制御プログラム選択方法。
7. The control program selection method according to claim 5, wherein a determination result as to whether or not a control program specified by the control program specification code is present is output to the external device. .
【請求項8】 前記制御プログラム指定コードは、指定
された制御プログラムから当該制御プログラムとは異な
る他の制御プログラムへの移行を指示するコードである
ことを特徴とする請求項第5項に記載の制御プログラム
選択方法。
8. The control program according to claim 5, wherein the control program designation code is a code for instructing a transition from the designated control program to another control program different from the control program. Control program selection method.
JP3046365A 1991-03-12 1991-03-12 Print control device and control program selection method Expired - Fee Related JP2885951B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP3046365A JP2885951B2 (en) 1991-03-12 1991-03-12 Print control device and control program selection method
DE69233395T DE69233395T2 (en) 1991-03-12 1992-03-11 Method and arrangement for data output
DE69229650T DE69229650T2 (en) 1991-03-12 1992-03-11 Method and arrangement for data output
EP98202714A EP0881565B1 (en) 1991-03-12 1992-03-11 Output method and apparatus using the same
EP92302043A EP0503902B1 (en) 1991-03-12 1992-03-11 Output method and apparatus using the same
KR1019920004064A KR950005223B1 (en) 1991-03-12 1992-03-12 Output method and appratus therefor
US08/480,291 US5561744A (en) 1991-03-12 1995-06-07 Output method and apparatus using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3046365A JP2885951B2 (en) 1991-03-12 1991-03-12 Print control device and control program selection method

Publications (2)

Publication Number Publication Date
JPH04282270A JPH04282270A (en) 1992-10-07
JP2885951B2 true JP2885951B2 (en) 1999-04-26

Family

ID=12745130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3046365A Expired - Fee Related JP2885951B2 (en) 1991-03-12 1991-03-12 Print control device and control program selection method

Country Status (1)

Country Link
JP (1) JP2885951B2 (en)

Also Published As

Publication number Publication date
JPH04282270A (en) 1992-10-07

Similar Documents

Publication Publication Date Title
EP0521673B1 (en) Printing system wherein one of printer drivers through which print data is sent from a data processor to a printer is selected based on interpreters available on the printer
JPH0589269A (en) Bar code printer
JPH11296335A (en) Preview method for print data and device therefor and recording medium
US5561744A (en) Output method and apparatus using the same
JP2885951B2 (en) Print control device and control program selection method
JP2875403B2 (en) Printing equipment
JPS60232973A (en) Printer
JPS6159920B2 (en)
EP0555841B1 (en) Output apparatus
KR20050031972A (en) System, apparatus, and program for processing character information
JP2780974B2 (en) Printer
JP2005025772A (en) Method and device for previewing print data and recording medium
JP2699385B2 (en) Printing device
JP2882793B2 (en) Document editing device
JPH10301725A (en) Printing device and information processor, system and control method therefor and storage medium
JP3012344B2 (en) Printing equipment
JPH0275015A (en) Printer
KR20010019455A (en) Method for management of history in the printer
JP2891857B2 (en) Printing apparatus and printing method
KR100193804B1 (en) How to Support Printer Emulation Using Computer
JPH11249853A (en) Image forming device
JP3419117B2 (en) Printer
JPH0779399B2 (en) Equipment
JPS63205269A (en) Printer
JPS63272144A (en) Dump output device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990108

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080212

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090212

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110212

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees