JP3278174B2 - Printing apparatus and initialization method - Google Patents

Printing apparatus and initialization method

Info

Publication number
JP3278174B2
JP3278174B2 JP19034391A JP19034391A JP3278174B2 JP 3278174 B2 JP3278174 B2 JP 3278174B2 JP 19034391 A JP19034391 A JP 19034391A JP 19034391 A JP19034391 A JP 19034391A JP 3278174 B2 JP3278174 B2 JP 3278174B2
Authority
JP
Japan
Prior art keywords
drive system
initialization
printer
emulation
initialized
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
JP19034391A
Other languages
Japanese (ja)
Other versions
JPH0532015A (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 JP19034391A priority Critical patent/JP3278174B2/en
Priority to US07/921,701 priority patent/US5838886A/en
Publication of JPH0532015A publication Critical patent/JPH0532015A/en
Application granted granted Critical
Publication of JP3278174B2 publication Critical patent/JP3278174B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、印刷装置及び初期化方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus and an initialization method.

【0002】[0002]

【従来の技術】従来、印字装置に於てはキャリッジをホ
ームポジションへ移動する等のイニシャル処理を電源投
入時に行っていた。
2. Description of the Related Art Conventionally, in a printing apparatus, initial processing such as moving a carriage to a home position has been performed when a power supply is turned on.

【0003】[0003]

【発明が解決しようとしている課題】このため、印字装
置内蔵型の情報処理装置に於ては、印字装置を全く使用
しない場合でも、電源投入時に、印字装置をイニシャル
し、無駄が有った。
For this reason, in an information processing apparatus with a built-in printing apparatus, even when the printing apparatus is not used at all, the printing apparatus is initialized when the power is turned on, resulting in waste.

【0004】特に、バッテリー駆動のラップトップコン
ピュータに於ては、印字装置のイニシャル動作によりバ
ッテリーの寿命が短くなるといった大きな欠点が有っ
た。
[0004] In particular, a battery-operated laptop computer has a major drawback in that the initial operation of the printing apparatus shortens the life of the battery.

【0005】以上の点に鑑み、本発明の目的は、無駄な
初期化を防止し、プリンタ駆動系の初期化を効率よく行
なうことができる印刷装置及び初期化方法を提供するこ
とにある。
In view of the above, it is an object of the present invention to provide a printing apparatus and an initialization method that can prevent useless initialization and efficiently initialize a printer drive system.

【課題を解決するための手段】上記目的を達成するた
め、本発明の印刷装置は、初期化処理を行なう際に、プ
リンタ駆動系が初期化されていないことを示す情報を駆
動系初期化フラグにセットする手段と、印刷コマンドを
受信した際に、駆動系初期化フラグにプリンタ駆動系が
初期化されていることを示す情報がセットされているか
否かを判定する判定手段と、前記判定手段により駆動系
初期化フラグにプリンタ駆動系が初期化されていないこ
とを示す情報がセットされていると判定された場合、プ
リンタ駆動系の初期化を行い、駆動系初期化フラグにプ
リンタ駆動系が初期化されていることを示す情報をセッ
トし、受信した印刷コマンドを実行し、前記判定手段に
より駆動系初期化フラグにプリンタ駆動系が初期化され
ていることを示す情報がセットされていると判定された
場合、プリンタ駆動系の初期化を行なうことなく、受信
した印刷コマンドを実行する処理手段とを有することを
特徴とする。また、本発明の初期化方法は、初期化処理
を行なう際に、プリンタ駆動系が初期化されていないこ
とを示す情報を駆動系初期化フラグにセットするステッ
プと、印刷コマンドを受信した際に、駆動系初期化フラ
グにプリンタ駆動系が初期化されていることを示す情報
がセットされているか否かを判定する判定ステップと、
前記判定ステップにより駆動系初期化フラグにプリンタ
駆動系が初期化されていないことを示す情報がセットさ
れていると判定された場合、プリンタ駆動系の初期化を
行い、駆動系初期化フラグにプリンタ駆動系が初期化さ
れていることを示す情報をセットし、受信した印刷コマ
ンドを実行し、前記判定ステップにより駆動系初期化フ
ラグにプリンタ駆動系が初期化されていることを示す情
報がセットされていると判定された場合、プリンタ駆動
系の初期化を行なうことなく、受信した印刷コマンドを
実行する処理ステップとを有することを特徴とする。
In order to achieve the above object, a printing apparatus according to the present invention, when performing an initialization process, supplies information indicating that a printer drive system has not been initialized to a drive system initialization flag. Determining means for determining whether or not, upon receiving a print command, information indicating that the printer drive system has been initialized is set in a drive system initialization flag; and When it is determined that the information indicating that the printer drive system has not been initialized is set in the drive system initialization flag, the printer drive system is initialized, and the printer drive system is set in the drive system initialization flag. The information indicating that the printer drive system has been initialized is set, the received print command is executed, and the drive system initialization flag is set in the drive system initialization flag by the determination unit. There When it is determined to be set, without performing the initialization of the printer driving system, and having a processing means for executing a printing command received. Further, the initialization method of the present invention, when performing the initialization process, the step of setting information indicating that the printer drive system has not been initialized in the drive system initialization flag, when receiving a print command A determination step of determining whether or not information indicating that the printer drive system has been initialized is set in the drive system initialization flag;
If it is determined in the determining step that the information indicating that the printer drive system has not been initialized is set in the drive system initialization flag, the printer drive system is initialized, and the drive system initialization flag is set in the drive system initialization flag. The information indicating that the drive system is initialized is set, the received print command is executed, and the information indicating that the printer drive system is initialized is set in the drive system initialization flag in the determination step. And processing steps for executing the received print command without initializing the printer drive system when it is determined that the print command has been executed.

【0006】[0006]

【実施例】以下、添付図面に添って本発明に係る実施例
を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments according to the present invention will be described below in detail with reference to the accompanying drawings.

【0007】図1は本発明の情報処理装置としてのプリ
ンタ一体型のパーソナルコンピュータを示す斜視図で、
装置本体101、キーボード102、表示部103を備
える上カバー104、およびプリンタ2等の各部によっ
て構成される。上カバー104は、装置本体101に対
して、その後縁の両端に設けられたヒンジ104aを介
して回動可能に取り付けられている。これにより本装置
の使用時には、上カバー104は、その回動によって表
示部103が視易くなる位置まで開けられ、また、不使
用時は閉じられてカバーとして機能することができる。
表示部103の表示素子としては、表示部を薄く構成で
きることから液晶表示素子が用いられる。
FIG. 1 is a perspective view showing a printer-integrated personal computer as an information processing apparatus according to the present invention.
The main body 101 includes a keyboard 102, an upper cover 104 having a display unit 103, and the printer 2. The upper cover 104 is rotatably attached to the apparatus main body 101 via hinges 104a provided at both ends of the rear edge. Thus, when the present apparatus is used, the upper cover 104 can be opened to a position where the display unit 103 can be easily seen by its rotation, and can be closed when not in use to function as a cover.
As a display element of the display unit 103, a liquid crystal display element is used because the display unit can be thin.

【0008】インクジェット方式の記録ヘッドを用いた
プリンタユニット2は表示部103の前方に配置され、
装置本体101内に収納されている。また、プリンタユ
ニット2は操作者が開閉可能な開口部(不図示)をも
ち、記録ヘッドの交換が可能なようになっている。
A printer unit 2 using an ink jet recording head is disposed in front of a display unit 103,
It is stored in the apparatus main body 101. The printer unit 2 has an opening (not shown) that can be opened and closed by an operator so that the recording head can be replaced.

【0009】記録紙3はキーボード102の下部に設け
られた給紙口101aから挿入され、装置本体101内
を貫通する搬送路内を搬送されて装置後方の排紙口(不
図示)から排出される。キーボード102は装置本体1
01の両側に設けられたヒンジ102aを介して回動可
能に取り付けられている。これにより、封筒、ハガキ等
の比較的長さの短い記録紙を使用する場合もキーボード
102を上部に開き、記録紙3を搬送路内の奥に挿入す
ることができる。このように、キーボード102の下部
に記録紙3の搬送路が設けられているため、記録紙をセ
ットした状態でもキーボード102および表示部103
を用いた種々の操作が可能である。
The recording paper 3 is inserted from a paper feed port 101a provided below the keyboard 102, is conveyed in a conveyance path penetrating the inside of the apparatus main body 101, and is discharged from a paper discharge port (not shown) at the rear of the apparatus. You. The keyboard 102 is the device body 1
01 is rotatably mounted via hinges 102a provided on both sides. Thus, even when a relatively short recording paper such as an envelope or a postcard is used, the keyboard 102 can be opened upward and the recording paper 3 can be inserted deep into the transport path. As described above, since the transport path of the recording paper 3 is provided below the keyboard 102, even when the recording paper is set, the keyboard 102 and the display unit 103 are provided.
Various operations using are possible.

【0010】本実施例ではプリンタユニット2を除く部
分、いわゆるコンピュータ部をホストコンピュータと呼
ぶことにする。
In this embodiment, a portion excluding the printer unit 2, a so-called computer unit, will be referred to as a host computer.

【0011】[Host−Printerの概略ブロッ
ク図]図2に、ホストコンピュータとプリンタの概略ブ
ロック図を示す。
[Schematic Block Diagram of Host-Printer] FIG. 2 is a schematic block diagram of a host computer and a printer.

【0012】まずホストコンピュータにおいては、主制
御をつかさどっているのが中央処理装置(CPU)であ
り、その基本的な制御を指示するのがBIOS ROM
(Basic Input Output Syste
m ROM)である。フロッピーディスク(FDD)や
ハードディスク(HDD)からフロッピーディスクコン
トローラ(FDC)やハードディスクコントローラ(H
DC)を経由してアプリケーション プログラムを読み
出し、システムメモリ(RAM)を利用してプログラム
の実行を行なう。この時、画面の表示方法としてはVG
A(VideoGraphic Array)コントロ
ーラ(VGAC)を使って液晶(LCD)にキャラクタ
等の表示を行ない、キーボード(KB)からのキー入力
はキーボードコントローラ(KBC)を経由して行なわ
れる。ここで、数値演算プロセッサ(FPU)はCPU
に対して演算処理のサポートを行なうものである。又、
リアルタイムクロック(RTC)は現時点の経過時間を
示すものでシステム全体の電源が切られた状態において
も、専用バッテリーにより動作は行なわれる。DMAコ
ントローラ(DMAC)は、メモリ〜メモリ間、メモリ
〜I/O間、I/O〜I/O間において高速にデータの
転送を行なう為に、CPUの介在なしでデータ転送を行
なう。割り込みコントローラ(IRQC)は各I/Oか
らの割り込みを受け付け、優先順位に従って処理を行な
う。タイマ(TIMER)は、数チャンネルのフリーラ
ンニングタイマを持ち、種々の時間管理を行なう。その
他に外部につながる、シリアルインターフェイス(SI
O)、拡張ポート(PORT)や、ユーザに動作状況を
伝えるLEDがある。プリンタは、ホストコンピユータ
に対して汎用のパラレルインターフェイスでつながる形
になり、I/Oポートのレジスタレベルでデータ送受信
を行ない、接続のイメージとしては外部プリンタとやり
取りした時と同等となる。
First, in the host computer, the central control unit (CPU) controls the main control, and the BIOS ROM instructs the basic control.
(Basic Input Output System
m ROM). From floppy disk (FDD) and hard disk (HDD) to floppy disk controller (FDC) and hard disk controller (H
DC) to read the application program and execute the program using the system memory (RAM). At this time, the display method of the screen is VG
Characters and the like are displayed on a liquid crystal (LCD) using an A (Video Graphic Array) controller (VGAC), and key input from a keyboard (KB) is performed via a keyboard controller (KBC). Here, the numerical calculation processor (FPU) is a CPU.
To support arithmetic processing. or,
The real-time clock (RTC) indicates the current elapsed time, and the operation is performed by the dedicated battery even when the power of the entire system is turned off. A DMA controller (DMAC) performs data transfer without a CPU in order to perform high-speed data transfer between memory and memory, between memory and I / O, and between I / O and I / O. An interrupt controller (IRQC) receives an interrupt from each I / O and performs processing according to the priority. The timer (TIMER) has a free running timer of several channels and performs various time managements. In addition, serial interface (SI
O), an expansion port (PORT), and an LED that informs the user of the operation status. The printer is connected to the host computer by a general-purpose parallel interface, transmits and receives data at the register level of the I / O port, and the connection image is the same as when an external printer is exchanged.

【0013】図3は、本発明が実施もしくは適用された
インクジェット記録方式を用いたプリンタユニット2の
内部構成を説明するための斜視図である。図3におい
て、5001はインクタンクであり、5012はそれに
結合された記録ヘッドである。5001のインクタンク
と5012の記録ヘッドで一体型の交換可能なカートリ
ッジを形成するものである。5014は、そのカートリ
ッジをプリンター本体に取り付けるためのキャリッジで
あり、5003はそのキャリッジを副走査方向に走査す
るためのガイドである。
FIG. 3 is a perspective view for explaining the internal configuration of the printer unit 2 using the ink jet recording system to which the present invention is applied or applied. In FIG. 3, reference numeral 5001 denotes an ink tank, and reference numeral 5012 denotes a recording head coupled to the ink tank. The ink tank 5001 and the print head 5012 form an integral replaceable cartridge. Reference numeral 5014 denotes a carriage for attaching the cartridge to the printer body, and reference numeral 5003 denotes a guide for scanning the carriage in the sub-scanning direction.

【0014】5000は、記録紙3を主走査方向に走査
させるためのプラテンローラである。5024は、プラ
テンローラを回転させるための紙送りモータである。な
お、キャリッジ5014には、記録ヘッド5012に対
して駆動のための信号パルス電流やヘッド温調用電流を
流すためのフレキシブルケーブル(図示せず)が、プリ
ンターをコントロールするための電気回路を具備したプ
リント板(図示せず)に接続されている。
Reference numeral 5000 denotes a platen roller for scanning the recording paper 3 in the main scanning direction. Reference numeral 5024 denotes a paper feed motor for rotating the platen roller. The carriage 5014 includes a flexible cable (not shown) for supplying a signal pulse current for driving and a current for controlling the head temperature to the recording head 5012, a print cable having an electric circuit for controlling the printer. It is connected to a plate (not shown).

【0015】さらに、上記構成のプリンタユニット2を
詳細に説明する。駆動モータ5013の正逆回転に連動
して駆動力伝達ギア5011、5009を介して回転す
るリードスクリュー5004の螺旋溝5005に対して
係合するキャリッジ5014はピン(不図示)を有し、
矢印a,b方向に往復移動される。5002は紙押え板
であり、キャリッジ移動方向にわたって紙をプラテン5
000に対して押圧する。5007、5008はフォト
カプラでキャリッジ5014のレバー5006のこの域
での存在を確認してモータ5013の回転方向切換等を
行うためのホームポジション検知手段である。5016
は記録ヘッドの前面をキャップするキャップ部材502
2を支持する部材で、5015はこのキャップ内を吸引
する吸引手段であり、キャップ内開口5023を介して
記録ヘッド5012の吸引回復を行う。
Further, the printer unit 2 having the above configuration will be described in detail. The carriage 5014 that engages with the spiral groove 5005 of the lead screw 5004 that rotates through the driving force transmission gears 5011 and 5009 in conjunction with the forward and reverse rotation of the drive motor 5013 has a pin (not shown).
It is reciprocated in the directions of arrows a and b. Reference numeral 5002 denotes a paper holding plate, which applies paper to the platen 5
000. Reference numerals 5007 and 5008 denote home position detecting means for confirming the presence of the lever 5006 of the carriage 5014 in this area by photocouplers and switching the rotation direction of the motor 5013. 5016
Denotes a cap member 502 for capping the front surface of the recording head.
Reference numeral 5015 denotes a suction unit for sucking the inside of the cap, and performs suction recovery of the recording head 5012 through the opening 5023 in the cap.

【0016】5017は、クリーニングブレードで、5
019はこのブレード5017を前後方向に移動可能に
する部材であり、本体支持板5018にこれらは支持さ
れている。ブレードは、この形態でなく周知のクリーニ
ングブレードが本例に適用できることはいうまでもな
い。また、5021は、吸引回復の吸引を開始するため
のレバーで、キャリッジ5014と係合するカム502
0の移動に伴って移動し、駆動モータからの駆動力がク
ラッチ切換等の公知の伝達手段で移動制御される。
Reference numeral 5017 denotes a cleaning blade.
Reference numeral 019 denotes a member that enables the blade 5017 to move in the front-rear direction, and these members are supported by the main body support plate 5018. It goes without saying that the blade is not limited to this form, and a well-known cleaning blade can be applied to this embodiment. Reference numeral 5021 denotes a lever for starting suction for suction recovery, and a cam 502 which engages with the carriage 5014.
It moves with the movement of 0, and the driving force from the drive motor is controlled by known transmission means such as clutch switching.

【0017】すなわち、駆動モータ5013をキャリッ
ジ5014のホームポジションから逆回転することによ
り、動力伝達ギア5011を5010に切り替え(不図
示)、駆動モータ5013からの駆動力がカム5020
を介してレバー5021に伝わり、記録ヘッド5012
のキャッピングおよびクリーニング、吸引回復が行なえ
るように構成されている。
That is, by reversely rotating the drive motor 5013 from the home position of the carriage 5014, the power transmission gear 5011 is switched to 5010 (not shown), and the drive force from the drive motor 5013 is applied to the cam 5020.
To the lever 5021 via the
It is configured so that capping, cleaning, and suction recovery can be performed.

【0018】[Printerのブロック図]図4に、
プリンタのブロック図を示す。
[Block Diagram of Printer] FIG.
FIG. 1 shows a block diagram of a printer.

【0019】プリンタは、プリンタ制御用のCPU#
2、プリンタ制御プログラムやプリンタエミュレーショ
ンや印字フォントを備えたROM#2、印字の為の展開
データやホストからの受信データを蓄えておくRAM#
2、プリンタの印字ヘッドやモータを駆動するプリンタ
ドライバ、メモリのアクセス制御やホストとのデータの
やり取りやプリンタドライバへの制御信号送出を行なう
コントローラで構成される。
The printer has a CPU # for controlling the printer.
2. ROM # 2 with printer control program, printer emulation and print fonts, RAM # to store development data for printing and data received from the host
2. It is composed of a printer driver for driving a print head and a motor of the printer, a controller for controlling access to a memory, exchanging data with a host, and transmitting a control signal to the printer driver.

【0020】[プリンタドライバの構成図]図5に、記
録ヘッドおよびヘッドドライバの構成を示す。
[Structure of Printer Driver] FIG. 5 shows the structure of a print head and a head driver.

【0021】ここで、本例では吐出ユニットは64個の
吐出口を有するものとし、#1〜#64は吐出ユニット
に設けられた吐出口の位置に対応した番号を示すものと
する。R1〜R64はそれぞれ#1〜#64の吐出口に
対応して設けられた吐出エネルギ発生素子としての発熱
抵抗体である。発熱抵抗体R1〜R64は8個を単位と
したブロックに分割され、各ブロックに共通にコモン側
ドライバ回路のスイッチング用トランジスタQ1〜Q8
が接続される。トランジスタQ1〜Q8は、それぞれ制
御信号COM1〜COM8のオン/オフに応じ通電経路
をオン/オフする。なお、各発熱抵抗体R1〜R64へ
の通電経路に配置されたD1〜D64は逆流防止用のダ
イオードである。
Here, in the present embodiment, the discharge unit has 64 discharge ports, and # 1 to # 64 indicate numbers corresponding to the positions of the discharge ports provided in the discharge unit. R1 to R64 are heating resistors as ejection energy generating elements provided corresponding to the ejection ports # 1 to # 64, respectively. The heating resistors R1 to R64 are divided into blocks each having eight units, and the switching transistors Q1 to Q8 of the common side driver circuit are commonly used for each block.
Is connected. The transistors Q1 to Q8 turn on / off the energization paths in accordance with on / off of the control signals COM1 to COM8, respectively. In addition, D1 to D64 arranged on the current supply path to each of the heating resistors R1 to R64 are diodes for preventing backflow.

【0022】各ブロック間で対応する位置にある発熱抵
抗体に対しては、セグメント側ドライバ回路のオン/オ
フ用トランジスタQ9〜Q16が接続される。トランジ
スタQ1〜Q16はそれぞれ制御信号SEG1〜SEG
8のオン/オフに応じて発熱抵抗体に対する通電経路を
オン/オフする。
The on / off transistors Q9 to Q16 of the segment side driver circuit are connected to the heating resistors located at the corresponding positions between the blocks. The transistors Q1 to Q16 control signals SEG1 to SEG, respectively.
The power supply path to the heating resistor is turned on / off according to the on / off operation of 8.

【0023】図6は、斯かる構成によるヘッド駆動のタ
イミングチャートを示す。ヘッド走査方向上のある位置
において、コモン側制御信号COM8〜COM1が順次
オンされる。そのオンにより1つのブロックが選択され
て通電可能な状態になるので、選択されたブロック内に
おいて記録による画像に応じてセグメント側制御信号S
EG8〜SEG1をそれぞれオンまたはオフすることに
より、発熱抵抗体に選択的に通電が成され、発熱に応じ
てインクが吐出されてドット記録が行なわれる。
FIG. 6 is a timing chart for driving the head according to the above configuration. At a certain position in the head scanning direction, the common-side control signals COM8 to COM1 are sequentially turned on. When the switch is turned on, one block is selected and becomes energized. Therefore, in the selected block, the segment-side control signal S according to the recorded image is selected.
By turning on or off each of EG8 to SEG1, the heating resistor is selectively energized, and the ink is ejected according to the heat generation to perform dot recording.

【0024】図7はキャリッジモータおよびモータドラ
イバの構成図である。
FIG. 7 is a configuration diagram of the carriage motor and the motor driver.

【0025】図8はその駆動タイミングを示す。FIG. 8 shows the drive timing.

【0026】図7、図8を参照して説明すると、キャリ
ッジモータとしてコイルΦ1〜Φ4を有するステッピン
グモータを用い、駆動信号CM1〜CM4により各コイ
ルに接続されたスイッチ用トランジスタTR1〜TR4
を適切にオン/オフすることにより、図8に示す様に2
相励磁方式にて駆動する。
Referring to FIGS. 7 and 8, a stepping motor having coils .PHI.1 to .PHI.4 is used as a carriage motor, and switching transistors TR1 to TR4 connected to the respective coils by drive signals CM1 to CM4.
By turning on / off appropriately, 2 as shown in FIG.
Drive by phase excitation method.

【0027】フィードモータについても同様な構成で、
駆動信号FM1〜FM4により駆動される。
The feed motor has the same configuration.
Driven by the drive signals FM1 to FM4.

【0028】[プリンタコントローラの構成]図9にプ
リンタコントローラの構成図を示す。
[Configuration of Printer Controller] FIG. 9 shows a configuration diagram of the printer controller.

【0029】コントローラの機能ブロックとしては、ホ
ストとのコマンドレベルでのデータのやり取りを行なう
I/Oデータレジスタ、そしてそのレジスタから受信デ
ータをRAM#2に直接書き込む受信バッファコントロ
ーラ、RAM#2の記録データバッファから記録データ
を読み出しヘッドドライバへ対してCOM1〜COM8
/SEG1〜SEG8の制御信号の送出を行なう印字バ
ッファコントローラ、更にRAM#2に対して3方向
(つまり、CPU#2、受信バッファコントローラ、印
字バッファコントローラ)からのメモリアクセスを制御
するメモリコントローラ、以上4つのブロックで構成さ
れている。
The functional blocks of the controller include an I / O data register for exchanging data at the command level with the host, a reception buffer controller for directly writing received data from the register to the RAM # 2, and recording of the RAM # 2. The print data is read out from the data buffer, and COM1 to COM8 are sent to the head driver.
A print buffer controller for transmitting control signals / SEG1 to SEG8, and a memory controller for controlling memory access to RAM # 2 from three directions (that is, CPU # 2, reception buffer controller, print buffer controller). It is composed of four blocks.

【0030】図10はプリンタのI/Oデータレジスタ
(図9に示す)のマップを示す。
FIG. 10 shows a map of the I / O data register (shown in FIG. 9) of the printer.

【0031】この中でモータコントロールポートは、レ
ジスタの値を直接書き換えることによりポートを制御し
各モータを駆動するものである(CM1〜CM4、FM
1〜FM4)。
Among them, the motor control port controls the port by directly rewriting the value of the register to drive each motor (CM1 to CM4, FM
1 to FM4).

【0032】印字バッファエリアは、印字に必要なデー
タ領域を設定するもので、開始アドレス(PB STA
RT)と終了アドレス(PB END)を設定すること
により、その範囲内で印字バッファコントローラによっ
て開始アドレスから順番に印字データを読み出し、終了
アドレスに至るまでRAM#2から印字データを読み出
し、ヘッドドライバに制御信号を送出する。この時、印
字データアドレスポインタ(PB POINT)は現在
データ送出中のデータアドレスを示している。
The print buffer area is for setting a data area required for printing, and includes a start address (PB STA).
RT) and the end address (PB END), the print buffer controller reads the print data in order from the start address within that range, reads the print data from RAM # 2 until the end address, and sends it to the head driver. Send a control signal. At this time, the print data address pointer (PB POINT) indicates the data address at which data is currently being transmitted.

【0033】受信データバッファエリアも同様に、受信
に必要なデータ領域を設定するもので、開始アドレス
(IB START)と終了アドレス(IB END)
を設定することにより、その範囲内で受信バッファコン
トローラによって開始アドレスから順番に受信データを
書き込み、終了アドレスに至るまでRAM#2へ受信デ
ータを書き込む。この時、受信データアドレスポインタ
(IB POINT)は現在データ受信済になっている
データアドレスを示している。
Similarly, the reception data buffer area sets a data area necessary for reception, and includes a start address (IB START) and an end address (IB END).
Is set, the reception buffer controller writes the reception data in order from the start address within the range, and writes the reception data to the RAM # 2 until the end address. At this time, the received data address pointer (IB POINT) indicates the data address at which data has been received.

【0034】図11では上記動作におけるRAM#2上
での印字バッファ(PB)と受信バッファ(IB)のア
ドレス領域をおのおの示している。各アドレスは、図1
0に示す様に、プリンタI/Oレジスタにおいて指示さ
れている。インターフェイス領域は、ホストコンピュー
タとプリンタ間での共通のI/O領域である。インター
フェイス領域の部分は、ホストコンピュータとのデータ
のやり取りを行なう領域であり、ホストコンピュータに
おいてはパラレルインターフェイスのポートに相当す
る。
FIG. 11 shows the address areas of the print buffer (PB) and the reception buffer (IB) on the RAM # 2 in the above operation. Each address is shown in FIG.
As indicated by 0, it is indicated in the printer I / O register. The interface area is a common I / O area between the host computer and the printer. The interface area is an area for exchanging data with the host computer, and corresponds to a port of the parallel interface in the host computer.

【0035】インターフェイス領域については、図12
においてホストコンピュータとプリンタのインターフェ
イス領域における相関関係を示した図で説明する。
FIG. 12 shows the interface area.
Will be described with reference to a diagram showing the correlation in the interface area between the host computer and the printer.

【0036】ホスト側におけるI/Fデータ、I/Fス
テータス、I/Fコントロールのレジスタが、プリンタ
側のI/Fデータ、I/Fステータス、I/Fコントロ
ールのレジスタと同一のアドレスを示すように、ホスト
側から見た(n,n+1,n+2)のアドレスが、プリ
ンタ側から見た(m,m+1,m+2)のアドレスと対
応が取れる様にアドレスマップが設定されている。
The I / F data, I / F status, and I / F control registers on the host side indicate the same addresses as the I / F data, I / F status, and I / F control registers on the printer side. The address map is set so that the address (n, n + 1, n + 2) seen from the host side can correspond to the address (m, m + 1, m + 2) seen from the printer side.

【0037】すなわち、この部分のアドレスは双方向で
読み書きできるレジスタになっている。
That is, the address of this portion is a register that can be read and written in both directions.

【0038】尚、ホストコンピュータ側にも、周辺機器
を制御するためのI/Oレジスタを備えていて、ホスト
コンピュータ内でのI/O制御に使われている。すなわ
ち図2で示した各ブロックのI/O領域をもっていて、
その中のインターフェイスの制御領域についてのみが、
プリンタ側のI/Oレジスタのインターフェイス領域と
共通になっているという構成になっている。図12は、
その関係を示すものである。
The host computer also has an I / O register for controlling peripheral devices, and is used for I / O control in the host computer. That is, it has the I / O area of each block shown in FIG.
Only the control area of the interface in it,
The configuration is such that it is common to the interface area of the I / O register on the printer side. FIG.
This shows the relationship.

【0039】以下、ホストコンピュータ側の電源投入後
の各処理について説明する。
Hereinafter, each process after the power supply of the host computer is turned on will be described.

【0040】図13に電源投入時のフローチャートで、
まずステップS10に進む。キーボードによるソフトリ
セット処理も電源投入時と同様に、ステップS10へ入
って来る。ステップS10でPOST処理が行なわれ、
POST処理はpoweron self−test
で、各ハードウェアのテスト及び初期化を実行する。次
にステップS11へ進みシステムプログラム起動のため
の、ブートプログラムのロードが行なわれる。ブートプ
ログラムはFD(フロピィディスク)あるいはHD(ハ
ードディスク)などに保存され、例えば、トラック0、
セクタ1に配置される。トラック0、セクタ1をメモリ
内に読み込むことでブートプログラムのロードが行なわ
れる。ステップS10からステップS11まではROM
BIOS内に存在する。次にステップS12へ進み、ロ
ードされたブートプログラムが実行される。ブートプロ
グラムは、FD、あるいはHDからOSプログラムをロ
ードするためのプログラムをロードするプログラムで、
次にステップS13へ進み、OSロードプログラムをロ
ードする。次にステップS14へ進み、OSロードプロ
グラムを実行する。OSロードプログラムは、OSをメ
モリ内にロードするためのプログラムで、まずステップ
S15でI/Oドライバをロードする。I/Oドライバ
というのは、I/Oを制御するためのプログラムで、I
/OドライバによりOSは、各種I/Oとのデータのや
りとりを行なう。次にステップS16へ進み、I/Oの
テストと初期化を行なう。次にステップS17へ進みO
Sをメモリへロードする。ここまでのステップでOSが
実行される準備がととのい次にステップS18へ進ん
で、OSが実行に移される。OSは、キーボードからの
入力を処理し、各種メッセージを表示器に表示し、操作
者とのやりとりを行なう。OSは操作者の各種コマンド
の入力に従って各種コマンド処理の実行を行なう。
FIG. 13 is a flowchart when the power is turned on.
First, the process proceeds to step S10. The soft reset process using the keyboard also enters step S10 in the same manner as when the power is turned on. POST processing is performed in step S10,
POST processing is poweron self-test
Then, a test and initialization of each hardware are executed. Next, the process proceeds to step S11, where a boot program is loaded for starting the system program. The boot program is stored in a floppy disk (FD) or a hard disk (HD).
It is located in sector 1. The boot program is loaded by reading track 0 and sector 1 into the memory. Steps S10 to S11 are ROM
Exists in the BIOS. Next, the process proceeds to step S12, where the loaded boot program is executed. The boot program is a program that loads a program for loading an OS program from the FD or the HD.
Next, the process proceeds to step S13 to load the OS load program. Next, the process proceeds to step S14, where the OS load program is executed. The OS load program is a program for loading the OS into the memory, and first loads the I / O driver in step S15. An I / O driver is a program for controlling I / O.
With the / O driver, the OS exchanges data with various I / Os. Next, the process proceeds to step S16, where an I / O test and initialization are performed. Next, proceed to step S17
Load S into memory. When it is ready to execute the OS in the steps so far, the process proceeds to step S18, where the OS is executed. The OS processes input from the keyboard, displays various messages on a display, and exchanges with the operator. The OS executes various command processes according to the input of various commands by the operator.

【0041】図14は、図13のS10のPOSTを詳
細に説明するフローチャートで、CPU(図2のFPU
(数値演算プロセッサ、コプロセッサ)のテストを行な
う(ステップS20)。次にROMのテストを行なう
(ステップS21)。次に電源、バッテリィのチェック
を行なう(ステップS22)。次にLCD、LCDアダ
プタのテストと初期化を行なうLCDアダプタには、R
AM、ROMを含みそれらのチェックも行なう(ステッ
プS23)。次に割り込みコントローラのテストと初期
化を行なう(ステップS24)。次にタイマのテストを
行なう(ステップS25)。次にDMAコントローラの
テストを行なう(ステップS26)。次にキーボード、
キーボードコントローラのテストを行なう(ステップS
27)。次にシリアルパラレルポートのテスト、初期化
を行なう(ステップS28)。次にソフトリセットかど
うかをチェックする(ステップS29)。ソフトリセッ
トならば、ステップS30のRAMのテストと初期化処
理をスキップしステップS31へ進む。ソフトリセット
でない場合ステップS30へ進みRAMのテストと初期
化を行なう。次にFD(フロッピーディスク)のテスト
を行なう(ステップS31)。次にHD(ハードディス
ク)のテストを行なう(ステップS32)。次にリアル
タイムクロックのテストを行なう(ステップS33)。
次にプリンタのテストを行なう(ステップS34)。プ
リンタのテストは各種プリンタポートのチェックとプリ
ンタ接続のチェックを行なう。次にLEDのテストを行
なう(ステップS35)。次に戻りとなる。以上の処理
により図13のS10で示すPOST処理が行なわれ、
各装置にエラー等があった場合、それらを知らしめる。
FIG. 14 is a flowchart for explaining the POST of S10 in FIG. 13 in detail. The CPU (FPU in FIG. 2)
(Numerical processor, coprocessor) is tested (step S20). Next, the ROM is tested (step S21). Next, the power and battery are checked (step S22). Next, the LCD and the LCD adapter for testing and initializing the LCD adapter have R
Checks including AM and ROM are also performed (step S23). Next, a test and initialization of the interrupt controller are performed (step S24). Next, a timer test is performed (step S25). Next, a test of the DMA controller is performed (step S26). Then the keyboard,
Test the keyboard controller (step S
27). Next, a test and initialization of the serial / parallel port are performed (step S28). Next, it is checked whether it is a soft reset (step S29). If it is a soft reset, the process skips the RAM test and initialization process in step S30 and proceeds to step S31. If it is not a soft reset, the flow advances to step S30 to test and initialize the RAM. Next, an FD (floppy disk) test is performed (step S31). Next, an HD (hard disk) test is performed (step S32). Next, a test of the real-time clock is performed (step S33).
Next, a printer test is performed (step S34). The printer test checks various printer ports and printer connection. Next, an LED test is performed (step S35). Then come back. By the above processing, the POST processing shown in S10 of FIG. 13 is performed.
If there is an error or the like in each device, it notifies them.

【0042】次に、キーボード割り込み処理とキーコー
ド取得処理について説明する。キーボード割り込み処理
は、キーボードのキー押下に従ってキーボードコントロ
ーラから割り込みが発生し割り込みコントローラにより
処理され、キーボード割り込み処理が実行される。キー
コード取得処理は、キーボード割り込みにより保存され
たキーコードをキーバッファから取り出し、キーコード
は必要とする処理に戻される。尚、キーバッファは不図
示ではあるが、図2のRAM上のBI0Sコモンエリア
内に設けられる。キーボード割り込み処理は、各I/O
の割り込みマップ上(不図示)のハードウェア割り込み
のエントリなどに割り当てられ、またキーコード取得処
理は、ソフトウェア割り込みのエントリなどに割り当て
られる。それぞれキーボードから割り込み、ソフトウェ
ア割り込みの呼び出しにより実行に移される。
Next, keyboard interrupt processing and key code acquisition processing will be described. In the keyboard interrupt processing, an interrupt is generated from the keyboard controller in accordance with the depression of a key on the keyboard, is processed by the interrupt controller, and the keyboard interrupt processing is executed. In the key code acquisition process, the key code stored by the keyboard interrupt is extracted from the key buffer, and the key code is returned to the necessary process. Although not shown, the key buffer is provided in the BIOS common area on the RAM in FIG. Keyboard interrupt processing is performed for each I / O
Is assigned to a hardware interrupt entry or the like on the interrupt map (not shown), and the key code acquisition process is assigned to a software interrupt entry or the like. Execution is started by calling an interrupt or software interrupt from the keyboard, respectively.

【0043】図15は、キーボード割り込みが発生した
場合の処理に関するフローチャートを示す。同図におい
て、まずキーボード割込みが発生すると、S40におい
て、キースキャンコードをI/Oのキーボードに割当て
られたポートから読みとる。読みとったコードはS41
においてソフトリセットに相当するコードであるかどう
か判断され、YesであればS42で印字バッファクリ
アコマンド送信を実行し、実行後実際のソフトリセット
動作を開始する。読みとったコードがソフトリセットで
ない場合、S43においてキーボードバッファが一杯で
ないかどうか確認する。一杯であれば、S44によって
警告のためBeep音を発生し、処理を終了する。一杯
でなければ、S45によってキースキャンコードを文字
コードに対応したキーコードに変換し、さらに変換され
たキーコードをS46によってキーバッファにセットし
て処理を終了する。
FIG. 15 is a flowchart showing a process performed when a keyboard interrupt occurs. In the figure, when a keyboard interrupt occurs, a key scan code is read from a port assigned to the I / O keyboard in S40. The read code is S41
In step S42, it is determined whether or not the code corresponds to a soft reset. If the answer is Yes, a print buffer clear command is transmitted in S42, and after the execution, the actual soft reset operation is started. If the read code is not a soft reset, it is checked in S43 whether the keyboard buffer is full. If it is full, a beep sound is generated for warning in S44, and the process is terminated. If it is not full, the key scan code is converted into a key code corresponding to the character code in S45, and the converted key code is set in the key buffer in S46, and the process is terminated.

【0044】以上説明したように、キーボード割り込み
処理内でソフトリセット実行時にプリンタにバッファク
リアコマンド送信され、プリンタのバッファクリア処理
が行われる。
As described above, the buffer clear command is transmitted to the printer when the software reset is executed in the keyboard interrupt processing, and the buffer clear processing of the printer is performed.

【0045】図16はキーコード取得処理に関するフロ
ーチャートを示す。
FIG. 16 is a flowchart showing a key code acquisition process.

【0046】同図において、キーコード取得が開始され
ると、まずS50においてキーボードバッファにキーコ
ードがあるかどうかチェックされる。なければS50を
くり返し、キーコードがキーボードバッファに入れられ
るのを待つ。キーコードが存在した場合、S51におい
てキーコードの変換が必要かどうかチェックされ、必要
な場合、S52によってキーコードの変換が行われる
(キーコードの変換は、主として国別にキーボードが異
なる場合などに発生する。)。
In the figure, when the key code acquisition is started, it is first checked in step S50 whether or not there is a key code in the keyboard buffer. If not, the process repeats S50, and waits for a key code to be stored in the keyboard buffer. If a key code exists, it is checked in step S51 whether the key code needs to be converted. If necessary, the key code is converted in step S52 (key code conversion occurs mainly when the keyboard differs from country to country. I do.)

【0047】キーコードの変換が必要でない時、また必
要でS52において変換が行われたあと、S53によっ
てキーコードがキーコードを返すためのレジスタにセッ
トされ、処理を終了する。
When conversion of the key code is not necessary or necessary and after conversion is performed in S52, the key code is set in the register for returning the key code in S53, and the process is terminated.

【0048】図17はホストにおける、キー入力から入
力されるコマンド解析処理のフローを示す図である。
FIG. 17 is a diagram showing a flow of a command analysis process performed by the host in response to a key input.

【0049】コマンド解析処理が実行されると、S60
においてオペレーターによるキーボードなどからのコマ
ンド入力を受け取り、S61において受け取ったコマン
ドが国切替コマンドであるかどうかチェックする。YE
SであればS62において国切替印字コマンド送信処理
を実行し、再びコマンド入力を待つ。
When the command analysis processing is executed, S60
In step S61, a command input from a keyboard or the like by an operator is received, and it is checked in step S61 whether the received command is a country switching command. YE
If the answer is S, a country switching print command transmission process is executed in S62 and the command input is again waited.

【0050】NOであれば、S63において他のコマン
ドであるかチェックし、YESであれば、S64におい
て対応する処理が実行され再びコマンド入力を待つ。
If NO, it is checked in S63 if there is another command. If YES, the corresponding process is executed in S64 and the command input is waited again.

【0051】S61〜S64は必要なコマンドの数だけ
類似の処理が拡張されているがここでは詳述しない。
In S61 to S64, similar processes are expanded by the number of necessary commands, but they will not be described in detail here.

【0052】次に、国切替えコマンドが実行される場合
について説明する。OSは操作者からの国切替えコマン
ドの指定に従って、以下の国切替え処理を実行する。
Next, a case where a country switching command is executed will be described. The OS executes the following country switching processing according to the designation of the country switching command from the operator.

【0053】図18は図17のS62の、ホスト側にお
ける、国切替え印字コマンド送信処理のフローを示す図
である。
FIG. 18 is a diagram showing a flow of the country switching print command transmission processing on the host side in S62 of FIG.

【0054】国切替え印字コマンド送信処理が実行され
ると、S70において、キーから入力されたコマンドに
従ってホスト側の現在の国別モード設定を所望された国
別モード設定へと変更する。その情報は、図2のRAM
に格納されている。変更が終了すると、S71におい
て、周辺機器に対して同様の国切替えを行う為に国切替
え印字コマンドを送信して処理が終了する。
When the country switching print command transmission processing is executed, in S70, the current country mode setting on the host side is changed to the desired country mode setting in accordance with the command input from the key. The information is stored in the RAM of FIG.
Is stored in When the change is completed, in S71, a country switching print command is transmitted to the peripheral device to perform the same country switching, and the process ends.

【0055】図19は図18のS81の国切替印字コマ
ンド送信処理のフローを示す図である。
FIG. 19 is a diagram showing a flow of the country switching print command transmission processing of S81 in FIG.

【0056】国切替印字コマンド送信処理が実行される
と、S80において図2の本体(ホスト)側のRAMに
格納された国情報に基づいて変更された国モードを調
べ、プリンタ側に送信すべく、対応する国No.を決定
する。
When the country switching print command transmission process is executed, the changed country mode is checked in S80 based on the country information stored in the RAM of the main unit (host) in FIG. , Corresponding country No. To determine.

【0057】S81において、決定された国No.に応
じた国にプリンタを切替えるため、国切替え印字コマン
ドを送信して処理を終了する。
In S81, the country No. In order to switch the printer to the country corresponding to the above, the print command for country switching is transmitted, and the process is terminated.

【0058】図20は別の実施例としての国切替印字コ
マンド送信処理(エミュレーション切替)のフローを示
す図である。
FIG. 20 is a flowchart showing a flow of a country switching print command transmission process (emulation switching) as another embodiment.

【0059】国切替印字コマンド送信処理が実行される
と、S90において本体(ホスト)側の図2のRAMに
保存された変更された国情報を調べ、それに対応するエ
ミュレーションNo.を決定する。そのエミュレーショ
ンNo.は、国情報に対応して、テーブル形式で図2の
RAMに格納されている。
When the country switching print command transmission processing is executed, the changed country information stored in the RAM of FIG. 2 on the main body (host) side is checked in S90, and the emulation No. corresponding to the changed country information is checked. To determine. The emulation No. Are stored in a table format in the RAM of FIG. 2 corresponding to the country information.

【0060】S91において、決定されたエミュレーシ
ョンにプリンタを切替えるためにエミュレーション切替
え印字コマンドをプリンタ側へ送信し、処理を終了す
る。
In step S91, an emulation switch print command is transmitted to the printer in order to switch the printer to the determined emulation, and the process ends.

【0061】以上により、国切替コマンドの発行によ
り、ホストの国別モード切替えと、同時にプリンタ側の
国切替えあるいは、プリンタ側のエミュレーション切替
えを行うことができる。プリンタ側の制御は、後述の図
30で説明する。
As described above, by issuing the country switching command, it is possible to switch the country mode of the host and, at the same time, switch the country of the printer or the emulation of the printer. The control on the printer side will be described later with reference to FIG.

【0062】次にプリンタ側の処理について説明を行
う。プリンタは、3つのエミレーション処理を持ち、各
プログラムを切り替えることができる。
Next, processing on the printer side will be described. The printer has three emulation processes and can switch each program.

【0063】図21は図4に示したRAM#2における
バッファ、フラグ等を含むリード/ライトメモリの詳細
を示した図である。図中、受信バッファは本体からプリ
ンタヘ転送された印字コマンド、印字データを受信する
ためのバッファで、プリンタの入力ポートに入力したデ
ータが保持される。駆動系初期化フラグはキャリッジ等
の印字駆動系が初期化されているか否かを示すフラグで
ある。印字データエリアは、印字に必要なフラグ、レジ
スタを含んだデータエリアで、印字はこのエリアに保持
された値、例えばマージン情報等を用いて行なわれる。
エミュレーションデータエリアはエミュレーションに必
要なフラグ、レジスタ、エミュレーション情報を含んだ
データエリアで、エミュレーション処理は、このエリア
に保持された値を用いてエミュレーションを行なう。さ
らにこのエミュレーションデータエリアの内容を図26
に詳細に示す。ワークバッファアは印字、エミュレーシ
ョンで一時的に使用されるワークエリアで、データの加
工、変更等の仕事に利用される。印字バッファ1〜3は
印字するためのデータを保持するエリアで、エミュレー
ションで作成された印字イメージデータが蓄えられ、こ
の印字バッファに保持されたデータが印字部に転送され
印字が実行される。印字バッファ1〜3は1つが1度の
印字に必要なサイズのデータが保存出来、本実施例にお
いては、1〜3の3つのバッファを有する。印字バッフ
ァが複数用意されているのは、1つの印字バッファが実
際に印字されている間に他のバッファに印字イメージを
展開出来る様にするためで、印字バッファへのデータ展
開と印字とが平行して行なうことが出来る。ダウンロー
ドフォントバッファはプリンタ内に持つフォントデータ
以外のフォントを印字する際に本体から転送されたフォ
ントデータを格納するエリアで、このダウンロードフォ
ントにフォントが転送されると、このエリアに保持され
たフォントで印字が行なわれる。
FIG. 21 is a diagram showing details of a read / write memory including a buffer, a flag and the like in the RAM # 2 shown in FIG. In the figure, a reception buffer is a buffer for receiving print commands and print data transferred from the main body to the printer, and holds data input to an input port of the printer. The drive system initialization flag is a flag indicating whether a print drive system such as a carriage has been initialized. The print data area is a data area including flags and registers necessary for printing, and printing is performed using values held in this area, such as margin information.
The emulation data area is a data area containing flags, registers, and emulation information necessary for emulation. The emulation process performs emulation using the values held in this area. Furthermore, the contents of this emulation data area are shown in FIG.
The details are shown below. The work buffer is a work area temporarily used for printing and emulation, and is used for work such as data processing and change. The print buffers 1 to 3 are areas for holding data to be printed, in which print image data created by emulation is stored, and the data held in the print buffer is transferred to a printing unit to execute printing. Each of the print buffers 1 to 3 can store data of a size required for one-time printing, and has three buffers 1 to 3 in this embodiment. The reason why multiple print buffers are prepared is to allow the print image to be developed in another buffer while one print buffer is actually being printed. You can do it. The download font buffer is an area that stores the font data transferred from the main unit when printing fonts other than the font data stored in the printer.When a font is transferred to this download font, the font stored in this area is used. Printing is performed.

【0064】図22はエミュレーションデータエリアの
詳細を示した図で、エミュレーションフラグEMFLA
Gはエミュレーションの番号を保持している。EMFL
AGは2つのビットB0,B1を用いてエミュレーショ
ンの対応NOを示す。B0,B1は0〜3までの値を持
つことが出来、0がエミュレーション1、1がエミュレ
ーション2、2がエミュレーション3を示す。本実施例
においてはエミュレーション1〜3までに対応してお
り、各エミュレーションはこのエミュレーションフラグ
EMFLAGに登録された値に対応している。EMFL
AGはエミュレーションの切替え印字コマンドの実行に
際して指定されたエミュレーションNo.のセットが行
なわれる。国フラグCNTFLAGは、国番号を保持す
るバッファで、B0〜B3の4ビットで国のNo.が保
持されている。B0〜B3で0〜15までの値をとるこ
とが出来、この値で国のNo.を表わすことができる。
本実施例においては日本、USAの2ヵ国に対している
ため、値が0ならばUSA、1であれば日本となる。他
の国々についても個別の値を持つことが可能となる。国
切替え印字コマンドに従って国フラグに国No.が設定
される。エミュレーション情報1〜3は各エミュレーシ
ョンが保持するエミュレーション情報を保持するエリア
で、B0〜B23の24ビットで表わされるエリアとな
る。B0〜B23の各ビットはそれぞれのエミュレーシ
ョンにおいて必要となる情報、例えば、文字品位やぺー
ジ長の指定に使用する。その他、各エミュレーションに
用いられる初期値となる値を保持し、これらの情報は各
情報の設定、変更コマンドにより設定、変更が可能で、
現実行中のエミュレーションに対応した情報の書換えが
行なわれる。本実施例では各ビットの内容については説
明は省略するが、必要なエミュレーション情報を持て
る。エミュレーション情報1〜3はそれぞれ同様の形式
を持つが、ビットの内容に対する設定は各エミュレーシ
ョンで特定することが出来る。
FIG. 22 shows the details of the emulation data area. The emulation flag EMFLA is shown in FIG.
G holds the number of the emulation. EMFL
AG indicates the corresponding NO of emulation using two bits B0 and B1. B0 and B1 can have values from 0 to 3, where 0 indicates emulation 1, 1 indicates emulation 2, and 2 indicates emulation 3. In this embodiment, emulation 1 to 3 are supported, and each emulation corresponds to the value registered in the emulation flag EMFLAG. EMFL
AG is the emulation No. designated at the time of executing the emulation change print command. Is set. The country flag CNTFLAG is a buffer for holding a country code. Is held. B0 to B3 can take a value from 0 to 15, and this value is used as the country No. Can be represented.
In the present embodiment, two countries, Japan and USA, are set, and if the value is 0, it is USA and if it is 1, the value is Japan. It is possible to have individual values for other countries. According to the country switching print command, the country flag is set in the country flag. Is set. The emulation information 1 to 3 are areas that hold emulation information held by each emulation, and are areas represented by 24 bits B0 to B23. Each bit of B0 to B23 is used for designating information required in each emulation, for example, character quality and page length. In addition, it holds the value that is the initial value used for each emulation, and this information can be set and changed by the setting and change commands of each information,
The information corresponding to the emulation currently being executed is rewritten. In this embodiment, the description of the content of each bit is omitted, but necessary emulation information can be provided. The emulation information 1 to 3 have the same format, but the setting for the bit content can be specified by each emulation.

【0065】図23にエミュレーション情報の具体例を
示す。この例ではB0〜B2ビットを用いて各ビットに
文字品位,縮小文字、文字コードの機能を持たせ、各ビ
ットが0、1によりそれぞれのエミュレーションでの各
機能の設定を表わしている。各エミュレーションでは同
様の形式にすることも、別々の形式にすることも可能で
ある。複数のビットを用いていくつかの値を持つ様な分
類を行なうことも出来る。
FIG. 23 shows a specific example of the emulation information. In this example, B0 to B2 bits are used to give each bit a function of character quality, reduced character, and character code, and each bit is set to 0 or 1 to indicate the setting of each function in each emulation. Each emulation can be in a similar or separate format. It is also possible to perform classification using a plurality of bits to have several values.

【0066】以上、エミュレーションデータエリアに保
持された値に従って各エミュレーションが実行される。
As described above, each emulation is executed according to the value held in the emulation data area.

【0067】図24は、エミュレーション実行のためテ
ーブルを示した図で、図4中のROM#2(プリンタ
側)内に保持される。エミュレーション選択テーブルは
各エミュレーションコントロールテーブルを指すポイン
タを含んでおり、各1〜3のテーブルに対応している。
エミュレーションコントロールテーブル1〜3はエミュ
レーション1〜3の各エミュレーションの管理テーブル
でそれぞれのエミュレーションに対応している。エミュ
レーション初期情報1〜3はそれぞれのエミュレーショ
ン情報の初期値を保持するテーブルで各エミュレーショ
ンに対応して初期値を持つ。この初期値は、コマンド指
定時及び情報未設定時の初期値として用いられ、図22
のエミュレーション情報1〜3のエリアへセットされる
ための値である。エミュレーションプログラム1〜3は
各エミュレーションのプログラムを保持しており、各エ
ミュレーション実行に際してエミュレーションプログラ
ム1〜3のいずれかのエミュレーションが実行される。
FIG. 24 is a diagram showing a table for executing emulation, which is held in the ROM # 2 (printer side) in FIG. The emulation selection table includes a pointer pointing to each emulation control table, and corresponds to each of the first to third tables.
The emulation control tables 1 to 3 are management tables for each emulation of the emulations 1 to 3 and correspond to the respective emulations. The emulation initial information 1 to 3 are tables holding initial values of the respective emulation information, and have initial values corresponding to the respective emulations. This initial value is used as an initial value when a command is specified and when information is not set.
To be set in the areas of the emulation information 1 to 3 of the above. The emulation programs 1 to 3 hold a program for each emulation, and any one of the emulation programs 1 to 3 is executed when each emulation is executed.

【0068】図25は図24に示したテーブル類の構成
を示した図で、→はポインタを示し、そのアドレスを保
持する。エミュレーション選択テーブルはa〜cのエミ
ュレーションコントロールテーブルへのポインタを有す
る。エミュレーションコントロールテーブルはエミュレ
ーションID,EMIDを有し、これは各エミュレーシ
ョンに対応するエミュレーションの識別子で、各エミュ
レーションに対して個別の値を持つ。エミュレーション
名はエミュレーションの名前を示す文字例で、エミュレ
ーションの名前を知りたい場合に利用することが出来
る。初期情報ポインタはエミュレーション初期情報の初
期値を含んだテーブルを指すポインタで、各エミュレー
ションで各初期情報のテーブルを指す。情報ポインタは
各エミュレーション情報(図22)を指すポインタで、
現在のエミュレーション情報のテーブルを指すポインタ
で、このポインタの先に在るデータもとにエミュレーシ
ョンを実行する。プログラムポインタは、エミュレーシ
ョンプログラムを指すポインタで、各エミュレーション
が実行するプログラム示すポインタで、このポインタを
用いて各エミュレーションの切替え時に各プログラムの
アドレスを用いる。
FIG. 25 is a diagram showing the structure of the tables shown in FIG. 24. In FIG. 25, → indicates a pointer and holds the address. The emulation selection table has pointers to the emulation control tables a to c. The emulation control table has emulation IDs and EMIDs, which are identifiers of the emulations corresponding to each emulation, and have individual values for each emulation. The emulation name is a character example that indicates the name of the emulation, and can be used when you want to know the name of the emulation. The initial information pointer is a pointer that points to a table containing initial values of the emulation initial information, and points to a table of each initial information in each emulation. The information pointer is a pointer that points to each emulation information (FIG. 22).
With a pointer that points to a table of current emulation information, emulation is performed based on the data that is beyond this pointer. The program pointer is a pointer indicating an emulation program, and is a pointer indicating a program to be executed by each emulation. Using this pointer, an address of each program is used when each emulation is switched.

【0069】図26に図4のROM#2内の、図25の
エミュレーション初期情報に設定された初期値を示した
図で、この図は、図23のエミュレーション情報に対応
しており、この実施例の場合の初期値とを示している。
このエミュレーションの場合、高品位、普通、カタカナ
の設定が初期値となり、このテーブルの内容がエミュレ
ーション情報の初期値となる。
FIG. 26 is a diagram showing the initial values set in the emulation initial information of FIG. 25 in the ROM # 2 of FIG. 4. This diagram corresponds to the emulation information of FIG. It shows the initial values in the case of the example.
In the case of this emulation, the settings of high-quality, normal, and katakana are initial values, and the contents of this table are initial values of emulation information.

【0070】以上、エミレーション実行テーブルを用い
て実際のエミレーションの切替え、管理が行われる。
As described above, actual emulation switching and management are performed using the emulation execution table.

【0071】図27は、本実施例のプリンタ側処理を示
したフローチャートで、まずステップS100で初期化
処理を行なう。初期化処理は印字バッファのクリア等の
処理を行なう。次にステップS101へ進み、エミュレ
ーション選択処理を行なう。この選択処理の詳細は図2
9に示す。ステップS101の選択処理によりエミュレ
ーション1〜3のうちのいずれかが選択され、実行に移
される。ステップS102〜S104の3つのエミュレ
ーションのうちの1つのエミュレーションが行なわれ、
各エミュレーションは、一連の動作が完結する様に動く
ため、エミュレーション切替えコマンドが実行されると
各エミュレーションが終了して、エミュレーション選択
処理ステップS101へ進む。以上くり返し実行する。
FIG. 27 is a flowchart showing the processing on the printer side according to the present embodiment. First, an initialization processing is performed in step S100. The initialization process performs processes such as clearing the print buffer. Next, the process proceeds to step S101, where emulation selection processing is performed. The details of this selection process are shown in FIG.
It is shown in FIG. Any one of emulations 1 to 3 is selected by the selection processing in step S101, and the process proceeds to execution. One emulation of the three emulations of steps S102 to S104 is performed,
Each emulation moves so as to complete a series of operations. Therefore, when the emulation switching command is executed, each emulation ends, and the process proceeds to the emulation selection processing step S101. Repeat the above.

【0072】図28は図27のステップS100を詳細
に示したフローチャートで、まず、S110でプリンタ
駆動系(キャリッジ、紙送り等)のI/Oポートを初期
化し、S111で図21に示される印字データエリアを
初期化する。そして、S112で図21に示される駆動
系初期化フラグに駆動系の初期化をしていないことを示
すために0をセットする。
FIG. 28 is a flowchart showing the details of step S100 in FIG. 27. First, in S110, the I / O ports of the printer drive system (carriage, paper feed, etc.) are initialized, and in S111, the printing shown in FIG. Initialize the data area. Then, in S112, 0 is set to the drive system initialization flag shown in FIG. 21 to indicate that the drive system has not been initialized.

【0073】図29は図27のステップS101の詳細
を示したフローチャートで、まず、ステップS120で
図22に示すエミュレーションフラグEMFLAGにセ
ットされたエミュレーションNo.を取り出す。エミュ
レーションフラグEMFLAGは、図22に示してあ
り、B0〜B1にエミュレーションNo.がセットされ
ている。次にステップS121へ進み、エミュレーショ
ンフラグEMFLAGのエミュレーションNo.に対応
したエミュレーション選択テーブルから、対応したエミ
ュレーションコントロールテーブルを選択する。選択さ
れたエミュレーションコントロールテーブルから、エミ
ュレーションプログラムのポインタを取り出す。次にス
テップS122へ進み、ステップS121で取り出した
プログラムアドレスの先へ分岐し、各エミュレーション
プログラムの実行に移る。以上の処理により、エミュレ
ーションの選択処理が実行され、エミュレーションが選
択される。
FIG. 29 is a flowchart showing details of step S101 in FIG. 27. First, in step S120, the emulation No. set in the emulation flag EMFLAG shown in FIG. Take out. The emulation flag EMFLAG is shown in FIG. 22, and the emulation No. is assigned to B0 to B1. Is set. Next, the process proceeds to step S121, where the emulation No. of the emulation flag EMFLAG is set. Select the corresponding emulation control table from the emulation selection table corresponding to. The emulation program pointer is extracted from the selected emulation control table. Next, the process proceeds to step S122, branches to the program address fetched in step S121, and proceeds to execution of each emulation program. Through the above processing, emulation selection processing is executed, and emulation is selected.

【0074】図30は図27のステップS102〜10
4に示したエミレーションを詳細に説明するフローチャ
ートで、各エミレーションで共通な部分を示している。
まず、ステップS130で初期化処理を実行する。初期
化処理は各エミレーションに必要なデータエリアの初期
化等を実行する。
FIG. 30 shows steps S102 to S102 in FIG.
4 is a flowchart for explaining in detail the emulation shown in FIG. 4, showing parts common to each emulation.
First, an initialization process is performed in step S130. The initialization process performs initialization of a data area necessary for each emulation and the like.

【0075】次にステップS131へ進み、送られてき
た印字コマンド、印字データから印字コマンドの受け取
りを行なう。印字データは、本体から送られたデータが
一度受信バッファに保存され、受信バッファからデータ
の取り出しを行なう。受信データがない場合には、受信
データ待ちとなる。次にステップS132へ進み、エミ
ュレーション切替えコマンドかどうかのチェックを行な
う。エミュレーション切替えコマンドならば、ステップ
S133へ進み、エミュレーション切替え処理を実行す
る。エミュレーション切替え処理は、図31に詳細のフ
ローチャートを示す。次に戻りとなる。エミュレーショ
ン切替えコマンドでない場合、ステップS134へ進
み、国設定コマンドかどうかをチェックする。国設定コ
マンドならば、ステップS135へ進み、国設定処理を
実行する。国設定処理は、図32に詳細のフローチャー
トを示す。実行後コマンド受け取りへ戻る。国設定コマ
ンドでない場合、他のコマンドの処理となる。
Next, the flow advances to step S131 to receive a print command from the transmitted print command and print data. As for print data, data sent from the main body is temporarily stored in a reception buffer, and data is extracted from the reception buffer. If there is no received data, the process waits for received data. Next, the process proceeds to step S132 to check whether the command is an emulation switching command. If the command is an emulation switching command, the process proceeds to step S133 to execute an emulation switching process. FIG. 31 is a detailed flowchart of the emulation switching process. Then come back. If the command is not an emulation switching command, the process advances to step S134 to check whether the command is a country setting command. If the command is a country setting command, the flow advances to step S135 to execute a country setting process. FIG. 32 shows a detailed flowchart of the country setting process. After execution, return to command reception. If the command is not a country setting command, the processing of another command is performed.

【0076】次に、バッファクリアコマンドかどうかの
チェックを行う。バッファクリアコマンドの場合、ステ
ップS136へ進み、バッファクリア処理(S137)
を実行する。バッファクリア処理実行後コマンド受取処
理へ戻る。バッファクリアコマンドでない場合、文字品
位設定コマンドかどうかをチェックする(S138)。
文字品位設定コマンドであればステップS139へ進
み、文字品位設定処理を実行する。次にコマンド受取処
理へ戻る。
Next, it is checked whether the command is a buffer clear command. In the case of a buffer clear command, the process proceeds to step S136, where the buffer is cleared (S137).
Execute After executing the buffer clear processing, the process returns to the command receiving processing. If it is not a buffer clear command, it is checked whether it is a character quality setting command (S138).
If the command is a character quality setting command, the flow advances to step S139 to execute a character quality setting process. Next, the process returns to the command receiving process.

【0077】次にCR(印字復帰)やFF(改ページ)
といった印字コマンドかどうかのチェックを行う(ステ
ップS140)。印字コマンドの場合S141に進み、
印字処理を実行する。他のコマンドの処理についての説
明は省略するが、一般に用いられるエミュレーションコ
マンドが実行出来る。各コマンド実行後ステップS13
1へ進み、以上の処理をくり返し実行する。
Next, CR (print recovery) and FF (page break)
It is checked whether the print command is such as (step S140). In the case of a print command, the process proceeds to S141,
Execute the printing process. Although a description of the processing of other commands is omitted, a commonly used emulation command can be executed. Step S13 after executing each command
The process proceeds to 1 and the above processing is repeatedly executed.

【0078】以上の処理によりエミュレーション処理中
で、エミュレーション切替えコマンドと国設定コマンド
の処理が実行出来る。
By the above processing, the processing of the emulation switching command and the country setting command can be executed during the emulation processing.

【0079】図31は、エミュレーション切替え処理の
詳細を示した図で、切替えコマンドが受け取られた時、
実行される。まずステップS150で切替えエミュレー
ションNo.を決める。切替えエミュレーションNo.
は、切替えコマンドに付加して受け取られる。次にステ
ップS151で受け取ったエミュレーションNo.から
エミュレーションコントロールテーブルを決定する。次
に切替えコマンドが、初期化付コマンドかどうかをチェ
ックする(ステップS152)。切替えコマンドには2
種類のコマンドがあり、1つは初期化コマンド付きの場
合と、初期化コマンドなしの場合とになる。初期化コマ
ンドならば、ステップS153へ進み、初期情報をエミ
ュレーション情報エリアにコピーする。次にステップS
154へ進み初期化コマンドでなければ、ステップS1
54へ進む。次にステップS154でエミュレーション
フラグEMFLAGに切替えたエミュレーションNo.
をB0〜B1ビットにセットする。次に戻りとなる。
FIG. 31 is a diagram showing details of the emulation switching process. When a switching command is received,
Be executed. First, in step S150, the switching emulation No. Decide. Switching emulation No.
Is received in addition to the switching command. Next, the emulation No. received in step S151. From the emulation control table. Next, it is checked whether the switching command is a command with initialization (step S152). 2 for the switch command
There are two types of commands. One is with an initialization command and the other is without an initialization command. If it is an initialization command, the flow advances to step S153 to copy the initial information to the emulation information area. Next, step S
Proceed to 154, if not an initialization command, step S1
Proceed to 54. Next, in step S154, the emulation No. switched to the emulation flag EMFLAG is selected.
Is set in the B0 to B1 bits. Then come back.

【0080】以上の処理により、エミュレーション切替
え処理が実行され、エミュレーション切替えの準備が行
なえる。
With the above processing, the emulation switching processing is executed, and preparation for emulation switching can be performed.

【0081】図32は、国設定処理の詳細を示した図
で、国設定コマンドが受け取られた時に実行される。ま
ず、ステップS160で国フラグCNTFLAGに国N
o.をセットする。次に戻りとなる。以上の処理により
国設定の処理が実行され、国設定が行なえる。
FIG. 32 is a diagram showing details of the country setting process, which is executed when a country setting command is received. First, in step S160, the country N is set to the country flag CNTFLAG.
o. Is set. Then come back. Through the above processing, the country setting process is performed, and the country setting can be performed.

【0082】図33は、バッファクリア処理の詳細を示
した図で、バッファクリアコマンドが受け取られた時に
実行される。まず、ステップS170でバッファのクリ
アを行なう。バッファは、印字バッファなど初期化の必
要性のあるバッファ類を含む。以上の処理によりバッフ
ァクリアの処理が行なえる。
FIG. 33 is a diagram showing details of the buffer clear processing, which is executed when a buffer clear command is received. First, the buffer is cleared in step S170. The buffer includes buffers that need to be initialized, such as a print buffer. The buffer clear processing can be performed by the above processing.

【0083】図34は、文字品位切替え処理の詳細を示
した図で、文字品位切替えコマンドが受け取られた時に
実行される。まず、ステップS180で、エミュレーシ
ョンフラグEMFLAGにセットされたエミュレーショ
ンNo.を取り出す。次に、このエミュレーションN
o.から、エミュレーション選択テーブルに登録された
エミュレーションコントロールテーブルのアドレスを決
定する。次にステップS181で、ステップS180で
決定されたコントロールテーブル中の情報ポインタに登
録されたアドレスを取り出す。このアドレスの指す先に
エミュレーション情報があり、このエミュレーション情
報は、RAMの内に保持されている。次にステップS1
82へ進み、高品位に設定するかどうかをチェックす
る。これはコマンドに、高品位かドラフトであるかどう
かを示す値によって行なわれ、高品位が指定された場
合、ステップS184へ進み、エミュレーション情報の
B0ビットを0とする。B0ビットが0とされた場合、
高品位の指定となる。また高品位の指定でない場合、ス
テップS183へ進み、エミュレーション情報のB0ビ
ットを1とする。B0ビットが1とされた場合、ドラフ
トの指定となる。次に戻りとなる。以上の処理により、
文字品位切替えコマンドの実行処理が行なわれ、以後こ
のエミュレーション情報のB0ビットをもとに品位の選
択が行なわれ、印字が実行される。
FIG. 34 is a diagram showing details of the character quality switching process, which is executed when a character quality switching command is received. First, in step S180, the emulation No. set in the emulation flag EMFLAG is set. Take out. Next, this emulation N
o. , The address of the emulation control table registered in the emulation selection table is determined. Next, in step S181, the address registered in the information pointer in the control table determined in step S180 is extracted. There is emulation information at the point indicated by this address, and this emulation information is held in the RAM. Next, step S1
Proceed to 82 to check whether to set high quality. This is performed by using a value indicating whether the command is high-quality or draft in the command. If high-quality is specified, the process proceeds to step S184, and the B0 bit of the emulation information is set to 0. If the B0 bit is set to 0,
High quality designation. If the high quality is not specified, the flow advances to step S183 to set the B0 bit of the emulation information to 1. When the B0 bit is set to 1, draft is designated. Then come back. By the above processing,
The execution process of the character quality switching command is performed. Thereafter, the quality is selected based on the B0 bit of the emulation information, and printing is performed.

【0084】図35は図30のステップS141の詳細
を示したフローチャートで、まずS190で駆動系初期
化フラグをテストし、すでにキャリッジ等のプリンタ駆
動系が初期化されているかを判定する。もしフラグが0
で初期化されていなければS191〜S194の初期化
ステップを実行する。
FIG. 35 is a flowchart showing the details of step S141 in FIG. 30. First, in step S190, the drive system initialization flag is tested to determine whether the printer drive system such as the carriage has already been initialized. If the flag is 0
If the initialization has not been performed, the initialization steps of S191 to S194 are executed.

【0085】S191のキャリッジ初期化とは、図3で
示されるキャリッジ5014を移動させ、フォトカプラ
5007,5008でキャリッジ5014の存在を確認
してキャリッジ5014をホームポジションに位置づけ
ることである。詳細を図36に示す。
Carriage initialization in step S191 is to move the carriage 5014 shown in FIG. 3 and to confirm the existence of the carriage 5014 with the photocouplers 5007 and 5008 to position the carriage 5014 at the home position. Details are shown in FIG.

【0086】次にキャッピングを行なう(S192)。
キャッピングとは図3で示されるキャップ部材5022
で記録ヘッド5012の前面をキャップする動作であ
り、記録ヘッド5012の乾燥を防止する役目を果た
す。記録ヘッド5012は印字している間を除き、キャ
ップ部材5022でキャップされていなければならな
い。キャッピング動作の詳細を図37に示す。
Next, capping is performed (S192).
Capping is a cap member 5022 shown in FIG.
This is an operation for capping the front surface of the recording head 5012, and serves to prevent the recording head 5012 from drying. The recording head 5012 must be capped with the cap member 5022 except during printing. FIG. 37 shows details of the capping operation.

【0087】次に紙送り初期化を行なう(S193)。
紙送り初期化とは、紙送りモータ5024の初期化であ
り、印字行位置を確定するために行なう。本実施例では
詳述しない。
Next, paper feed initialization is performed (S193).
The paper feed initialization is the initialization of the paper feed motor 5024, and is performed to determine the print line position. This embodiment will not be described in detail.

【0088】さらに、初期化したことを示すために、駆
動系初期化フラグ1にセットする。したがって、その後
の印字処理ではS191〜S194はスキップされるこ
とになる。
Further, a drive system initialization flag 1 is set to indicate that initialization has been performed. Therefore, S191 to S194 are skipped in the subsequent print processing.

【0089】S195でキャップをオープンし、S19
6でキャリッジ、記録ヘッド等を駆動し、印字データエ
リア中の印字データを印字し、印字きっかけとなるコマ
ンドを実行する。コマンド実行後はS197で再びキャ
リッジを戻してキャッピングをし、印字処理を終わる。
In step S195, the cap is opened, and in step S19
In step 6, the carriage, the recording head, and the like are driven, the print data in the print data area is printed, and a command for starting printing is executed. After executing the command, the carriage is returned again in step S197 to perform capping, and the printing process ends.

【0090】図36はキャリッジ初期化の詳細フロー
で、図3の図を用いて説明する。キャリッジ5014に
付属するレバー5006がフォトカプラ5007,50
08(HPセンサ)を横切っている(HPセンサOn)
ことによってキャリッジ5014がホームポジション側
領域にあるかが検出でき、HPセンサがoffからOn
になった位置がキャリアのホームポジション(HP)と
なる。
FIG. 36 is a detailed flowchart of the carriage initialization, which will be described with reference to FIG. A lever 5006 attached to the carriage 5014 is a photocoupler 5007, 50
08 (HP sensor) (HP sensor On)
Accordingly, it can be detected whether the carriage 5014 is in the home position side area, and the HP sensor changes from off to On.
Is the home position (HP) of the carrier.

【0091】まず、S201でキャリッジ5014が既
にホームポジション側領域にあるかを判定する。すでに
ホームポジション側領域にあればS202に進み、駆動
モータ5013を順方向に45パルス回転(キャリッジ
5014を右方向に45パルス分移動)させ、キャリッ
ジ5014をホームポジション側領域外に移動させる。
S201でHPセンサがOnでなければS203、S2
04に進み、、駆動モータ5013を逆方向に1パルス
ずつ回転(キャリッジ5014を左方向に1パルス分ず
つ移動)させ、キャリッジ5014がホームポジション
側領域になるまで移動させる。S205,S206では
再度、HPセンサがoffになるまでキャリッジ501
4を右方向に1パルス分ずつ移動させ、S207でさら
に右方向に20パルス分移動させる。そしてS208,
S209でキャリッジ5014を左方向に1パルス分ず
つ移動させ、HPセンサがoffからonになったとこ
ろでキャリッジ5014の移動を止め初期化を終了す
る。
First, in S201, it is determined whether the carriage 5014 is already in the home position side area. If it is already in the home position side area, the process proceeds to S202, in which the drive motor 5013 is rotated 45 pulses in the forward direction (the carriage 5014 is moved rightward by 45 pulses), and the carriage 5014 is moved out of the home position side area.
If the HP sensor is not On in S201, S203 and S2
In step 04, the drive motor 5013 is rotated one pulse at a time in the reverse direction (the carriage 5014 is moved one pulse at a time to the left) until the carriage 5014 moves to the home position side area. In steps S205 and S206, the carriage 501 is again operated until the HP sensor is turned off.
4 is moved rightward by one pulse, and further moved rightward by 20 pulses in S207. And S208,
In step S209, the carriage 5014 is moved leftward one pulse at a time, and when the HP sensor changes from off to on, the movement of the carriage 5014 is stopped, and the initialization ends.

【0092】図37はキャッピングの詳細フローであ
る。これは、図4のCPU#2による制御である。駆動
モータ5013をキャリッジ5014のホームポジショ
ンから逆方向に回転させることによって動力伝達ギアを
切り替え、カム5020を介してレバー5021を移動
させる。レバー5021をキャッピング位置に移動させ
るためにキャッピングフローとして以下の3つの制御
(S211〜S213)が必要となる。まずキャリッジ
5014がホームポジションにあると駆動モータ501
3を逆方向に34ステップ回転させ、駆動伝達ギア50
10、5011を切り替える(S211)。次にさらに
逆方向に11ステップ回転し、キャップ部材5022を
記録ヘッド5012から一度遠ざけ(S212)、さら
に逆方向に45ステップ回転してキャップ部材5022
を記録ヘッド5012の表面に押しあてて、キャッピン
グを完了する(S213)。
FIG. 37 is a detailed flowchart of capping. This is control by the CPU # 2 in FIG. By rotating the drive motor 5013 in the reverse direction from the home position of the carriage 5014, the power transmission gear is switched, and the lever 5021 is moved via the cam 5020. In order to move the lever 5021 to the capping position, the following three controls (S211 to S213) are required as a capping flow. First, when the carriage 5014 is at the home position, the drive motor
3 is rotated in the reverse direction by 34 steps, and the drive transmission gear 50 is rotated.
10 and 5011 are switched (S211). Next, the cap member 5022 is further rotated 11 steps in the reverse direction to move the cap member 5022 once away from the recording head 5012 (S212), and further rotated 45 steps in the reverse direction to rotate the cap member 5022.
Is pressed against the surface of the recording head 5012 to complete the capping (S213).

【0093】また、このフローを逆にたどることによっ
てキャップをオープンすることができる。
The cap can be opened by reversing this flow.

【0094】(他の実施例)他の実施例では、印字装置
の厚生要素(キャリッジ系、キャピング系、紙送り系)
毎に初期化フラッグを持ってさらに細かな初期化制御を
実施しているが、詳細は第1実施例と同様なので省略す
る。
(Other Embodiments) In another embodiment, welfare elements (carriage system, capping system, paper feed system) of a printing apparatus are used.
More detailed initialization control is performed with an initialization flag every time, but details are omitted since they are the same as in the first embodiment.

【0095】以上述べてきたように、本発明によれば電
源投入時やエミュレーションモード変更時の印字装置イ
ニシャライズを省略することが可能になり、スムーズな
オペレーションを行なうことができる。
As described above, according to the present invention, it is possible to omit the initialization of the printing apparatus when the power is turned on or when the emulation mode is changed, and a smooth operation can be performed.

【0096】さらに、本発明をバッテリー駆動の印字装
置内臓型情報処理装置に応用した場合には、バッテリー
の寿命を長くすることが可能であるという優れた効果が
ある。
Further, when the present invention is applied to a battery-driven information processing apparatus built in a printing apparatus, there is an excellent effect that the life of the battery can be extended.

【0097】[0097]

【発明の効果】以上詳述したように、本発明によれば、
無駄な初期化を防止し、プリンタ駆動系の初期化を効率
よく行なうことができる。
As described in detail above, according to the present invention,
Useless initialization can be prevented, and the initialization of the printer drive system can be performed efficiently.

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

【図1】本発明のプリンタ一体型パーソナルコンピュー
タの斜視図。
FIG. 1 is a perspective view of a printer-integrated personal computer of the present invention.

【図2】ホストコンピュータとプリンタの概略ブロック
図。
FIG. 2 is a schematic block diagram of a host computer and a printer.

【図3】図1の2のプリンタユニット内部構成。FIG. 3 is an internal configuration of the printer unit of FIG.

【図4】プリンタブロック図。FIG. 4 is a block diagram of a printer.

【図5】記録ヘッド及びヘッドドライバーの構成図。FIG. 5 is a configuration diagram of a recording head and a head driver.

【図6】ヘッド駆動のタイミングチャート。FIG. 6 is a timing chart of head driving.

【図7】キャリッジモーター及びモータードライバーの
構成図。
FIG. 7 is a configuration diagram of a carriage motor and a motor driver.

【図8】図7のドライバーの駆動タイミング。FIG. 8 is a driving timing of the driver in FIG. 7;

【図9】プリンタコントローラの構成図。FIG. 9 is a configuration diagram of a printer controller.

【図10】プリンタI/Oレジスタのマップを表す図。FIG. 10 is a diagram illustrating a map of a printer I / O register.

【図11】記録データバッファと受信バッファのアドレ
ス領域を示す図。
FIG. 11 is a diagram showing address areas of a recording data buffer and a reception buffer.

【図12】ホストコンピュータとプリンタのI/O領域
における相関関係を示す図。
FIG. 12 is a diagram showing a correlation in an I / O area between a host computer and a printer.

【図13】電源投入時のフローチャート。FIG. 13 is a flowchart when power is turned on.

【図14】POSTのフローチャート。FIG. 14 is a flowchart of POST.

【図15】キーボード割込み処理のフローチャート。FIG. 15 is a flowchart of a keyboard interrupt process.

【図16】キーコード取得処理のフローチャート。FIG. 16 is a flowchart of a key code acquisition process.

【図17】コマンド解析処理のフローチャート。FIG. 17 is a flowchart of a command analysis process.

【図18】ホスト側国別切替処理のフローチャート。FIG. 18 is a flowchart of a host-side country switching process.

【図19】プリンタ側国別切替処理のフローチャート。FIG. 19 is a flowchart of a printer-side country switching process.

【図20】エミュレーション実行時のプリンタ側国別切
替処理のフローチャート。
FIG. 20 is a flowchart of printer-side country switching processing when emulation is executed.

【図21】RAM#2の構成を示す図。FIG. 21 is a diagram showing a configuration of a RAM # 2.

【図22】エミュレーションデータエリアの詳細図。FIG. 22 is a detailed view of an emulation data area.

【図23】エミュレーション情報の具体例を表す図。FIG. 23 is a diagram illustrating a specific example of emulation information.

【図24】エミュレーション実行時のテーブルを示す
図。
FIG. 24 is a diagram showing a table at the time of emulation execution.

【図25】図24のテーブルの構成を示す図。FIG. 25 is a view showing the configuration of the table shown in FIG. 24;

【図26】エミュレーション情報の初期値を示す図。FIG. 26 is a diagram showing initial values of emulation information.

【図27】本実施例プリンタ制御のフローチャート。FIG. 27 is a flowchart of printer control according to the embodiment.

【図28】プリンタユニット初期化制御のフローチャー
ト。
FIG. 28 is a flowchart of printer unit initialization control.

【図29】図27ステップS101の詳細フローチャー
ト。
FIG. 29 is a detailed flowchart of step S101 in FIG. 27;

【図30】図27ステップS102〜S104の詳細フ
ローチャート。
FIG. 30 is a detailed flowchart of steps S102 to S104 in FIG. 27;

【図31】エミュレーション切替処理の詳細図。FIG. 31 is a detailed diagram of an emulation switching process.

【図32】国設定処理の詳細図。FIG. 32 is a detailed view of a country setting process.

【図33】バッファクリアー処理の詳細図。FIG. 33 is a detailed view of a buffer clear process.

【図34】文字品位切替え処理の詳細図。FIG. 34 is a detailed diagram of a character quality switching process.

【図35】図30ステップS141の詳細フローチャー
ト。
FIG. 35 is a detailed flowchart of step S141 in FIG. 30;

【図36】キャリッジ初期化詳細フローチャート。FIG. 36 is a detailed flowchart of carriage initialization.

【図37】キャッピングの詳細フローチャート。FIG. 37 is a detailed flowchart of capping.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 内藤 久嗣 東京都大田区下丸子3丁目30番2号キヤ ノン株式会社内 (72)発明者 福長 耕司 東京都大田区下丸子3丁目30番2号キヤ ノン株式会社内 (72)発明者 鈴木 尚久 東京都大田区下丸子3丁目30番2号キヤ ノン株式会社内 (72)発明者 立山 二郎 東京都大田区下丸子3丁目30番2号キヤ ノン株式会社内 (72)発明者 高瀬 進 東京都大田区下丸子3丁目30番2号キヤ ノン株式会社内 (56)参考文献 特開 昭57−189871(JP,A) 特開 平2−92548(JP,A) 特開 平2−179771(JP,A) 特開 平3−19872(JP,A) 特開 平2−74353(JP,A) 特開 平1−196348(JP,A) 特開 平3−73354(JP,A) 特開 平3−83672(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Hisashi Naito 3-30-2 Shimomaruko, Ota-ku, Tokyo Within Canon Inc. (72) Inventor Koji Fukunaga 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Non-corporation (72) Inventor Naohisa Suzuki 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Jiro Tateyama 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon (72) Inventor Susumu Takase 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (56) References JP-A-57-189871 (JP, A) JP-A-2-92548 (JP, A) JP-A-2-177977 (JP, A) JP-A-3-19872 (JP, A) JP-A-2-74353 (JP, A) JP-A-1-196348 (JP, A) JP-A-3-73354 (JP, A) Hei 3-83672 (JP, A)

Claims (10)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 初期化処理を行なう際に、プリンタ駆動
系が初期化されていないことを示す情報を駆動系初期化
フラグにセットする手段と、 印刷コマンドを受信した際に、駆動系初期化フラグにプ
リンタ駆動系が初期化されていることを示す情報がセッ
トされているか否かを判定する判定手段と、 前記判定手段により駆動系初期化フラグにプリンタ駆動
系が初期化されていないことを示す情報がセットされて
いると判定された場合、プリンタ駆動系の初期化を行
い、駆動系初期化フラグにプリンタ駆動系が初期化され
ていることを示す情報をセットし、受信した印刷コマン
ドを実行し、前記判定手段により駆動系初期化フラグに
プリンタ駆動系が初期化されていることを示す情報がセ
ットされていると判定された場合、プリンタ駆動系の初
期化を行なうことなく、受信した印刷コマンドを実行す
る処理手段とを有することを特徴とする印刷装置。
A means for setting information indicating that a printer drive system has not been initialized to a drive system initialization flag when performing an initialization process; Determining means for determining whether or not information indicating that the printer drive system has been initialized is set in the flag; and determining that the printer drive system has not been initialized in the drive system initialization flag by the determination means. If the information indicating that the printer drive system has been initialized is determined to be set, information indicating that the printer drive system has been initialized is set in the drive system initialization flag, and the received print command is set. When the determination unit determines that the information indicating that the printer drive system is initialized is set in the drive system initialization flag, the printer drive system is initialized. Without performing the printing apparatus characterized by having a processing means for executing a printing command received.
【請求項2】 前記初期化処理は、印刷バッファのクリ
ア処理を含むことを含むことを特徴とする請求項1記載
の印刷装置。
2. The printing apparatus according to claim 1, wherein the initialization process includes a process of clearing a print buffer.
【請求項3】 前記プリンタ駆動系の初期化は、キャリ
ッジの初期化、キャッピング、及び紙送りの初期化を含
むことを特徴とする請求項1記載の印刷装置。
3. The printing apparatus according to claim 1, wherein the initialization of the printer drive system includes initialization of a carriage, capping, and paper feeding.
【請求項4】 前記印刷装置は、印刷コマンドを送信す
るコンピュータと一体構造であることを特徴とする請求
項1記載の印刷装置。
4. The printing apparatus according to claim 1, wherein the printing apparatus is integrated with a computer that transmits a print command.
【請求項5】 前記印刷装置は、インクジェットプリン
タを含むことを特徴とする請求項1記載の印刷装置。
5. The printing device according to claim 1, wherein the printing device includes an ink jet printer.
【請求項6】 初期化処理を行なう際に、プリンタ駆動
系が初期化されていないことを示す情報を駆動系初期化
フラグにセットするステップと、 印刷コマンドを受信した際に、駆動系初期化フラグにプ
リンタ駆動系が初期化されていることを示す情報がセッ
トされているか否かを判定する判定ステップと、 前記判定ステップにより駆動系初期化フラグにプリンタ
駆動系が初期化されていないことを示す情報がセットさ
れていると判定された場合、プリンタ駆動系の初期化を
行い、駆動系初期化フラグにプリンタ駆動系が初期化さ
れていることを示す情報をセットし、受信した印刷コマ
ンドを実行し、前記判定ステップにより駆動系初期化フ
ラグにプリンタ駆動系が初期化されていることを示す情
報がセットされていると判定された場合、プリンタ駆動
系の初期化を行なうことなく、受信した印刷コマンドを
実行する処理ステップとを有することを特徴とする初期
化方法。
6. A step of setting information indicating that a printer drive system has not been initialized in a drive system initialization flag when performing an initialization process, and a step of performing drive system initialization when a print command is received. A determination step of determining whether or not information indicating that the printer drive system has been initialized is set in the flag; and that the printer drive system has not been initialized in the drive system initialization flag by the determination step. If the information indicating that the printer drive system has been initialized is determined to be set, information indicating that the printer drive system has been initialized is set in the drive system initialization flag, and the received print command is set. If it is determined in the determination step that the information indicating that the printer drive system is initialized is set in the drive system initialization flag, Without performing the initialization of the motor drive system, the initialization method characterized by having a process step of executing a printing command received.
【請求項7】 前記初期化処理は、印刷バッファのクリ
ア処理を含むことを特徴とする請求項6記載の初期化方
法。
7. The initialization method according to claim 6, wherein the initialization processing includes a print buffer clear processing.
【請求項8】 前記プリンタ駆動系の初期化は、キャリ
ッジの初期化、キャッピング、及び紙送りの初期化を含
むことを特徴とする請求項6記載の初期化方法。
8. The initialization method according to claim 6, wherein the initialization of the printer driving system includes initialization of a carriage, capping, and paper feeding.
【請求項9】 前記初期化方法は、印刷コマンドを送信
するコンピュータと一体構造のプリンタにより行われる
ことを特徴とする請求項6記載の初期化方法。
9. The initialization method according to claim 6, wherein the initialization method is performed by a printer integrated with a computer that transmits a print command.
【請求項10】 前記初期化方法は、インクジェットプ
リンタにより行われることを特徴とする請求項6記載の
初期化方法。
10. The initialization method according to claim 6, wherein said initialization method is performed by an ink jet printer.
JP19034391A 1991-07-30 1991-07-30 Printing apparatus and initialization method Expired - Fee Related JP3278174B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP19034391A JP3278174B2 (en) 1991-07-30 1991-07-30 Printing apparatus and initialization method
US07/921,701 US5838886A (en) 1991-07-30 1992-07-30 Printing method and apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19034391A JP3278174B2 (en) 1991-07-30 1991-07-30 Printing apparatus and initialization method

Publications (2)

Publication Number Publication Date
JPH0532015A JPH0532015A (en) 1993-02-09
JP3278174B2 true JP3278174B2 (en) 2002-04-30

Family

ID=16256620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19034391A Expired - Fee Related JP3278174B2 (en) 1991-07-30 1991-07-30 Printing apparatus and initialization method

Country Status (1)

Country Link
JP (1) JP3278174B2 (en)

Also Published As

Publication number Publication date
JPH0532015A (en) 1993-02-09

Similar Documents

Publication Publication Date Title
US5604844A (en) Printing method and apparatus
EP0526189B1 (en) Print controller with power saving control
EP0526183B1 (en) Computer-printer data transfer method
JP3278174B2 (en) Printing apparatus and initialization method
JP3093342B2 (en) Power saving method and printing apparatus
US5838886A (en) Printing method and apparatus therefor
JPH0532010A (en) Printing process and device
JPH0535421A (en) Method and processor for information processing
JPH0532011A (en) Printing process and device
JPH08310086A (en) Information processing device and its printing method
JPH0532016A (en) Mode switching and device therefor
JP3542443B2 (en) Host computer and data transfer method
US4971461A (en) Printing device for exchanging printing elements by use of character and identification code data
JPH0532014A (en) Information processing and device therefor
JPH05169736A (en) Printer and printer controlling method
JPH0532013A (en) Information processing and device therefor
JPH06262809A (en) Printer control device
JP3262355B2 (en) Information processing method and apparatus
JP3227188B2 (en) Information processing method and apparatus
JPH08320772A (en) Information processor and its printing method
JPH08278867A (en) Information processor and method for starting and controlling information processor
JPH08292854A (en) Information processor
JPH0532012A (en) Information processing and device therefor
JPH11175286A (en) System and method for controlling printing and storage medium
JPH079706A (en) Printer

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000905

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

Free format text: PAYMENT UNTIL: 20080215

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090215

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100215

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100215

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees