JPH02132518A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPH02132518A
JPH02132518A JP63286359A JP28635988A JPH02132518A JP H02132518 A JPH02132518 A JP H02132518A JP 63286359 A JP63286359 A JP 63286359A JP 28635988 A JP28635988 A JP 28635988A JP H02132518 A JPH02132518 A JP H02132518A
Authority
JP
Japan
Prior art keywords
printer
print
data
host
terminal
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.)
Pending
Application number
JP63286359A
Other languages
Japanese (ja)
Inventor
Yoshikazu Ikenoue
義和 池ノ上
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP63286359A priority Critical patent/JPH02132518A/en
Priority to US07/424,526 priority patent/US5047957A/en
Publication of JPH02132518A publication Critical patent/JPH02132518A/en
Priority to US07/670,392 priority patent/US5068807A/en
Priority to US07/723,297 priority patent/US5131078A/en
Priority to US07/760,967 priority patent/US5119473A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To enable only a subject user to apply the necessary treatments to a printer by adding the identification codes allocated to each host or terminal to a message showing the state of the printer. CONSTITUTION:An identification code is allocated to each host or terminal and the state of a printer is transmitted in the form of a message. In such a case, an identification code is added to the message and this message is sent to a host or terminal that is using the printer in such an error state where the transmission of the message is required for only such a host or terminal that has a paper jam trouble, etc. Thus it is possible to inform a host or a terminal that is using the printer of the state of the printer and to apply the necessary treatments to the printer.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ホストコンピュータ等のデータ処理装置から
送られるデータを印字するプリンタの制御装置に関する
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a printer control device that prints data sent from a data processing device such as a host computer.

(従来技術) 一般に、ホストコンピュータ等がプリンタに送るデータ
は、実際の印字パターンを示す印字データと、印字方法
やプリントエンジンのモードを制御する制御データより
なる。プリンタの制御装置(以下、単にコントローラと
記す)は、このデータを処理して、実際に印字すべきド
ットイメージに変換し、印字を行うプリントエンジンに
供給する。
(Prior Art) Generally, data sent from a host computer or the like to a printer consists of print data indicating an actual print pattern and control data for controlling the printing method and print engine mode. A printer control device (hereinafter simply referred to as a controller) processes this data, converts it into a dot image to be actually printed, and supplies it to a print engine that performs printing.

(発明が解決しようとする課題) 近年、印字速度が高速で、字体の品質も高く、印字時の
動作音も比較的静かなため、レーザーブリンク等の電子
写真式プリンタがかなり普及してきている。その一方、
電子写真式プリンタは価格的にはまだまだ相当に高価で
あり、パーソナルコンピュータやワードプロセッサ等の
ホスト1台毎の専用プリンタを備えることは殆どのユー
ザーにとっては無理である。また、インクジェットプリ
ンタやワイヤドット式プリンタは、電子写真式プリンタ
に比べて安価ではあるが、プリンタの稼動率が低い場合
には、各ホストに専用プリンタを備えることは経費的に
も無駄であることが少なくない。
(Problems to be Solved by the Invention) In recent years, electrophotographic printers such as laser blinkers have become quite popular because they have high printing speeds, high quality fonts, and relatively quiet operation during printing. On the other hand,
Electrophotographic printers are still quite expensive, and it is impossible for most users to provide a dedicated printer for each host such as a personal computer or word processor. In addition, although inkjet printers and wire dot printers are cheaper than electrophotographic printers, providing a dedicated printer for each host may be wasteful in terms of cost if printer availability is low. There are quite a few.

従って、多くの場合、これらのプリンタがホスト1台ず
つに接続されるのではなく、複数のホストが1台のプリ
ンタにマルチプレクサ等を介して接統されているという
ように、プリンタが共用されているのが現状である。
Therefore, in many cases, these printers are not connected to one host at a time, but are shared, such as multiple hosts connected to a single printer via a multiplexer, etc. The current situation is that

また、経費的な面を最初から考慮して、パーソナルコン
ピュータやワードプロセッサ等において、最初から1台
のメインホストに対して、端末機を複数台設けたマルチ
ューザ対応のシステムがある。
Furthermore, in consideration of cost from the beginning, there is a Maltusa compatible system in which a plurality of terminals are provided for one main host in personal computers, word processors, etc. from the beginning.

このシステムにおいても、プリンタはメインホストに接
続されており、各端末機のユーザーはメインホストを介
してプリンタを用いるようになっており、プリンタが共
用された状態となっている。
In this system as well, the printer is connected to the main host, and the users of each terminal use the printer via the main host, so that the printer is shared.

上記の使用形態において、いずれも、各端末機はプリン
タから距離的に遠い場合が多く、プリンタの状態をチェ
ックするためには、わざわざプリンタを調べに行かなく
てはならない。このことを解決するために、プリンタの
状態を知らせる状態コードをメインホストに返して、メ
インホストから各端末機へ知らせるようなプリンタ制御
装置が考えられるが、従来のプリンタ制御装置では、共
用された場合のことは考慮されておらず、その状態コー
ドはどの端末機に対するものかが、前者ではマルチブレ
クサが、後者ではメインホストが区別することができな
いので、結局は、その状態コードは特定の端末機に送ら
れることはないといった問題があった。
In all of the above usage patterns, each terminal is often far away from the printer, and in order to check the status of the printer, it is necessary to go to the trouble of checking the printer. To solve this problem, a printer control device can be considered that returns a status code indicating the printer status to the main host and sends the status code from the main host to each terminal. The case is not taken into account, and the multiplexer in the former case and the main host in the latter case cannot distinguish which terminal the status code is for. There was a problem that it was never sent to.

また一方では、プリンタのトラブル等を示す状態コード
は、特定の端末機だけではなく、接続されている全ての
端末機に送られる方が望ましい。
On the other hand, it is desirable that a status code indicating a printer trouble or the like be sent not only to a specific terminal but to all connected terminals.

そのため、本発明の目的は、上記の問題を解決して、マ
ルチユーザ一対応のために、1台以上のプリンタが複数
のホストにマルチブレクサを介して接続されていたり、
1台以上のプリンタがメインホストに接続され、メイン
ホストから複数の端末機が出ているといった形態のシス
テムにおいて、プリンタの状態を示す状態コードが、プ
リンタ使用中の1ホスト若しくはl端末機に対して、ま
たは、全ホスト若しくは全端末機に対してかが、プリン
タの状態に応じて選択的に送信されるプリンタ制御装置
を提供することである。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned problem, and to support multi-users, when one or more printers are connected to multiple hosts via a multiplexer,
In a system where one or more printers are connected to a main host and multiple terminals are output from the main host, the status code indicating the status of the printer is Another object of the present invention is to provide a printer control device that selectively sends information to all hosts or terminals depending on the status of the printer.

このプリンタ制御装置によって、プリンタの状態を、プ
リンタ使用中の1ホスト若しくは1端末機に対してのみ
知らせるだけで十分な場合か、全ホスト若しくは全端末
機に知らせることが必要な場合かを、プリンタの状態に
応じて判断することができる。そのためプリンタを直接
チェックしに行く必要がなくなる。
This printer control device determines whether it is sufficient to notify the status of the printer to only one host or one terminal that is using the printer, or whether it is necessary to notify all hosts or terminals of the printer status. The judgment can be made depending on the condition. Therefore, there is no need to go directly to check the printer.

(課題を解決するための手段) 上記の目的を達成するt;め、本発明にかかるプリンタ
制御装置は、l又は複数のホストまたはターミナルとこ
れらに接統されるプリンタとの間に介在し、印字データ
と、予めホストまたはターミナル毎に割り当てられた識
別コードと、印字データを印字するために必要な印字モ
ードの設定値を含む制御データとを、ホストまたはター
ミナル毎に選択的にプリンタに入力し、プリンタからの
データをホストまたはターミナルへ選択的に出力する双
方向の通信手段と、識別コードを記憶する識別コード記
憶手段と、印字モードの設定値に応じて上記プリンタに
よる印字を制御する印字制御手段と、プリンタの状態を
判断して、その状態に応じて、ホストまたはターミナル
に対して応答を行うための応答手段と、応答手段からの
応答データの属性に応じて、識別コード記憶手段に記憶
された識別コードまたは共通コードのいずれか一方を該
応答に付加して、通信手段から出力するよう制御する通
信制御手段とを備えたことを特徴とする。
(Means for Solving the Problems) To achieve the above object, a printer control device according to the present invention is provided between one or more hosts or terminals and a printer connected thereto, Print data, an identification code assigned in advance to each host or terminal, and control data including print mode setting values necessary to print the print data are selectively input to the printer for each host or terminal. , a two-way communication means for selectively outputting data from the printer to a host or a terminal, an identification code storage means for storing an identification code, and a print control for controlling printing by the printer according to print mode settings. a response means for determining the state of the printer and responding to the host or terminal according to the state; and storage in the identification code storage means according to the attribute of the response data from the response means. and communication control means for adding either the identified identification code or the common code to the response and outputting it from the communication means.

(作用) 複数のホストまたはターミナルに共用されているプリン
タにおいて、各ホストまたはターミナルに識別コードを
割り当てておき、プリンタの状態をメッセーンとして送
信する際に、例えばペーパージャム等の対応ホストまた
はターミナルのみに送信すれば十分なエラー状態であれ
ば、そのメッセージに識別コードを付加して、プリンタ
使用中のホストまたはターミナルに送信する。また、例
えばトナーなし・紙なし等や致命的なプリンタ状態であ
れば、全ホストまたは全ターミナルにそのメッセージに
共通コードを付加して、全ホストまたは全ターミナルに
送信するように制御する。
(Function) In a printer that is shared by multiple hosts or terminals, an identification code is assigned to each host or terminal, and when sending a message about the status of the printer, it can be sent only to the corresponding host or terminal, such as when a paper jam occurs. If the error condition is sufficient to send, an identification code is added to the message and sent to the host or terminal that is using the printer. Furthermore, if the printer is in a fatal printer state such as out of toner or paper, all hosts or all terminals are controlled to add a common code to the message and send it to all hosts or all terminals.

(実施例) 以下、添付の図面を参照して本発明の実施例を説明する
(Embodiments) Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

(a)電子写真プリンタの構成 まず、プリンタおよび制御装置の概略構成について説明
する。
(a) Configuration of electrophotographic printer First, the schematic configuration of the printer and the control device will be explained.

第1図に本発明の実施例であるプリンタ・システムIO
の処理システムの構成、および、その応用例を示す。
FIG. 1 shows a printer system IO which is an embodiment of the present invention.
The configuration of the processing system and its application examples are shown.

複数のデータ処理装置IA.IB.Icからのデータは
、スループットを改善するため、外部のファイル・マル
チプレクス・バッ7ア2に一旦格納された後、プリンタ
・システムlOに出力される。ファイル・マルチプレク
ス・バッファ2は、複数のデータ処理装置IA.  l
B,ICをそれぞれ、1台のプリンタに接続するための
マルチブレクサとしての機能も有している。
A plurality of data processing devices IA. IB. In order to improve throughput, the data from Ic is temporarily stored in an external file multiplex buffer 2 and then output to the printer system IO. The file multiplex buffer 2 includes a plurality of data processing devices IA. l
It also has a function as a multiplexer for connecting each of B and IC to one printer.

プリンタ・システムlOは、ビットマップ方式のデータ
処理装置3と、電子写真プロセスとレーザーを用いたプ
リントエンジン4と、外部給紙ユニット5やソータ6等
の付属装置よりなる。
The printer system IO consists of a bitmap type data processing device 3, a print engine 4 using an electrophotographic process and a laser, and accessory devices such as an external paper feed unit 5 and a sorter 6.

第2図に、プリンタ・システムIOの外観ヲ示す。プリ
ントエンジン4は、上記ビットマップ方式データ処理装
置3を内蔵しており、アクセサリとして外部給紙ユニッ
ト5と、ソータ6が接続可能である。また、プリントエ
ンジン4の上部前面には、システムの状態を示す表示や
簡単な操作を行うためのキーが並べられた操作パネル4
4が装着されている。
FIG. 2 shows the appearance of the printer system IO. The print engine 4 incorporates the bitmap data processing device 3 described above, and can be connected to an external paper feed unit 5 and a sorter 6 as accessories. In addition, on the upper front side of the print engine 4, there is an operation panel 4 with a display showing the system status and keys for performing simple operations.
4 is installed.

第3図は、操作パネル44の詳細を示すものである。こ
こに、901〜903が入力キーで、9lO〜918が
表示素子である。キー901は、プリント動作を一時停
止させるためのPAUSEキーである。キー903はシ
フトキーであり、キー902と同時に押すことにより、
プリントを中断するCANCELキーとなる。キー90
2,903を同時に押して中断が機能するようにしたの
は、不用意な操作による中断を防止するためである。
FIG. 3 shows details of the operation panel 44. Here, 901 to 903 are input keys, and 91O to 918 are display elements. A key 901 is a PAUSE key for temporarily stopping the printing operation. Key 903 is a shift key, and by pressing it at the same time as key 902,
This is the CANCEL key to interrupt printing. key 90
The reason why 2 and 903 are pressed at the same time to function is to prevent interruptions due to careless operations.

第4図は、プリント・システムの通紙経路を示す中央断
面図で、三つの着脱可能な給紙カセット(51,52.
53)から選択的にペーパーは給紙される。プリントエ
ンジン4内で、クリーナ406よってトナーが取り除か
れた後、帯電チャージャ404.イレーサランプ405
によって感光体ドラム401は均一に帯電され、光学系
409から画像露光を受ける。そして、現像装置402
によってトナー像が、感光体ドラム401上に形成され
、転写チャージャ403により給紙されたペーパー上に
イメージの転写され、搬送ベルト407によってペーパ
一定着装置408に運ばれ、定着装置408による定着
処理の後、ソータ6に収納される。
FIG. 4 is a central sectional view showing the paper passing path of the printing system, showing three removable paper feed cassettes (51, 52, .
Paper is selectively fed from 53). Within the print engine 4, after the toner is removed by the cleaner 406, the charger 404. Eraser lamp 405
As a result, the photosensitive drum 401 is uniformly charged and receives image exposure from the optical system 409. And the developing device 402
A toner image is formed on the photoreceptor drum 401, transferred onto the paper fed by the transfer charger 403, conveyed to the paper fixing device 408 by the conveyor belt 407, and subjected to the fixing process by the fixing device 408. After that, it is stored in the sorter 6.

第5図は、プリンタ・システムlOの概略ブロック図で
ある。
FIG. 5 is a schematic block diagram of printer system IO.

ビットマップ方式データ処理装置3は、ビットマップ制
御部(BMC)30 (第6図参照)、ビットマップ用
のビットマップRAM (BM−RAM)32、このB
M−RAM32に描画を行うビットマップ嘗込部(BM
W)3 1およびフォント部33よりなる。このフォン
ト部33は、予め所定のフォントが記憶されたROM部
分と、外部からダウンロードされたフォントも記憶可能
なRAM部分とからなっている。プリントエンジン4と
の接続は、制御データ(枚数、アクセサリー制御など)
用のバスB3とイメージデータ用のバスB4により行う
The bitmap data processing device 3 includes a bitmap control unit (BMC) 30 (see FIG. 6), a bitmap RAM (BM-RAM) 32 for bitmaps, and a bitmap RAM (BM-RAM) 32 for bitmaps.
Bitmap reading part (BM) that draws in M-RAM32
W) 3 Consists of 1 and a font section 33. The font section 33 consists of a ROM section in which predetermined fonts are stored in advance, and a RAM section that can also store fonts downloaded from the outside. Connection with print engine 4 requires control data (number of sheets, accessory control, etc.)
This is done using bus B3 for image data and bus B4 for image data.

プリントエンジン4は、3つの制御装置を中心に構成さ
れる。まず、インターフェース制御部(IFC)40は
ビットマップ制御部30からの制御データの処理、操作
パネル制御、および内部バスB5を通じてプリンタ全体
のタイミングの制御を行う。電子写真制御部41は、内
部バスB5を通じてインターフェース制御部40から送
られるデータに応じて、電子写真プロセス部45の制御
を行う。
The print engine 4 is mainly composed of three control devices. First, the interface control section (IFC) 40 processes control data from the bitmap control section 30, controls the operation panel, and controls the timing of the entire printer through the internal bus B5. The electrophotographic control section 41 controls the electrophotographic processing section 45 in accordance with data sent from the interface control section 40 through the internal bus B5.

プリントヘッド制御部42は、内部バスB4を通じてビ
ットマップ書込部3lから送られてくるイメージデータ
を感光体1上に書き込むため、内部バスB5を通じてイ
ンターフェース制御部40から送られてくる情報に従っ
てプリントヘッド部43の半導体レーザーの発光やポリ
ゴン・モータ(図示せず)の回転を制御する。
The print head control unit 42 controls the print head according to information sent from the interface control unit 40 via the internal bus B5 in order to write the image data sent from the bitmap writing unit 3l via the internal bus B4 onto the photoreceptor 1. The light emission of the semiconductor laser of the section 43 and the rotation of the polygon motor (not shown) are controlled.

また、外部給紙ユニット5やソータ6も、内部バスB5
を通じて、インターフェース制御部40から制御される
In addition, the external paper feed unit 5 and the sorter 6 are also connected to the internal bus B5.
It is controlled by the interface control section 40 through the interface control section 40.

以上に説明したプリンタ・システムlOは、ビットマッ
プ方式のレーザープリンタである。データ処理装置IA
,IB,Icから送られてくる印字データ(ほとんどは
コードで表わされる)は、ビットマンプ方式処理装置3
のBM−RAM32上に実際の印字イメージとして展開
され、プリントエンジン4に出力される。プリントエン
ジン4では、ビットマップ方式データ処理装置3からの
データに応じてレーザー光を変調して感光体上に記録し
、さらに記録紙に転写する。
The printer system IO described above is a bitmap type laser printer. Data processing device IA
, IB, and Ic (mostly represented by codes) are sent to the Bitmamp processing device 3.
The image is developed as an actual print image on the BM-RAM 32 of the printer, and is output to the print engine 4. The print engine 4 modulates laser light according to the data from the bitmap data processing device 3, records the data on the photoreceptor, and further transfers it onto recording paper.

データ処理装置IA,IB,Icから送られてくるデー
タには、印字データの他に、書式の制御やエンジンのモ
ード設定を行うコードも含まれる。
The data sent from the data processing devices IA, IB, and Ic includes not only print data but also codes for format control and engine mode setting.

ビットマップ方式データ処理装置3では、印字データの
他にこれらのプロトコルの解析も行い、書式の制御や必
要に応じてプリントエンジン4への通紙やオプションの
モード変更等の指示を出す。
The bitmap data processing device 3 analyzes these protocols in addition to the print data, controls the format, and issues instructions for feeding paper to the print engine 4, changing the optional mode, etc. as necessary.

プリントエンジン4では、上記の記録制御の他に、それ
に伴う電子写真系の制御、記録紙のタイミング制御、さ
らに、他のオプションへの通紙に同期した処理を行う。
In addition to the recording control described above, the print engine 4 performs associated electrophotographic control, recording paper timing control, and processing synchronized with paper feeding to other options.

プリントエンジン4の制御は、走査系を除いて、電子写
真複写機と同様である。
Control of the print engine 4 is similar to that of an electrophotographic copying machine except for the scanning system.

(b)ビットマップ制御部 第6図は、ビットマップ制御部30のブロック図である
。ビットマップ制御部30は、内部バスB30で接統さ
れたいくつかのブロックから構成される。BM−CPU
301は、ビットマップ方式データ処理装置3の中心と
なる制御部であり、データ処理装置インターフェース3
08を通じてデータ処理装置IA.IB,ICのうちの
いずれかやファイル・マルチブレクス・バッファ2との
通信を行ったり、プリントデータを変換し、ビットマッ
プ書込部インター7エース306を通シテビットマップ
書込部3lを制御し、プリントエンジンインターフェー
ス307を通じてプリントエンジン4を制御する。SY
S−ROM302は、BM−CPU301のプログラム
を記憶する。SYS−RAM303は、BM−CPU3
0 1の作業用記憶エリアであり、スタックや基本フラ
グの記憶に用いられる。
(b) Bitmap Control Section FIG. 6 is a block diagram of the bitmap control section 30. The bitmap control unit 30 is composed of several blocks connected by an internal bus B30. BM-CPU
301 is a central control unit of the bitmap data processing device 3, and a data processing device interface 3.
08 through the data processing device IA. It communicates with either the IB or IC or the file multiplex buffer 2, converts print data, and controls the bitmap writing unit 3l through the bitmap writing unit Inter7Ace 306. The print engine 4 is controlled through the print engine interface 307. S.Y.
The S-ROM 302 stores programs for the BM-CPU 301. SYS-RAM303 is BM-CPU3
This is a 0-1 working storage area and is used to store the stack and basic flags.

R−バッファ304は、外部(データ処理装置IA,I
B,Icやファイル・マルチプレクス・バッファ2)と
の通信用バッファであり、BM−CPU30 1の処理
プログラムとデータ処理装置lとの通信を非同期でも処
理化可能にすることを目的とする。
The R-buffer 304 is connected to an external (data processing device IA, I
This is a buffer for communication with B, Ic and the file multiplex buffer 2), and its purpose is to enable asynchronous communication between the processing program of the BM-CPU 301 and the data processing device I.

バケツトバッファ(以下P−バッファと略する)305
は、データ処理装置IA,IB,Icからのデータを、
フォントの属性から変換したBM−RAM32への描画
が容易な中間コード(以下パケットと記す)として記憶
する。
Bucket buffer (hereinafter abbreviated as P-buffer) 305
The data from the data processing devices IA, IB, Ic,
It is stored as an intermediate code (hereinafter referred to as a packet) that can be easily drawn on the BM-RAM 32, which is converted from the font attributes.

フォントの実際の描画はビットマップ書込部31で行わ
れるが、ビットマップ書込部31への情報としては、フ
ォントのパターン内蔵アドレスや、BM−RAM32へ
の描画アドレス等のパラメータを計算する必要がある。
The actual drawing of the font is performed by the bitmap writing unit 31, but as information to the bitmap writing unit 31, it is necessary to calculate parameters such as the font pattern built-in address and the drawing address to the BM-RAM 32. There is.

これには所定の時間がかかる。そこで、BM−RAM3
2のデータをプリント中に、次のページのデータを前処
理しておくことにより、処理の高速化を計るものである
This takes a certain amount of time. Therefore, BM-RAM3
By pre-processing the data for the next page while printing the second page data, processing speed is increased.

そのため、P−バッファ305内のデータの動きは、F
IFO(ファーストイン・ファーストアウト)となって
いる。
Therefore, the movement of data in the P-buffer 305 is F
IFO (first in, first out).

プリントエンジンインターフェース307は、プリント
エンジン4とのインターフェースであり、プリントコマ
ンドなどのJOB制御コマンドをプリントエンジン4の
インターフエースとバスB3を通じてやりとりする。
The print engine interface 307 is an interface with the print engine 4, and exchanges JOB control commands such as print commands with the print engine 4 interface via the bus B3.

(C)ビットマップ制御のフロー これより、フローチャートを参照しながら、本システム
の動作説明を行う。
(C) Flow of Bitmap Control The operation of this system will now be explained with reference to flowcharts.

第8図〜第18図は、ビットマップ制御部30の処理を
示すフローチャートである。
8 to 18 are flowcharts showing the processing of the bitmap control section 30.

第8図において、まず、電源が投入されると・(ステッ
プSl,以下ステップを略する。)、内部の初期化を行
い(S2)、R−バッファ304、P−バッ7ア305
およびBM−RAM3 2のクリアを行った後(S3)
、パラメータの初期化を行う(S4)。
In FIG. 8, first, when the power is turned on (step Sl, hereinafter steps are omitted), internal initialization is performed (S2), and the R-buffer 304, P-buffer 305
And after clearing BM-RAM3 2 (S3)
, parameters are initialized (S4).

各パラメータの機能は次の通りである。The function of each parameter is as follows.

JOBACT:あるページに対してプリント状態である
(設定枚数のプリントが完了 していない)ことを示す。
JOBACT: Indicates that a certain page is being printed (printing of the set number of sheets has not been completed).

BMWR ITE : BM−RAM3 2に何らかの
データが書込まれたかどうかを示す。
BMWR ITE: Indicates whether any data has been written to BM-RAM32.

JOBEJT:プリント起動要求を示す。JOBEJT: Indicates a print start request.

LPWRITE:ページデータ(イメージ)の仮編集を
開始したことを示す。
LPWRITE: Indicates that temporary editing of page data (image) has started.

ENBANS ニデータ処理装置へのメッセージの送信
を許可することを示す。
ENBANS Indicates that sending messages to the data processing device is permitted.

ENB I D :データ処理装置へのメッセージにI
Dコードを付加することを示す。
ENB ID: I for message to data processing device
Indicates that a D code is added.

IDCODE:IDコードの設定値を示す。IDCODE: Indicates the ID code setting value.

IDCOMN :共通コードの設定値(nは所定の定数
)を示す。
IDCOMN: Indicates the common code setting value (n is a predetermined constant).

上記のIDコードは特定のデータ処理装置に対するメッ
セージであることを示し、共通コードは全てのデータ処
理装置に対するメッセージであることを示す。共通コー
ドは、プリンタ側で致命的なトラブルが発生した場合(
例えばトナーエンブティ等)などに用いられる。
The above ID code indicates that the message is for a specific data processing device, and the common code indicates that the message is for all data processing devices. The common code is used when a fatal problem occurs on the printer side (
For example, it is used for toner embodies, etc.).

また、ユーザーテーブル(以下、USERTBL)も初
期値をセットしてお<(S5)。USERTBLは第7
図に示すように、ユーザーIDごとにプリンタの各種設
定値を退避しておくための記憶エリアである。USER
TBLは単なる退避エリアであって、実際に使用すると
きは各IDコードのUSERTBLの内容をカレントテ
ーブル(以下、CURRTBL)に転送して用いる。こ
れは、アドレス変換等の複雑な演算処理を省き、処理の
高速化が図れるためである。このUSERTELは、本
実施例では、SYS−RAM303内に設けられ、プリ
ンタの電源がOFFになっても、その内容が保持される
ようにバッテリー・バックアップされるのが好ましい。
Also, set initial values for the user table (hereinafter referred to as USERTBL) (S5). USERTBL is the 7th
As shown in the figure, this is a storage area for saving various printer setting values for each user ID. USER
TBL is simply a save area, and when actually used, the contents of USERTBL of each ID code are transferred to a current table (hereinafter referred to as CURRTBL) for use. This is because complex arithmetic processing such as address conversion can be omitted and processing speed can be increased. In this embodiment, this USERTEL is provided in the SYS-RAM 303, and is preferably backed up by a battery so that its contents are retained even when the power of the printer is turned off.

なお、第7図のCURRTBL内のフォント実装情報は
、電源投入時に読み込まれるが、カセット実装情報は、
その状態に変化があれば、図示しない割り込みルーチン
によって、IFC40から送られてきて更新される。
Note that the font mounting information in CURRTBL in Figure 7 is read when the power is turned on, but the cassette mounting information is
If there is a change in the status, the information is sent from the IFC 40 and updated by an interrupt routine (not shown).

続いて、割り込みを許可して(S6)、印字データの編
集に用いるフォント属性を読込み、フォント実装情報と
して、SYS−RAM303に記憶される(S7)。そ
して、給紙カセットの初期設定を行った後(S8),実
処理ループ(59〜S12)に入る。
Subsequently, interrupts are permitted (S6), and font attributes used for editing print data are read and stored in the SYS-RAM 303 as font implementation information (S7). After initial setting of the paper feed cassette (S8), an actual processing loop (59 to S12) is entered.

実処理ループは大別して、次の四つの処理に分けられる
The actual processing loop can be roughly divided into the following four processes.

0受信データ処理(S9):データ処理装置からの受信
データ処理と、パケットへの変換 を行う。
0 Received data processing (S9): Processes the received data from the data processing device and converts it into a packet.

01FCコマンド処理(510): プリントエンジン
4からのデータを処理する。
01FC command processing (510): Processes data from the print engine 4.

0パケット処理(S l l):パケットに応じたBM
−RAM32への描画処理を行う。
0 packet processing (S l l): BM according to the packet
- Perform drawing processing to the RAM 32.

0プリント・シーケンス処理(S12):  IFC4
0とのプリント・シーケンスの処理を 行う。
0 print sequence processing (S12): IFC4
Process the print sequence with 0.

データ処理装置から送られるデータは、通信の効率を上
げるため、後で述べる受信割込処理により、受信バッフ
ァであるR−バッファ304に一旦蓄えられる。
In order to improve communication efficiency, data sent from the data processing device is temporarily stored in the R-buffer 304, which is a reception buffer, by reception interrupt processing described later.

受信されたデータは、受信データ処理(S9)で、R−
バッファ304から取出されパケットに変換され、P−
バッファ305に一度蓄えられる。
The received data is processed as R- in the received data processing (S9).
It is taken out from the buffer 304 and converted into a packet, P-
It is stored once in the buffer 305.

その後、パケット処理(Sll)で取出され、対応する
フォントがビットマップ書込部31によりBM−RAM
32に描画される。受信データのうち、プリント要求コ
ード(PAGE.EJECT)を検出すると、プリント
・シーケンス処理(512、第12図参照)により、実
際のプリントが起動される。
Thereafter, the packet processing (Sll) takes out the corresponding font, and the bitmap writing section 31 stores the corresponding font in the BM-RAM.
32. When a print request code (PAGE.EJECT) is detected in the received data, actual printing is started by print sequence processing (512, see FIG. 12).

〈受信データ処理〉 受信データ処理(S9)のフローを第9図(a).(b
)に示す。
<Received data processing> The flow of received data processing (S9) is shown in FIG. 9(a). (b
).

第9図(a),(b)において、受信データはあらかじ
め、ビットマップ書込部3lへの出力が容易なパケット
に変換され、P−バッファ305に蓄えられる。これは
、プリント中もBM−RAM32からの出力の受信デー
タの変換を平行して行うことにより、スループットを向
上させるためである。
In FIGS. 9(a) and 9(b), received data is converted in advance into packets that can be easily output to the bitmap writing section 3l, and stored in the P-buffer 305. This is to improve throughput by converting the received data output from the BM-RAM 32 in parallel even during printing.

まず、P−バッファ305に空きが有ることを確認し(
521),さらに、データがR−バッファ304に受信
されていれば(S22でYES)、処理を継続する。
First, confirm that there is free space in the P-buffer 305 (
521), and if the data has been received by the R-buffer 304 (YES in S22), the process continues.

受信データが、プリントすべき文字コードである場合(
870〜S73)は、CURRTBL上の現在のフォン
ト・コードとW源投入時に読み込んだフォント属性に従
って、パケットに変換する(s 7 2)。具体的な変
換手順としては、まず、その文字コードに対応するパタ
ーンのフォント・アドレスがP−バッファ305に出力
され、順次、BM−RAM32への書き込みアドレスが
P−バツ7ア305に出力され、ピントマップ書込部3
lへの書き込みモードが出力される。そして、最後に今
回のフォントの大きさ等に応じて次のフォントのBM−
RAM32への書き込みアドレスを更新してお<(S7
3)。この処理により、最終的なプリント結果フォーマ
ットが決まる。この処理は実際のBM−RAM32への
編集描画とは異なり仮想的な編集といえる。また、ペー
ジ先頭文字の描画を行うときは(S70でYES),同
時に仮編集の開始を示すLPWRITEフラグを1にセ
ットしてお<(571)。
If the received data is a character code to be printed (
870 to S73) convert it into a packet according to the current font code on CURRTBL and the font attribute read when the W source is turned on (s72). As a specific conversion procedure, first, the font address of the pattern corresponding to the character code is output to the P-buffer 305, the write address to the BM-RAM 32 is sequentially output to the P-buffer 305, Focus map writing section 3
The write mode to l is output. Finally, depending on the size of the current font, the next font's BM-
Update the write address to RAM32.<(S7
3). This process determines the final print result format. This process can be said to be virtual editing, unlike actual editing and drawing to the BM-RAM 32. Further, when drawing the first character of the page (YES in S70), the LPWRITE flag indicating the start of temporary editing is set to 1 at the same time (571).

プリント枚数や給紙カセットの切換やオプションの動作
等を設定するインターフェース制御部関連コード(IF
C関連コード)である場合(S24でYES)、文字の
バケント処理(Sll)での処理を同期させるため、文
字とは異なった形式のパケットでP−バッ7ア305に
出力される(S25)。また、CURRTBLも更新し
てお< (32G)。
Interface control unit related code (IF
C related code) (YES in S24), the packet is output to the P-buffer 305 in a format different from that of the character in order to synchronize the processing in the character backend processing (Sll) (S25). . Also, please update CURRTBL (32G).

IFC関連コードでな<(S24でNo)、PAGE.
EJECTコ一ドである場合(S30でYES)、この
コードは1ページ分のデータの終了を示しており、パケ
ット処理のときプリントを起動させるコードであって、
それ以前の文字がBM−RAM32に書込まれたら、プ
リントを起動する。このコードも前後の文字と処理を同
期させるため、P−バッファ305に出力される(53
1)。
IFC related code < (No in S24), PAGE.
If it is an EJECT code (YES in S30), this code indicates the end of one page of data, and is a code that starts printing during packet processing.
When the previous characters are written into the BM-RAM 32, printing is started. This code is also output to the P-buffer 305 (53
1).

このとき、次ページの仮編集の準備としてLPWRIT
Eフラグをリセットしてお<(S32)。
At this time, in preparation for temporary editing of the next page, LPWRIT
Reset the E flag (S32).

S30でPAGE.EJECTコードでな<(NO)、
書式制御コードである場合は(S35でYES)、それ
ぞれのコードに対応してBM−RAM32への書込アド
レスを変更したり、マージン設定等の変更についてはC
URRTBLを更新する(S36)。
PAGE. EJECT code <(NO),
If it is a format control code (YES in S35), change the write address to BM-RAM32 corresponding to each code, change margin settings, etc.
URRTBL is updated (S36).

S35で書式制御コードでな<(No)、カセット選択
の場合は(S40でYES)、指定のモードに従ってカ
セット選択を行う(S41、第13図参照)。
If the format control code is not found in S35 (No), and if the cassette is selected (YES in S40), the cassette is selected according to the designated mode (S41, see FIG. 13).

340でカセット選択でな<(No)、フォント選択の
場合は(S45でYES)、上と同様、フォント選択を
行う(846、第14図参照)。
If the cassette selection is not selected at 340 (No), and the font selection is selected (YES at S45), the font selection is performed in the same manner as above (846, see FIG. 14).

S50〜S53は、本発明の実施例に係るもので、プリ
ンタシステム10での処理状態をデータ処理装置に通知
するアンサーモードの設定を行う処理である。データ処
理装置に通知するアンサーモードの指定コードであれば
(S50でYES)、さらに、アンサーモードが許可指
定であれば(S51でYES)、データ処理装置へのメ
ッセージの送信を許可するENBANS7ラグをセット
し(S52)、アンサーモードが許可指定でなければ(
S51でNo)、ENDANS7ラグをリセットする(
S 5 3)。このENBANSフラグがセットされて
いると、アンサーモードとなり、プリンタ状態(例えば
、紙づまり等のエラー状態等)を、本実施例ではBM−
CPU30 1が判断して、その状態に応じたコードや
メッセージをデータ処理装置インターフエース308を
介して外部に出力する。
S50 to S53 are related to the embodiment of the present invention, and are processes for setting an answer mode for notifying the data processing device of the processing status in the printer system 10. If the answer mode designation code is to notify the data processing device (YES in S50), and if the answer mode is specified to be permitted (YES in S51), then the ENBANS7 lag is sent to allow sending the message to the data processing device. set (S52), and if the answer mode is not specified as permission (
No in S51), reset the ENDANS7 lag (
S 5 3). When this ENBANS flag is set, the answer mode is entered, and the printer status (for example, error status such as paper jam, etc.) is
The CPU 301 makes a judgment and outputs a code or message according to the state to the outside via the data processing device interface 308.

S55〜S69の処理は、共用のプリンタシステムlO
を使用するユーザーの識別コード(IDコード)の処理
に関するものである。
The processing in S55 to S69 is performed by the shared printer system lO.
This relates to the processing of identification codes (ID codes) of users who use the .

IDコードを用いるIDモードが指定され(S55でY
ES)、許可指定であれば(S56でYES)、IDモ
ードに入ったことを示すENB IDフラグをセットし
(S57)、許可指定でなければ(S56でNo)、I
Dモードでないことを示すためENB I Dフラグを
リセットする(S58)。ここで、■Dモードおよびア
ンサーモードがともに指定されるた場合には、本発明に
係る外部のデータ処理装置へのメッセージにIDを付加
する動作を行う。さらに、編集条件等のバラメー夕はユ
ーザー毎に管理されるようになる。
ID mode using ID code is specified (Y in S55).
ES), if permission is specified (YES in S56), sets the ENB ID flag indicating that the ID mode has been entered (S57); if permission is not specified (No in S56), I
The ENB ID flag is reset to indicate that it is not the D mode (S58). Here, when both the D mode and the answer mode are specified, an operation of adding an ID to a message sent to an external data processing apparatus according to the present invention is performed. Furthermore, parameters such as editing conditions can be managed for each user.

S60〜S69の処理は、IDコードの設定と、設定さ
れたIDコードに応じたパラメータ設定値の変更に関す
る処理である。
The processes in S60 to S69 are processes related to setting an ID code and changing parameter setting values according to the set ID code.

IDコードの指定があると(S60でYES)、IDモ
ードが許可されていない場合(S61でNO)か、また
許可されている場合(S61でYES)であっても、ユ
ーザーに変更がなければ(S62でNO)、無視される
。ユーザーに変更があり、その変更前のユーザーのデー
タが仮編集状態にあれば(S63でLPWRITE■l
)、変更後のユーザーの先頭ページに、この仮編集デー
タがゴミとして付着しないように、PAGE.EJEC
TコードをP−バッファ305に出力して強制的に排出
(印字)させ(S64)、LPWRITEフラグをリセ
ットしてお<(S65)。変更前のユーザーのデータが
仮編集状態か否かにかかわらず、変更前のユーザーの各
種パラメータをCURRTBLから退避させた後(S6
6)、変更後のユーザーの各種パラメータを、その該当
する■DコードのUSERTBL (第7図参照)から
CURRTBLに復帰させ(S 6 7)、IDCOD
Eも更新してお<(368)。そして、再設定処理(S
69、第15図参照)を行い、変更後のユーザーのため
のプリンタエンジン10等の各種設定を行う。
If the ID code is specified (YES in S60), ID mode is not allowed (NO in S61), or even if it is allowed (YES in S61), unless the user changes it. (NO in S62), ignored. If there is a change in the user and the data of the user before the change is in the temporary editing state (LPWRITE ■ l in S63
), PAGE. EJEC
The T code is outputted to the P-buffer 305 to be forcibly ejected (printed) (S64), and the LPWRITE flag is reset (S65). Regardless of whether the user's data before the change is in a temporary editing state, after saving the various parameters of the user before the change from CURRTBL (S6
6) Return the changed user parameters from the USERTBL (see Figure 7) of the corresponding ■D code to the CURRTBL (S 6 7), and
Please update E as well (368). Then, reset processing (S
69, see FIG. 15), and perform various settings of the printer engine 10, etc. for the user after the change.

<I FCコマンド処理〉 第lO図は、インターフェース制御部(IFC)40か
らのコマンドの処理(SIO)のフローである。
<I FC Command Processing> FIG. 10 is a flowchart of command processing (SIO) from the interface control unit (IFC) 40.

EXP.END:Iマンド(S l 0 1)は、イン
ターフエース制御部(IFC)40とプリント・シーケ
ンスの同期をとるコマンドで、プリントエンジン4で1
枚のプリントのレーザー露光が終了したことを示す。
EXP. The END:I command (S l 0 1) is a command that synchronizes the print sequence with the interface control unit (IFC) 40.
Indicates that the laser exposure of a print has been completed.

EXP.ENDコマンドである場合は(SIOlでYE
S)、プリント中のみ有効であるので、JOBACT−
1−t’なければ(S I O :2C’No)、その
ままリターンし、JOBACT=Oであれば5103に
移る(5102でYES)。同一イメージに対するマル
チ・プリントの場合、BMC30では、このタイミング
で、次のプリント起動フラグをセットする(S 1 0
 4)。シングル・プリントや、マルチ・プリントの最
後の場合は(StQ3−C’NO)、プリント状態を示
すJOBACT7ラグをリセットし(st05)、BM
−RAM32をクリアするとともにBM−RAM32へ
の描画状態を示すBMWRITEをクリアし(S106
)、次のイメージの準備を行う。この2種類の判断は、
EXP.END:lマンド(7)JOBENDフラグに
よって行われる(S I O 3)。これは、マルチ・
プリント等の枚数のコントロールをインターフェース制
御部40で行っているためである。
EXP. If it is an END command (YE in SIOl)
S) is valid only during printing, so JOBACT-
If 1-t' is not found (S I O : 2C'No), the process returns as is, and if JOBACT=O, the process moves to 5103 (YES in 5102). In the case of multi-printing for the same image, the BMC 30 sets the next print start flag at this timing (S 1 0
4). In the case of single print or the last of multi print (StQ3-C'NO), reset the JOBACT7 lag indicating the print status (st05), and
- Clear RAM32 and clear BMWRITE indicating the drawing state to BM-RAM32 (S106
) to prepare the next image. These two types of judgments are
EXP. END: Executed by l command (7) JOBEND flag (S I O 3). This is a multi-
This is because the interface control unit 40 controls the number of prints, etc.

一方、プリンタのトラブル情報を示すコマンドである場
合は(S107でYES)、データ処理装置へのメッセ
ージ送信が許可されており(Sl08でYES)、!D
コード付加のモードであれば(S I O 9でYES
1ENB ID−1) 、共通コードであるIDCOM
Nをそのメッセージに付加して(S 1 1 0) 、
全データ処理装置に送信する(S 1 1 1)。また
、データ処理装置へのメッセージ送信が許可されていな
ければ(3108でNo)、メッセージは送信されない
で、リターンする。
On the other hand, if the command indicates printer trouble information (YES in S107), sending the message to the data processing device is permitted (YES in S108). D
If it is code addition mode (YES in SIO 9)
1ENB ID-1), common code IDCOM
Add N to the message (S 1 1 0),
It is transmitted to all data processing devices (S 1 1 1). Furthermore, if message transmission to the data processing device is not permitted (No in 3108), the message is not transmitted and the process returns.

操作パネル44のキー(PAUSEキー90l1CAN
CELキー902.903)が何者かによって押されて
、プリント動作がストツブした場合も、全ユーザーに知
らせるために、トラブル情報の場合七同様に、IDCO
MNを付加して、押されたキー情報を全データ処理装置
に送信する(S t i2〜5116)。
Keys on the operation panel 44 (PAUSE key 90l1CAN
If the CEL key 902 or 903) is pressed by someone and the printing operation stops, the IDCO
The MN is added and the pressed key information is transmitted to all data processing devices (S t i2 to 5116).

これらのトラブル情報やキー情報は、現在プリンタをシ
ェアしている特定ユーザーだけに知らせれば良いという
ものではなく、全ユーザーに知らせる方が好ましい。な
ぜなら、これらのトラブルやキー操作の解除は、ターミ
ナルを介して行えなく、直接プリンタに対して行わねば
ならないからである。
It is preferable to inform all users of the trouble information and key information, rather than just informing the specific users who are currently sharing the printer. This is because these troubles and key operations cannot be canceled via the terminal, but must be done directly to the printer.

くパケット処理〉 第11図に示すパケット処理(Sll)のフローでは、
p−z<ッファ305に蓄えられたパケットの処理を行
う。パケットには、プリントすべき文字用のパケットと
、制御用のパケットがある。BM−RAM32の変更は
、前のイメージのプリントアウトが完了しないと行えな
いため、プリント状態(JOBACT= 1)の場合は
(S 1 2 1でNO)、処理を行わない。またパケ
ットがない、即ち、P−バッファがエンブティの場合(
S I 2 3でYES)も処理を行わない。
Packet processing> In the packet processing (Sll) flow shown in Figure 11,
p-z< The packets stored in the buffer 305 are processed. The packets include a packet for characters to be printed and a control packet. Since the BM-RAM 32 cannot be changed until the printout of the previous image is completed, no processing is performed in the printing state (JOBACT=1) (NO in S121). Also, if there is no packet, that is, the P-buffer is empty (
SI 2 3 (YES) also does not process.

文字用のパケットの場合(S l 2 4でYES)は
、ビットマップ書込部31へ出力する(S l 2 5
)。
In the case of a character packet (YES in S l 2 4), it is output to the bitmap writing unit 31 (S l 2 5
).

ビットマップ書込部31では、パケットを解析して、フ
ォントアドレスに応じたパターンをフォント部33から
BM−RAM32に描画する。一つのパケット処理中は
、次のパケットを処理できない(5126)のでリター
ンする。この文字が最初の場合(BMWR ITE=O
.S l 26でYES)は、BMWRITEフラグを
セットしてお<(Sl27)。
The bitmap writing section 31 analyzes the packet and draws a pattern according to the font address from the font section 33 into the BM-RAM 32. While one packet is being processed, the next packet cannot be processed (5126), so the process returns. If this character is the first (BMW ITE=O
.. If YES at Sl 26), set the BMWWRITE flag (Sl 27).

文字パケット以外の制御用パケットの場合(S124で
No)、まず、プリント動作の開始を示すJOBSTA
RTコードであれば(S130でYES)、IFCにそ
のJOBSTARTコードを出力する(S l 3 1
)。IFC関連コード(S135でYES)は、主とし
てマルチ・プリント枚数、給紙カセットの指定やアクセ
サリの動作モードの指定を行うもので、IFC40へ出
力される(S l 3 6)。
In the case of a control packet other than a character packet (No in S124), first, JOBSTA indicating the start of a print operation is sent.
If it is an RT code (YES in S130), output the JOBSTART code to IFC (S l 3 1
). The IFC-related code (YES in S135) mainly specifies the number of multi-print sheets, the paper feed cassette, and the accessory operation mode, and is output to the IFC 40 (S136).

PAGE.EJECT(S140TYES)は、ページ
の区切りを示すもので、このコード以前にBM−RAM
32に描画されたイメージが出力される。そのために、
まず、JOBACTフラグをセットし、コピー状態に切
換え、以後のBM−RAM32への描画を禁止し、プリ
ント起動要求フラグJOBEJTをセットしてお<(s
141)。
PAGE. EJECT (S140TYES) indicates a page break, and before this code the BM-RAM
The image drawn at 32 is output. for that,
First, set the JOBACT flag, switch to the copy state, prohibit future drawing to the BM-RAM32, and set the print start request flag JOBEJT.
141).

このフラグは、プリント・シーケンス(第12図参照)
で判断され、実際にIFC40ヘプリントコマンドPR
NCMDが出力され、さらにIFCヘプリントエンジン
部の起動を要求するSTARTコマンドを出力する(S
 ] 4 2)。
This flag is used to control the print sequence (see Figure 12).
It was judged that the print command PR to IFC40 was actually executed.
NCMD is output, and a START command requesting startup of the print engine section is output to IFC (S
] 4 2).

JOBEJTは、プリント・シーケンス処理で認識され
た後、リセットされる(S l 6 5)が、JOBA
CTは、プリントエンジン部のコピー処理等が完了した
ときに、IFCから送られてくる図示しないコマンドで
リセットされるようになっている。
JOBEJT is reset (S l 6 5) after being recognized in print sequence processing, but JOBEJT is
The CT is configured to be reset by a command (not shown) sent from the IFC when the print engine section completes copy processing, etc.

サイズ情報の場合は(S l 4 5でYES)、それ
以降、BM−RAM32ヘビットマップ書込部31で書
き込む際のモードを変更するため、ビットマップ書込部
3lへ出力される(5 1 4 6)。
In the case of size information (YES in Sl 4 5), it is output to the bitmap writing unit 3l in order to change the mode for writing in the bitmap writing unit 31 to the BM-RAM 32 (5 1 4 6).

ここで変更されるモードには、例えば、イメージlライ
ン当たりのメモリ容量等がある。
The mode changed here includes, for example, the memory capacity per image line.

〈プリント・シーケンス〉 第12図に示すプリント・シーケンス処理(S12)の
フローでは、JOB制御用フラグ(JOBEJT)や、
ビットマップ書込部31の状態に応じて、実際にプリン
トの起動を行う。
<Print sequence> In the flow of print sequence processing (S12) shown in FIG. 12, the JOB control flag (JOBEJT),
Depending on the state of the bitmap writing section 31, printing is actually started.

プリント起動は、プリント起動要求時(JOBE J 
T− 1 , S 1 6 1テYE S) ニ行bh
ルカ、ビットマップ書込部3Iが最後のパケットを処理
中(5162でNO)は、起動できない。
Print startup is performed when a print startup request is made (JOBE J
T- 1, S 1 6 1te YES S) 2 rows bh
While the bitmap writing unit 3I is processing the last packet (NO in 5162), it cannot be activated.

プリント起動可能であれば、ビットマップ書込部31を
プリントモードに切換えた後(S163)、IFC40
に露光の開始を要求するプリントコマンド(PRNCM
D)を出力し(S l 6 4)、JOBEJT7ラグ
をリセットする(Sl65)。
If printing can be started, after switching the bitmap writing unit 31 to print mode (S163), the IFC 40
A print command (PRNCM) that requests the start of exposure
D) is output (Sl64) and the JOBEJT7 lag is reset (Sl65).

〈カセット選択〉 第13図は、カセット選択の処理のフローである。カセ
ット選択は、各ページの最初(具体的には、印字データ
受信前、LPWRITE−0)のときのみ有効となる(
SI81)。これは、仮編集したイメージのレイアウト
を保障するためである。カセットの指定には用紙サイズ
による指定と、カセットの位置による指定の2つのモー
ドがある。
<Cassette Selection> FIG. 13 is a flowchart of cassette selection processing. Cassette selection is valid only at the beginning of each page (specifically, before print data is received, at LPWRITE-0).
SI81). This is to ensure the layout of the temporarily edited image. There are two modes for specifying a cassette: specification by paper size and specification by cassette position.

両モードとも、すでに指定値と同一のモードになってい
る場合には、処理が省略される(5183.S186で
YES) まず、サイズ指定の場合は(S 1 8 2でYES)
、記憶しているカセット情報から該当サイズのカセット
をサーチする(S 1 8 4)。見つかった場合(S
185でYES)は、用紙も入っているかチェックした
後(5188)、更新を行う(S I 8 9〜Sl9
2)。
For both modes, if the mode is already the same as the specified value, the process is omitted (5183. YES in S186) First, in the case of size specification (YES in S 1 8 2)
, searches for a cassette of the corresponding size from the stored cassette information (S184). If found (S
If YES at 185), update is performed after checking whether paper is also included (5188) (S I 8 9 ~ Sl 9
2).

一方、カセット位置指定の場合は(S l 8 2でN
O)、該当カセットが装着されているかチェックし(5
186)、使用可能であれば、更新する。
On the other hand, in the case of specifying the cassette position (N in S l 8 2)
O) and check whether the corresponding cassette is installed (5).
186), update if available.

このとき、正しくコマンドが処理されたかを、データ処
理装置に通知する。正しく処理された場合はACK処理
(Sl93、第16図参照)、正しく処理されなかった
場合はNAK処理(5194、第17図参照)が行われ
る。
At this time, the data processing device is notified whether the command has been processed correctly. If the processing is correct, ACK processing (Sl93, see FIG. 16) is performed, and if the processing is not correct, NAK processing (5194, see FIG. 17) is performed.

〈フォント選択〉 第14図は、フォント選択の処理フローである。<Font selection> FIG. 14 is a processing flow for font selection.

まず、指定された7ォント属性を解析し(S20l)、
続いてフォント実装情報を調べ(S202)、該当フォ
ントがあれば(S 2 0 3でYES)、使用中のフ
ォントを更新し(3204) 、ACK処理を行う(s
 2 0 5)。該当7オントが無ければ、NAK処理
を行う(S 2 0 6)。
First, analyze the specified 7 font attributes (S20l),
Next, the font implementation information is checked (S202), and if the corresponding font is found (YES in S203), the font in use is updated (3204), and ACK processing is performed (s
2 0 5). If there are no corresponding 7 onts, NAK processing is performed (S 2 0 6).

〈再設定〉 第15図に、再設定処理のフローを示す。再設定処理は
、プリンタをあるユーザーに切換え、そのユーザー用に
設定がなされた後、再び、切換前の状態に戻す際、CU
RRTBLの復帰だけでは不可能なプリントエンジン等
を含めた再設定を行う。
<Resetting> FIG. 15 shows the flow of the resetting process. The resetting process is performed when the printer is switched to a certain user, the settings have been made for that user, and then the CU
Performs resetting including the print engine, etc., which is impossible by just restoring RRTBL.

再設定には、通常のデータ処理装置からの指定による処
理と同一の処理を用いる。このとき、データ処理装置に
結果を通知する処理が含まれているので、不必要なメッ
セージが、データ処理装置に返されないように、現在の
ENBANSフラグを退避した後、0として、一時的に
送信を禁止してお< (S211,S212)。
The same process as that specified by a normal data processing device is used for resetting. At this time, since the process of notifying the result to the data processing device is included, the current ENBANS flag is saved and sent temporarily as 0 so that unnecessary messages are not returned to the data processing device. (S211, S212).

次に、CURRTBLからカセットの設定値を取り出し
(5213)、カセット選択処理を行う(5214)。
Next, the cassette setting values are retrieved from CURRTBL (5213), and cassette selection processing is performed (5214).

フォントの設定についても、同様にCURRTBLから
フォント属性を取り出し(5215)、フォント選択処
理を行う(S216)。
Regarding font settings, font attributes are similarly retrieved from CURRTBL (5215) and font selection processing is performed (S216).

そして、現在のIFC関連情報は、直接P−バッファ3
05に出力し(s217)、最後に退避していたENB
ANSフラグを復帰する(5218)。
Then, the current IFC related information is directly stored in the P-buffer 3
05 (s217) and was last evacuated.
Restore the ANS flag (5218).

<A C K/N A K処理〉 第16図、第17図はそれぞれ、データ処理装置に処理
が正しく行われたことを通知するACK処理、正しく行
われなかったことを通知するNAK処理である。
<A C K/N A K process> Figures 16 and 17 show an ACK process to notify the data processing device that the process was performed correctly, and a NAK process to notify the data processing device that the process was not performed correctly. .

いずれも、ENBANSフラグが1のとき(S221,
 S231でYES)のみ、処理が行われる。また、E
NB I Dフラグが1となって(S222,S232
)、IDモードであれば、現在のIDコードを対応する
データ処理装置に、まず送られ(S223,S233)
、続いて、ACK処理の場合はACKメッセージを(S
224)、NAK処理の場合はNAKメッセージを対応
するデータ処理装置におくる(S 2 3 4)。
In both cases, when the ENBANS flag is 1 (S221,
Only if YES in S231) is the process performed. Also, E
The NB ID flag becomes 1 (S222, S232
), in the ID mode, the current ID code is first sent to the corresponding data processing device (S223, S233).
, followed by an ACK message (S
224), and in the case of NAK processing, sends a NAK message to the corresponding data processing device (S234).

く受信割込〉 第18図のフローは、データ処理装置インターフェース
308からの割込み要求の処理であり、データ処理装置
lから、ファイルマルチプレクスバッファ2を介して、
データの入力があれば(S241)、R−バッ7ア30
4に蓄える(S242)。
Reception Interrupt> The flow shown in FIG. 18 is the processing of an interrupt request from the data processing device interface 308.
If there is data input (S241), the R-buffer 30
4 (S242).

本実施例では、受信データは一旦パケットに変換された
後でP−バッ7ア305に出力されているが、本発明は
これに限られるものではない。
In this embodiment, the received data is once converted into a packet and then output to the P-buffer 305, but the present invention is not limited to this.

また、本実施例では、識別コードを付加する、付加しな
いを選択できるようにしたが、これは、もし、マルチユ
ーザ一対応のシステムであっても、一つのホストまたは
ターミナルしか使用していないことが明らかな場合は、
付加する必要がなく、制御装置の無駄な負担を無くすた
めである。
In addition, in this embodiment, it is possible to select whether to add an identification code or not, but this means that even if the system supports multiple users, only one host or terminal is used. If it is clear that
This is to eliminate unnecessary burden on the control device since there is no need to add it.

本発明は、上記の実施例に限定されることなく、特許請
求の範囲に記載された範囲内で種々の変更が可能なのは
いうまでもない。
It goes without saying that the present invention is not limited to the above-described embodiments, but can be modified in various ways within the scope of the claims.

(効果) 複数台のホストまたはターミナルに共用されているグリ
ンタにおいて、プリンタ状態を示すメッセージに、ホス
トまたはターミナル毎に割り当てられた識別コードを付
加することで、そのメッセージが、どのホストまたはタ
ーミナルに対するものかが判断できるので、対象ユーザ
ーのみがプリンタに必要な処置を施すことができる。
(Effect) In a printer shared by multiple hosts or terminals, by adding an identification code assigned to each host or terminal to a message indicating the printer status, the message can be sent to any host or terminal. Since it is possible to determine whether the printer is working or not, only the target user can take necessary actions on the printer.

また逆に、プリンタ側のトラブル等の全ユーザーに知ら
せるべき状態のメッセージには、共通コードを付加して
、全ユーザーに送信するので、全ユーザーはプリンタの
状態を知ることができる。
Conversely, a common code is added to a message indicating a status that should be notified to all users, such as a problem with the printer, and the message is sent to all users, so that all users can know the status of the printer.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の実施例に係る電子写真式プリンタの
システム構成図である。 第2図は、プリンタシステムの斜視図である。 第3図は、操作パネルの平面図である。 第4図は、プリンタシステムの中央断面図である。 第5図は、ビットマップ方式データ処理装置とプリント
エンジンのブロック図である。 第6図は、ビットマップ制御部のブロック図である。 第7図は、ユーザーテーブルとカレントテーブルを模式
的に示した図である。 第8図は、プリンタ動作のメインフローチャートである
。 第9図(a).(b)はそれぞれ、本発明に係る受信デ
ータ処理の7ローチャートである。 第10図は、インターフェース制御部のコマンド処理の
7ローチャートである。 第11図は、パケット処理のフローチャートである。 112図は、プリント・シーケンス処理のフローチャー
トである。 第13図は、カセット選択処理のフローチャートである
。 第14図は、7ォント選択処理のフローチャートである
。 第15図は、再設定処理のフローチャートである。 第16図は、ACK処理のフローチャートである。 第18図は、受信割込の7ローチャートである。 IA,IB.IC・・・データ処理装置、2・・・ファ
イル珍マルチプレクス・バッファ、3・・・ビットマッ
プ方式データ処理装置、IO・・・プリンタシステム、 30・・・ビットマップ制御部、 301・・・BM−CPU, 302・・・SMS−ROM, 303・・・SMS−RAM, 304・・・R−バッ7ア、 305・・・P−バッファ。 特許出願人 ミノルタカメラ株式会社 代 理 人 弁理士 青山 葆 はかl名第17図は,
NAK処理のフローチャートであ第 l 図 第2図 オ3図 第 図 ,,・3ビットマップ方式データ処理装置4プリントエ
ンジン 第8図 第12 図 第15 図
FIG. 1 is a system configuration diagram of an electrophotographic printer according to an embodiment of the present invention. FIG. 2 is a perspective view of the printer system. FIG. 3 is a plan view of the operation panel. FIG. 4 is a central sectional view of the printer system. FIG. 5 is a block diagram of the bitmap data processing device and print engine. FIG. 6 is a block diagram of the bitmap control section. FIG. 7 is a diagram schematically showing a user table and a current table. FIG. 8 is a main flowchart of printer operation. Figure 9(a). (b) are seven flowcharts of received data processing according to the present invention. FIG. 10 is a seven-step flowchart of command processing by the interface control unit. FIG. 11 is a flowchart of packet processing. FIG. 112 is a flowchart of print sequence processing. FIG. 13 is a flowchart of the cassette selection process. FIG. 14 is a flowchart of 7 font selection processing. FIG. 15 is a flowchart of the resetting process. FIG. 16 is a flowchart of ACK processing. FIG. 18 is a 7-low chart of reception interrupts. IA, IB. IC...Data processing device, 2...File multiplex buffer, 3...Bitmap method data processing device, IO...Printer system, 30...Bitmap control unit, 301... BM-CPU, 302... SMS-ROM, 303... SMS-RAM, 304... R-buffer, 305... P-buffer. Patent applicant Minolta Camera Co., Ltd. Representative Patent attorney Aoyama Aoyama Name Figure 17 is:
The flowchart of NAK processing is shown in Figure 1, Figure 2, Figure 2, Figure 3, Figure 3,...3 Bitmap data processing device, 4 Print engine, Figure 8, Figure 12, Figure 15.

Claims (1)

【特許請求の範囲】[Claims] (1)1又は複数のホストまたはターミナルとこれらに
接続されるプリンタとの間に介在し、印字データと、予
めホストまたはターミナル毎に割り当てられた識別コー
ドと、印字データを印字するために必要な印字モードの
設定値を含む制御データとを、ホストまたはターミナル
毎に選択的にプリンタに入力し、プリンタからのデータ
をホストまたはターミナルへ選択的に出力する双方向の
通信手段と、 識別コードを記憶する識別コード記憶手段と、印字モー
ドの設定値に応じて上記プリンタによる印字を制御する
印字制御手段と、 プリンタの状態を判断して、その状態に応じて、ホスト
またはターミナルに対して応答を行うための応答手段と
、 応答手段からの応答データの属性に応じて、識別コード
記憶手段に記憶された識別コードまたは共通コードのい
ずれか一方を該応答に付加して、通信手段から出力する
よう制御する通信制御手段とを備えたことを特徴とする
プリンタ制御装置。
(1) Interposes between one or more hosts or terminals and a printer connected to these, and provides print data, an identification code assigned to each host or terminal in advance, and information necessary to print the print data. A two-way communication means for selectively inputting control data including print mode setting values to the printer for each host or terminal, and selectively outputting data from the printer to the host or terminal, and storing an identification code. an identification code storage means for controlling the printer; a print control means for controlling printing by the printer according to the setting value of the print mode; and a print control means for determining the state of the printer and responding to the host or the terminal according to the state. control means for adding either the identification code or the common code stored in the identification code storage means to the response and outputting it from the communication means according to the attribute of the response data from the response means; What is claimed is: 1. A printer control device comprising: communication control means for controlling a printer;
JP63286359A 1988-10-21 1988-11-12 Printer controller Pending JPH02132518A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP63286359A JPH02132518A (en) 1988-11-12 1988-11-12 Printer controller
US07/424,526 US5047957A (en) 1988-10-21 1989-10-19 Printer controller
US07/670,392 US5068807A (en) 1988-10-21 1991-03-15 Printer controller
US07/723,297 US5131078A (en) 1988-10-21 1991-06-28 Printer controller
US07/760,967 US5119473A (en) 1988-10-21 1991-09-17 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63286359A JPH02132518A (en) 1988-11-12 1988-11-12 Printer controller

Publications (1)

Publication Number Publication Date
JPH02132518A true JPH02132518A (en) 1990-05-22

Family

ID=17703360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63286359A Pending JPH02132518A (en) 1988-10-21 1988-11-12 Printer controller

Country Status (1)

Country Link
JP (1) JPH02132518A (en)

Similar Documents

Publication Publication Date Title
USRE42170E1 (en) Control of information processing using one or more peripheral apparatus
US5131078A (en) Printer controller
JP4859214B2 (en) Data processing apparatus, print job control method, and print data processing apparatus
US5933676A (en) Image forming apparatus, and control apparatus and method therefor
JPH09146726A (en) Method for controlling printer server system
JP2002200828A (en) Information processor, control method and storage medium
JP2742073B2 (en) Print control method and apparatus
EP0662656B1 (en) Method and apparatus for resetting shared computer output apparatus
US4975858A (en) Controller for a printer for printing data received from an external data processor
JP2770351B2 (en) Printer
JPH02132518A (en) Printer controller
JP3114935B2 (en) Printer
US6999185B1 (en) System and method for merging together jobs in a multi-platform printing system when one of the platforms is in a degraded mode
JPH09267537A (en) Output control device and control of output device, and data processing apparatus
JPH02132517A (en) Printer controller
JP2007281773A (en) Image forming apparatus and control method thereof
JPH02113324A (en) Printer controller
JPH07129336A (en) Printer device and its system
JPH02113325A (en) Printer controller
JP2001142670A (en) Printing system and printer
JPH01171948A (en) Printer control apparatus
JP2001260435A (en) Imaging apparatus
JPH02113326A (en) Printer controller
JP3167062B2 (en) Image recording device
JP2001047706A (en) Imaging system in network environment