JP2860210B2 - Printing control device - Google Patents

Printing control device

Info

Publication number
JP2860210B2
JP2860210B2 JP4254578A JP25457892A JP2860210B2 JP 2860210 B2 JP2860210 B2 JP 2860210B2 JP 4254578 A JP4254578 A JP 4254578A JP 25457892 A JP25457892 A JP 25457892A JP 2860210 B2 JP2860210 B2 JP 2860210B2
Authority
JP
Japan
Prior art keywords
interface
data
unit
processing
control
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
JP4254578A
Other languages
Japanese (ja)
Other versions
JPH06106793A (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
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP4254578A priority Critical patent/JP2860210B2/en
Publication of JPH06106793A publication Critical patent/JPH06106793A/en
Application granted granted Critical
Publication of JP2860210B2 publication Critical patent/JP2860210B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は複数の入力インタフェー
スを有する印刷装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus having a plurality of input interfaces.

【0002】[0002]

【従来の技術】従来この種の印刷装置において、選択さ
れていないインタフェースの状態は、選択されているイ
ンタフェースにデータが転送された時点でビジーにする
か、あるいは、選択されていないインタフェースにデー
タが転送され一時記憶領域がいっぱいになった時点でビ
ジーにするのか、のいずれか一方のみの方法が固定的に
用いられていた。
2. Description of the Related Art Conventionally, in this type of printing apparatus, the state of an unselected interface is set to be busy when data is transferred to the selected interface, or the state of data is transferred to an unselected interface. A method in which only the transfer is performed when the temporary storage area becomes full or only one of the methods is fixedly used.

【0003】また、従来この種の印刷装置において、選
択されていないインタフェースにおいて障害が発生した
場合、選択されているインタフェースからの受信で他の
印字中であってもエラー処理に移行し、印刷を中断して
いた。
In a conventional printing apparatus of this type, when a failure occurs in an interface that is not selected, even if another printing is being performed by receiving from the selected interface, error processing is performed, and printing is performed. Was suspended.

【0004】また、従来この種の印刷装置において、選
択されていないインタフェースにおいて専用線によるリ
セット信号が入力された場合は無視していた。
Conventionally, in a printing apparatus of this type, a case where a reset signal via a dedicated line is input to an unselected interface has been ignored.

【0005】[0005]

【発明が解決しようとする課題】上記印刷装置におい
て、選択されているインタフェースにデータが転送され
た時点でビジーにする方法では、一時記憶領域内に取り
込める容量のデータであっても転送することはできな
い。また、一時記憶領域がいっぱいになった時点でビジ
ーにする方法では、データ転送前はプリンタがレディ状
態であっても、データ転送中にビジーになる可能性があ
る。
In the above printing apparatus, in the method of making the data busy at the time when the data is transferred to the selected interface, it is possible to transfer even data having a capacity that can be taken into the temporary storage area. Can not. In the method in which the printer is busy when the temporary storage area becomes full, there is a possibility that the printer is busy during data transfer even if the printer is in a ready state before data transfer.

【0006】ところで、ホストコンピュータと印刷装置
の間の通信プロトコルとして、以下の2つの方式があ
る。即ち、ホストコンピュータによる印刷処理の開始
時に印刷装置がビジーである場合はレディ状態になるの
を待つ方式、ホストコンピュータによる印刷処理の開
始時に印刷装置がビジーである場合は印刷処理を中止し
てしまう方式である。
Incidentally, there are the following two methods as communication protocols between the host computer and the printing apparatus. That is, if the printing apparatus is busy at the start of the printing process by the host computer, the system waits for a ready state. If the printing apparatus is busy at the start of the printing process by the host computer, the printing process is stopped. It is a method.

【0007】の方式では、印刷開始の当初より印刷装
置がビジー状態であってもホストコンピュータは印刷処
理により拘束される。従って、早くホストコンピュータ
を印刷処理から開放するという観点より、選択されてい
ないインターフェースにデータを転送する場合でもとり
あえずバッファにデータを送ってしまう方が処理効率が
向上する。
In the method, even if the printing apparatus is busy from the beginning of printing, the host computer is restricted by the printing process. Therefore, from the viewpoint of quickly releasing the host computer from the printing process, even when data is transferred to an unselected interface, the data is sent to the buffer for the time being, thereby improving the processing efficiency.

【0008】また、の方式では、印刷開始時に印刷装
置の状態をチェックし、印刷装置がビジー状態であった
場合には印刷処理を実行せず、レディ状態であった場合
に印刷処理の実行を開始する。そして、印刷処理の開始
以降に印刷装置がビジーとなった場合は、の方式と同
様に印刷装置がレディになるのを待つ。従って、この
の方式で選択されていないインターフェースにデータを
転送したようにする場合は、印刷装置からのビジー信号
により印刷処理を開始させない方が処理効率の点からは
有利である。
In the method, the state of the printing apparatus is checked at the start of printing, and if the printing apparatus is busy, the printing process is not executed. If the printing device is ready, the printing process is executed. Start. If the printing device becomes busy after the start of the printing process, the process waits until the printing device becomes ready in the same manner as in the method described above. Therefore, when data is transferred to an interface that is not selected by this method, it is advantageous from the viewpoint of processing efficiency that the printing process is not started by a busy signal from the printing apparatus.

【0009】以上のように、選択されていないインター
フェースのビジー信号の発行タイミングは、ホストコン
ピュータと印刷装置間の通信プロトコルの特徴により切
り替えることが望ましい。しかしながら、従来の印刷装
置ではこれらの2つの方法をユーザが用途に合わせて選
択することはできなかった。
As described above, it is desirable that the timing of issuing the busy signal of the interface not selected be switched according to the characteristics of the communication protocol between the host computer and the printing apparatus. However, in the conventional printing apparatus, these two methods cannot be selected by the user according to the application.

【0010】また、上記印刷装置にいおいて、選択され
ていないインタフェースにおいて障害が発生したことに
より、選択されているインタフェースでは正常な通信が
行われたにもかかわらず印刷が中断されてしまうという
不具合があった。更に、上記印刷装置において、選択さ
れていないインタフェースにおいて専用線によるリセッ
ト信号が入力された場合は無視される。このため、印刷
装置に設定されているパラメータ等をリセットして印刷
を行いたいとき、リセット信号が無視されるのでパラメ
ータのリセットは実行されず、ユーザが意図する印刷結
果が得られない場合があった。
Further, in the above printing apparatus, when a failure occurs in an unselected interface, printing is interrupted even though normal communication has been performed on the selected interface. There was a defect. Further, in the above-described printing apparatus, when a reset signal by a dedicated line is input to an interface that is not selected, it is ignored. For this reason, when it is desired to perform printing by resetting the parameters and the like set in the printing apparatus, the reset signal is ignored, the parameter is not reset, and the print result intended by the user may not be obtained. Was.

【0011】以上のように、選択されていないインター
フェースにおいて障害発生やリセット要求等が発生した
とき、従来の印刷装置では、選択されているインターフ
ェースへ影響を及ぼしたり、確実に処理が実行されなか
ったりする等の問題があった。
As described above, when a failure or a reset request occurs in an unselected interface, the conventional printing apparatus may affect the selected interface or may not execute processing reliably. There was a problem such as doing.

【0012】本発明は上記のような複数の入力インター
フェースを有する印刷装置において生じる問題のいくつ
かを解決しようとするものである。すなわち、本発明の
第1の目的は、選択されていないインターフェースにお
いて制御信号が受信された場合に、選択されているイン
ターフェースに影響を及ぼさずに、かつ確実にその制御
信号に対応した処理を行える印刷制御装置を提供するこ
とにある。
The present invention seeks to solve some of the problems encountered with printing devices having multiple input interfaces as described above. That is, a first object of the present invention is to perform a process corresponding to the control signal without affecting the selected interface when the control signal is received at the non-selected interface. A printing control device is provided.

【0013】また、本発明の第2の目的は、選択されて
いないインターフェースにおいて障害が発生した場合で
も、選択されているインターフェースに影響を及ぼさず
に、かつ確実にその障害に対処することを可能とする印
刷制御装置を提供することにある。
Further, a second object of the present invention is to be able to deal with a failure without affecting the selected interface even if a failure occurs in an unselected interface. The present invention is to provide a print control device.

【0014】[0014]

【課題を解決するための手段】上記の第1の目的を達成
するための本発明による印刷制御装置は以下の構成を備
える。すなわち、複数のデータ源から、データと制御信
号を受信するための複数のインターフェース部を有する
印刷制御装置であって、前記複数のインターフェース部
の内、データを先に受信したインターフェース部を選択
する選択手段と、前記選択手段で選択されているインタ
ーフェース部で受信したデータを処理中に、選択されて
いない他のインターフェース部のデータ線とは別の信号
線を介して受信された制御信号を記憶する記憶手段と、
前記選択手段で選択されているインターフェース部で受
信したデータの処理が完了した後、前記他のインターフ
ェース部を選択し、前記記憶手段に記憶された前記制御
信号に対応した処理を実行する制御手段とを備える。
A printing control apparatus according to the present invention for achieving the first object has the following arrangement. That is, a print control device having a plurality of interface units for receiving data and control signals from a plurality of data sources, wherein a selection is made to select an interface unit that has received data first among the plurality of interface units. Means for storing a control signal received via a signal line different from a data line of another interface unit which is not selected while processing data received by the interface unit selected by the selecting unit. Storage means;
After the processing of the data received by the interface unit selected by the selection unit is completed, the control unit selects the other interface unit and executes a process corresponding to the control signal stored in the storage unit. Is provided.

【0015】また、上記の第2の目的を達成するための
本発明による印刷制御装置は以下の構成を備える。すな
わち、複数のデータ源からデータを受信するための複数
のインターフェース部を有する印刷制御装置であって、
前記複数のインターフェース部の内、データを先に受信
したインターフェース部を選択する選択手段と、前記選
択手段で選択されているインターフェース部で受信した
データを処理中に、選択されていない他のインターフェ
ース部で生じたエラーを示すエラー情報を記憶する記憶
手段と、前記選択手段で選択されているインターフェー
ス部で受信したデータの処理が完了した後、前記他のイ
ンターフェース部を選択し、前記記憶手段に記憶された
前記エラー情報に対応したエラー処理を実行する制御手
段とを備える。
Further, a print control apparatus according to the present invention for achieving the second object has the following configuration. That is, a print control apparatus having a plurality of interface units for receiving data from a plurality of data sources,
Selecting means for selecting an interface unit that has received data first among the plurality of interface units, and another interface unit not selected while processing data received by the interface unit selected by the selecting unit A storage unit that stores error information indicating an error that has occurred in, and after the processing of the data received by the interface unit selected by the selection unit is completed, the other interface unit is selected and stored in the storage unit. Control means for executing an error process corresponding to the error information.

【0016】[0016]

【作用】以上の構成によれば、選択されていないインタ
ーフェースにおいて制御信号(例えばリセット信号な
ど)を受信した場合、当該制御信号が記憶手段に記憶さ
れる。そして、選択されているインターフェースによる
データ処理が完了した後に、当該制御信号を記憶したイ
ンターフェースが選択されて、当該制御信号に対応する
処理が実行される。
According to the above arrangement, when a control signal (for example, a reset signal) is received at an interface which is not selected, the control signal is stored in the storage means. Then, after the data processing by the selected interface is completed, the interface storing the control signal is selected, and the processing corresponding to the control signal is executed.

【0017】また、他の構成によれば、選択されていな
いインターフェースにおいてエラーが発生した場合、そ
のエラーを示すエラー情報が記憶される。そして、選択
されているインターフェースによるデータ処理が完了し
た後に、当該エラー情報を記憶したインターフェースが
選択されて、記憶手段に記憶されたエラー情報に対応し
たエラー処理が実行される。
According to another configuration, when an error occurs in an unselected interface, error information indicating the error is stored. Then, after the data processing by the selected interface is completed, the interface storing the error information is selected, and the error processing corresponding to the error information stored in the storage unit is executed.

【0018】[0018]

【実施例】以下に添付の図面を参照して本発明の好適な
実施例について説明する。尚、本実施例においては本発
明の適用の1例としてレーザービームプリンタを用いて
説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. In this embodiment, a laser beam printer will be described as an example of application of the present invention.

【0019】図1は本実施例のレーザービームプリンタ
(以下LBPと略す)の制御構成を示すブロック図であ
る。本LBP102は、外部のホストコンピュータ10
0とホストコンピュータ101にパラレルインタフェー
スケーブル(110,111)を介して接続される。そ
して、ホストコンピュータ(100,101)からの命
令を受け取り、印刷出力を行う様に構成されている。
FIG. 1 is a block diagram showing a control configuration of a laser beam printer (hereinafter abbreviated as LBP) of the present embodiment. This LBP 102 is connected to an external host computer 10.
0 and the host computer 101 via parallel interface cables (110, 111). Then, it is configured to receive a command from the host computer (100, 101) and print out.

【0020】ここで、LBP102は、以下の構成を備
えている。103及び108は入力インターフェース部
であり、それぞれに接続されているホストコンピュータ
(100,101)より印刷データ等を受信する。10
4及び109は受信バッファであり、ホストコンピュー
タから入力インタフェース部(103、108)を介し
て送られてきたデータを一時蓄積する。105はCPU
であり、本LBP102全体の制御を行う。112はR
OM素子であり、CPU105が実行する制御プログラ
ム(後述の図3〜図5のフローチャートで表される制御
プログラムを含む)を格納している。113はRAM素
子であり、CPU105がプログラムを実行する際にワ
ークエリア等として使用する。また、このRAM素子1
13はビットマップメモリとしての領域をも備えるもの
とする。
Here, the LBP 102 has the following configuration. Input interface units 103 and 108 receive print data and the like from host computers (100, 101) connected to the input interface units. 10
Reference numerals 4 and 109 denote reception buffers for temporarily storing data sent from the host computer via the input interface units (103, 108). 105 is a CPU
And controls the entire LBP 102. 112 is R
It is an OM element and stores a control program executed by the CPU 105 (including a control program represented by flowcharts shown in FIGS. 3 to 5 described later). A RAM element 113 is used as a work area when the CPU 105 executes a program. Also, this RAM element 1
Reference numeral 13 also has an area as a bitmap memory.

【0021】106は外部インターフェースであり、ビ
ットマップメモリのデータをビデオ信号で印刷出力部に
転送する。107は印刷出力部であり、実際に印刷出力
を行う。121はタイマ回路であり、所定のタイマ周期
でCPU105に対して割り込み信号を発生する。この
タイマ回路121による割り込み信号はデータ受信の終
了を判定するのに用いられる。114はパネル操作部で
あり、各種操作入力を行う。後述のビジー信号発生タイ
ミングの指定もこのパネル操作部114を用いて行う。
インタフェースケーブル(110、111)はデータ線
(119、120)と、ビジー信号線(115、11
6)と、リセット信号線(117、118)から構成さ
れており、本実施例ではパラレルインターフェースを用
いる。
Reference numeral 106 denotes an external interface which transfers data in a bitmap memory to a print output unit as a video signal. A print output unit 107 actually performs print output. Reference numeral 121 denotes a timer circuit which generates an interrupt signal to the CPU 105 at a predetermined timer cycle. The interrupt signal from the timer circuit 121 is used to determine the end of data reception. A panel operation unit 114 performs various operation inputs. The specification of the busy signal generation timing described later is also performed using the panel operation unit 114.
The interface cables (110, 111) have data lines (119, 120) and busy signal lines (115, 11).
6) and reset signal lines (117, 118). In this embodiment, a parallel interface is used.

【0022】図2はLBP102の構造を示す図であ
る。同図において、102はLBP本体であり、ホスト
コンピュータとインタフェースケーブル(110,11
1)によって接続される。114は操作のためのスイッ
チ及びLED表示器等の配置されているパネル操作部で
ある。また、201はプリンタ制御ユニットであり、主
に文字図形情報であるビットマップメモリのデータをビ
デオ信号に変換してレーザードライバ202に出力す
る。レーザードライバ202は半導体レーザー203を
駆動するための回路であり、入力されたビデオ信号に応
じて半導体レーザー203から発射されるレーザー光2
04をON/OFF切り替えする。レーザー光204は
回転多面鏡205で左右方向に降られて静電ドラム20
6上を走査する。これにより、静電ドラム206上には
画像の静電潜像が形成される。この潜像は静電ドラム2
06周囲の現像ユニット207により現像された後、記
録紙に転写される。この記録紙にはカットシートを用
い、カットシート記録紙は反対に装着した用紙カセット
208に収納され、給紙ロ−ラ209及び搬送ロ−ラ2
10と211とにより装置内に取り込まれて、静電ドラ
ム206に供給される。
FIG. 2 is a diagram showing the structure of the LBP 102. In the figure, reference numeral 102 denotes an LBP main body, which is connected to a host computer and interface cables (110, 11).
1). A panel operation unit 114 includes switches for operation, an LED display, and the like. Reference numeral 201 denotes a printer control unit, which converts data in a bitmap memory, which is mainly character / graphic information, into a video signal and outputs the video signal to a laser driver 202. The laser driver 202 is a circuit for driving the semiconductor laser 203. The laser driver 202 emits laser light 2 emitted from the semiconductor laser 203 in response to an input video signal.
04 is turned ON / OFF. The laser light 204 is lowered by the rotating polygon mirror 205 in the left-right direction, and
6 is scanned. As a result, an electrostatic latent image of an image is formed on the electrostatic drum 206. This latent image is stored on the electrostatic drum 2
After the image is developed by the developing unit 207 around 06, the image is transferred to recording paper. A cut sheet is used for the recording paper, and the cut sheet recording paper is stored in a paper cassette 208 mounted in the opposite direction, and is supplied to a paper feed roller 209 and a transport roller 2.
10 and 211 are taken into the apparatus and supplied to the electrostatic drum 206.

【0023】以上のような構成を備える本LBP102
の動作について図3〜図5のフローチャートを用いて説
明する。
The present LBP 102 having the above configuration
Will be described with reference to the flowcharts of FIGS.

【0024】図3は受信処理のアルゴリズムを説明する
フローチャートである。それぞれのインタフェースごと
に別々の割り込みベクタを使用し、別々の割り込みルー
チンを準備しておく。また、ここでは各インタフェース
を番号で識別することにする。図3ではn番のインター
フェースにおいて印刷データを受信した場合の、モード
nにおける割り込み処理を説明する。エラー処理の都合
上、nは0以上とする。
FIG. 3 is a flowchart for explaining the algorithm of the receiving process. Use different interrupt vectors for each interface and prepare different interrupt routines. Here, each interface is identified by a number. FIG. 3 illustrates an interrupt process in mode n when print data is received by the n-th interface. For the sake of error processing, n is set to 0 or more.

【0025】まず、ステップS301で、入力インター
フェース部(103,108)のI/Fポートからデー
タを1バイト読み込む。そして、ステップS302で割
り込みを禁止する。ステップS303ではインターフェ
ースの切替の許可、不許可を示すフラグ(flag)が
ONであればステップS304へ移行し、そうでなけれ
ばステップS309へ移行する。
First, in step S301, one byte of data is read from the I / F port of the input interface (103, 108). Then, the interrupt is prohibited in step S302. In step S303, if the flag (flag) indicating permission or non-permission of switching of the interface is ON, the process proceeds to step S304; otherwise, the process proceeds to step S309.

【0026】ステップS304ではflagにOFFを
代入する。ステップS305では現在選択されているモ
ード(インターフェース)を示す変数currentm
odeがn(即ち、既に当該インターフェースが選択さ
れている)であればステップS309へ移行し、そうで
なければステップS306へ移行する。ステップS30
6ではcurrentmodeにnを代入する。cur
rentmodeにnを代入することによりインタフェ
ースnを選択することができる。
In step S304, OFF is substituted for flag. In step S305, a variable currentm indicating the currently selected mode (interface)
If mode is n (that is, the interface has already been selected), the process proceeds to step S309; otherwise, the process proceeds to step S306. Step S30
In step 6, n is substituted for currentmode. cur
The interface n can be selected by substituting n into rentmode.

【0027】ステップS307では選択されていないイ
ンタフェースに対し選択されているインタフェースにデ
ータが来たら即ビジーを発行するモードを示すbusy
modeがONであればステップS308へ移行し、他
のインタフェースに対しビジーを発行する。busym
odeがOFFであればステップS309へ移行する。
ここで、busymodeはパネル操作部114によっ
て設定を変更することができる。また、busymod
eがOFFであるときは、後述のステップS310及び
ステップS311により、各インターフェースのバッフ
ァが満杯になったときにビジー信号を発生するようにな
る。そして、ステップS309では割り込み禁止を解除
する。ステップS310ではバッファが一杯かどうかを
チェックし、いっぱいであればステップS311へ移行
し、モードnのインターフェースに対してビジーを発行
する。そうでなければステップS312へ移行する。
In step S307, a busy indicating a mode for issuing a busy immediately when data comes to the selected interface with respect to the non-selected interface
If the mode is ON, the process proceeds to step S308, and a busy is issued to another interface. busym
If mode is OFF, the process moves to step S309.
Here, the setting of the busymode can be changed by the panel operation unit 114. Also, busymod
When e is OFF, a busy signal is generated when the buffer of each interface is full in steps S310 and S311 described below. Then, in step S309, the interruption prohibition is released. In step S310, it is checked whether or not the buffer is full. If it is full, the flow shifts to step S311 to issue a busy to the interface in mode n. Otherwise, control proceeds to step S312.

【0028】ステップS312ではエラーの発生をチェ
ックして、エラーが発生していればステップS313で
エラー発生を示すフラグerrorflagに当該モー
ドの番号nを代入する。エラーが発生していなければス
テップS314へ移行する。ステップS314ではバッ
ファにデータを格納する。
In step S312, the occurrence of an error is checked. If an error has occurred, in step S313, the mode number n is substituted into a flag "errorflag" indicating the occurrence of the error. If no error has occurred, the process moves to step S314. In step S314, the data is stored in the buffer.

【0029】図4はタイマ割り込みによる処理のアルゴ
リズムを説明するフローチャートである。このタイマ割
り込み信号はタイマ回路121により発生し、タイマ処
理ルーチンは十分短い周期で定期的に実行される。
FIG. 4 is a flow chart for explaining an algorithm of processing by a timer interrupt. This timer interrupt signal is generated by the timer circuit 121, and the timer processing routine is periodically executed at a sufficiently short cycle.

【0030】ステップS401ではインタフェースの切
替が可能な状態であるか判断する。切替可能の状態は現
在選択されているインタフェースにおいて一定時間デー
タが転送されていないことで判定することができる。ス
テップS401で切替可能であればステップS402へ
移行し、切替可能でなければ本処理を終了する。ステッ
プS402ではerrorflagが0以外、つまり障
害が発生していればステップS407へ移行し、そうで
なければステップS403へ移行する。
In step S401, it is determined whether the interface can be switched. The switchable state can be determined based on the fact that data is not transferred for a certain period of time on the currently selected interface. If switching is possible in step S401, the process proceeds to step S402, and if switching is not possible, this process ends. In step S402, if the errorflag is other than 0, that is, if a failure has occurred, the process proceeds to step S407; otherwise, the process proceeds to step S403.

【0031】ステップS407以降は障害発生があった
時の処理である。まずステップS407で印刷が完了し
ているかを判断し、印刷が完了していなければ本処理を
終了する。印刷が完了していればステップS408へ進
み、currentmodeにエラーが発生したモード
を示すerrorflagの値を代入し、エラーが発生
したインターフェースへの切替を実行する。そして、ス
テップS409でエラー処理を行い、ステップS413
でcurrentmodeに0を代入しフラグをクリア
し、処理を終了する。
Step S407 and subsequent steps are the processing when a failure has occurred. First, it is determined in step S407 whether printing has been completed, and if printing has not been completed, this processing ends. If the printing has been completed, the process proceeds to step S408, in which the value of errorflag indicating the mode in which the error has occurred is substituted for currentmode, and switching to the interface in which the error has occurred is executed. Then, error processing is performed in step S409, and step S413 is performed.
Then, 0 is substituted for currentmode to clear the flag, and the process ends.

【0032】ステップS403では現在選択されている
インタフェースのバッファ以外のバッファに処理すべき
データがあるかをチェックする。データがあればステッ
プS410へ、データがなければステップS404へ移
行する。
In step S403, it is checked whether there is data to be processed in a buffer other than the buffer of the currently selected interface. If there is data, the process proceeds to step S410, and if there is no data, the process proceeds to step S404.

【0033】ステップS404ではモード切替の許可を
表すflagにONを代入し、切り替えを許可する。ス
テップS405においてbusymodeがONであれ
ばステップS406へ移行し、全てのインタフェースに
レディを発行する。そうでなければ処理を終了する。
In step S404, ON is substituted for a flag indicating permission of mode switching, and switching is permitted. If busymode is ON in step S405, the process proceeds to step S406, and ready is issued to all interfaces. Otherwise, the process ends.

【0034】ステップS410ではデータのあるバッフ
ァに対応するインタフェースを選択し、ステップS41
1でbusymodeがONであればステップS412
に進む。ステップS412では、他のインタフェースに
ビジーを発行し、選択されているインタフェースに対し
てはレディを発行する。また、ステップS411でbu
symodeがOFFであればそのまま処理を終了す
る。
In step S410, an interface corresponding to a buffer having data is selected, and in step S41
If busymode is ON in step S412, step S412
Proceed to. In step S412, a busy is issued to another interface, and a ready is issued to the selected interface. Also, in step S411, bu
If symmode is OFF, the process ends.

【0035】図5はリセット割り込み発生時の処理を説
明するフローチャートである。図5はインタフェースn
に対応するリセット割り込みが発生した場合のリセット
割り込み処理を示す。ステップS501では現在のモー
ドがnであればステップS515へ移行し通常のリセッ
ト処理を実行する。そうでなければ、ステップS502
へ移行し図3におけるステップS302〜ステップS3
13までと同じ処理を行う。ステップS514でリセッ
ト処理に対応する制御コードをバッファに格納する。そ
して、コマンド解析ルーチンによりコマンドが処理され
るときにこの制御コードに対応するリセット処理が行わ
れる。尚、この時のリセット処理ではバッファをクリア
しない。
FIG. 5 is a flowchart for explaining the processing when a reset interrupt occurs. FIG. 5 shows the interface n
9 shows a reset interrupt process when a reset interrupt corresponding to. In step S501, if the current mode is n, the flow shifts to step S515 to execute normal reset processing. Otherwise, step S502
Step S302 to Step S3 in FIG. 3
The same processing as in step 13 is performed. In step S514, the control code corresponding to the reset processing is stored in the buffer. Then, when the command is processed by the command analysis routine, a reset process corresponding to the control code is performed. Note that the buffer is not cleared in the reset processing at this time.

【0036】以上説明したように本実施例のLBP10
2によれば、複数のインターフェースを有する印刷装置
において、ホストコンピュータからデータが転送された
インターフェースに対応して自動的に印刷の対象となる
データを取り込むインタフェースを選択できる。また、
選択されていないインタフェースに対して、ビジー信号
を発行するタイミングを選択することができる。
As described above, the LBP 10 of this embodiment
According to 2, in a printing apparatus having a plurality of interfaces, it is possible to select an interface that automatically takes in data to be printed corresponding to the interface to which data is transferred from the host computer. Also,
The timing for issuing a busy signal to an interface that has not been selected can be selected.

【0037】更に、選択されていないインタフェースに
おいて障害が発生した場合は、選択されているインタフ
ェースのデータの処理が完了した後にエラー処理を行う
ので、選択されているインタフェースで取り込まれたデ
ータの処理に影響を与えない。また、専用線によるリセ
ット信号が入力された場合は、インタフェースに対応す
るバッファにリセットコマンドを格納することにより、
リセット命令を保存する。
Further, when a failure occurs in an unselected interface, error processing is performed after data processing of the selected interface is completed. Has no effect. Also, when a reset signal via a dedicated line is input, by storing a reset command in a buffer corresponding to the interface,
Save the reset instruction.

【0038】尚、本実施例ではインタフェースにパラレ
ルインタフェースを用いたがこれに限らず、RS232
C等のシリアルインタフェースを用いた場合も同様の制
御が可能である。尚、シリアルインタフェースを用いた
場合はビジー状態は一般に使用されているXon/Xo
ff等のコードを転送することによってホストに知らせ
ることができる。
In this embodiment, the parallel interface is used as the interface.
Similar control is possible when a serial interface such as C is used. When the serial interface is used, the busy state is set to Xon / Xo which is generally used.
The host can be notified by transferring a code such as ff.

【0039】また、上記の実施例においては、障害発生
時はその情報をerrorflagにより記憶し、リセ
ット信号に対しては各インターフェース専用のバッファ
を用いているがこれに限られるものではない。例えば、
リセット信号が入力されたことを表すフラグを用いても
良いし、また、障害発生の情報を当該インターフェース
のバッファに格納するようにしても良い。
In the above embodiment, when a failure occurs, the information is stored in an error flag, and a buffer dedicated to each interface is used for the reset signal. However, the present invention is not limited to this. For example,
A flag indicating that a reset signal has been input may be used, or information on occurrence of a failure may be stored in a buffer of the interface.

【0040】更に、上記実施例では制御情報として障害
発生やリセットを挙げているがこれに限らない。例え
ば、プリンタのパラメータ設定やエミュレーションモー
ドを設定するような制御情報であっても良い。
Further, in the above embodiment, the occurrence of a fault or a reset is mentioned as the control information, but the present invention is not limited to this. For example, control information for setting a printer parameter or setting an emulation mode may be used.

【0041】また、本実施例の画像形成装置として、レ
ーザビームプリンタを例にして説明したが、これに限定
されるものでなく、以下で説明するインクジェットプリ
ンタ等にも適応可能である。
The laser beam printer has been described as an example of the image forming apparatus of the present embodiment. However, the present invention is not limited to this, and can be applied to an ink jet printer described below.

【0042】<装置本体の概略説明>図6は、本発明が
適用できるインクジェット記録装置IJRAの概観図で
ある。同図において、駆動モータ5013の正逆回転に
連動して駆動力伝達ギア5011,5009を介して回
転するリードスクリュー5005の螺旋溝5004に対
して係合するキャリッジHCはピン(不図示)を有し、
矢印a,b方向に往復移動される。このキャリッジHC
には、インクジェットカートリッジIJCが搭載されて
いる。5002は紙押え板であり、キャリッジの移動方
向に亙って紙をプラテン5000に対して押圧する。5
007,5008はフォトカプラで、キャリッジのレバ
ー5006のこの域での存在を確認して、モータ501
3の回転方向切り換え等を行うためのホームポジション
検知手段である。5016は記録ヘッドの前面をキャッ
プするキャップ部材5022を支持する部材で、501
5はこのキャップ内を吸引する吸引手段で、キャップ内
開口5023を介して記録ヘッドの吸引回復を行う。5
017はクリーニングブレードで、5019はこのブレ
ードを前後方向に移動可能にする部材であり、本体支持
板5018にこれらが支持されている。ブレードは、こ
の形態でなく周知のクリーニングブレードが本例に適用
できることは言うまでもない。又、5012は、吸引回
復の吸引を開始するためのレバーで、キャリッジと係合
するカム5020の移動に伴って移動し、駆動モータか
らの駆動力がクラッチ切り換え等の公知の伝達手段で移
動制御される。
<Schematic Description of Apparatus Main Body> FIG. 6 is a schematic view of an ink jet recording apparatus IJRA to which the present invention can be applied. In the figure, the carriage HC that engages with the spiral groove 5004 of the lead screw 5005 that rotates via the driving force transmission gears 5011 and 5009 in conjunction with the forward and reverse rotation of the drive motor 5013 has a pin (not shown). And
It is reciprocated in the directions of arrows a and b. This carriage HC
Is equipped with an ink jet cartridge IJC. Reference numeral 5002 denotes a paper pressing plate, which presses the paper against the platen 5000 in the moving direction of the carriage. 5
Reference numerals 007 and 5008 denote photocouplers, which confirm the presence of a carriage lever 5006 in this region, and
This is a home position detecting means for performing the rotation direction switching and the like of No. 3. A member 5016 supports a cap member 5022 for capping the front surface of the recording head.
Reference numeral 5 denotes suction means for sucking the inside of the cap, and performs suction recovery of the recording head through the opening 5023 in the cap. 5
Reference numeral 017 denotes a cleaning blade. Reference numeral 5019 denotes a member which allows the blade to move in the front-rear direction. These members are supported by a main body support plate 5018. It goes without saying that the blade is not limited to this form and a known cleaning blade can be applied to this example. Reference numeral 5012 denotes a lever for starting suction for recovery of suction. The lever 5012 moves with the movement of the cam 5020 engaging with the carriage, and the driving force from the drive motor is controlled by known transmission means such as clutch switching. Is done.

【0043】これらのキャッピング、クリーニング、吸
引回復は、キャリッジがホームポジション側の領域に来
た時にリードスクリュー5005の作用によってそれら
の対応位置で所望の処理が行えるように構成されている
が、周知のタイミングで所望の作動を行うようにすれ
ば、本例にはいずれも適用できる。
The capping, cleaning, and suction recovery are configured so that desired operations can be performed at the corresponding positions by the action of the lead screw 5005 when the carriage comes to the area on the home position side. If a desired operation is performed at a timing, any of the examples can be applied.

【0044】<制御構成の説明>次に、上述した装置の
記録制御を実行するための制御構成について、図7に示
すブロック図を参照して説明する。制御回路を示す同図
において、1700は記録信号を入力するインターフェ
ース、1701はMPU、1702はMPU1701が
実行する制御プログラムを格納するプログラムROM、
1703は各種データ(上記記録信号やヘッドに供給さ
れる記録データ等)を保存しておくダイナミック型のR
AMである。1704は記録ヘッド1708に対する記
録データの供給制御を行うゲートアレイであり、インタ
ーフェース1700、MPU1701、DRAM170
3間のデータ転送制御も行う。1710は記録ヘッド1
708を搬送するためのキャリアモータ、1709は記
録紙搬送のための搬送モータである。1705はヘッド
を駆動するヘッドドライバ、1706、1707はそれ
ぞれ搬送モータ1709、キャリアモータ1710を駆
動するためのモータドライバである。
<Description of Control Structure> Next, a control structure for executing the recording control of the above-described apparatus will be described with reference to a block diagram shown in FIG. In the figure showing a control circuit, 1700 is an interface for inputting a recording signal, 1701 is an MPU, 1702 is a program ROM for storing a control program executed by the MPU 1701,
Reference numeral 1703 denotes a dynamic R for storing various data (such as the recording signal and recording data supplied to the head).
AM. A gate array 1704 controls supply of print data to the print head 1708, and includes an interface 1700, an MPU 1701, and a DRAM 170.
It also controls data transfer between the three. 1710 is a recording head 1
Reference numeral 1709 denotes a transport motor for transporting recording paper. Reference numeral 1705 denotes a head driver for driving the head, and reference numerals 1706 and 1707 denote motor drivers for driving the transport motor 1709 and the carrier motor 1710, respectively.

【0045】上記制御構成の動作を説明すると、インタ
ーフェース1700に記録信号が入るとゲートアレイ1
704とMPU1701との間で記録信号がプリント用
の記録データに変換される。そして、モータドライバ1
706、1707が駆動されると共に、ヘッドドライバ
1705に送られた記録データに従って記録ヘッドが駆
動され、印字が行われる。
The operation of the above control configuration will be described. When a recording signal enters the interface 1700, the gate array 1
The recording signal is converted into recording data for printing between the 704 and the MPU 1701. And the motor driver 1
The printheads 706 and 1707 are driven, and the printhead is driven according to the print data sent to the head driver 1705 to perform printing.

【0046】以上のようなインクジェットプリンタの制
御構成に、本発明の構成要素を組み込むことが可能であ
り、本発明はレーザビームプリンタに限らず、上記イン
クジェットプリンタ等にも適用できることは明らかであ
る。
It is apparent that the components of the present invention can be incorporated into the above-described control structure of the ink jet printer, and that the present invention can be applied not only to the laser beam printer but also to the above ink jet printer and the like.

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

【0048】[0048]

【発明の効果】以上説明したように、本発明によれば、
選択されていないインターフェースにおいて制御信号が
受信された場合に、選択されているインターフェースに
影響を及ぼさずに、かつ確実にその制御信号に対応した
処理が行えるようになる。このため、複数の入力インタ
ーフェースを有する印刷制御装置の動作の安定性を著し
く向上させることができる。
As described above, according to the present invention,
When a control signal is received at a non-selected interface, processing corresponding to the control signal can be reliably performed without affecting the selected interface. For this reason, the stability of the operation of the print control device having a plurality of input interfaces can be significantly improved.

【0049】また、本発明によれば、選択されていない
インターフェースにおいて障害が発生した場合でも、選
択されているインターフェースに影響を及ぼさずに、か
つ確実にその障害に対処することが可能となる。このた
め、複数の入力インターフェースを有する印刷制御装置
の動作の安定性を著しく向上させることができる。
Further, according to the present invention, even when a failure occurs in a non-selected interface, it is possible to reliably deal with the failure without affecting the selected interface. For this reason, the stability of the operation of the print control device having a plurality of input interfaces can be significantly improved.

【0050】[0050]

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

【図1】本実施例のレーザービームプリンタの制御構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a control configuration of a laser beam printer according to an embodiment.

【図2】本実施例のLBPの構造を示す図である。FIG. 2 is a diagram illustrating a structure of an LBP according to the present embodiment.

【図3】本実施例における受信処理のアルゴリズムを表
すフローチャートである。
FIG. 3 is a flowchart illustrating an algorithm of a reception process in the embodiment.

【図4】タイマ割り込みによる処理のアルゴリズムを表
すフローチャートである。
FIG. 4 is a flowchart illustrating an algorithm of processing by a timer interrupt.

【図5】リセット割り込み発生時の処理を表すフローチ
ャートである。
FIG. 5 is a flowchart illustrating processing when a reset interrupt occurs.

【図6】本発明が適用できるインクジェット記録装置I
JRAの概観図である。
FIG. 6 is an inkjet recording apparatus I to which the present invention can be applied.
FIG. 2 is a schematic view of JRA.

【図7】インクジェット記録装置の記録制御を実行する
ための制御構成を表すブロック図である。
FIG. 7 is a block diagram illustrating a control configuration for executing printing control of the inkjet printing apparatus.

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

100,101 ホストコンピュータ 102 LBP 103,108 入力インタフェース部 104,109 受信バッファ 105 CPU 106 外部インタフェース部 110,111 インタフェースケーブル 112 ROM素子 113 RAM素子 114 パネル操作部 115,116 ビジー信号線 117,118 リセット信号線 119,120 データ信号線 121 タイマ回路 100, 101 Host computer 102 LBP 103, 108 Input interface unit 104, 109 Reception buffer 105 CPU 106 External interface unit 110, 111 Interface cable 112 ROM element 113 RAM element 114 Panel operation unit 115, 116 Busy signal line 117, 118 Reset signal Line 119, 120 Data signal line 121 Timer circuit

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) B41J 5/30 B41J 29/38 G06F 3/12Continuation of front page (58) Field surveyed (Int.Cl. 6 , DB name) B41J 5/30 B41J 29/38 G06F 3/12

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のデータ源から、データと制御信号
を受信するための複数のインターフェース部を有する印
刷制御装置であって、 前記複数のインターフェース部の内、データを先に受信
したインターフェース部を選択する選択手段と、 前記選択手段で選択されているインターフェース部で受
信したデータを処理中に、選択されていない他のインタ
ーフェース部のデータ線とは別の信号線を介して受信さ
れた制御信号を記憶する記憶手段と、 前記選択手段で選択されているインターフェース部で受
信したデータの処理が完了した後、前記他のインターフ
ェース部を選択し、前記記憶手段に記憶された前記制御
信号に対応した処理を実行する制御手段とを備えること
を特徴とする印刷制御装置。
1. A print control device having a plurality of interface units for receiving data and control signals from a plurality of data sources, wherein the interface unit which has received data first is one of the plurality of interface units. Selecting means for selecting, and a control signal received via a signal line different from a data line of another interface unit not selected while processing data received by the interface unit selected by the selecting means After the processing of the data received by the interface unit selected by the selection unit is completed, the other interface unit is selected, and the storage unit stores the control signal corresponding to the control signal stored in the storage unit. And a control unit for executing processing.
【請求項2】 前記インターフェース部はデータ源とイ
ンターフェースケーブルを介して接続され、該インター
フェースケーブルは前記印刷データを伝送するためのデ
ータ線と前記制御信号を伝送するための信号線を有する
ことを特徴とする請求項1に記載の印刷制御装置。
2. The apparatus according to claim 1, wherein the interface unit is connected to a data source via an interface cable, and the interface cable has a data line for transmitting the print data and a signal line for transmitting the control signal. The print control device according to claim 1.
【請求項3】 前記制御信号は、リセット信号であるこ
とを特徴とする請求項1に記載の印刷制御装置。
3. The printing control apparatus according to claim 1, wherein the control signal is a reset signal.
【請求項4】 複数のデータ源からデータを受信するた
めの複数のインターフェース部を有する印刷制御装置で
あって、 前記複数のインターフェース部の内、データを先に受信
したインターフェース部を選択する選択手段と、 前記選択手段で選択されているインターフェース部で受
信したデータを処理中に、選択されていない他のインタ
ーフェース部で生じたエラーを示すエラー情報を記憶す
る記憶手段と、 前記選択手段で選択されているインターフェース部で受
信したデータの処理が完了した後、前記他のインターフ
ェース部を選択し、前記記憶手段に記憶された前記エラ
ー情報に対応したエラー処理を実行する制御手段とを備
えることを特徴とする印刷制御装置。
4. A print control apparatus having a plurality of interface units for receiving data from a plurality of data sources, wherein said selecting unit selects an interface unit which received data first among said plurality of interface units. A storage unit that stores error information indicating an error that has occurred in another interface unit that has not been selected while processing data received by the interface unit selected by the selection unit; and And control means for selecting the other interface unit and executing error processing corresponding to the error information stored in the storage unit after the processing of the data received by the interface unit is completed. Printing control device.
JP4254578A 1992-09-24 1992-09-24 Printing control device Expired - Fee Related JP2860210B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4254578A JP2860210B2 (en) 1992-09-24 1992-09-24 Printing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4254578A JP2860210B2 (en) 1992-09-24 1992-09-24 Printing control device

Publications (2)

Publication Number Publication Date
JPH06106793A JPH06106793A (en) 1994-04-19
JP2860210B2 true JP2860210B2 (en) 1999-02-24

Family

ID=17266989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4254578A Expired - Fee Related JP2860210B2 (en) 1992-09-24 1992-09-24 Printing control device

Country Status (1)

Country Link
JP (1) JP2860210B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5958117B2 (en) * 2012-06-27 2016-07-27 セイコーエプソン株式会社 Printer control method and printer

Also Published As

Publication number Publication date
JPH06106793A (en) 1994-04-19

Similar Documents

Publication Publication Date Title
EP0573983B1 (en) Information processing apparatus and output apparatus
EP0902357B1 (en) Output method and apparatus
EP0662656B1 (en) Method and apparatus for resetting shared computer output apparatus
JP3158378B2 (en) Printing apparatus and print control method
EP0631225B1 (en) Output method and apparatus
JP2860210B2 (en) Printing control device
JP3689445B2 (en) Printing apparatus and system, and control method
JPH08244314A (en) Printer system and printer and information processing apparatus in said system
JP3195097B2 (en) Output control method and device
JP3382349B2 (en) Print control apparatus and method
JP2871981B2 (en) Printing apparatus and control method thereof
JP3205174B2 (en) Printing apparatus and control method thereof
JP2834631B2 (en) Print control apparatus and method
JP3027060B2 (en) Data input / output method and apparatus, and printing apparatus
JPH0675673A (en) Interface device and printing device equipped with the same
JPH09295432A (en) Printer and print controlling method
US6295135B1 (en) Release of busy signal when free capacity of a reception buffer exceeds a predetermined amount
JPH0695814A (en) Printing data transfer system
JPH1083368A (en) Communication controller and method therefor
JPH0619648A (en) Printer server and printer system
JPH09226206A (en) Extending equipment and printer for connecting the extending equipment
JP2005190378A (en) Printer
JPH0620014A (en) Image forming device and data transfer method to and from the same
JPH06187105A (en) Data communication method and printer
JPH07271534A (en) Print control method and device therefor

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

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

Free format text: PAYMENT UNTIL: 20081204

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091204

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20091204

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20101204

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20111204

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees