JP3101288B2 - Printing device and print control device - Google Patents

Printing device and print control device

Info

Publication number
JP3101288B2
JP3101288B2 JP02016809A JP1680990A JP3101288B2 JP 3101288 B2 JP3101288 B2 JP 3101288B2 JP 02016809 A JP02016809 A JP 02016809A JP 1680990 A JP1680990 A JP 1680990A JP 3101288 B2 JP3101288 B2 JP 3101288B2
Authority
JP
Japan
Prior art keywords
program
cartridge
area
printing
address
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
JP02016809A
Other languages
Japanese (ja)
Other versions
JPH03219987A (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 JP02016809A priority Critical patent/JP3101288B2/en
Publication of JPH03219987A publication Critical patent/JPH03219987A/en
Application granted granted Critical
Publication of JP3101288B2 publication Critical patent/JP3101288B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Laser Beam Printer (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、たとえばレーザプリンタなどのような印刷
装置に関し、さらに詳しくは複数の解像度で印刷可能な
印刷装置及びそれを制御する印刷制御装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus such as a laser printer, and more particularly to a printing apparatus capable of printing at a plurality of resolutions and a printing control apparatus for controlling the printing apparatus. .

〔従来の技術〕[Conventional technology]

従来、この種の印刷装置は、印刷機構部の高機能化が
図られた際に、その機能を十分に活用するための第1の
制御プログラムを内蔵するようにしている。このような
制御プログラムによって、ホストコンピユータ等から出
力されるコマンドに基づいて印刷動作が行われる。
Conventionally, this type of printing apparatus incorporates a first control program for making full use of its functions when the functions of the printing mechanism are enhanced. With such a control program, a printing operation is performed based on a command output from a host computer or the like.

また着脱可能なプラグラム格納媒体を用意し、第1の
制御プログラムとは異なる動作を行うための第2の制御
プログラムを該プログラム格納媒体に入れ、前記第1の
制御プログラムと切替えて、使用できるようにすること
も多い。特に該第2の制御プログラムにおいて第1の制
御プログラムとは異なったコマンド体系として、既存の
他の印刷装置のコマンド体系をエミユレートし、当該印
刷装置が接続されているホストコンピユータ側の既存の
アプリケーシヨンプログラムを修正することなしにその
まま利用できるようにしている。これによって、該第1
の制御プログラムの有する新しい高機能タイプのコマン
ド体系と、第2の制御プログラムの有する低機能ではあ
るが、従来から利用されているコマンド体系との両立を
計っている。
Also, a removable program storage medium is prepared, a second control program for performing an operation different from the first control program is inserted into the program storage medium, and the program can be switched to the first control program and used. Often. In particular, the second control program emulates a command system of another existing printing apparatus as a command system different from that of the first control program, and uses an existing application on the host computer side to which the printing apparatus is connected. The program can be used without modification. Thereby, the first
The new control program has a new high-function type command system, and the second control program has a low-function but conventionally used command system.

〔発明が解決しようとしている課題〕[Problems to be solved by the invention]

しかしながら、上記従来例では、印刷装置と、制御プ
ログラムがエミュレートする対象の印刷装置との印刷解
像度が異なる場合が多かった。特に、高機能タイプのレ
ーザビームプリンタなどが、低機能・低価格タイプシリ
アルプリンタのエミュレートをする場合などでは、解像
度の差が顕著であった。こうした場合のエミュレート
は、エミュレート対象の印刷装置の解像度に合わせたイ
メージデータや外字パターンを、制御プログラム側のデ
ータ処理により解像度補正をかけるため、処理時間が多
く費やされた。また、本来高解像度である印刷装置の画
像が、解像度補正のため、解像度の低いエミュレート対
象の印刷装置の画像よりも劣化してしまうことがあっ
た。
However, in the above conventional example, the printing resolution of the printing apparatus and the printing apparatus to be emulated by the control program are often different. In particular, when a high-performance type laser beam printer or the like emulates a low-function, low-cost type serial printer, the difference in resolution is remarkable. In such a case, a large amount of processing time is required because the resolution of image data and external character patterns corresponding to the resolution of the printing apparatus to be emulated is corrected by data processing on the control program side. In addition, an image of a printing device that is originally high in resolution may be deteriorated due to resolution correction, compared to an image of a printing device to be emulated having a low resolution.

また、印刷解像度が高くなるにつれ、メモリの容量が
増大となり、著しいコストアップにつながる。このた
め、通常の印刷は、内蔵された比較的低機能な第1の制
御プログラムにより、一般的な解像度で行なわれ、高画
質の印刷は、提供された第2の制御プログラムにより、
解像度を高めて行なわれるような構成のシステムを構築
することもある。しかしながら、このような低・中解像
度と高解像度との使い分けをしても、ホストコンピュー
タ等からのコマンドに応じて所定のコマンド体系に対応
する制御プログラムによって印刷動作が行なわれなけれ
ばならず、必ずしも上述した問題が解決されない。
Further, as the printing resolution increases, the capacity of the memory increases, leading to a significant increase in cost. Therefore, normal printing is performed at a general resolution by the built-in relatively low-function first control program, and high-quality printing is performed by the provided second control program.
In some cases, a system having a configuration in which the resolution is increased is constructed. However, even if such low / medium resolution and high resolution are properly used, the printing operation must be performed by a control program corresponding to a predetermined command system in response to a command from a host computer or the like. The problem described above is not solved.

従って、本発明の目的は、上記問題を解決し、複数の
制御プログラムのそれぞれに応じて、解像度を切換えて
高品位かつ高速な印刷を行なうことができる印刷装置を
提供することである。
Accordingly, an object of the present invention is to solve the above-mentioned problem and to provide a printing apparatus capable of performing high-quality and high-speed printing by switching resolutions according to each of a plurality of control programs.

〔課題を解決するための手段及び作用〕[Means and Actions for Solving the Problems]

本発明によれば、複数の解像度で印刷可能な印刷機構
部を制御する印刷制御装置において、各々が異なるコマ
ンド体系に対応し、ホストコンピュータからのコマンド
に基づいて前記印刷機構部の動作を制御するための複数
種類の制御手段と、前記複数種類の制御手段のうちの1
つを選択する選択手段とを設け、前記複数種類の制御手
段の各々が複数の解像度を切換えて設定する設定手段を
備え、前記選択手段によって選択された制御手段に備え
られる前記設定手段が前記印刷機構部での印刷処理にお
ける解像度を設定することにより、前記複数の制御手段
がそれぞれ独立に印刷解像度を切換えることが可能であ
る。
According to the present invention, in a print control device that controls a print mechanism that can print at a plurality of resolutions, each of the print control devices corresponds to a different command system and controls the operation of the print mechanism based on a command from a host computer. Types of control means, and one of the plurality of types of control means
Selection means for selecting one of the plurality of types, each of the plurality of types of control means includes setting means for switching and setting a plurality of resolutions, and the setting means provided in the control means selected by the selection means comprises By setting the resolution in the printing process in the mechanism section, the plurality of control units can independently switch the printing resolution.

そして、本発明によれば、例えば、種々の印刷装置を
エミュレートする場合において、エミュレート対象とな
る印刷装置に適切な解像度を選択することが可能であ
り、また、ホストコンピュータからのコマンドによって
解像度の指定が可能なコマンド体系がある場合、そのよ
うなコマンド体系をもエミュレートすることが可能であ
る。
According to the present invention, for example, when emulating various printing apparatuses, it is possible to select an appropriate resolution for the printing apparatus to be emulated, and to select a resolution by a command from the host computer. If there is a command system that allows specification of such a command system, such a command system can be emulated.

〔実施例〕〔Example〕

以下、添付図面にしたがって、本発明に係る実施例を
詳細に説明する。
Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings.

第1図は、実施例のレーザビームプリンタの制御部10
0の概略構成を示すブロツク図である。
FIG. 1 shows a control unit 10 of the laser beam printer according to the embodiment.
It is a block diagram which shows the schematic structure of 0.

図中、102は、データ発生源となるホストコンピユー
タであり、101は、装置全体を制御するCPUである。103
は、ホストコンピユータ102からのデータを入力信号線S
1を介して入力する入力インタフエース回路である。入
力インタフエース回路103は、また、CPU101の指示に従
い、Busy信号線S2をON/OFFし、ホストコンピユータ102
に、データ送信不可/可を知らせる。104は、本レーザ
ビームプリンタの制御プログラム及び、文字パターンを
格納しておくROMであり、その格納形式は後述する第2
図に示され、制御プログラムの流れは、後述する第10
図、第11図、第12図に示される。
In the figure, reference numeral 102 denotes a host computer serving as a data generation source, and 101 denotes a CPU for controlling the entire apparatus. 103
Inputs data from the host computer 102 to the input signal line S.
1 is an input interface circuit for inputting via 1 . Input In Tough Ace circuit 103, also in accordance with an instruction of the CPU 101, the Busy signal line S 2 and ON / OFF, the host computer 102
To inform the user that data transmission is impossible / possible. Reference numeral 104 denotes a ROM for storing a control program and a character pattern of the laser beam printer.
The flow of the control program shown in FIG.
This is shown in FIGS. 11, 11 and 12.

105は、後述の制御プログラム(第10図〜第14図)を
実行する際に使用されるRAMである(その詳細は、第5
図で後述する)。106は、不揮発性RAM(NVRAM)であ
り、例えば、一般のEEPROMで構成され、電源切断後も、
保存しておくべき情報を保存する(その詳細は、第7図
で後述する)。107は増設用のRAMカードであり、RAM105
の拡張用として使用される。
Reference numeral 105 denotes a RAM used when executing a control program (FIGS. 10 to 14) to be described later.
It will be described later in the figure). Reference numeral 106 denotes a nonvolatile RAM (NVRAM), which is configured by, for example, a general EEPROM, and after power-off,
Information to be stored is stored (the details will be described later with reference to FIG. 7). 107 is a RAM card for extension, and RAM 105
Used as an extension for.

108は、プログラムカートリツジ109、及びプログラム
カートリツジ110とのハードウエア的インターフエース
をとるカートリツジインタフエース回路であり、CPU101
からのプログラムカートリツジ109、110内のROM129、13
0へのアクセスを司どる。このプログラムカートリツジ1
09、110は、ROM129、130と関連素子で構成されたROMボ
ードをそれぞれカートリツジに収めたものである。この
プログラムカートリツジ109、110内のROM129、130に、
前述ROM104に格納された制御プログラムとは、異なる制
御プログラム及び文字パターンが、それぞれ格納され
る。その格納形式は、第2図に示され、制御プログラム
の流れは第13図、第14図で、後述される。
Reference numeral 108 denotes a cartridge interface circuit that provides a hardware interface with the program cartridge 109 and the program cartridge 110.
ROMs 129, 13 in program cartridges 109, 110 from
Control access to 0. This program cartridge 1
Reference numerals 09 and 110 respectively denote ROM boards 129 and 130 and ROM elements composed of related elements housed in a cartridge. In ROM129,130 in this program cartridge 109,110,
A control program and a character pattern different from the control program stored in the ROM 104 are stored, respectively. The storage format is shown in FIG. 2, and the flow of the control program will be described later with reference to FIGS.

これら、プログラムカートリツジ109、110は第15図に
示すように本体がビームプリンタ本体に用意された左右
2つのカートリツジコネクタ1501、1502により、本体と
の着脱が可能となる。第15図では、プログラムカートリ
ツジ109を左側カートリツジコネクタ1501、プログラム
カートリツジ110を右側カートリツジコネクタ1502に装
着する。111(第1図)は、操作パネル112への信号をCP
U101に入・出力するためのパネルインタフエース回路で
あり、このパネルインタフエース回路111の経由して、C
PU101は、操作パネル112上のLEDの点灯や、スイツチの
センスを行う。
As shown in FIG. 15, the program cartridges 109 and 110 can be attached to and detached from the main body by two left and right cartridge connectors 1501 and 1502 whose main bodies are provided in the beam printer main body. In FIG. 15, the program cartridge 109 is attached to the left cartridge connector 1501, and the program cartridge 110 is attached to the right cartridge connector 1502. 111 (FIG. 1) converts the signal to the operation panel 112 to CP
This is a panel interface circuit for inputting and outputting to and from U101.
The PU 101 turns on an LED on the operation panel 112 and senses a switch.

113は、後述するページバツフア上に展開された1ペ
ージ分の画像データを画像信号に変換する画像信号発生
器であり、印刷機構部115からの同期信号に同期して、
画像信号を印刷機構部115へ出力する。この画像信号発
生器113は、後述の印刷機構部115が持つ複数種類の印刷
解像度(例えば180Dpi、240Dpi、400Dpi)に個別的に対
応する3種類の水晶発振器を備え、各解像度に対応した
画像クロツク信号を発生し、これに同期して前記画像信
号を印刷機構部115へ送出する。この3種類の画像クロ
ツク信号の選択は、後述するように行われる。
An image signal generator 113 converts image data for one page developed on a page buffer, which will be described later, into an image signal. The image signal generator 113 synchronizes with a synchronization signal from the printing mechanism unit 115,
The image signal is output to the printing mechanism 115. The image signal generator 113 includes three types of crystal oscillators individually corresponding to a plurality of types of printing resolutions (for example, 180 Dpi, 240 Dpi, and 400 Dpi) of a printing mechanism 115 described later, and an image clock corresponding to each resolution. A signal is generated, and the image signal is sent to the printing mechanism 115 in synchronization with the signal. The selection of these three types of image clock signals is performed as described later.

114は、制御部100と印刷機構部115との間の入出力を
行う出力インタフエース回路である。印刷機構部115
は、画像信号を受けて、用紙の給紙、レーザ光の発生、
画像の用紙への転写、定着といったレーザビームプリン
タの一連の印刷プロセスを実現する。本印刷機構部115
は、CPU101によって制御される。
An output interface circuit 114 performs input and output between the control unit 100 and the printing mechanism unit 115. Printing mechanism 115
Receives the image signal, feeds paper, generates laser light,
A series of printing processes of a laser beam printer, such as transfer and fixing of an image to paper, are realized. Main printing mechanism 115
Is controlled by the CPU 101.

解像度切替信号116を受け、180Dpi、240DPpi、400Dpi
の3種類の印刷解像度を切替えて印刷動作を行う。
Receives resolution switching signal 116, 180Dpi, 240DPpi, 400Dpi
The printing operation is performed by switching the three types of printing resolutions.

第16図は、この印刷機構部115を簡略化して示す断面
図であり、以下印刷機構部115を説明する。
FIG. 16 is a simplified cross-sectional view of the printing mechanism 115. The printing mechanism 115 will be described below.

制御部100内の画像信号発生器113で発生した画像信号
は、出力インタフエース回路114を経て、レーザドライ
バ1601に入力される。
The image signal generated by the image signal generator 113 in the control unit 100 is input to the laser driver 1601 via the output interface circuit 114.

レーザドライバ1601は半導体レーザ1602を駆動制御す
るための回路であり、入力された画像信号に応じて半導
体レーザ1602から発射されるレーザ光1603をオン・オフ
切替えする。レーザ光1603は回転多面鏡1604で左右方向
に振られて静電ドラム1605上に照射され、静電ドラム16
05上には文字パターンの潜像が形成される。この潜像は
静電ドラム1605周囲の現像ユニツト1606により現像され
たのち用紙に転写される。用紙にはカツトシート紙を用
い、カツトシート紙は印刷機構部115に装着した用紙カ
セツト1607に収納され、給紙ローラ1608及び搬送ローラ
1609により装置内に取り込まれて静電ドラム1605に供給
される。画像パターンを転写された用紙は定着器1610で
パターン像を定着された後に排紙トレイ1611へ排出され
る。
The laser driver 1601 is a circuit for controlling the driving of the semiconductor laser 1602, and switches on / off a laser beam 1603 emitted from the semiconductor laser 1602 according to an input image signal. The laser light 1603 is swung right and left by the rotating polygon mirror 1604 and is irradiated on the electrostatic drum 1605.
A latent image of a character pattern is formed on 05. This latent image is developed by a developing unit 1606 around the electrostatic drum 1605 and then transferred to a sheet. Cut sheets are used as the sheets, and the cut sheets are stored in a sheet cassette 1607 mounted on the printing mechanism 115, and the sheet feed roller 1608 and the transport roller
At 1609, it is taken into the device and supplied to the electrostatic drum 1605. The sheet on which the image pattern has been transferred is discharged onto a discharge tray 1611 after the pattern image is fixed by the fixing unit 1610.

印刷機構部115は、解像度切替信号116に応じ回転多面
鏡1604の回転速度を変更し、前述した画像クロツク信号
の周波数が切替えられることによりレーザ光1603のON/O
FF周期を変えることで、静電ドラム1605上に形成される
潜像のドツト密度すなわち解像度を変更する。
The printing mechanism 115 changes the rotation speed of the rotary polygon mirror 1604 according to the resolution switching signal 116, and switches the frequency of the above-described image clock signal to turn on / off the laser light 1603.
By changing the FF cycle, the dot density, that is, the resolution, of the latent image formed on the electrostatic drum 1605 is changed.

以上の構成により本プリンタは、ROM104上の制御プロ
グラム及びプログラムカートリツジ109、110上の制御プ
ログラムという相互に異なる3種類の制御プログラムを
用意し、この3種類の制御プログラムのうち1つを切替
えて、使用できる手段を有すると供に、各制御プログラ
ムは、印刷機構部115のもつ3種類の印刷解像度を独自
に選択できる手段を有している。第2図は、制御プログ
ラムを収めるROM104及び、プログラムカートリツジ10
9、110上のROM129、130の格納形式を示した図である。
以後、ROM104へ収められる本来本プリンタが持っている
制御プログラムを本体プログラム、着脱可能なプログラ
ムカートリツジ109、110に収められる制御プログラムを
総称して、カートリツジプログラム、プログラムカート
リツジ109に収められるものをカートリツジプログラム
A、プログラムカートリツジ110に収められるものをカ
ートリツジプログラムBと呼ぶ。
With this configuration, the printer prepares three different control programs, a control program on the ROM 104 and a control program on the program cartridges 109 and 110, and switches one of the three control programs. Each control program has means that can independently select three types of printing resolutions of the printing mechanism unit 115. FIG. 2 shows a ROM 104 for storing a control program and a program cartridge 10.
FIG. 9 is a diagram showing a storage format of ROMs 129 and 130 on 9 and 110.
Thereafter, the control program originally contained in the printer and stored in the ROM 104 is referred to as a main program, and the control programs stored in the detachable program cartridges 109 and 110 are collectively referred to as a cartridge program and a program stored in the program cartridge 109. Is called a cartridge program A, and what is stored in the program cartridge 110 is called a cartridge program B.

200(第2図(1))は、本体プログラムの格納形式
を示したものである。201は、CPU101の割込ベクトルで
あり、アドレスa0〜an番地がストアされる。CPU101は0
番地から、順にスタツクポインタ初期アドレスa0番地、
プログラムスタートアドレスa1番地、各種割込スタート
アドレスa2〜an番地をアクセスする。a2〜an番地は、RA
M105の先頭から順の領域に割り振られる。
200 (FIG. 2 (1)) shows the storage format of the main program. 201, an interrupt vector of CPU 101, the address a 0 ~a n address is stored. CPU101 is 0
From the address, the stack pointer initial address a 0 ,
Program start address a 1 address, to access the various interrupt start address a 2 ~a n address. a 2 ~a n address is, RA
It is allocated to the area in order from the top of M105.

202は、本体プログラムの識別名を表わすもので、制
御プログラム毎に一意の2桁の番号がつけられる。これ
を「プログラムID」と呼ぶ。
Reference numeral 202 denotes an identification name of the main program, and a unique two-digit number is assigned to each control program. This is called a “program ID”.

203は、本体プログラム再スタートアドレス格納領域
であり、カートリツジプログラムから、本体プログラム
へ切替わる際のジヤンプ命令(再スタートアドレスb1
地へのジャンプ)が収められる。本アドレス格納領域20
3は、b0番地に割振られ固定化される。
203 is a main body program re-start address storage area, the car Toritsuji program jump instruction when switched to the main program (jump to restart address b 1 address) is housed. Main address storage area 20
3 is allocated to b 0 address is immobilized.

204は、本体プログラム割込ベクトルテーブルであ
る。各種割込に対して、本体プログラム上に、それぞれ
c2、c3、…、cn番地からスタートする割込処理ルーチン
が用意され、この割込ベクトルテーブル204上にそれぞ
れの割込処理ルーチンへのジヤンプ命令が用意される。
Reference numeral 204 denotes a main body program interrupt vector table. For each type of interrupt,
c 2, c 3, ..., an interrupt processing routine starting from c n address is prepared, jump instruction to each of the interrupt processing routine on the interrupt vector table 204 are prepared.

205は、外部参照ルーチン呼出しテーブルである。こ
れは、ROM104上に用意したプログラム(サブルーチン)
をカートリツジプログラムが呼び出して利用できるよう
に設けられたもので、本実施例では、NVRAM106への書込
み及び読出しのためのサブルーチンを用意している。
205 is an external reference routine call table. This is a program (subroutine) prepared on ROM104
Is provided so that a cartridge program can be used by calling it. In the present embodiment, a subroutine for writing to and reading from the NVRAM 106 is prepared.

本テーブル205中、206は、NVRAM書込ルーチン212への
ジヤンプ先e1番地を収めた領域で、d1番地に割り振られ
固定化される。207はNVRAM読出しルーチン213へのジヤ
ンプ先e2番地を収めた領域で、d2番地に割り振られ固定
化される。208はNVRAM106書込ルーチン212、または読出
しルーチン213に対して、NVRAM106の書込または読出し
のアドレスを指示するもので、本領域208に書き込まれ
たRAM104上のアドレスe3の内容、すなわちNVRAM指定ア
ドレスが、指定書込(読出し)アドレスとなる。同様に
209は、NVRAM書込ルーチン212、または読出しルーチン2
13に書込値を与える、または、読出し値を受取るための
領域を指定するもので本領域209に書込まれたRAM104上
のアドレスe4の内容、すなわちNVRAM設定値がその値と
なる。210は、NVRAM書込ルーチン212、NVRAM読出しルー
チン213の使用するRAM領域の総数(kバイト)である。
RAM105上のNVRAM指定アドレス領域を先頭にkバイト分
が、NVRAM書込み、読出しのために用意され、この領域
は、本体プログラム、カートリツジプログラムの使用RA
M領域とは分離されて使われる。
In this table 205, 206 is an area that contains the jump destination e 1 address to the NVRAM writing routine 212, are immobilized allocated to address 1 d. 207 is a region that contains the jump destination e 2 address to the NVRAM reading routine 213, are immobilized allocated to d 2 address. 208 for the NVRAM 106 writing routine 212 or the read routine 213, in which an instruction address of the writing or reading of the NVRAM 106, the contents of the address e 3 on RAM104 written in the area 208, i.e. NVRAM designated address Is the designated write (read) address. Likewise
209 is an NVRAM write routine 212 or a read routine 2
13 gives a writing value or the contents of the address e 4 on RAM104 written in the area 209 in which specifies the area of for receiving a read value, that is, NVRAM set value becomes the value. 210 is the total number (k bytes) of the RAM area used by the NVRAM write routine 212 and the NVRAM read routine 213.
Starting from the NVRAM designated address area on the RAM 105, k bytes are prepared for NVRAM writing and reading, and this area is used for the main program and cartridge program use RA.
It is used separately from the M region.

211は、後述する本体プログラムの格納領域である。 Reference numeral 211 denotes a storage area for a main body program described later.

212は、前述した外部参照ルーチンの1つであるNVRAM
書込ルーチンの格納領域であり、213はNVRAM読出しルー
チンの格納領域である。
212 is one of the above-mentioned external reference routines, NVRAM
A storage area for a write routine, and 213, a storage area for an NVRAM read routine.

214は、ホストコンピユータ102から入力される文字コ
ードに対する文字のドツトパターン群を収めたフオント
領域である。このフオント領域214において、215はフオ
ントの識別コードであり、216はフオント領域214の総容
量を表わすフオント容量mの格納領域であり、217は文
字ドツトパターンの実体を収める文字パターン領域であ
る。
Reference numeral 214 denotes a font area that stores a dot pattern group of characters corresponding to the character code input from the host computer 102. In the font area 214, reference numeral 215 denotes a font identification code, reference numeral 216 denotes an area for storing a font capacity m representing the total capacity of the font area 214, and reference numeral 217 denotes a character pattern area for storing the actual character dot pattern.

上記、格納形式200において、201〜205はROM104上の
0番地からの固定番地に割振られる。カートリツジプロ
グラムは、本体プログラム211や外部参照ルーチン212、
213を、固定的に定義された番地の内容から間接的に参
照する。したがって、プログラム修正などにより、211
以下の領域の内容が変更され、ROM104上の番地にずれが
生じても、210〜205の領域の内容がその変更に対応され
るため、カートリツジプログラム側に影響を与えない。
In the storage format 200 described above, 201 to 205 are assigned to fixed addresses starting from address 0 on the ROM 104. The cartridge program includes a main program 211, an external reference routine 212,
213 is indirectly referenced from the contents of the address defined fixedly. Therefore, 211
Even if the contents of the following areas are changed and the address on the ROM 104 is shifted, the contents of the areas 210 to 205 correspond to the change, so that the cartridge program side is not affected.

250(第2図(2))はカートリツジプログラムの格
納形式を示したものである。250中、251は、カートリツ
ジ識別領域であり、その内訳を第3図に示す。本領域25
1は4バイト構成であり、第3図中301は、カートリツジ
タイプ領域であり、‘P'または‘F'が、たとえばASC11
コードで格納される。‘P'は以下の領域がカートリツジ
プログラムであることを表わし、‘F'は以下の領域がフ
オント(文字パターン)領域であることを表わす。302
はカートリツジサブタイプであり、カートリツジタイプ
301が‘P'の場合‘L'、‘R'、‘B'のいずれかが入れら
れる。‘L'は、プログラムカートリツジ109専用のカー
トリツジプログラムであることを表わし、‘R'は、プロ
グラムカートリツジ110専用のカートリツジプログラム
であることを表わす。‘B'はプログラムカートリツジ10
9、110共用のカートリツジプログラムであることを表わ
す。後述の第8図に示すように、プログラムカートリツ
ジ109、110間で、アドレス領域が異なるため、それぞれ
の領域で利用可能なカートリツジプログラムを本カート
リツジサブタイプ302で識別する。‘B'は、たとえばカ
ートリツジプログラムのROM領域を、全て相対アドレス
で記述し、アドレス領域に依存しないものに対して適用
される。
Reference numeral 250 (FIG. 2 (2)) shows the storage format of the cartridge program. In FIG. 3, reference numeral 251 denotes a cartridge identification area, the details of which are shown in FIG. Main area 25
Reference numeral 1 denotes a 4-byte structure. In FIG. 3, reference numeral 301 denotes a cartridge type area.
Stored in code. 'P' indicates that the following area is a cartridge program, and 'F' indicates that the following area is a font (character pattern) area. 302
Is a cartridge subtype, a cartridge type
When 301 is 'P', one of 'L', 'R', and 'B' is entered. 'L' indicates a cartridge program dedicated to the program cartridge 109, and 'R' indicates a cartridge program dedicated to the program cartridge 110. 'B' stands for Program Cartridge 10
Indicates that this is a cartridge program shared by 9,110. As shown in FIG. 8, which will be described later, since the address area is different between the program cartridges 109 and 110, a cartridge program usable in each area is identified by the cartridge subtype 302. 'B' is applied to, for example, the ROM area of the cartridge program, which is entirely described by relative addresses and does not depend on the address area.

カートリッジタイプ301が‘F'の場合、カートリツジ
サブタイプ302は、フオントの小分類として識別子に使
われる。
When the cartridge type 301 is “F”, the cartridge subtype 302 is used as an identifier as a font small classification.

本実施例では、カートリツジサブタイプ302につい
て、‘A'を本体プログラム専用フオントを表わす識別子
として定義し、‘B'、‘C'、‘D'…をそれぞれ、作成さ
れる種々のカートリツジプログラム専用フオントを表わ
す識別子として定義する。301のカートリツジタイプ、3
02のカートリツジサブタイプを総称して、カートリツジ
IDコード303と呼ぶ、304は、カートリツジプログラムや
フオントに一意に付けられる識別子で2桁の番号で表わ
される。それをカートリツジID番号304と呼ぶ。
In the present embodiment, for the cartridge subtype 302, 'A' is defined as an identifier representing a font dedicated to the main program, and 'B', 'C', 'D',. Defined as an identifier that indicates a dedicated font. 301 cartridge type, 3
Collectively, the cartridge subtype of 02
Reference numeral 304, which is called an ID code 303, is an identifier uniquely assigned to a cartridge program or font and is represented by a two-digit number. It is called a cartridge ID number 304.

第2図(2))に戻って、252は、カートリツジプロ
グラム関連領域257の総容量m0を格納するカートリツジ
容量領域である。
Returning to FIG. 2 (2)), 252 is a Katoritsuji capacity region for storing the total capacity m 0 car Toritsuji program-related regions 257.

253は、製品適合フラグと名付けられた情報を格納す
る領域である。この製品適合フラグ253は、シリーズ化
された本プリンタの製品系列において、いずれの製品
(複数)に適合可能かを示すものであり、第4図に示す
ように16bitの独立したbit単位のフラグからなり、それ
ぞれのbitが、製品系列上の1製品(将来の製品を含ん
で)を表わし、bit内容‘1'が適合可能、‘0'が適合不
可能を表わす。この適合可能・不可能は、各製品の制御
部100のハードウエア構成や、格納される本体プログラ
ム、特に、外部参照ルーチン205の提供状況などによ
り、カートリツジプログラム作成時に決定される。
An area 253 stores information named a product conformance flag. The product conformance flag 253 indicates which product (plurality) can be adapted in the series of printers of this series, and as shown in FIG. 4, a 16-bit independent bit unit flag is used. Each bit represents one product (including future products) in the product series, and the bit content '1' is compatible, and '0' is not compatible. The adaptability is determined when the cartridge program is created, depending on the hardware configuration of the control unit 100 of each product and the stored status of the main body program, particularly the external reference routine 205.

254は、カートリツジプログラムスタートアドレスの
格納領域で、本体プログラムからカートリツジプログラ
ムへ切替わる際のジヤンプ命令(スタートアドレスα
番地へジヤンプ)が収めれれる。本格納領域254は、α
番地に割振られ固定化される。
A storage area 254 for a cartridge program start address is a jump instruction (start address α 1) for switching from the main program to the cartridge program.
To the address). This storage area 254 is α
It is allocated to address 0 and fixed.

255は、カートリツジプログラムの割込ベクトルテー
ブルであり、前述した本体プログラムの割込ベクトルテ
ーブル204と同様の構造である。各種割込に対してカー
トリツジプログラム上に、それぞれβ、β、…、β
からスタートする割込処理ルーチンへが用意され、そ
の割込ベクトルテーブル255上にそれぞれの割込処理ル
ーチンへのジヤンプ命令が用意される。
Reference numeral 255 denotes an interrupt vector table of the cartridge program, which has a structure similar to that of the above-described interrupt vector table 204 of the main program. On the car Toritsuji program for the various interrupt, respectively, β 2, β 3, ..., β
An interrupt processing routine starting from n is prepared, and a jump instruction to each interrupt processing routine is prepared on the interrupt vector table 255.

256は、後述するカートリツジプログラムが格納され
るカートリツジプログラム格納領域である。
Reference numeral 256 denotes a cartridge program storage area in which a cartridge program described later is stored.

258は、前述のフオント領域214と同一形式のフオント
領域であり、ここにはカートリツジプログラム用の文字
パターン群が収められる。259は、このフオント領域の
カートリツジ識別コードであり、形式は、前述のカート
リツジ識別領域251と同様である。カートリツジプログ
ラム用フオントとして、カートリツジIDコード303に、
‘FB'が付けられる。
A font area 258 has the same format as the font area 214 described above, and contains a character pattern group for a cartridge program. Reference numeral 259 denotes a cartridge identification code of the font area. The format is the same as that of the cartridge identification area 251 described above. Cartridge ID code 303 as font for cartridge program,
'FB' is appended.

260は、フオント領域258の総容量m1を収めるカートリ
ツジ容量格納領域である。261は、カートリツジプログ
ラムが使用する文字ドツトパターンの本体を収める文字
パターン領域である。
260 is a Katoritsuji capacity storage area to accommodate the total volume m 1 of font area 258. Reference numeral 261 denotes a character pattern area for storing the main body of the character dot pattern used by the cartridge program.

262も、前述のフオント領域258と同一形式のフオント
領域であり、ここでは、本体プログラムの追加文字セツ
トとしての文字パターン群が収められる。263がそのカ
ートリツジ識別コードであり、本体プログラム用フオン
トとしてカートリツジIDコード303‘FA'が付けられる。
264は、フオント領域262の総容量m2の格納領域、265
は、文字パターン領域である。
Reference numeral 262 denotes a font area having the same format as the above-described font area 258. Here, a character pattern group as an additional character set of the main program is stored. Reference numeral 263 denotes the cartridge identification code, to which a cartridge ID code 303'FA 'is attached as a font for the main body program.
264, total capacity m 2 of storage areas of font area 262, 265
Is a character pattern area.

次に、第5図は、RAM105上のデータ構造を示したもの
である。501は、RAM上の固定アドレスa2〜anに収める割
込処理ジヤンプテーブルであり、本体プログラムスター
ト又は再スタート時にROM104上の本体割込ベクトルテー
ブル204からコピーされる。また、カートリツジプログ
ラムスタートと時にプログラムカートリツジ上のカート
リツジプログラム割込ベクトルテーブル255からコピー
される。CPU割込ベクトル201はRAM105上のアドレスa2
a3、…、anへ向けられており、上記のように、それぞれ
の制御プログラムがスタート(再スタート)する毎に50
1の領域を書き換えることにより、それぞれの制御プロ
グラムの割込処理ルーチンが使用可能となる。
Next, FIG. 5 shows a data structure on the RAM 105. 501 is a interrupt processing Jiyan flop table to fit a fixed address a 2 ~a n on RAM, and copied from the main interrupt vector table 204 on the ROM104 at body program start or restart. Also, when the cartridge program is started, it is copied from the cartridge program interrupt vector table 255 on the program cartridge. CPU interrupt vector 201 is at address a 2 on RAM 105,
a 3 ,..., an n , and as described above, each control program starts (restarts) 50 times.
By rewriting the area 1, the interrupt processing routine of each control program can be used.

502は、それぞれの制御プログラムが、他方の制御プ
ログラムにへ切替わる際に必要情報を保存しておくため
に用いる保存領域で、それぞれの制御プログラム専用
に、本体保存領域503、カートリツジ109の保存領域50
4、カートリツジ110の保存領域505が用意される。これ
らの領域503〜505は、RAM105上の固定アドレスf1、f2
f3を先頭に固定化される。
Reference numeral 502 denotes a storage area used for storing necessary information when each control program switches to the other control program. The storage area of the main body storage area 503 and the storage area of the cartridge 109 are dedicated to each control program. 50
4. The storage area 505 of the cartridge 110 is prepared. These areas 503 to 505 have fixed addresses f 1 , f 2 ,
The f 3 are immobilized at the top.

506は、外部参照ルーチンとして定義されたNVRAM書込
みルーチン及び、NVRAM読出しルーチンが使用する外部
参照RAM領域である。本領域の先頭部分は、これら外部
参照ルーチンと呼出し側の制御プログラムとのデータの
引き渡しに使用される部分で507は、NVRAMの読み書きア
ドレスを指定するNVRAM指定アドレス領域、508は、NVRA
Mへの書込み値の指定、又は、NVRAMからの読み出し値の
引渡しに使用されるNVRAM設定値領域である。NVRAM指定
アドレス領域507、及びNVRAM設定値領域508は前述のよ
うに外部参照ルーチン呼出しテーブル205を介して、間
接的にそれぞれの番地e3、e4がアクセスされる。509
は、NVRAM書込みルーチンや、NVRAM読出しルーチンが内
部でフラグや変数として使用する作業用RAM領域であ
る。
Reference numeral 506 denotes an external reference RAM area used by an NVRAM write routine and an NVRAM read routine defined as an external reference routine. The head of this area is used to transfer data between these external reference routines and the control program on the calling side. Reference numeral 507 denotes an NVRAM-specified address area for specifying a read / write address of NVRAM.
This is an NVRAM set value area used for specifying a write value to M or transferring a read value from NVRAM. The addresses e 3 and e 4 of the NVRAM designated address area 507 and the NVRAM set value area 508 are indirectly accessed via the external reference routine call table 205 as described above. 509
Is a working RAM area used internally by the NVRAM write routine and the NVRAM read routine as flags and variables.

510は、フリー領域と呼ばれ、制御プログラムが切替
わる毎に、制御部100の制御権を得た制御プログラム
が、自分自身のプログラムを実行させるために利用する
RAM領域であり、第5図の511〜517はそのRAM構造の一例
である。511は、ホストコンピユータ102から、コマンド
データとして指示された、プリンタの動作モードを覚え
ておく動作モードテーブルである。ここでは、ROM104や
プログラムカートリツジ109、110上に複数用意されるフ
オント領域のどのフオントを選択して文字パターンを発
生させるかを指定する選択フオント512及び後述のペー
ジバツフア517に作成した1ページ分の画像の複数枚印
刷を指示するコピー枚数513が用意される。なお、選択
フオント512には、フオント領域の先頭の識別コード21
5、259、263が利用される。
Reference numeral 510 denotes a free area, which is used by the control program having the control right of the control unit 100 to execute its own program every time the control program is switched.
RAM areas 511 to 517 in FIG. 5 are examples of the RAM structure. An operation mode table 511 stores the operation mode of the printer designated by the host computer 102 as command data. Here, a selection font 512 for specifying which font of a plurality of font areas prepared on the ROM 104 or the program cartridges 109 and 110 is to be selected to generate a character pattern, and one page of the page created in the page buffer 517 to be described later. A copy number 513 for instructing printing of a plurality of images is prepared. The selection font 512 has an identification code 21 at the head of the font area.
5, 259, 263 are used.

514は、制御プログラムの作業用領域で、変数やフラ
グ類が設定される。515は作業用領域514上に取られるデ
ータフラグであり、後述のページバツフア517に、未印
刷のデータが残っているか否かを表わすフラグである。
Reference numeral 514 denotes a work area of the control program, in which variables and flags are set. A data flag 515 is set on the work area 514, and indicates whether or not unprinted data remains in a page buffer 517 described later.

516は、受信バツフアであり、ホストコンピユータ102
から入力されたデータは、入力インタフエース回路103
を介して、制御プログラムの受信割込処理により、本領
域に一時保存される。
Reference numeral 516 denotes a reception buffer, and the host computer 102
The data input from the input interface circuit 103
Is temporarily stored in this area by the reception interrupt processing of the control program.

517は、ホストコンピユータからの入力データを基に
1ページ分のビツトマツプ化された画像データを保存す
るページバツフアである。
A page buffer 517 stores bit map image data for one page based on input data from the host computer.

第6図は、第5図の保存領域502の構造及び、フリー
領域510との関係を示す図である。一例としてのカート
リツジ109の保存領域504は、以下の項目が含まれる。ま
ず601は、この保存領域を着脱可能で、複数供給される
カートリツジプログラム109のどの制御プログラムが使
用しているかを示す保存ID番号をセットする領域であ
る。保存ID番号には、たとえばカートリツジID番号304
が利用される。
FIG. 6 is a diagram showing the structure of the storage area 502 in FIG. 5 and the relationship with the free area 510. The storage area 504 of the cartridge 109 as an example includes the following items. First, reference numeral 601 denotes an area in which the storage area is detachable, and in which a storage ID number indicating which control program of the cartridge program 109 supplied is used is used. For the storage ID number, for example, the cartridge ID number 304
Is used.

602は、動作モード保存領域であり、フリー領域510内
の動作モードテーブル511の内容が保存/復帰される。
An operation mode storage area 602 stores / restores the contents of the operation mode table 511 in the free area 510.

605は、受信バツフア保存領域であり、フリー領域510
内の受信バツフア516が、保存/復帰される。
Reference numeral 605 denotes a reception buffer storage area, which is a free area 510.
The receiving buffer 516 in is stored / restored.

第7図はNVRAM106のデータ構造を示したものである。
NVRAM106は16word(1wordは16ビツト)の容量を有し、
それぞれword単位0、1、…15のアドレスが付される。
701はアドレス1に収められたプログラムモード領域
で、現在動いている制御プログラム又は本レーザビーム
プリンタの電源がオフされる直前に動いていた制御プロ
グラムが本体プログラムであるか、カートリツジプログ
ラム109であるか、あるいはカートリツジプログラム110
であるかを記憶する領域である。
FIG. 7 shows the data structure of the NVRAM 106.
NVRAM 106 has a capacity of 16 words (1 word is 16 bits),
Addresses in word units 0, 1,... 15 are respectively assigned.
Reference numeral 701 denotes a program mode area stored in the address 1. The currently running control program or the control program running immediately before the power of the laser beam printer is turned off is the main body program or the cartridge program 109. Or cartridge program 110
Is an area for storing whether or not

プログラムモードは、文字コード‘M'を本体プログラ
ム実行、‘L'をカートリツジプログラム109実行、‘R'
をカートリツジプログラム110実行と定義される。この
プログラムモード領域701の15bit目は奇数パリテイビツ
ト領域702であり、プログラムモード領域701の奇数パリ
テイが収められ、NVRAM読み出し/書込み時の誤り検知
に利用される。
In the program mode, the character code 'M' executes the main program, 'L' executes the cartridge program 109, 'R'
Is defined as the execution of the cartridge program 110. The 15th bit of the program mode area 701 is an odd parity bit area 702, which stores the odd parity of the program mode area 701, and is used for error detection during NVRAM read / write.

第8図はCPU100のアドレス空間を示す図である。801
は本体プログラム領域であり、OH(「H」は16進表示で
あることを示す。)番地から割り振られ、物理的にROM1
04に対応づけされる。そして本体プログラム格納形式20
0の形式で本体プログラムの情報が収められる。
FIG. 8 is a diagram showing an address space of the CPU 100. 801
Is the main program area, which is allocated from the address OH ("H" indicates hexadecimal notation) and is physically assigned to ROM1
Corresponds to 04. And the main program storage format 20
Information of the main program is stored in 0 format.

802はカートリツジ109用の領域で200000H番地から割
り振られ物理的にプログラムカートリツジ109上のROM12
9に対応づけられる。そしてカートリツジプログラム格
納形式250の形式でカートリツジプログラムAの情報が
収められる。
Reference numeral 802 denotes an area for the cartridge 109, which is allocated from address 200000H and physically located in the ROM 12 on the program cartridge 109.
Corresponds to 9. Then, information of the cartridge program A is stored in the format 250 of the cartridge program storage.

803はカートリツジ110用の領域で400000H番地から割
り振られ、物理的にプログラムカートリツジ110上のROM
130に対応づけられる。そしてカートリツジプログラム
Aと同様に、カートリツジプログラム格納形式250の形
式でカートリツジプログラムBの情報が収められる。
Reference numeral 803 denotes an area for the cartridge 110, which is allocated from address 400000H, and is physically located in the ROM on the program cartridge 110.
Corresponds to 130. Then, similarly to the cartridge program A, the information of the cartridge program B is stored in the cartridge program storage format 250.

804はROM領域で800000H番地から割り振られ、物理的
にRAM105へ対応づけられる。そして、第5図に示すデー
タ構造が適用される。
Reference numeral 804 denotes a ROM area, which is allocated from address 800,000H and physically associated with the RAM 105. Then, the data structure shown in FIG. 5 is applied.

805は増設RAM107用の領域でA00000番地から割り振ら
れ物理的に増設RAMカード107に対応づけられる。
Reference numeral 805 denotes an area for the additional RAM 107, which is allocated from address A00000 and is physically associated with the additional RAM card 107.

806はI/Oアドレス領域でCPU101が入力インタフエース
回路103やパネルインタフエース回路111、NVRAM106など
制御部100の各回路と信号のやり取りを行なうI/Oポート
が割り振られる。
Reference numeral 806 denotes an I / O address area to which I / O ports through which the CPU 101 exchanges signals with the input interface circuit 103, panel interface circuit 111, NVRAM 106, and other circuits of the control unit 100 are allocated.

なお、画像信号発生器113に対して印刷解像度切替え
のための画像クロツク信号選択の指示も、このI/Oポー
ト中の画像クロツク選択ポート807を経て行なわれる。
An instruction to select an image clock signal for switching the print resolution to the image signal generator 113 is also issued through the image clock selection port 807 in the I / O port.

第9図は、操作パネル112の表示器、スイツチ配置を
示した図であり、901は一般の7セグメントLED2桁で構
成された状態表示器で、制御プログラムの指示により、
現在実行中の制御プログラムの種類や、エラー発生時の
エラー表示を行なう。
FIG. 9 is a view showing a display and a switch arrangement of the operation panel 112, and 901 is a status display composed of a general 7-segment two-digit LED, which is controlled by an instruction of a control program.
The type of the control program currently being executed and the error display when an error occurs are displayed.

902、903、904はプログラムモード切替スイツチであ
り、「MAIN」スイツチ902の押下が本体プログラムへの
切替要求、「L」スイツチ903の押下がカートリツジプ
ログラムAへの切替要求、「R」スイツチ904の押下が
カートリツジプログラムBへの切替要求となる。これら
のスイツチ902〜904は制御プログラムによりCPU101が、
これらのスイツチを押下状態をセンスすることによって
検知され、実行に移される。
Reference numerals 902, 903, and 904 denote program mode switching switches. When a "MAIN" switch 902 is pressed, a switching request to the main body program is issued, when an "L" switch 903 is pressed, a switching request to the cartridge program A is issued, and an "R" switch 904 is pressed. Is a request to switch to the cartridge program B. These switches 902 to 904 are controlled by the CPU 101 by the control program.
These switches are detected by sensing the pressed state, and are executed.

以上の構成をもつ本レーザビームプリンターの本体プ
ログラムのフローチヤートを第10図、第11図、第12図に
示し、本体プログラムが実行される際の本レーザビーム
プリンター動作を説明する。
FIGS. 10, 11, and 12 show flowcharts of the main body program of the laser beam printer having the above configuration, and the operation of the main body laser beam printer when the main body program is executed will be described.

第10図は、本体プログラムのスタート処理プログラム
1000のフローチヤートであり、電源が投入されるとCPU1
01は、CPU割込ベクトル201のプログラムスタート番地a1
を参照して、a1番地からスタートする本体プログラムへ
ジヤンプする。そこで、まずステツプ1001において制御
部100のセルフテストを実行し、ステツプ1002で保存領
域502を、ステツプ1003で外部参照RAM領域506を初期化
しておく。次にステツプ1004で、NVRAM読込ルーチン212
を利用してNVRAM106のプログラムモード領域701から、
プログラムモードを読み込み、ステツプ1005で、どの制
御プログラムをスタートさせるかを判断する。
Fig. 10 shows the start processing program of the main program
1000 flow chart, CPU1 when power is turned on
01 is the program start address a 1 of the CPU interrupt vector 201
See, to jump to the main program to start from the first address a. Therefore, first, the self-test of the control unit 100 is executed in step 1001, and the storage area 502 is initialized in step 1002, and the external reference RAM area 506 is initialized in step 1003. Next, in step 1004, NVRAM read routine 212
From the program mode area 701 of the NVRAM 106 using
The program mode is read, and in step 1005, it is determined which control program is to be started.

ステツプ1005で、プログラムモードが‘M'の場合、本
体プログラム実行を表わすので、ステツプ1006以下へ進
み、本体プログラムを続行する。まず、ステツプ1006で
本体割込ベクトルテーブル204をRAM105上の割込処理ジ
ヤンプテーブル501へコピーする。次にステツプ1007
で、フリー領域510を本体プログラム用に初期化する。
続いてステツプ1008で、Busy信号S2をOFFにしてホスト
コンピユーターにデータの送信可能を知らせ、ステツプ
1009で状態表示器901にプログラムID202を表示し、現在
実行中の制御プログラムが本体プログラムであることを
示す。
If the program mode is "M" in step 1005, this indicates execution of the main program, so the process proceeds to step 1006 and the subsequent steps to continue the main program. First, in step 1006, the main body interrupt vector table 204 is copied to the interrupt processing jump table 501 on the RAM 105. Next step 1007
Then, the free area 510 is initialized for the main body program.
Then, in step 1008, the Busy signal S2 is turned off to notify the host computer that data transmission is possible, and
In step 1009, a program ID 202 is displayed on the status display unit 901 to indicate that the currently executing control program is the main program.

次にプログラム1010で、画像クロツク選択ポート807
へ240Dpi選択を指定し、画像信号発生器を240Dpi用に切
替える。そしてステツプ1011で、解像度切替信号116と
して240Dpiを設定するための切替信号を送出し、印刷機
構部105を印刷解像度を240Dpiで印刷動作を行うように
設定する。そしてステツプ1012で第11図に示す本体プロ
グラムのメインルーチンへ飛ぶ。
Next, in the program 1010, the image clock selection port 807
Specify 240Dpi selection and switch the image signal generator to 240Dpi. In step 1011, a switching signal for setting 240 Dpi is transmitted as the resolution switching signal 116, and the printing mechanism 105 is set to perform a printing operation at a printing resolution of 240 Dpi. Then, in step 1012, the flow jumps to the main routine of the main program shown in FIG.

ステツプ1005で、プログラムモードが‘L'の場合、カ
ートリツジプログラムAの実行の要求を表わすので、ス
テツプ1011へ進み、まずカートリツジコネクタ1501に装
置されたプログラムカートリツジのカートリツジ識別領
域251のカートリツジIDコード303をチエツクする。カー
トリツジIDカード303が‘PL'の場合はこのプログラムカ
ートリツジがプログラムカートリツジ109用の制御プロ
グラムを有することを表わし、また、カートリツジIDコ
ード303が‘PB'の場合、このプログラムカートリツジが
プログラムカートリツジ109、110兼用の制御プログラム
を有することを表わす。従って、カートリツジIDコード
303が‘PL'、‘PB'以外のものの場合、カートリツジプ
ログラムAへの移行が不適であるので、移行を中止し、
ステツプ1006へ進んで本体プログラムを続行する。カー
トリツジIDコード303が、‘PL'、‘PB'の場合、現在装
着されているプログラムカートリツジ上のカートリツジ
プログラムが利用可であることを示すので、次にステツ
プ1012へ進み、もう一つのチエツク事項である製品適合
フラグ253のチエツクを行なう。本レーザービームプリ
ンターに定義されている製品モデルに対応するbitフラ
グが製品適合フラグ253中に立っているか否かをチエツ
クし、立っていれば、現在装着されているプログラムカ
ートリツジ109上のカートリツジプログラムAが本レー
ザビームプリンターに適用可能であるとして、ステツプ
1013へ進み、カートリツジ領域802上の番地200000+α
すなわち、カートリツジプログラムスタートアドレス
格納領域254へ飛び、その内容、α番地へのジヤンプ
命令に従い第13図に示すカートリツジプログラムのスタ
ート処理プログラム1300に進む。
If the program mode is "L" at step 1005, this indicates a request to execute the cartridge program A, so the process proceeds to step 1011. First, the cartridge ID in the cartridge identification area 251 of the program cartridge installed in the cartridge connector 1501 is set. Check code 303. When the cartridge ID card 303 is 'PL', it indicates that this program cartridge has a control program for the program cartridge 109. When the cartridge ID code 303 is 'PB', this program cartridge is a program cartridge. This means that a control program for both the trigs 109 and 110 is provided. Therefore, the cartridge ID code
If 303 is other than 'PL' or 'PB', the transfer to cartridge program A is inappropriate, so the transfer is stopped,
Proceed to step 1006 to continue the main program. If the cartridge ID code 303 is 'PL' or 'PB', it indicates that the cartridge program on the currently installed program cartridge is available. Next, go to step 1012, where another check is performed. The check of the product conformity flag 253, which is a matter, is performed. Check whether the bit flag corresponding to the product model defined in this laser beam printer is standing in the product conformance flag 253, and if it is standing, check the cartridge on the currently installed program cartridge 109. Assuming that Program A is applicable to this laser beam printer,
Proceed to 1013, address 200000 + α on cartridge area 802
0 That is, jumps to the car Toritsuji program start address storage area 254, the process proceeds to the start process program 1300 of the car Toritsuji program shown in Figure 13 in accordance with the contents, jump instructions to alpha 1 address.

ステツプ1012で、製品適合フラグ253の対応bitが立っ
ていない場合、このカートリツジプログラムAが本レー
ザビームプリンターに適用不可能を示すので、カートリ
ツジプログラムAへの移行を中断して、ステツプ1006〜
1012の本体プログラムの続行へ進む。
If the corresponding bit of the product conformance flag 253 is not set in step 1012, this indicates that the cartridge program A cannot be applied to the present laser beam printer. Therefore, the transition to the cartridge program A is interrupted, and steps 1006 to 1006 are executed.
Proceed to continue the main program of 1012.

ステツプ1005で、プログラムモードが‘R'の場合、カ
ートリツジプログラムBの実行を表わすので、ステツプ
1011〜1013のカートリツジプログラムAと場合と同様
に、カートリツジコネクタ1502に装着されているプログ
ラムカートリツジについて、ステツプ1014でのカートリ
ツジIDコード303のチエツク、ステツプ1015での製品適
合フラグ253のチエツクを経て、ステツプ1016へ進み、
カートリツジ110用の領域803上の番地400000+αへ飛
び、カートリツジプログラムBへCPU101の制御が渡され
る。
If the program mode is "R" in step 1005, the execution of the cartridge program B is indicated.
As in the case of the cartridge program A of 1011 to 1013, for the program cartridge attached to the cartridge connector 1502, check the cartridge ID code 303 in step 1014 and check the product compatibility flag 253 in step 1015. Then go to step 1016,
Jump to the address 400000 + alpha 0 in the area 803 for Katoritsuji 110, control of the CPU101 is passed to the car Toritsuji program B.

第11図は、第10図の本体プログラムスタート処理1000
又は後述の第12図の本体プログラム再スタート処理1200
から飛んでくる本体プログラムのメインルーチン1100の
フローチヤートである。
FIG. 11 shows the main program start processing 1000 of FIG.
Or, the main body program restart processing 1200 shown in FIG.
This is a flowchart of the main routine 1100 of the main program flying from the main program.

まず、ステツプ1101でプログラムモード切替スイツチ
902、903、904のいずれかが押されたかをチエツクす
る。どれも押されていなければ、ステツプ1101〜1108の
処理を繰返し続行する。まず、ステツプ1102で受信バツ
フアにデータがあるか否かをチエツクし、ホストコンピ
ユーターからの入力データが受信バツフアにセツトされ
るまで、ステツプ1101のスイツチチエツクを行ないなが
ら待つ。受信バツフアにデータが存在する場合、ステツ
プ1103へ進みまず、受信バツフアからデータを取り出
し、データ解析を行なう。ここでコマンドか文字コード
かが見分けられ、フオント選択コマンドの場合は、指定
値を選択フオント領域512へ、コピー枚数指定コマンド
の場合は指定値をコピー枚数領域513へ記憶する。文字
コードの場合、ステツプ1104に進み選択フオント領域51
2に指定されている識別コードから、対応するフオント
領域214又は265を選び出し、対応する文字ドツトパター
ンをページバツフア517上に展開し、同時にデータフラ
グ515をONにしてページバツフア517上に印刷データがあ
ることを示す。そしてステツプ1105へ進み、1ページ分
のデータの解析が終了するまで、ステツプ1101〜1105を
繰り返えさせる。1ページ分のデータ解析が終了する
と、ステツプ1106へ進み、ページバツフア517上の画像
データを画像信号発生器113に送って、印刷機構部115
に、印刷を行なわせる。そしてステツプ1107で、コピー
枚数領域513で指定されているコピー枚数分1106〜1107
を繰返えさせる。指定枚数分の印刷が終了すると、ステ
ツプ1108へ進みデータフラグ515をOFFにしてページバツ
フア517上に印刷すべきデータがないことを示し、ステ
ツプ1101へ戻る。
First, in step 1101, the program mode switching switch
Check if any of 902, 903, or 904 was pressed. If none has been pressed, the processing of steps 1101-1108 is repeated and continued. First, in step 1102, it is checked whether there is data in the reception buffer, and the process waits until the input data from the host computer is set in the reception buffer, while performing the switching in step 1101. If there is data in the reception buffer, the process proceeds to step 1103, where the data is extracted from the reception buffer and analyzed. Here, the command or the character code is discriminated. In the case of the font selection command, the specified value is stored in the selection font area 512, and in the case of the copy number specification command, the specified value is stored in the copy number area 513. If it is a character code, proceed to step 1104 to select the font area 51.
The corresponding font area 214 or 265 is selected from the identification code specified in 2, and the corresponding character dot pattern is developed on the page buffer 517, and at the same time, the data flag 515 is turned on and print data exists on the page buffer 517. Is shown. Then, the process proceeds to step 1105, and steps 1101-1105 are repeated until the analysis of the data of one page is completed. When the data analysis for one page is completed, the process proceeds to step 1106, where the image data on the page buffer 517 is sent to the image signal generator 113, and the printing mechanism 115
To print. Then, in step 1107, the number of copies 1106 to 1107 corresponding to the number of copies specified in the number of copies area 513.
Is repeated. When printing of the specified number of sheets is completed, the flow advances to step 1108 to turn off the data flag 515 to indicate that there is no data to be printed on the page buffer 517, and the flow returns to step 1101.

ステツプ1101で、プログラムモード切替スイツチ90
2、903、904のいずれかが押されていた場合、ステツプ1
109以下のプログラム切替処理へ進む。
At step 1101, the program mode switch 90
If any of 2, 903 or 904 is pressed, step 1
Proceed to the program switching processing of 109 and below.

まず、ステツプ1109で、Busy信号S2をONにしてホスト
コンピユーター102にデータ送信停止の要求を出し、こ
れ以上のホストコンピユーター102からデータが送られ
てこないようにする。次にステツプ1110でデータフラグ
515をチエツクする。
First, in step 1109, the Busy signal S2 is turned ON to request the host computer 102 to stop data transmission, so that no more data is sent from the host computer 102. Next, at step 1110, the data flag
Check 515.

データフラグ515がONの場合、ページバツフア517上に
印刷データが残っているので、プログラム切替不可とし
てステツプ1120で状態表示器901にエラー表示を出し、
ステツプ1121でBusy信号S2を元に戻してステツプ1101へ
戻る。
If the data flag 515 is ON, since print data remains on the page buffer 517, it is determined that the program cannot be switched, and an error is displayed on the status display 901 in step 1120.
At step 1121, the Busy signal S2 is returned to the original state, and the process returns to step 1101.

データフラグ515がOFFならばステツプ1111へ進みどの
プログラムモード切替スイツチが押されたかをチエツク
する。「MAIN」スイツチ902が押された場合、現在、本
体プログラムが実行中なので、このスイツチ押下は無効
としてステツプ1120でのエラー表示、ステツプ1121での
Busy信号S2復帰を経由してステツプ1101へ戻る。「L」
スイツチ903が押された場合、ステツプ1112へ進み、カ
ートリツジプログラムAへの移行手続きにはいる。
If the data flag 515 is OFF, the flow advances to step 1111 to check which program mode switching switch has been pressed. If the “MAIN” switch 902 is pressed, the main unit program is currently being executed, so pressing this switch is invalidated, an error display at step 1120, and an error display at step 1121 are performed.
The process returns to step 1101 via the Busy signal S2 return. "L"
If the switch 903 is pressed, the process proceeds to step 1112, and the procedure for shifting to the cartridge program A is started.

前述のステツプ1011、1012と同様に、ステツプ1112で
カートリツジコネクタ1501に装着されているプログラム
カートリツジのカートリツジIDコード303をチエツク
し、ステツプ1113で製品適合フラグ253チエツクし、問
題なければ、ステツプ1114へ進み、動作モードテーブル
511及び受信バツフア516の内容を本体保存領域503へコ
ピーし、記憶させる。そしてステツプ1115で200000+α
番地経由で始まるカートリツジプログラムAへ、CPU1
01の制御を移す。ステツプ1112、1113でチエツクをパス
しなかった場合ステツプ1120で状態表示器901にエラー
が表示され、ステツプ1121で、Busy信号S2が戻されステ
ツプ1101へ戻る。
Similarly to the above steps 1011 and 1012, the cartridge ID code 303 of the program cartridge attached to the cartridge connector 1501 is checked at step 1112, and the product conformance flag 253 is checked at step 1113. Go to the operation mode table
The contents of the reception buffer 511 and the reception buffer 516 are copied and stored in the main body storage area 503. Then, in step 1115, 200,000 + α
To cartridge program A starting via address 0 , CPU1
Transfer control of 01. If the check is not passed in steps 1112 and 1113, an error is displayed on the status display 901 in step 1120, and in step 1121, the Busy signal S2 is returned and the process returns to step 1101.

ステツプ1111で「R」スイツチ904が押されていた場
合、ステツプ1116以下のカートリツジプログラムBへの
移行手続きにはいる。これはステツプ1112〜1115のカー
トリツジプログラムAと同様の処理をカートリツジコネ
クタ1502に装着されているプログラムカートリツジに対
して行なうもので、ステツプ1116でのカートリツジIDコ
ード303のチエツク、ステツプ1117の製品適合フラグ253
のチエツク、ステツプ1118の本体保存領域への動作モー
ドテーブル511及び受信バツフア516の保存を経て、ステ
ツプ1119で400000+α番地を経由して始まるカートリ
ツジプログラムBへCPU101の制御を移す。
If the “R” switch 904 has been pressed in step 1111, the procedure for shifting to the cartridge program B starting from step 1116 is entered. This performs the same processing as the cartridge program A in steps 1112-1115 for the program cartridge attached to the cartridge connector 1502, and checks the cartridge ID code 303 in step 1116 and the product in step 1117. Conformity flag 253
Of a checking, through a storage operation mode table 511 and the receiving buffer 516 to the main body storage area of the step 1118, in step 1119 400000 + alpha 0 to car Toritsuji program B that starts via address transfer control of the CPU 101.

第12図は、カートリツジプログラムから本体プログラ
ムへCPU101の制御が移される際の本体プログラムの再ス
タート処理プログラム1200の流れを表わすフローチヤー
トである。
FIG. 12 is a flowchart showing the flow of the restart processing program 1200 of the main program when the control of the CPU 101 is transferred from the cartridge program to the main program.

再スタートは、カートリツジプログラムから本体プロ
グラムb0番地へのジヤンプから始まる。まず、ステツプ
1201でb0の領域、すなわち本体プログラム再スタートア
ドレス格納領域203を参照して、再スタート処理の開始
するb1番地へジヤンプし、ステツプ1202以下の再スター
ト処理を実行する。
Re-start, starting from the jump from the car Toritsuji program to the main program b 0 address. First, the steps
Region of b 0 in 1201, i.e. with reference to the body program re-start address storage area 203, and jumps to b 1 address for starting the restart process, executes the re-start process of step 1202 follows.

ステツプ1202で、現在、カートリツジプログラム用の
割込ベクトルテーブル255がコピーされている割込処理
ジヤンプテーブル501を本体割込ベクトルテーブル204
で、コピーし直す。次に、スタート1203でカートリツジ
プログラム用に使用されていたフリー領域510を本体プ
ログラム用に初期化し直し、ステツプ1204で前回本体プ
ログラムからカートリツジプログラムへ切替えた際、保
存した情報(ステツプ1114、1118)を本体保存領域503
からフリー領域510の所定の領域へコピーする。
In step 1202, the interrupt processing jump table 501 into which the interrupt vector table 255 for the cartridge program is currently copied is replaced with the main body interrupt vector table 204.
Then, copy again. Next, at start 1203, the free area 510 used for the cartridge program is re-initialized for the main body program, and at step 1204, the information saved when the previous program was switched from the main body program to the cartridge program (steps 1114 and 1118). ) The body storage area 503
Is copied to a predetermined area of the free area 510.

次に、ステツプ1205でBusy信号S2をOFFにして、ホス
トコンピユータ102へデータ送信可能を知らせ、ステツ
プ1206で、状態表示器501にプログラムID202を表示し、
本体プログラムが再び動き始めたことを知らせる。そし
て、ステツプ1207で、NVRAM書込みルーチンを用いてプ
ログラムモードとして‘M'(本体プログラム実行)を、
NVRAM106のプログラムモード領域701へ保存し、ステツ
プ1208で、ステツプ1010と同様、画像信号発生器113を2
40Dpi用に切替え、ステツプ1209でステツプ1011同様、
印刷機構部115を240Dpiに設定し、ステツプ1210で本体
メインルーチン1100へ進む。第13図、第14図はプログラ
ムカートリツジ上のカートリツジプログラムの一例を示
すフローチヤートである。
Next, at step 1205, the Busy signal S2 is turned off to notify the host computer 102 that data transmission is possible, and at step 1206, the program ID 202 is displayed on the status display unit 501.
Notifies that the main program has started running again. In step 1207, 'M' (body program execution) is set as the program mode using the NVRAM write routine,
In step 1208, the image signal generator 113 is stored in the program mode area 701 of the NVRAM 106 in the same manner as in step 1010.
Switch to 40Dpi, at step 1209, like step 1011,
The printing mechanism 115 is set to 240 dpi, and the process proceeds to the main routine 1100 in step 1210. FIG. 13 and FIG. 14 are flowcharts showing an example of a cartridge program on the program cartridge.

第13図はカートリツジプログラムのスタート処理プロ
グラム1300のフローチヤートであり、ステツプ1301で本
体プログラム又は他方のカートリツジプログラムからカ
ートリツジ領域802又は803の先頭からの相対アドレスα
番地へジヤンプ(ステツプ1115、1119、1411)したプ
ログラムの制御はα番地のカートリツジスタートアド
レス格納領域254を参照してスタート処理の開始するα
番地へジヤンプし、ステツプ1302以下のスタート処理
を実行する。ステツプ1302で、本体側のプログラムID20
2をチエツクし、所定のプログラムIDであれば本カート
リツジプログラムは、本プログラムと適合するものとし
て、ステツプ1303へ進み、メモリ容量のチエツクを行な
う。所定のカートリツジプログラムでは、増設RAMカー
ド107が必須の構成となるので、ここで、チエツクをう
けることになる。メモリ容量に問題がなければ、ステツ
プ1304でカートリツジプログラム用割込ベクトルテーブ
ル255をRAM105上の割込処理ジヤンプテーブル501へコピ
ーする。次に、ステツプ1305でフリー領域510をカート
リツジプログラム用に初期化する。次にステツプ1306
で、カートリツジ保存領域(カートリツジプログラムA
の場合は、カートリツジ109用の保存領域504、カートリ
ツジプログラムBの場合はカートリツジ110用の保存領
域505)の保存ID601をチエツクする。この保存ID601が
空(初期化状態のまま)ならば、ステツプ1310へ飛ぶ。
ステツプ1306保存ID601が、現在実行中のカートリツジ
プログラムのカートリツジID番号304と一致しているな
らば、これは保存領域の内容が、前回このカートリツジ
プログラムから本体プログラムへ移行する直前に保存さ
れたカートリツジプログラムの情報を表わすので、ステ
ツプ1307へ進み、カートリツジ保存領域504又は505の内
容を、フリー領域510の所定の場所に戻す。ステツプ130
6で、保存ID601とカートリツジID番号304が一致しない
場合、これはプログラムカートリツジが別のものに交換
され前回、カートリツジ保存領域504又は505に情報が保
存されたときとは、別のカートリツジプログラムが実行
していることを示すので、ステツプ1308で、状態表示器
901へ警告のエラー表示を行ない、ステツプ1309で操作
パネル112上の任意のスイツチ902、903、904が押される
まで、待って、ステツプ1310へ飛ぶ。
FIG. 13 is a flowchart of the cartridge program start processing program 1300. In step 1301, the relative address α from the head of the cartridge area 802 or 803 is read from the main program or the other cartridge program.
The control of the program jumped to address 0 (steps 1115, 1119, 1411) is performed by referring to the cartridge start address storage area 254 at address 0 .
The process jumps to address 1 and executes the start processing in step 1302 and subsequent steps. At step 1302, the program ID 20
2 is checked, and if it is a predetermined program ID, the cartridge program is determined to be compatible with the present program, and the flow advances to step 1303 to check the memory capacity. In the predetermined cartridge program, the additional RAM card 107 is an essential component, so that a check is performed here. If there is no problem in the memory capacity, in step 1304, the cartridge program interrupt vector table 255 is copied to the interrupt processing jump table 501 on the RAM 105. Next, in step 1305, the free area 510 is initialized for the cartridge program. Next step 1306
In the cartridge storage area (cartridge program A
In this case, the storage ID 601 of the storage area 504 for the cartridge 109 and the storage area 505 for the cartridge 110 in the case of the cartridge program B are checked. If the save ID 601 is empty (remains in the initialized state), the process jumps to step 1310.
Step 1306 If the save ID 601 matches the cartridge ID number 304 of the currently executing cartridge program, this means that the contents of the save area were saved immediately before the previous transition from the cartridge program to the main program. Since the information of the cartridge program is represented, the flow advances to step 1307 to return the contents of the cartridge storage area 504 or 505 to a predetermined location in the free area 510. Step 130
In step 6, if the storage ID 601 does not match the cartridge ID number 304, this means that the program cartridge has been replaced with another one, and a different cartridge program than when the information was stored in the cartridge storage area 504 or 505 last time. Is running, so in step 1308, the status indicator
A warning error is displayed at 901 and the process waits until any switch 902, 903, 904 on the operation panel 112 is pressed at step 1309, and then jumps to step 1310.

次ステツプ1310でBusy信号S2をOFFにしてホストコン
ピユーター102へデータ送信可能を知らせ、ステツプ131
1で状態表示器901にカートリツジID番号304を表示し、
ステツプ1312で、NVRAM書込ルーチンを用いて、プログ
ラムモードとして‘L'(または‘R')をNORAM106のプロ
グラムモード領域701へ保存し、ステツプ1313で、画像
クロツク選択ポート807へ180Dpi選択を指定し、画像信
号発生器を180Dpi用に切替える。そして、ステツプ1314
で解像度切替信号116へ180Dpi切替信号を出し、印刷機
構部105の印刷解像度を180Dpiにする。ステツプ1315で
カートリツジプログラムのメインルーチン1400へ進む。
ステツプ1302、1303のチエツクで条件が合わなかった場
合、ステツプ1314へ進み、状態表示器901にエラー表示
を行ないステツプ1315で、操作パネル112上の任意のス
イツチ902、903、904が押されるのを待って、ステツプ1
316で本体プログラムのスタートα番地へジヤンプさ
せる。第14図はカートリツジプログラムのメインルーチ
ンの一例であり、ここでは説明上、カートリツジプログ
ラムAの場合のメインルーチン1400を示す。
At the next step 1310, the Busy signal S2 is turned off to notify the host computer 102 that data transmission is possible, and at step 131
1 displays the cartridge ID number 304 on the status display 901.
In step 1312, using the NVRAM write routine, 'L' (or 'R') is stored as the program mode in the program mode area 701 of the NORAM 106, and in step 1313, 180Dpi selection is specified to the image clock selection port 807. , Switch the image signal generator for 180Dpi. And step 1314
A 180Dpi switching signal is output to the resolution switching signal 116 to set the printing resolution of the printing mechanism unit 105 to 180Dpi. In step 1315, the process proceeds to the main routine 1400 of the cartridge program.
If the condition is not satisfied by the check in steps 1302 and 1303, the process proceeds to step 1314, an error is displayed on the status display 901 and in step 1315 any switch 902, 903, 904 on the operation panel 112 is depressed. Wait, step 1
At 316, jump to the start α 1 of the main program. FIG. 14 shows an example of the main routine of the cartridge program. Here, for the sake of explanation, the main routine 1400 for the cartridge program A is shown.

まず、ステツプ1401でプログラムモード切替スイツチ
902、903、904のいずれかが押されたかをチエツクす
る。どれも押されていなければ、ステツプ1401〜1406の
処理を繰返し続行する。まず、ステツプ1402で受信バツ
フアにデータがあるか否かをチエツクし、ホストコンピ
ユーターからの入力データが受信バツフアにセツトされ
るまで、ステツプ1401のスイツチチエツクを行ないなが
ら待つ。受信バツフアにデータが存在する場合、ステツ
プ1403へ進み、まず、受診バツフアから、データを取り
出し、本体プログラムとは別のコマンド保存に従ったデ
ータ解析を行なう。ここで、コマンドか文字コードかが
見分けられ、フオント選択コマンドの場合は、指定値を
選択フオント領域512へ、コピー枚数指定コマンドの場
合は指定値をコピー枚数領域513へ記憶する。文字コー
ドの場合、選択フオント領域512に指定されている識別
コードから対応するフオント領域258を選び出し、対応
する対ドツトパターンをページバツフア517上に展開す
る。そして、ステツプ1404へ進み、1ページ分のデータ
の解析が終了するまで、ステツプ1401〜1404を繰り返さ
せる。1ページ分のデータ解析が終了すると、ステツプ
1405へ進み、ページバツフア517上の画像データを画像
信号発生器113に送って、印刷機構部115に、印刷を行な
わせる。そしてステツプ1406でコピー枚数領域513で指
定されているコピー枚数分ステツプ1405〜1406を繰返さ
せる。指定枚数分の印刷が終了するとステツプ1401へ戻
る。
First, in step 1401, the program mode switching switch
Check if any of 902, 903, or 904 was pressed. If none has been pressed, the processing of steps 1401-1406 is repeated and continued. First, at step 1402, it is checked whether or not there is data in the reception buffer, and the process waits until the input data from the host computer is set in the reception buffer while performing the switching of step 1401. If there is data in the reception buffer, the process proceeds to step 1403, where the data is first extracted from the reception buffer, and data analysis is performed according to command storage different from the main program. Here, the command or the character code is discriminated. In the case of the font selection command, the designated value is stored in the selection font area 512, and in the case of the copy number designation command, the designated value is stored in the copy number area 513. In the case of a character code, the corresponding font area 258 is selected from the identification code specified in the selection font area 512, and the corresponding dot pattern is developed on the page buffer 517. Then, the process proceeds to step 1404, and steps 1401-1404 are repeated until the analysis of the data of one page is completed. When data analysis for one page is completed,
Proceeding to 1405, the image data on the page buffer 517 is sent to the image signal generator 113, and the printing mechanism unit 115 performs printing. In step 1406, steps 1405 to 1406 are repeated for the number of copies specified in the number-of-copies area 513. When the printing of the specified number of sheets is completed, the process returns to step 1401.

ステツプ1401でプログラムモード切替スイツチ902、9
03、904のいずれかが押されていた場合、ステツプ1407
以下のプログラム切替処理へ進む。
At step 1401, the program mode switching switches 902 and 9
If either 03 or 904 is pressed, step 1407
Proceed to the following program switching process.

ステツプ1407で、どのプログラムモード切替スイツチ
が押されたかをチエツクし、「L」スイツチ903が押さ
れた場合、現在、実行中のカートリツジプログラム109
を切替要求しているので、これは無効として、ステツプ
1401へ戻る。「R」スイツチ904が押されていた場合、
ステツプ1408以下のカートリツジプログラム1への移行
手続きにはいる。本体プログラムの前述したステツプ11
01と同様にステツプ1408でカートリツジIDコード303を
チエツクし、カートリツジコネクタ1502に有効なカート
リツジプログラムがあるか否かをチエツクする。有効な
カートリツジプログラムの存在が確認されれば、ステツ
プ1409へ進み、カートリツジ109用の保存領域504の保存
ID領域601上に、現存実行しているカートリツジプログ
ラムAのカートリツジID番号304を記録し、ステツプ141
0でフリー領域510上の動作モードテーブル511及び受信
バツフア516の内容をカートリツジ109保存領域504にコ
ピーする。そして、スイツチ1411へ進み400000+α
地を経由して始まるカートリツジプログラムBへCPU101
の制御を移す。ステツプ1408で有効なカートリツジプロ
グラムの存在が確認できなかった場合ステツプ1401へ戻
る。
At step 1407, it is checked which program mode switching switch has been pressed, and if the "L" switch 903 has been pressed, the cartridge program 109 currently being executed is checked.
This is invalid, and the step
Return to 1401. If the "R" switch 904 was pressed,
The procedure for shifting to the cartridge program 1 following step 1408 is entered. The above-mentioned step 11 of the main program
As in step 01, the cartridge ID code 303 is checked in step 1408, and it is checked whether the cartridge connector 1502 has a valid cartridge program. If a valid cartridge program exists, proceed to step 1409 to save the storage area 504 for the cartridge 109.
In the ID area 601, the cartridge ID number 304 of the currently executing cartridge program A is recorded.
At 0, the contents of the operation mode table 511 on the free area 510 and the contents of the reception buffer 516 are copied to the cartridge 109 storage area 504. Then, CPU101 to car Toritsuji program B that begins via the 400000 + α 0 address proceed to switch 1411
Transfer control. If it is not confirmed in step 1408 that a valid cartridge program exists, the process returns to step 1401.

ステツプ1407で、「MAIN」スイツチ902が押された場
合、ステツプ1412、1413へ進み前述のステツプ1409、14
10と同様に、カートリツジID番号304及びフリー領域510
上の必要情報をカートリツジ保存領域504にコピーし、
ステツプ1414でb0番地経由で始まる本体プログラム再ス
タート処理1200へ飛ぶ。
If the "MAIN" switch 902 is pressed in step 1407, the process proceeds to steps 1412 and 1413, and the aforementioned steps 1409 and 1413 are performed.
As with 10, cartridge ID number 304 and free area 510
Copy the above required information to the cartridge storage area 504,
Step 1414 by flying to the main body program re-start process 1200 beginning with via b 0 address.

以上説明してきたように、本体プログラム及びカート
リツジプログラムのうち、制御権を得たものが、プログ
ラムの最初で、自分に適した印刷解像度になるよう画像
信号発生器113及び印刷機構115の解像度を切替えること
でそれぞれの制御プログラムが独自の印刷解像度で、印
刷処理を行なえるようにしている。
As described above, of the main program and the cartridge program, the one that has obtained the control right sets the resolution of the image signal generator 113 and the printing mechanism 115 at the beginning of the program so that the print resolution suitable for the user is obtained. By switching, each control program can perform print processing with its own print resolution.

上記実施例では、3種類の制御プログラムにおいて、
各制御プログラムに対応して、一意的に印刷解像度を設
定するようにしたが、各制御プログラムにおいて複数の
印刷解像度のうちから1つを選択的に設定することがで
きるようにしてもよい。この場合には、例えばホストコ
ンピユーターからのコマンドによって解像度の指定が可
能なコマンド体系をエミユレートすることができる。
In the above embodiment, in three types of control programs,
Although the print resolution is uniquely set in accordance with each control program, one of a plurality of print resolutions may be selectively set in each control program. In this case, for example, it is possible to emulate a command system capable of designating the resolution by a command from the host computer.

また上述した実施例では、第2、第3の制御手段とし
て、プログラムカートリツジ109、プログラムカートリ
ツジ110にそれぞれ独立した制御プログラムを格納でき
る構造にしてしたが、本発明は、これに限らず、本体側
に第2、第3の制御プログラムを始めから内蔵の(第1
の)制御プログラムと共に、内蔵させてもよい。第2、
第3制御プログラムの利用頻度が高い場合、カートリツ
ジの差替えが不要となり利便性が高まる。
Further, in the above-described embodiment, as the second and third control means, the program cartridge 109 and the program cartridge 110 are configured to be able to store independent control programs. However, the present invention is not limited to this. The second and third control programs are built into the main unit from the beginning (first
) May be incorporated together with the control program. Second,
When the use frequency of the third control program is high, it is not necessary to replace the cartridge, and the convenience is improved.

また、本実施例ではカートリツジプログラム側も、本
体プログラム同様、直接画像信号発生器113や印刷機構
部115へ指示を出し、解像度切替を実施していたが、NVR
AM書込みルーチン212がNVRAM読出しルーチン213と同様
に、外部参照ルーチンとして解像度ルーチンを本体側に
用意し、カートリツジプログラムは、本ルーチンを呼ぶ
ことによって間接的に解像切替えを行なってもよい。解
像度切替えの手続きが複雑化する場合に、カートリツジ
プログラムを作成上で、その制御が簡単になると共に、
種々のカートリツジに対して、解像度切替手段が統一的
と定義され、プログラムミスの防止につながる。
Further, in this embodiment, the cartridge program also issues an instruction to the image signal generator 113 and the printing mechanism unit 115 directly to switch the resolution similarly to the main body program.
Similar to the NVRAM read routine 213, the AM write routine 212 prepares a resolution routine on the main body side as an external reference routine, and the cartridge program may indirectly perform resolution switching by calling this routine. When the resolution switching procedure is complicated, the control of creating a cartridge program is simplified,
The resolution switching means is defined as unified for various cartridges, which leads to prevention of program errors.

また、本体プログラムとカートリツジプログラム上の
印刷処理を解像度を除き、同様にしておき、本体プログ
ラムでは同じデータの画像が少し処理時間を要する高解
像度で、カートリツジプログラムでは同じデータの画像
か、処理時間は早いが、低解像度で、印刷することがで
きる。これにより、複雑な印刷データに対して、簡略印
刷と高品質印刷の使い分けを目的に応じて、1つの印刷
装置で制御プログラムを切替えることによって実現でき
る。
Also, the print processing on the main program and the cartridge program are the same except for the resolution, so that the same data image is a high-resolution image that requires a little processing time in the main program, and the same data image is used in the cartridge program. Although the time is short, printing can be performed at a low resolution. This makes it possible to switch between control programs with a single printing apparatus according to the purpose of selectively using simple printing and high-quality printing for complex print data.

また、本実施例では、解像度切替えを180Dpi,240Dpi,
400Dpiの3種に限定したが、これに限らず、画像信号発
生器の画像クロツクを複数の水晶発振器と分周回路の組
合せで小刻みに設定させ、種々のカートリツジプログラ
ムで、種々の解像度を選択させてもよい。これにより、
種々の解像度の印刷装置に対して、カートリツジプログ
ラムでのエミユレートの適応性が高まる。
In the present embodiment, the resolution switching is performed at 180 Dpi, 240 Dpi,
It is limited to three types of 400 Dpi, but not limited to this, the image clock of the image signal generator is set in small increments by a combination of multiple crystal oscillators and frequency dividers, and various resolutions are selected with various cartridge programs May be. This allows
The applicability of the emulate in the cartridge program is increased for printing devices of various resolutions.

以上説明したように、切替え可能な複数の印刷装置の
制御手段に対し、それぞれ独自に印刷装置の解像度切替
えを可能にすることにより次のような効果が得られる。
As described above, the following effects can be obtained by individually enabling the resolution switching of the printing apparatus for the control means of the plurality of switchable printing apparatuses.

・種々の印刷装置にエミユレートにおいて、対象印刷装
置にマツチした解像度を選択し、同様の印刷効果が得ら
れる。一方、本来の解像度との両立も可能となる。
In the case of emulating various printing apparatuses, the same printing effect can be obtained by selecting a resolution that matches the target printing apparatus. On the other hand, compatibility with the original resolution is also possible.

・高解像・高コストと低解像・低コストの相反する機能
を目的に応じ1台の装置で、選択的に利用することが可
能となる。
-Conflicting functions of high resolution / high cost and low resolution / low cost can be selectively used by one device according to the purpose.

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

第1図は本発明の一実施例のレーザビームプリンターの
制御部100のブロツク図、 第2図はROM104及びプログラムカートリツジ109、110に
収められる制御プログラムの格納形式を示す図、 第3図は第2図上のカートリツジ識別領域251の説明
図、 第4図は第2図の製品適合フラグ253の説明図、 第5図はRAM105のデータ構造図、 第6図は第5図の保存領域504の説明図、 第7図はNVRAM106のデータ構造図、 第8図はCPU101のアドレス空間を示す図、 第9図は操作パネル112の配置図、 第10図〜第12図は本体プログラムのフローチヤート、 第13図は及び第14図はカートリツジプログラムのフロー
チヤート、 第15図は本実施例のレーザビームプリンターの外観図、 第16図は本実施例のレーザビームプリンターの断面図で
ある。 100は制御部、 101はCPU、 102はホストコンピユーター、 103は入力インターフエース回路、 104はROM、 105はRAM、 106はNVRAM、 107は増設RAMカード、 108はカートリツジインタフエース回路、 109,110はプログラムカートリツジ、 111はパネルインタフエース回路、 112は操作パネル、 113は画像発生器、 114は出力インターフエース回路、 115は印刷機構部、 202はプログラムID、 203は本体プログラム再スタートアドレス格納領域、 251はカートリツジ識別領域である。
FIG. 1 is a block diagram of a control unit 100 of a laser beam printer according to an embodiment of the present invention, FIG. 2 is a diagram showing a storage format of a control program stored in a ROM 104 and program cartridges 109 and 110, and FIG. FIG. 4 is an explanatory view of the cartridge identification area 251 on FIG. 2, FIG. 4 is an explanatory view of the product conformity flag 253 of FIG. 2, FIG. 5 is a data structure view of the RAM 105, and FIG. 7 is a data structure diagram of the NVRAM 106, FIG. 8 is a diagram showing an address space of the CPU 101, FIG. 9 is a layout diagram of the operation panel 112, and FIGS. 10 to 12 are flowcharts of the main program. 13 and 14 are flowcharts of the cartridge program, FIG. 15 is an external view of the laser beam printer of the present embodiment, and FIG. 16 is a sectional view of the laser beam printer of the present embodiment. 100 is a control unit, 101 is a CPU, 102 is a host computer, 103 is an input interface circuit, 104 is a ROM, 105 is a RAM, 106 is an NVRAM, 107 is an additional RAM card, 108 is a cartridge interface circuit, 109 and 110 are programs Cartridge, 111 is a panel interface circuit, 112 is an operation panel, 113 is an image generator, 114 is an output interface circuit, 115 is a printing mechanism, 202 is a program ID, 203 is a main program restart address storage area, and 251 Is a cartridge identification area.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭61−195446(JP,A) 特開 昭61−277256(JP,A) 特開 昭61−277255(JP,A) 特開 昭61−277262(JP,A) 特開 昭59−57337(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-61-195446 (JP, A) JP-A-61-277256 (JP, A) JP-A-61-277255 (JP, A) JP-A-61-277255 277262 (JP, A) JP-A-59-57337 (JP, A)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の解像度で印刷可能な印刷機構部を制
御する印刷制御装置であって、 各々が異なるコマンド体系に対応し、ホストコンピュー
タからのコマンドに基づいて前記印刷機構部の動作を制
御するための複数種類の制御手段と、 前記複数種類の制御手段のうちの1つを選択する選択手
段とを有し、 前記複数種類の制御手段の各々が複数の解像度を切換え
て設定する設定手段を備え、 前記選択手段によって選択された制御手段に備えられる
前記設定手段が前記印刷機構部での印刷処理における解
像度を設定することを特徴とする印刷制御装置。
1. A printing control device for controlling a printing mechanism capable of printing at a plurality of resolutions, each corresponding to a different command system, and controlling the operation of the printing mechanism based on a command from a host computer. Setting means for selecting one of the plurality of types of control means, and each of the plurality of types of control means switching and setting a plurality of resolutions. A print control device, wherein the setting means provided in the control means selected by the selection means sets a resolution in a printing process in the printing mechanism unit.
【請求項2】前記複数の制御手段のうちの少なくとも1
つは、着脱可能に備えれることを特徴とする請求項第1
項記載の印刷制御装置。
2. At least one of the plurality of control means.
The first is detachably provided.
The print control device according to the item.
【請求項3】各制御手段は、それぞれ異なる種類の制御
プログラムを有することを特徴とする請求項第1項又は
第2項記載の印刷制御装置。
3. The printing control apparatus according to claim 1, wherein each control means has a different type of control program.
【請求項4】請求項第1項〜第3項のいずれかに記載の
印刷制御装置と、前記印刷機構部とを備えることを特徴
とする印刷装置。
4. A printing apparatus, comprising: the printing control device according to claim 1; and the printing mechanism.
JP02016809A 1990-01-25 1990-01-25 Printing device and print control device Expired - Fee Related JP3101288B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02016809A JP3101288B2 (en) 1990-01-25 1990-01-25 Printing device and print control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02016809A JP3101288B2 (en) 1990-01-25 1990-01-25 Printing device and print control device

Publications (2)

Publication Number Publication Date
JPH03219987A JPH03219987A (en) 1991-09-27
JP3101288B2 true JP3101288B2 (en) 2000-10-23

Family

ID=11926485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02016809A Expired - Fee Related JP3101288B2 (en) 1990-01-25 1990-01-25 Printing device and print control device

Country Status (1)

Country Link
JP (1) JP3101288B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014104703A (en) * 2012-11-29 2014-06-09 Seiko Epson Corp Printer, control method of the same, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5957337A (en) * 1982-06-04 1984-04-02 コンピユ−タ−ズ・インタ−ナシヨナル・インコ−ポレ−テツド Universal computer printer interface
JPS61277256A (en) * 1985-05-31 1986-12-08 Toshiba Corp Laser printer
JPS61277262A (en) * 1985-05-31 1986-12-08 Toshiba Corp Laser printer
JPS61277255A (en) * 1985-05-31 1986-12-08 Toshiba Corp Laser printer

Also Published As

Publication number Publication date
JPH03219987A (en) 1991-09-27

Similar Documents

Publication Publication Date Title
JP3402914B2 (en) Print control apparatus and method
JP3392057B2 (en) Print control method and apparatus
JP2997005B2 (en) Output device
US6760118B1 (en) Printing device control apparatus and method
JPS63256450A (en) Multi-color image forming apparatus
JP3639685B2 (en) Printing apparatus and printing control method
JP3101288B2 (en) Printing device and print control device
JPH04292964A (en) Printer
JP2958181B2 (en) Printing equipment
JP2002120444A (en) Imaging apparatus
JPH068534A (en) Printer
JP3181894B2 (en) Output device
JP3166156B2 (en) Printer control device
JP2962930B2 (en) Image forming apparatus and control program processing method in the apparatus
JPH10193748A (en) Method and system for processing information and recording medium
JP2003029946A (en) Printing system, printer and computer
JPH0926860A (en) Printer and data communication method therefor
JPH11219077A (en) Cartridge and image processor
JPH11110165A (en) Print system, print data generation device and method therefor, and printer
JP2664256B2 (en) Image forming device
JP2575227B2 (en) Printing equipment
JP3017355B2 (en) Printing equipment
JP2715433B2 (en) Printer
JP2891857B2 (en) Printing apparatus and printing method
JP2005096166A (en) Printing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070818

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080818

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080818

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090818

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees