[go: up one dir, main page]

JPH06230909A - Output device and method therefor - Google Patents

Output device and method therefor

Info

Publication number
JPH06230909A
JPH06230909A JP5018850A JP1885093A JPH06230909A JP H06230909 A JPH06230909 A JP H06230909A JP 5018850 A JP5018850 A JP 5018850A JP 1885093 A JP1885093 A JP 1885093A JP H06230909 A JPH06230909 A JP H06230909A
Authority
JP
Japan
Prior art keywords
identification information
command
output device
changed
stored
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
JP5018850A
Other languages
Japanese (ja)
Other versions
JP3210118B2 (en
Inventor
Masao Maeda
昌雄 前田
Wataru Sakagami
渉 坂上
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
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP01885093A priority Critical patent/JP3210118B2/en
Publication of JPH06230909A publication Critical patent/JPH06230909A/en
Priority to US08/433,130 priority patent/US5899614A/en
Application granted granted Critical
Publication of JP3210118B2 publication Critical patent/JP3210118B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【目的】 上位装置が出力装置を容易に識別しながら所
望の出力処理を選択的に実行させることができる。 【構成】 記憶されている識別情報の変更を指示する指
示情報の入力に応じて、前記変更すべき識別情報を他の
識別情報に置き換え、前記置き換えられた識別情報の入
力に応じて、前記置き換えられる前の識別情報が示めす
所定の動作を実行する構成を特徴とする。
(57) [Abstract] [Purpose] A higher-level device can easily perform desired output processing while easily identifying the output device. According to an input of instruction information for changing the stored identification information, the identification information to be changed is replaced with other identification information, and the replacement is performed in response to the input of the replaced identification information. The configuration is characterized in that a predetermined operation indicated by the identification information before being executed is executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ホストコンピューター
等の上位装置からのコマンド群を受信して、以後のデー
タ処理を変更するプリンタ或は表示器(CRT、LC
D)等の出力装置及びその方法に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to a printer or display (CRT, LC) which receives a command group from a host device such as a host computer and changes subsequent data processing.
D) and other output devices and methods.

【0002】[0002]

【従来の技術】従来、上位装置からの一連のコマンド群
を受信して、以後のデータ処理を変更する出力装置とし
て、例えばプリンタ、表示器(CRT、LCD)等があ
る。これらの出力装置は、データとコマンドを識別する
機能を有している。
2. Description of the Related Art Conventionally, for example, a printer, a display (CRT, LCD) or the like is an output device that receives a series of commands from a host device and changes the subsequent data processing. These output devices have a function of identifying data and commands.

【0003】[0003]

【発明が解決しようとする課題】しかし、同一の機種に
おいては、コマンドとして認識するための一連の文字列
(コマンドテーブル内の文字列)は固定であった。この
ため、1台の上位装置に複数の同一の出力装置を接続す
る、例えばSCSIのように、装置番号を指定できない
汎用インタフェースを用いるシステムでは、上位装置は
装置番号の識別はできないため、複数の出力装置が同時
にコマンド処理を競合して実行してしまう等の問題点が
あった。
However, in the same model, a series of character strings (character strings in the command table) for recognizing as a command is fixed. Therefore, in a system in which a plurality of the same output devices are connected to one host device, for example, in a system using a general-purpose interface in which the device number cannot be specified, such as SCSI, the host device cannot identify the device number, There has been a problem that the output devices simultaneously execute command processing in competition.

【0004】[0004]

【課題を解決するための手段】本発明は、かかる従来技
術に鑑みなされたものであり、上位装置からの特定コマ
ンドで出力装置のコマンドテーブルを書き換えることに
より、上位装置が出力装置を容易に識別しながら所望の
出力処理を選択的に実行させることができる出力装置及
び出力方法を提供するものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above prior art, and the upper device easily identifies the output device by rewriting the command table of the output device with a specific command from the upper device. However, the present invention provides an output device and an output method capable of selectively executing desired output processing.

【0005】この課題を解決するために本発明の出力装
置は、以下に示す構成を備える。すなわち、記憶されて
いる識別情報の変更を指示する指示情報の入力に応じ
て、前記変更すべき識別情報を他の識別情報に置き換え
る置換手段と、前記置換手段で置き換えられた識別情報
の入力に応じて、前記置換手段で置き換えられる前の識
別情報が示めす所定の動作を実行する実行手段とを備え
る。
In order to solve this problem, the output device of the present invention has the following configuration. That is, in accordance with the input of the instruction information for instructing the change of the stored identification information, the replacement means for replacing the identification information to be changed with other identification information, and the input of the identification information replaced by the replacement means. Accordingly, there is provided execution means for executing a predetermined operation indicated by the identification information before being replaced by the replacement means.

【0006】また、前記識別情報は、所定の動作を示す
制御コマンドのパラメータを表す。
Further, the identification information represents a parameter of a control command indicating a predetermined operation.

【0007】また、前記指示情報は、変更すべき識別情
報と変更後の識別情報を示す。
The instruction information indicates identification information to be changed and identification information after the change.

【0008】また、前記指示情報は、外部で設定され
る。
The instruction information is set externally.

【0009】また、前記置換手段は、検索手段を有し、
前記記憶されている識別情報から前記指示情報で示され
た変更すべき識別情報を検索する。
Further, the replacing means has a searching means,
The stored identification information is searched for the identification information to be changed indicated by the instruction information.

【0010】また、前記置換手段は、報知手段を有し、
前記変更すべき識別情報が記憶されていない場合、その
旨を外部に報知する。
Further, the replacement means has a notification means,
If the identification information to be changed is not stored, the fact is notified to the outside.

【0011】この課題を解決するために本発明の出力方
法は、以下に示す工程を備える。すなわち、記憶されて
いる識別情報の変更を指示する指示情報の入力に応じ
て、前記変更すべき識別情報を他の識別情報に置き換え
る置換工程と、前記置き換えられた識別情報の入力に応
じて、前記置換手段で置き換えられる前の識別情報が示
めす所定の動作を実行する実行工程とを備える。
In order to solve this problem, the output method of the present invention comprises the following steps. That is, in response to the input of the instruction information for instructing the change of the stored identification information, the replacement step of replacing the identification information to be changed with other identification information, and the input of the replaced identification information, An executing step of executing a predetermined operation indicated by the identification information before being replaced by the replacing means.

【0012】また、前記識別情報は、所定の動作を示す
制御コマンドのパラメータを表す。
The identification information represents a parameter of a control command indicating a predetermined operation.

【0013】また、前記指示情報は、変更すべき識別情
報と変更後の識別情報を示す。
The instruction information indicates the identification information to be changed and the identification information after the change.

【0014】また、前記指示情報は、外部で設定され
る。
The instruction information is set externally.

【0015】また、前記置換工程は、更に、前記記憶さ
れている識別情報から前記指示情報で示された変更すべ
き識別情報を検索する。
Further, in the replacing step, the identification information to be changed indicated by the instruction information is retrieved from the stored identification information.

【0016】また、前記置換工程は、更に、前記変更す
べき識別情報が記憶されていない場合、その旨を外部に
報知する。
Further, in the replacing step, when the identification information to be changed is not stored, the fact is notified to the outside.

【0017】[0017]

【作用】かかる本発明の構成或は工程において、記憶さ
れている識別情報の変更を指示する指示情報の入力に応
じて、前記変更すべき識別情報を他の識別情報に置き換
え、前記置き換えられた識別情報の入力に応じて、前記
置き換えられる前の識別情報が示めす所定の動作を実行
する。
In the configuration or process of the present invention, the identification information to be changed is replaced with another identification information in response to the input of the instruction information for instructing the change of the stored identification information. In response to the input of the identification information, the predetermined operation indicated by the identification information before being replaced is executed.

【0018】[0018]

【実施例】本発明の構成を説明する前に、本実施例を適
用するのに好適な出力装置の構成について図2及び図7
を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing the structure of the present invention, the structure of an output device suitable for applying this embodiment will be described with reference to FIGS.
Will be described with reference to.

【0019】なお、本実施例を適用する出力装置は、レ
ーザビームプリンタに限られるものではなく、後述する
インクジェットプリンタのような他のプリント方式のプ
リンタでも良いことは言うまでもない。
It is needless to say that the output device to which the present embodiment is applied is not limited to the laser beam printer, and may be a printer of another printing system such as an inkjet printer described later.

【0020】図7は本発明を適用可能な第1の出力装置
の構成を示す断面図であり、例えばレーザビームプリン
タ(LBP)の場合を示す。
FIG. 7 is a sectional view showing the structure of a first output device to which the present invention can be applied, for example, a case of a laser beam printer (LBP).

【0021】図において、1500はLBP本体であ
り、外部に接続されているホストコンピュータ等の外部
装置から供給される印刷データ(文字コード等)やフォ
ームデータあるいはマクロ命令等を入力して記憶すると
ともに、それらのデータに従って対応する文字パターン
やフォームパターン等を作成し、記録媒体である記録紙
上に像を形成する。1501は操作のためのスイッチ及
びLED表示器等が配されている操作パネル、1000
はLBP本体1500全体の制御及びホストコンピュー
タから供給される印刷データ等を解析するプリンタ制御
ユニットである。このプリンタ制御ユニット1000
は、主に文字コードを対応する文字パターンのビデオ信
号に変換してレーザドライバ1502に出力する。レー
ザドライバ1502は半導体レーザ1503を駆動する
ための回路であり、入力されたビデオ信号に応じて半導
体レーザ1503から発射されるレーザ光1504をオ
ン・オフ切り替えする。レーザ光1504は回転多面鏡
1505で左右方向に振らされて静電ドラム1506上
を走査露光する。これにより、静電ドラム1506上に
は文字パターンの静電潜像が形成されることになる。こ
の潜像は、静電ドラム1506周囲に配設された現像ユ
ニット1507により現像された後、記録紙に転写され
る。この記録紙にはカットシートを用い、カットシート
記録紙はLBP1500に装着した用紙カセット150
8に収納され、給紙ローラ1509及び搬送ローラ15
10と搬送ローラ1511とにより、装置内に取り込ま
れて、静電ドラム1506に供給される。
In the figure, reference numeral 1500 denotes an LBP main body, which inputs and stores print data (character code or the like) supplied from an external device such as a host computer externally connected, form data, or a macro command. A corresponding character pattern, form pattern, or the like is created according to the data, and an image is formed on a recording paper, which is a recording medium. Reference numeral 1501 denotes an operation panel on which switches for operation and an LED display are arranged.
Is a printer control unit for controlling the entire LBP main body 1500 and analyzing print data and the like supplied from the host computer. This printer control unit 1000
Mainly converts a character code into a video signal having a corresponding character pattern and outputs the video signal to the laser driver 1502. The laser driver 1502 is a circuit for driving the semiconductor laser 1503, and switches on / off the laser light 1504 emitted from the semiconductor laser 1503 according to the input video signal. The laser light 1504 is oscillated in the left-right direction by the rotary polygon mirror 1505 to scan and expose the electrostatic drum 1506. As a result, an electrostatic latent image having a character pattern is formed on the electrostatic drum 1506. This latent image is developed by a developing unit 1507 arranged around the electrostatic drum 1506 and then transferred to a recording paper. A cut sheet is used as the recording sheet, and the cut sheet recording sheet is a paper cassette 150 mounted on the LBP 1500.
8, the paper feed roller 1509 and the transport roller 15
It is taken into the apparatus by 10 and the conveyance roller 1511 and is supplied to the electrostatic drum 1506.

【0022】図1は、本発明の出力装置を適用するシス
テムの一例を示す構成図である。
FIG. 1 is a block diagram showing an example of a system to which the output device of the present invention is applied.

【0023】図において、1はホストコンピュータ等の
上位装置で、所定のインタフェース4を介して出力装置
2,出力装置3が接続されている。
In the figure, reference numeral 1 is a host device such as a host computer, to which an output device 2 and an output device 3 are connected via a predetermined interface 4.

【0024】従来では、出力装置2が解釈するコマンド
を送出する上位装置1に、上記コマンドと同一のコマン
ドを解釈する出力装置3を新たに接続して、図1に示す
システムを構築していたため、各出力装置は、同時に上
位装置からの所定のコマンドを解釈して、コマンド処理
を競合して実行してしまった。
Conventionally, the output device 3 for interpreting the same command as the above command is newly connected to the host device 1 for transmitting the command interpreted by the output device 2 to construct the system shown in FIG. , Each output device simultaneously interprets a predetermined command from the host device, and competingly executes the command processing.

【0025】そこで、以下で説明するように新たに接続
する出力装置3が、コマンドを解釈する際に参照するコ
マンドテーブルに記憶されている各コマンドのパラメー
タを更新し、それに応じたアプリケーションプログラム
を用いて上位装置から、出力装置3へ新しいコマンドを
送出するだけで、簡単に、コマンド処理の競合を防止で
きる。
Therefore, as will be described below, the newly connected output device 3 updates the parameters of each command stored in the command table to which it refers when interpreting the command, and uses the corresponding application program. By simply sending a new command from the host device to the output device 3, it is possible to easily prevent command processing conflicts.

【0026】図2は、図1に示した出力装置2,3の詳
細構成を示すブロック図である。
FIG. 2 is a block diagram showing a detailed structure of the output devices 2 and 3 shown in FIG.

【0027】図において、11は不揮発性メモリ(例え
ば、バックアップ電源を有するRAM,フラッシュメモ
リ等)で、後述するコマンドテーブルが格納されてい
る。12はインタフェース制御部で、上記インタフェー
ス4に接続され、上位装置1との通信を制御する。13
はRAMで、主としてMPU17が実行するROM14
に記憶されている制御プログラム(図4のフローチャー
トで示す制御プログラム等)実行のためのワークとして
機能する。15は出力部で、本実施例では印刷出力処理
を実行する。16は内部バスで、上記MPU17と各部
を接続している。なお、各出力装置2,3の電源投入後
の状態は機器非選択状態である。なお、本実施例は印刷
出力処理を例にして説明するがCRT等への表示出力処
理に本発明を適用できることは言うまでもない。
In the figure, reference numeral 11 denotes a non-volatile memory (for example, a RAM having a backup power source, a flash memory, etc.) in which a command table described later is stored. An interface control unit 12 is connected to the interface 4 and controls communication with the host device 1. Thirteen
Is RAM, and ROM14 mainly executed by MPU17
Functions as a work for executing the control program stored in the control program (such as the control program shown in the flowchart of FIG. 4). An output unit 15 executes print output processing in this embodiment. An internal bus 16 connects the MPU 17 and each unit. The state of each output device 2, 3 after the power is turned on is the device non-selected state. It should be noted that the present embodiment is described by taking the print output process as an example, but it goes without saying that the present invention can be applied to the display output process to a CRT or the like.

【0028】このように構成された出力装置において、
上位装置1とのコマンドシーケンスにより出力装置3が
特定のコマンドを受信すると、MPU17が解析した特
定のコマンドに基づいてMPU17が不揮発性メモリ1
1に構築されるコマンドテーブルの設定値を変更するこ
とにより、MPU17によるコマンドテーブルの書換え
終了後、上位装置から出力される特定のコマンドシーケ
ンスを選択的に実行することを可能とする。
In the output device thus constructed,
When the output device 3 receives a specific command in a command sequence with the higher-level device 1, the MPU 17 causes the nonvolatile memory 1 to operate based on the specific command analyzed by the MPU 17.
By changing the setting value of the command table constructed as No. 1, it is possible to selectively execute a specific command sequence output from the higher-level device after the MPU 17 finishes rewriting the command table.

【0029】また、コマンドテーブルを記憶する記憶媒
体を不揮発性メモリ11で構成し、電源入切状態に関わ
らずコマンドテーブルの内容を保持することにより、電
源投入後、速やかに上位装置が特定の出力装置を識別可
能とする。
Further, the storage medium for storing the command table is constituted by the non-volatile memory 11, and the contents of the command table are held regardless of the power-on / off state, so that the host device can quickly output a specific output after power-on. Make devices identifiable.

【0030】さらに、MPU17の機能処理により特定
コマンドを受信するモードの設定を可能とすることによ
り、特定コマンド受信タイミングを任意に設定可能とす
る。
Further, by enabling the setting of the mode for receiving the specific command by the functional processing of the MPU 17, the specific command reception timing can be arbitrarily set.

【0031】図3は、図2に示した不揮発性メモリ11
に記憶されるコマンドテーブルの一例を示す図である。
FIG. 3 shows the nonvolatile memory 11 shown in FIG.
It is a figure which shows an example of the command table memorize | stored in FIG.

【0032】図において、a,b,A〜D,Xはコマン
ドで、例えば以下のような命令処理に対応する。
In the figure, a, b, A to D, and X are commands, which correspond to the following instruction processing, for example.

【0033】 ESCa 機器選択:次に続くデータを有効にする ESCb 機器非選択:ESCaを受信するまで全
てのデータを無効にする ESCA 拡大文字の設定:以後に続くデータを横
方向に拡大して表示する ESCB 拡大文字の解除:横方向拡大を解除する ESCCn イタリック文字の設定/解除:イタリッ
ク表示の開始/終了 ESCDn 網かけ文字の設定/解除:網かけ表示の
開始/終了 ESCXnm 制御コードの変更
ESCa device selection: Validate the following data ESCb Device non-selection: Invalidate all data until ESCA is received ESCA Enlarged character setting: Enlarge and display the following data in the horizontal direction ESCB Cancel enlarged characters: Cancel horizontal enlargement ESCCn Set / cancel italic characters: Start / end italic display ESCDn Set / cancel hatched characters: Start / end shaded display ESCXnm Change control code

【0034】以下、図4に示すフローチャートを参照し
ながら本発明に係る出力装置におけるコマンドシーケン
スについて説明する。
The command sequence in the output device according to the present invention will be described below with reference to the flow chart shown in FIG.

【0035】図4は本発明に係る出力装置におけるコマ
ンドシーケンスの一例を示すフローチャートである。な
お、(1)〜(7)は各ステップを示し、図2に示すM
PU17によって制御される。
FIG. 4 is a flowchart showing an example of a command sequence in the output device according to the present invention. In addition, (1) to (7) indicate each step, and M shown in FIG.
It is controlled by the PU 17.

【0036】先ず、各出力装置2,3の電源投入後の状
態は機器非選択状態であるから、ステップ(1)におけ
る判定は、NOとなり、ESCaコマンドシーケンスを
受信するまで(2)、全てのデータを無視する(データ
を捨てる)(4)。
First, since the state of each output device 2, 3 after the power is turned on is the device non-selected state, the determination in step (1) is NO, and until the ESCa command sequence is received (2), all of them are performed. Data is ignored (data is discarded) (4).

【0037】一方、ステップ(2)の判定でESCaコ
マンドシーケンスを受信したら、装置を選択状態として
(3)、以後のデータを有効とする。
On the other hand, when the ESCa command sequence is received in the judgment of the step (2), the device is brought into the selected state (3) and the subsequent data is made valid.

【0038】これにより、ステップ(1)の判定がYE
Sとなり、受信したコマンドシーケンスがESCbかど
うかを判定し(5)、YESならば機器を非選択状態と
し(6)、以後ESCaコマンドシーケンスを受信する
までデータを無視する。
As a result, the determination in step (1) is YE.
When S is received, it is determined whether the received command sequence is ESCb (5), and if YES, the device is deselected (6), and the data is ignored until the ESCa command sequence is received thereafter.

【0039】一方、ステップ(5)の判定でNOの場合
は、受信データの解析およびデータ出力を行い(7)、
処理を終了する。
On the other hand, if the determination in step (5) is NO, the received data is analyzed and data is output (7),
The process ends.

【0040】このため、システムが図1に示すようにシ
ステムが構成されている場合、上位装置1が上記コマン
ドシーケンスを発行すると、出力装置2および出力装置
3はそれぞれ正しいコマンドとして認識してしまい、両
装置2,3は共にコマンド処理を実行してしまう。
Therefore, when the system is configured as shown in FIG. 1, when the host device 1 issues the above command sequence, the output device 2 and the output device 3 recognize each as a correct command, Both devices 2 and 3 execute the command processing.

【0041】そこで、出力装置3をESCXのみ実行す
るモードで立ち上げ、その後、上位装置1がESCXa
xという命令を発行すると、出力装置3の不揮発性メモ
リ11に記憶されたコマンドテーブル(図3参照)をM
PU17が図5に示すコマンドテーブルの内容に書き換
える。これにより、以後、上位装置1はコマンドヘッダ
をESCxを受信した場合に限り、以前ESCaと同一
のコマンドシーケンスとみなしてデータ処理を行うこと
が可能となり、上位装置1は出力装置3と出力装置2と
をソフト識別可能となり、同一のコマンドシーケンスを
出力装置3または出力装置2といった具合に識別しなが
ら実行させることができる。なお、書き換えられた図5
に示すコマンドテーブルの内容は、電源遮断状態になっ
ても記憶情報が失われない。
Therefore, the output device 3 is started up in a mode in which only ESCX is executed, and thereafter, the higher-level device 1 uses the ESCXa
When the command x is issued, the command table (see FIG. 3) stored in the non-volatile memory 11 of the output device 3 is displayed as M
The PU 17 rewrites the contents of the command table shown in FIG. As a result, after that, the upper level device 1 can perform the data processing by regarding the command header as the same command sequence as the previous ESCa and perform the data processing only when the command header is received by the upper level device 1. And can be identified by software, and the same command sequence can be executed while identifying the output device 3 or the output device 2. Note that the rewritten FIG.
As for the contents of the command table shown in, the stored information is not lost even when the power is cut off.

【0042】従って、以後上位装置1は、各種コマンド
群を出力装置2に対してはESCa(コマンドヘッダ)
とESCb(コマンドフッタ)で挟み込むことにより、
出力装置3に対してはESCx(コマンドヘッダ)とE
SCb(コマンドフッタ)で挟み込むことによって、出
力装置を区別してデータを出力することができる。
Therefore, thereafter, the host device 1 sends various command groups to the output device 2 with ESCa (command header).
By sandwiching it with ESCb (command footer),
For the output device 3, ESCx (command header) and E
By sandwiching with SCb (command footer), it is possible to distinguish the output devices and output the data.

【0043】次に、図2に示した不揮発性メモリ11内
のコマンドテーブルの書き換え処理について説明する。
なお、この書き換え処理は、製品(例えば、出力装置
3)の出荷前に行われる。
Next, the rewriting process of the command table in the non-volatile memory 11 shown in FIG. 2 will be described.
The rewriting process is performed before shipping the product (for example, the output device 3).

【0044】コマンド書換え用のコマンド「ESCXn
m」の第1のパラメータnが現在のコマンドヘッダを指
定し、第2パラメータmが新しいコマンドヘッダを指定
する形式で構成されている。このことにより、出力装置
3は、コマンド「ESCXax」を含むコマンドシーケ
ンスを受信すると、MPU17は不揮発性メモリ11内
のコマンドテーブルを検索して、第1パラメータ「a」
と同じ文字を探し出し、一致した箇所を第2パラメータ
「x」に置き換える。この処理により、コマンドテーブ
ル内の「a」が「x」に変更、すなわちコマンドシーケ
ンスが更新されたことになる。
The command "ESCXn" for command rewriting
The first parameter n of "m" specifies the current command header, and the second parameter m specifies a new command header. As a result, when the output device 3 receives the command sequence including the command “ESCXax”, the MPU 17 searches the command table in the non-volatile memory 11 for the first parameter “a”.
The same character is searched for, and the matching part is replaced with the second parameter “x”. By this processing, “a” in the command table is changed to “x”, that is, the command sequence is updated.

【0045】また、一度更新した内容を元に戻す場合
は、例えば、コマンド書換え用のコマンド「ESCXn
m」の第1パラメータnと第2パラメータmを入れ替え
たコマンド「ESCXmn」を用いる。このことによ
り、出力装置3は、コマンド「ESCXxa」を含むコ
マンドシーケンスを受信すると、MPU17は不揮発性
メモリ11内のコマンドテーブルを検索して、第1のパ
ラメータ「x」と同じ文字を探し出し、一致した箇所を
第2パラメータ「a」に置き換える。この処理によりコ
マンドテーブル内の「x」が「a」に変更、すなわちコ
マンドシーケンスが元の内容(コマンド「ESCax」
で更新される前の内容)に更新されたことになる。
To restore the contents once updated, for example, the command "ESCXn" for command rewriting is used.
The command "ESCXmn" in which the first parameter n and the second parameter m of "m" are exchanged is used. As a result, when the output device 3 receives the command sequence including the command “ESCXxa”, the MPU 17 searches the command table in the nonvolatile memory 11 to find the same character as the first parameter “x”, and matches the same. The replaced part is replaced with the second parameter “a”. By this processing, "x" in the command table is changed to "a", that is, the command sequence has the original contents (command "ESCax").
The contents before being updated in) will be updated.

【0046】なお上記実施例では、製品出荷前に上記各
コマンドが、ホストコンピュータ等の上位装置から入力
される場合で、本実施例を説明したが、製品出荷後に図
7に示す操作パネル1501等でユーザーやサービスマ
ンが上記各コマンドを設定したり、ホストコンピュータ
等の上位装置から入力させることにより、本発明を実施
しても良いことは明らかである。
In the above embodiment, the above-described embodiment has been described in the case where each of the above commands is input from the host device such as the host computer before the product is shipped. However, after the product is shipped, the operation panel 1501 shown in FIG. It is obvious that the present invention may be implemented by a user or service person setting the above commands or inputting them from a host device such as a host computer.

【0047】なお、この時、第1のパラメータが特定の
コマンド、特に書き換え用コマンドのヘッダである
「X」と同じであった場合は、受信したコマンドを無効
にする処理を実行することによって誤動作が防止でき
る。同様に、第1のパラメータを検索した結果、コマン
ドテーブルに該当する文字がない、すなわち一致しなか
ったときも、受信コマンドを無効にする。これら不適当
なコマンドシーケンスを受信したとき、両方向性のイン
タフェース、例えばRS232C,セントロニクスなら
ば上位装置1に対してエラー通知を行うこともできる。
また、インタフェースの種類にかかわらず出力装置3に
具備されている表示機能(例えば、図7に示す操作パネ
ル1501)等を使用してエラー表示を行えば確実であ
る。ただし、不適当なコマンドシーケンスを受信したと
きに装置を動作不能状態にするか否かは出力装置2,3
が使用される環境により異なるので、適宜対応できるよ
うに構成すればよい。
At this time, if the first parameter is the same as the "X" which is the header of the specific command, especially the rewriting command, malfunction is caused by executing the processing for invalidating the received command. Can be prevented. Similarly, as a result of searching the first parameter, when there is no corresponding character in the command table, that is, when there is no match, the received command is invalidated. When these inappropriate command sequences are received, an error notification can be sent to the host device 1 in the case of a bidirectional interface such as RS232C and Centronics.
Further, regardless of the type of interface, it is sure to display an error using the display function (for example, the operation panel 1501 shown in FIG. 7) provided in the output device 3 or the like. However, the output device 2, 3 determines whether or not the device is inoperable when an improper command sequence is received.
Since it depends on the environment in which is used, it may be configured so that it can be appropriately dealt with.

【0048】なお、上記実施例では、コマンド書換え用
のコマンド「ESCXax」により、コマンドテーブル
のヘッダ「a」を「x」に書き換える処理を例にして説
明したが、勿論コマンド「ESCA」の「A」を他の文
字列に書き換えることも可能である。
In the above embodiment, the process of rewriting the header "a" of the command table to "x" by the command "ESCXax" for command rewriting has been described as an example. It is also possible to rewrite "" with another character string.

【0049】また、上記実施例では上位装置1側での不
用意な操作によるESCXコマンドシーケンス発行に対
して不用意なコマンドテーブルの書き換えを防止するた
め、コマンドシーケンス変更のために出力装置3をコマ
ンド「ESCX」のみ受信するモードで立ち上げる場合
について説明したが、特殊なモードでなくても良く、例
えばコマンドヘッダを変更したい出力装置のみ電源を投
入しておき、他の出力装置の電源を遮断しておくという
状態であれば、同様の効果が期待できる。
Further, in the above embodiment, in order to prevent inadvertent rewriting of the command table in response to the issuance of the ESCX command sequence by the careless operation on the higher-level device 1, the output device 3 is commanded to change the command sequence. The case of starting up in the mode for receiving only "ESCX" has been described, but the mode does not have to be a special mode. For example, power on only the output device for which the command header is to be changed, and power off the other output devices. The same effect can be expected if it is kept.

【0050】さらに、上記実施例では1つのコマンドの
文字列を置き換える場合について説明したが、複数のコ
マンドの文字列を置き換えるように構成しても良く、こ
れにより、出力機器の選別を行うだけでなく、出力装置
毎に出力形態を換えることも可能となる。例えば上記実
施例において、ESCxコマンドシーケンスを用いて出
力装置3のコマンドテーブルを図6に示すように、図5
に示す「C」,「D」を入れ替えることにより、特定の
文字あるいは文章の一部を強調して出力させると、出力
装置2ではイタリック文字で、出力装置3では網掛け文
字で出力するといった処理も可能となる。
Further, in the above embodiment, the case where the character string of one command is replaced has been described. However, the character string of a plurality of commands may be replaced, so that it is only necessary to select the output device. Instead, the output form can be changed for each output device. For example, in the above-described embodiment, the command table of the output device 3 using the ESCx command sequence is shown in FIG.
By replacing "C" and "D" shown in Fig. 2 to emphasize and output a specific character or part of a sentence, the output device 2 outputs italic characters and the output device 3 outputs hatched characters. Will also be possible.

【0051】電源入切状態に関わらずコマンドテーブル
の内容を保持するように構成したので、電源投入後、速
やかに上位装置が特定の出力装置を識別することができ
る。
Since the contents of the command table are retained regardless of the power-on / off state, the host device can quickly identify the specific output device after the power is turned on.

【0052】さらに、MPU17の機能処理により特定
コマンドを受信するモードの設定を可能とするように構
成したので、特定コマンド受信タイミングを任意に設定
することができる。
Further, since the mode for receiving the specific command can be set by the functional processing of the MPU 17, the specific command receiving timing can be set arbitrarily.

【0053】従って、出力装置のコマンドテーブルのヘ
ッダ等を容易に変更でき、出力装置の番号を識別できな
いインターフェースでも、上位装置側から出力装置の番
号を指定できるシステムを容易に構築できる等の優れた
効果を奏する。
Therefore, it is possible to easily change the header of the command table of the output device, and to easily construct a system in which the output device number can be specified from the host device side even with an interface in which the output device number cannot be identified. Produce an effect.

【0054】また、本発明は複数の機器から構成される
システムに適用しても、1つの機器からなる装置に適用
しても良い。また、本発明はシステム或は装置に、本発
明を実施するプログラムを供給することによって達成さ
れる場合にも適用できることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0055】また、上記実施例では出力装置としてレー
ザビームプリンタを例にして説明したが、以下に説明す
る図8に示すような他のプリント方式のプリンタでも良
いし、CRT等の表示装置でも良いことは明らかであ
る。
In the above embodiment, the laser beam printer was used as an example of the output device for the description, but it may be a printer of another printing type as shown in FIG. 8 described below or a display device such as a CRT. That is clear.

【0056】図8は本発明を適用可能な第2の出力装置
の構成を示す外観図であり、例えばインクジェット印刷
装置(IJRA)の場合を示す。
FIG. 8 is an external view showing the configuration of a second output device to which the present invention can be applied, for example, the case of an ink jet printer (IJRA).

【0057】図において、駆動モータ5013の正逆回
転に連動して駆動力伝達ギヤ5011、5009を介し
て回転するリードスクリュー5005の螺旋溝5004
に対して係合するキャリッジHCはピン(図示しない)
を有し、矢印a、b方向に往復移動される。このキャリ
ッジHCには、インクジェットカートリッジIJCが搭
載されている。5002は紙押さえ板であり、キャリッ
ジ移動方向にわたって紙をプラテン5000に対して押
圧する。5007、5008はフォトカプラで、キャリ
ッジのレバー5006のこの域での存在を確認してモー
タ5013の回転方向切り替え等を行うためのホームポ
ジション検知手段として機能する。5016は記録ヘッ
ドの全面をキャップするキャップ部材5022を指示す
る部材、5015はこのキャップ内を吸引する吸引手段
でキャップ内開口5023を介して記録ヘッドの吸引回
復を行う。5017はクリーニングブレードで、部材5
019により前後方向に移動可能となる。5018は本
体支持板で、上記5017、5019を支持する。50
12は、吸引回復の吸引を開始するためのレバーで、キ
ャリッジと係合するカム5020の移動に伴って移動
し、駆動モータからの駆動力がクラッチ切り替え等の公
知の伝達手段で移動制御される。
In the figure, a spiral groove 5004 of a lead screw 5005 that rotates via driving force transmission gears 5011 and 5009 in association with forward and reverse rotations of a drive motor 5013.
The carriage HC that engages with is a pin (not shown)
And is reciprocated in the directions of arrows a and b. An inkjet cartridge IJC is mounted on the carriage HC. A paper pressing plate 5002 presses the paper against the platen 5000 in the carriage movement direction. Reference numerals 5007 and 5008 denote photocouplers, which function as home position detecting means for confirming the presence of the carriage lever 5006 in this area and switching the rotation direction of the motor 5013. Reference numeral 5016 is a member that indicates a cap member 5022 that caps the entire surface of the recording head, and 5015 is a suction unit that sucks the inside of the cap, and performs suction recovery of the recording head through the opening 5023 in the cap. 5017 is a cleaning blade, which is a member 5
019 enables movement in the front-back direction. Reference numeral 5018 denotes a main body supporting plate which supports the above 5017 and 5019. Fifty
Reference numeral 12 is a lever for starting suction for suction recovery, which moves in accordance with the movement of the cam 5020 that engages with the carriage, and the driving force from the driving motor is movement-controlled by a known transmission means such as clutch switching. .

【0058】これらのキャッピング、クリーニング、吸
引回復は、キャリッジがホームポジション側領域にきた
ときにリードスクリュー5005の作用によってそれら
の対応位置で所望の処理が行えるように構成されている
が、周知のタイミングで所望動作を行うように構成され
ていれば良い。
The capping, cleaning, and suction recovery are performed so that desired processing can be performed at their corresponding positions by the action of the lead screw 5005 when the carriage comes to the home position side area. It suffices if it is configured so as to perform the desired operation.

【0059】図9は、図8に示した第2の出力装置の制
御構成を説明するブロック図である。
FIG. 9 is a block diagram for explaining the control configuration of the second output device shown in FIG.

【0060】図において、1700は文字コードおよび
制御コード等から成る印刷データ等を入力するインター
ェース、1701はMPU、1702は前記MPU17
01が実行する制御プログラム(図4に示すフローチャ
ートに基づくプログラム)等を格納するプログラムRO
M、1703はDRAMで、各種データ(上記印刷デー
ターやヘッドに供給されるデータ等)を保存しておく。
1704は記録ヘッド1708に対するデータの供給制
御を行うゲートアレイで、インタフェース1700、M
PU1701、DRAM1703間のデータの転送制御
も行う。1710は前記記録ヘッド1708を搬送する
ためのキャリアモータ、1709は記録用紙搬送のため
の搬送モータ、1705は前記記録ヘッドを駆動するヘ
ッドドライバ、1706は前記搬送モータ1709を駆
動するモータドライバ、1707は前記キャリアモータ
1710を駆動するモータドライバである。1711
は、不揮発性メモリ(例えば、バックアップ電源を有す
るRAM,フラッシュメモリ等)で、前述したコマンド
テーブルが格納されている。
In the figure, 1700 is an interface for inputting print data and the like consisting of character codes and control codes, 1701 is an MPU, 1702 is the MPU 17 described above.
A program RO for storing a control program (program based on the flowchart shown in FIG. 4) executed by 01.
M and 1703 are DRAMs for storing various data (the print data, the data supplied to the head, etc.).
A gate array 1704 controls data supply to the recording head 1708.
It also controls data transfer between the PU 1701 and the DRAM 1703. Reference numeral 1710 is a carrier motor for conveying the recording head 1708, 1709 is a conveyance motor for conveying recording paper, 1705 is a head driver for driving the recording head, 1706 is a motor driver for driving the conveyance motor 1709, and 1707 is A motor driver for driving the carrier motor 1710. 1711
Is a non-volatile memory (for example, a RAM having a backup power supply, a flash memory, etc.) in which the above-mentioned command table is stored.

【0061】このように構成された各出力装置におい
て、インターフェース1700を介してホストコンピュ
ータより印刷データ等が入力されると、ゲートアレイ1
704とMPU1701との間で印刷データがプリント
用のイメージデータに変換される。そして、モータドラ
イバ1706、1707が駆動されるとともに、ヘッド
ドライバ1705に送られたイメージデータに従って記
録ヘッドが駆動され印字が実行される。
In each of the output devices thus configured, when print data or the like is input from the host computer via the interface 1700, the gate array 1
The print data is converted between the 704 and the MPU 1701 into image data for printing. Then, the motor drivers 1706 and 1707 are driven, and the recording head is driven according to the image data sent to the head driver 1705 to execute printing.

【0062】[0062]

【発明の効果】以上説明したように、本発明は上位装置
とのコマンドシーケンスにより、新たな出力装置(例え
ば、出力装置3)が特定のコマンドを受信し、MPU1
7の解析した特定のコマンドに基づいて、MPU17が
コマンドテーブルの設定値を変更し、それに応じたアプ
リケーションプログラムを用いて、上位装置から新たな
出力装置へ新しいコマンドを送出するだけで、簡単に、
コマンド処理の競合を防止でき、上位装置から送出され
る特定のコマンドシーケンスを選択的に実行することが
できる。
As described above, according to the present invention, a new output device (for example, the output device 3) receives a specific command by the command sequence with the host device, and the MPU 1
Based on the analyzed specific command of 7, the MPU 17 changes the setting value of the command table, and by using the corresponding application program, simply sends a new command from the upper device to the new output device.
The command processing can be prevented from conflicting, and a specific command sequence sent from the higher-level device can be selectively executed.

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

【図1】本発明の実施例に係る出力装置を適用するシス
テムの一例を示す構成図である。
FIG. 1 is a configuration diagram showing an example of a system to which an output device according to an embodiment of the present invention is applied.

【図2】図1に示した出力装置の基本構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a basic configuration of the output device shown in FIG.

【図3】図2に示した不揮発性メモリに記憶されるコマ
ンドテーブルの一例を示す図である。
FIG. 3 is a diagram showing an example of a command table stored in the nonvolatile memory shown in FIG.

【図4】本発明の実施例に係る出力装置におけるコマン
ドシーケンスの一例を示すフローチャートである。
FIG. 4 is a flowchart showing an example of a command sequence in the output device according to the exemplary embodiment of the present invention.

【図5】図2に示した不揮発性メモリに記憶されるコマ
ンドテーブルの書き換え状態を示す図である。
5 is a diagram showing a rewritten state of a command table stored in the nonvolatile memory shown in FIG.

【図6】図2に示した不揮発性メモリに記憶されるコマ
ンドテーブルの他の書き換え状態を示す図である。
FIG. 6 is a diagram showing another rewritten state of the command table stored in the nonvolatile memory shown in FIG.

【図7】本発明を適用可能な第1の出力装置の構成を示
す断面図である。
FIG. 7 is a sectional view showing a configuration of a first output device to which the present invention can be applied.

【図8】本発明を適用可能な第2の出力装置の構成を示
す外観図である。
FIG. 8 is an external view showing a configuration of a second output device to which the present invention can be applied.

【図9】図8に示した第2の出力装置の基本構成を示す
ブロック図である。
9 is a block diagram showing a basic configuration of a second output device shown in FIG.

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

1 上位装置 2 出力装置 3 出力装置 11 不揮発性メモリ 17 MPU 1 Upper device 2 Output device 3 Output device 11 Non-volatile memory 17 MPU

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 記憶されている識別情報の変更を指示す
る指示情報の入力に応じて、前記変更すべき識別情報を
他の識別情報に置き換える置換手段と、 前記置換手段で置き換えられた識別情報の入力に応じ
て、前記置換手段で置き換えられる前の識別情報が示め
す所定の動作を実行する実行手段とを有することを特徴
とする出力装置。
1. A replacement unit that replaces the identification information to be changed with other identification information in response to an input of instruction information that instructs a change of the stored identification information, and the identification information replaced by the replacement unit. And an executing means for executing a predetermined operation indicated by the identification information before being replaced by the replacing means, in accordance with the input of.
【請求項2】 前記識別情報は、所定の動作を示す制御
コマンドのパラメータを表すことを特徴とする請求項1
記載の出力装置。
2. The identification information represents a parameter of a control command indicating a predetermined operation.
The output device described.
【請求項3】 前記指示情報は、変更すべき識別情報と
変更後の識別情報を示すことを特徴とする請求項1記載
の出力装置。
3. The output device according to claim 1, wherein the instruction information indicates identification information to be changed and identification information after the change.
【請求項4】 前記指示情報は、外部で設定されること
を特徴とする請求項1記載の出力装置。
4. The output device according to claim 1, wherein the instruction information is set externally.
【請求項5】 前記置換手段は、更に、検索手段を有
し、前記記憶されている識別情報から前記指示情報で示
された変更すべき識別情報を検索することを特徴とする
請求項1記載の出力装置。
5. The replacement unit further includes a search unit, and searches the stored identification information for the identification information to be changed indicated by the instruction information. Output device.
【請求項6】 前記置換手段は、更に、報知手段を有
し、前記変更すべき識別情報が記憶されていない場合、
その旨を外部に報知することを特徴とする請求項1記載
の出力装置。
6. The replacement means further includes a notification means, and when the identification information to be changed is not stored,
The output device according to claim 1, wherein the fact is notified to the outside.
【請求項7】 記憶されている識別情報の変更を指示す
る指示情報の入力に応じて、前記変更すべき識別情報を
他の識別情報に置き換える置換工程と、 前記置き換えられた識別情報の入力に応じて、前記置換
工程で置き換えられる前の識別情報が示めす所定の動作
を実行する実行工程とを有することを特徴とする出力方
法。
7. A replacing step of replacing the identification information to be changed with another identification information in response to the input of the instruction information for instructing the change of the stored identification information, and the inputting of the replaced identification information. Accordingly, there is provided an executing step of executing a predetermined operation indicated by the identification information before being replaced in the replacing step.
【請求項8】 前記識別情報は、所定の動作を示す制御
コマンドのパラメータを表すことを特徴とする請求項7
記載の出力方法。
8. The identification information represents a parameter of a control command indicating a predetermined operation.
The output method described.
【請求項9】 前記指示情報は、変更すべき識別情報と
変更後の識別情報を示すことを特徴とする請求項7記載
の出力方法。
9. The output method according to claim 7, wherein the instruction information indicates identification information to be changed and identification information after the change.
【請求項10】 前記指示情報は、外部で設定されるこ
とを特徴とする請求項7記載の出力方法。
10. The output method according to claim 7, wherein the instruction information is set externally.
【請求項11】 前記置換工程は、更に、前記記憶され
ている識別情報から前記指示情報で示された変更すべき
識別情報を検索することを特徴とする請求項7記載の出
力方法。
11. The output method according to claim 7, wherein the replacing step further searches the stored identification information for the identification information to be changed indicated by the instruction information.
【請求項12】 前記置換工程は、更に、前記変更すべ
き識別情報が記憶されていない場合、その旨を外部に報
知することを特徴とする請求項7記載の出力方法。
12. The output method according to claim 7, wherein in the replacing step, when the identification information to be changed is not stored, the fact is notified to the outside.
JP01885093A 1992-06-30 1993-02-05 Print control device and print control method Expired - Fee Related JP3210118B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP01885093A JP3210118B2 (en) 1993-02-05 1993-02-05 Print control device and print control method
US08/433,130 US5899614A (en) 1992-06-30 1995-05-03 Output method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01885093A JP3210118B2 (en) 1993-02-05 1993-02-05 Print control device and print control method

Publications (2)

Publication Number Publication Date
JPH06230909A true JPH06230909A (en) 1994-08-19
JP3210118B2 JP3210118B2 (en) 2001-09-17

Family

ID=11983032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01885093A Expired - Fee Related JP3210118B2 (en) 1992-06-30 1993-02-05 Print control device and print control method

Country Status (1)

Country Link
JP (1) JP3210118B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3932398C1 (en) * 1989-09-28 1991-01-17 Ant Nachrichtentechnik Gmbh, 7150 Backnang, De Matching aerial reflector to specified ideal reflector contour - determining deviations of aerial reflector from ideal contour at measurement points on surface of reflector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3932398C1 (en) * 1989-09-28 1991-01-17 Ant Nachrichtentechnik Gmbh, 7150 Backnang, De Matching aerial reflector to specified ideal reflector contour - determining deviations of aerial reflector from ideal contour at measurement points on surface of reflector

Also Published As

Publication number Publication date
JP3210118B2 (en) 2001-09-17

Similar Documents

Publication Publication Date Title
US5943503A (en) Status-controlled interrogation of peripheral device status
JP3002056B2 (en) Printer device and print control method in the device
US6052204A (en) Output apparatus and output method
US5899614A (en) Output method and apparatus
JPH06230909A (en) Output device and method therefor
US6927867B2 (en) Output control method and apparatus therefor
JP3049158B2 (en) Character processing device and character processing method of character processing device
US5696891A (en) Printing apparatus and method for storing various printing parameters
JP3658025B2 (en) Electronic device, data processing system having the device, and data processing method in the device
JP2871981B2 (en) Printing apparatus and control method thereof
JP3202841B2 (en) Printing apparatus, printing system, and printing control method
JP3581432B2 (en) Printing apparatus and control method thereof
JP3382299B2 (en) Character processing method and apparatus
JP3043525B2 (en) Printing apparatus and print control method
JP3647197B2 (en) Printer device, host computer, and information processing method
JPH0635627A (en) Image recorder
KR20010019455A (en) Method for management of history in the printer
JPH06242895A (en) Printing device and method
JPH08185291A (en) Device and method for image formation
JPH0664241A (en) Printer
JPH079707A (en) Printer
JPH0695814A (en) Printing data transfer system
JPH0816336A (en) Printing device and printing device state switching method
JPH0950431A (en) Font data management method and system and device to which the same is applied
JPH08238813A (en) Recording control device and recording control method

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: 20010703

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

Free format text: PAYMENT UNTIL: 20080713

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees