JPH0532014A - Information processing method and device - Google Patents
Information processing method and deviceInfo
- Publication number
- JPH0532014A JPH0532014A JP19034191A JP19034191A JPH0532014A JP H0532014 A JPH0532014 A JP H0532014A JP 19034191 A JP19034191 A JP 19034191A JP 19034191 A JP19034191 A JP 19034191A JP H0532014 A JPH0532014 A JP H0532014A
- Authority
- JP
- Japan
- Prior art keywords
- emulation
- printer
- information
- command
- country
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
(57)【要約】
ホスト側からのエミュレーションの切替指示に応じてプ
リンタ側のエミュレーションを切替えた場合に、エミュ
レーション情報の初期設定情報を転送する情報処理方法
及び装置。
(57) [Summary] An information processing method and apparatus for transferring initial setting information of emulation information when the emulation on the printer side is switched in response to an emulation switching instruction from the host side.
Description
【0001】[0001]
【産業上の利用分野】本発明はホスト側からの指示によ
りプリンタ側のエミュレーション情報を切替えた場合
に、エミュレーション初期設定情報を転送する情報処理
方法及び装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing method and apparatus for transferring emulation initial setting information when the emulation information on the printer side is switched by an instruction from the host side.
【0002】[0002]
【従来の技術】従来、エミュレーション切換手段はスイ
ッチあるいはコマンド等の命令により複数種類有するエ
ミュレーション手段のうちから所望するエミュレーショ
ン手段に切替えるように構成されている。2. Description of the Related Art Conventionally, emulation switching means is configured to switch from a plurality of types of emulation means to a desired emulation means by a switch or a command such as a command.
【0003】[0003]
【発明が解決しようとしている課題】しかしながら、上
記従来例では各エミュレーションに必要な情報の設定を
ディップスイッチのような設定手段を用いて設定するよ
うに構成されているため、次のような欠点があった。However, in the above-mentioned conventional example, since the setting of the information necessary for each emulation is set by using the setting means such as the DIP switch, the following drawbacks occur. there were.
【0004】(1)複数個のエミュレーション手段を切
替える度に、各々のエミュレーション手段に応じたエミ
ュレーション情報の設定をディップスイッチ等の操作で
実行しなければならないため、非常に面倒である。(1) Every time a plurality of emulation means are switched, the setting of emulation information corresponding to each emulation means must be performed by operating a dip switch or the like, which is very troublesome.
【0005】(2)仮にエミュレーション手段の数に応
じた設定装置手段を有し、エミュレーション手段の切替
えと同時に設定手段をも切替えれば、上記繁雑さは防げ
るが、類似の機能を有する設定装置手段(ディップスイ
ッチなど)がエミュレーション手段の数だけ必要にな
り、コストアップになる。(2) If the setting device means corresponding to the number of emulation means is provided and the setting means is switched at the same time as the switching of the emulation means, the above complexity can be prevented, but the setting device means having a similar function. The number of emulation means (such as DIP switches) is required, which increases the cost.
【0006】[0006]
【課題を解決するための手段(及び作用)】本発明によ
れば、各エミュレーション手段の初期設定情報を記憶す
るエミュレーション初期設定情報メモリ手段と、現在設
定されているエミュレーション設定情報を記憶するエミ
ュレーション設定情報メモリ手段と、複数個のエミュレ
ーション手段の中から所望のエミュレーション手段に切
替え、かつ選択されたエミュレーションの初期設定情報
を前記エミュレーション初期設定情報メモリ手段から読
み出し、エミュレーション設定情報メモリ手段に書きこ
むエミュレーション切替手段を設けることにより、複数
個のエミュレーション切替時にエミュレーション設定情
報が各々のエミュレーションに応じた設定になるように
したものである。According to the present invention, emulation initial setting information memory means for storing initial setting information of each emulation means, and emulation setting for storing currently set emulation setting information. Information memory means, switching from a plurality of emulation means to a desired emulation means, and reading the selected emulation initial setting information from the emulation initial setting information memory means and writing to the emulation setting information memory means By providing the means, the emulation setting information is set according to each emulation when a plurality of emulations are switched.
【0007】[0007]
【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。尚、本発明でいう国指定は、言
語別、地域別等、文書処理に係るある条件で特定される
複数のグループの中から所望のグループを指定すること
をいう。尚、グループはイギリスという指定でイギリ
ス、米国等の複数を含める場合もあれば、日本という国
を指定して、その国1つを指定する場合もあるが、ほぼ
使用言語に対応しているものである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings. The country designation in the present invention means designating a desired group from a plurality of groups specified by certain conditions relating to document processing, such as language and region. In addition, the group may include a plurality of countries such as the United Kingdom and the United States by designating the United Kingdom, or may specify the country of Japan and one of the countries, but it corresponds to almost all the languages used. Is.
【0008】図1は本発明の情報処理装置としてのパー
ソナルコンピュータ(以下パソコンと略す)を示す斜視
図である。パソコン1は、装置本体101、キーボード
102、表示部103を備える上カバー104、および
プリンタ2等の各部によって構成される。上カバー10
4は、装置本体101に対して、その後縁の両端に設け
られたヒンジ104aを介して回動可能に取り付けられ
ている。これにより本装置の使用時には、上カバー10
4は、その回動によって表示部103が視易くなる位置
まで開けられ、また、不使用時は閉じられてカバーとし
て機能することができる。表示部103の表示素子とし
ては、表示部を薄く構成できることから液晶表示素子が
用いられる。FIG. 1 is a perspective view showing a personal computer (hereinafter abbreviated as personal computer) as an information processing apparatus of the present invention. The personal computer 1 includes an apparatus main body 101, a keyboard 102, an upper cover 104 including a display unit 103, a printer 2, and the like. Top cover 10
4 is rotatably attached to the apparatus main body 101 via hinges 104a provided at both ends of its rear edge. Therefore, when using this device, the upper cover 10
4 can be opened to a position where the display 103 can be easily seen by the rotation, and can be closed when not in use to function as a cover. As the display element of the display section 103, a liquid crystal display element is used because the display section can be made thin.
【0009】インクジェット方式の記録ヘッドを用いた
プリンタユニット2はキーボード102の前方に配置さ
れ、装置本体101内に収納されている。また、プリン
タユニット2は操作者が開閉可能な開口部(不図示)を
もち、記録ヘッドの交換が可能なようになっている。The printer unit 2 using an ink jet recording head is arranged in front of the keyboard 102 and is housed in the main body 101 of the apparatus. Further, the printer unit 2 has an opening (not shown) that can be opened and closed by the operator so that the recording head can be replaced.
【0010】記録紙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 in the lower part of the keyboard 102, conveyed in a conveyance path penetrating the inside of the apparatus main body 101, and ejected from a paper ejection port (not shown) at the rear of the device. It The keyboard 102 is the device body 1
01 is rotatably attached via hinges 102a provided on both sides of 01. Thereby, even when a relatively short length of recording paper such as an envelope or a postcard is used, the keyboard 102 can be opened at the top and the recording paper 3 can be inserted deep inside the transport path. Since the conveyance path for the recording paper 3 is provided below the keyboard 102, the keyboard 102 and the display unit 103 are set even when the recording paper is set.
Various operations using are possible.
【0011】[Host−Printerの概略ブロッ
ク図]図2に、ホストコンピュータとプリンタの概略ブ
ロック図を示す。[Schematic Block Diagram of Host-Printer] FIG. 2 shows 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 Adapter)コン
トローラ(VGAC)を使って液晶(LCD)にキャラ
クタ等の表示を行ない、キーボード(KB)からのキー
入力はキーボードコントローラ(KBC)を経由して行
なわれる。ここで、数値演算プロセッサ(FPU)はC
PUに対して演算処理のサポートを行なうものである。
又、リアルタイムクロック(RTC)は現時点の経過時
間を示すものでシステム全体の電源が切られた状態にお
いても、専用バッテリーにより動作は行なわれる。DM
Aコントローラ(DMAC)は、メモリ〜メモリ間、メ
モリ〜I/O間、I/O〜I/O間において高速にデー
タの転送を行なう為に、CPUの介在なしでデータ転送
を行なう。割り込みコントローラ(IRQC)は各I/
Oからの割り込みを受け付け、優先順位に従って処理を
行なう。タイマ(TIMER)は、数チャンネルのフリ
ーランニングタイマを持ち、種々の時間管理を行なう。
その他に外部につながる、シリアルインターフェイス
(SIO)、拡張ポート(PORT)や、ユーザに動作
状況を伝えるLEDがある。プリンタは、ホストコンピ
ユータに対してパラレルインターフェイスでつながる形
になり、I/Oポートのレジスタレベルでデータ送受信
を行ない、接続のイメージとしては外部プリンタとやり
取りした時と同等となる。First, in the host computer, it is the central processing unit (CPU) that controls the main control, and it is the BIOS ROM that directs the basic control.
(Basic Input Output System
m ROM). From floppy disk (FDD) or hard disk (HDD) to floppy disk controller (FDC) or hard disk controller (H
The application program is read via the DC) and the program is executed 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 Adapter) controller (VGAC), and key input from the keyboard (KB) is performed via the keyboard controller (KBC). Here, the numerical processor (FPU) is C
It supports arithmetic processing for PU.
The real time clock (RTC) indicates the elapsed time at the present time, and the dedicated battery operates even when the power of the entire system is turned off. DM
The A controller (DMAC) transfers data at high speed between the memory and the memory, between the memory and the I / O, and between the I / O and the I / O, so that the A controller (DMAC) transfers the data without intervention of the CPU. Interrupt controller (IRQC)
The interrupt from O is accepted, and processing is performed according to the priority order. The timer (TIMER) has a free-running timer of several channels and manages various times.
In addition, there are a serial interface (SIO), an expansion port (PORT), and an LED that informs the user of the operating status, which are connected to the outside. The printer is connected to the host computer through a parallel interface, and data is transmitted / received at the register level of the I / O port, and the image of the connection is the same as when the data is exchanged with an external printer.
【0013】[Printerのブロック図]図3に、
プリンタ装置のブロック図を示す。[Block Diagram of Printer] FIG.
FIG. 3 shows a block diagram of a printer device.
【0014】プリンタ装置は、プリンタ制御用のCPU
#2、プリンタ制御プログラムやプリンタエミュレーシ
ョンプログラムや印字フォントを備えたROM#2、印
字の為の展開データやホストからの受信データを蓄えて
おくRAM#2、プリンタの印字ヘッドやモータを駆動
するプリンタドライバ、メモリのアクセス制御やホスト
とのデータのやり取りやプリンタドライバへの制御信号
送出を行なうコントローラで構成される。The printer device is a CPU for controlling the printer.
# 2, ROM # 2 with printer control program, printer emulation program and print font, RAM # 2 for storing development data for printing and received data from host, printer for driving print head and motor of printer It consists of a controller that controls access to the driver and memory, exchanges data with the host, and sends control signals to the printer driver.
【0015】[プリンタドライバの構成図]図4に、記
録ヘッドおよびヘッドドライバの構成を示す。[Arrangement of Printer Driver] FIG. 4 shows the arrangement of the recording head and head driver.
【0016】ここで、本例では吐出ユニットは64個の
吐出口を有するものとし、#1〜#64は吐出ユニット
に設けられた吐出口の位置に対応した番号を示すものと
する。R1〜R64はそれぞれ#1〜#64の吐出口に
対応して設けられた吐出エネルギ発生素子としての発熱
抵抗体である。発熱抵抗体R1〜R64は8個を単位と
したブロックに分割され、各ブロックに共通にコモン側
ドライバ回路のスイッチング用トランジスタQ1〜Q8
が接続される。トランジスタQ1〜Q8は、それぞれ制
御信号COM1〜COM8のオン/オフに応じ通電経路
をオン/オフする。なお、各発熱抵抗体R1〜R64へ
の通電経路に配置されたD1〜D64は逆流防止用のダ
イオードである。Here, in this example, 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. The heating resistors R1 to R64 are divided into blocks in units of eight, and the switching transistors Q1 to Q8 of the common side driver circuit are shared by each block.
Are connected. The transistors Q1 to Q8 turn on / off the energization path in response to turning on / off of the control signals COM1 to COM8, respectively. It should be noted that D1 to D64 arranged in the energization paths to the heating resistors R1 to R64 are diodes for backflow prevention.
【0017】各ブロック間で対応する位置にある発熱抵
抗体に対しては、セグメント側ドライバ回路のオン/オ
フ用トランジスタQ9〜Q16が接続される。トランジ
スタQ1〜Q16はそれぞれ制御信号SEG1〜SEG
8のオン/オフに応じて発熱抵抗体に対する通電経路を
オン/オフする。On / off transistors Q9 to Q16 of the segment side driver circuit are connected to the heating resistors located at corresponding positions between the blocks. The transistors Q1 to Q16 have control signals SEG1 to SEG, respectively.
The energization path for the heating resistor is turned on / off according to the turning on / off of 8.
【0018】図5は、斯かる構成によるヘッド駆動のタ
イミングチャートを示す。ヘッド走査方向上のある位置
において、コモン側制御信号COM8〜COM1が順次
オンされる。そのオンにより1つのブロックが選択され
て通電可能な状態になるので、選択されたブロック内に
おいて記録による画像に応じてセグメント側制御信号S
EG8〜SEG1をそれぞれオンまたはオフすることに
より、発熱抵抗体に選択的に通電が成され、発熱に応じ
てインクが吐出されてドット記録が行なわれる。FIG. 5 shows a timing chart of head drive according to such a configuration. At a certain position in the head scanning direction, the common side control signals COM8 to COM1 are sequentially turned on. When the block is turned on, one block is selected to be in a state in which it can be energized.
When the EG8 to SEG1 are turned on or off, the heating resistors are selectively energized, and ink is ejected according to the heat generation to perform dot recording.
【0019】図6はキャリッジモータおよびモータドラ
イバの構成図である。FIG. 6 is a configuration diagram of the carriage motor and the motor driver.
【0020】図7はその駆動タイミングを示す。FIG. 7 shows the driving timing.
【0021】図6、図7を参照して説明すると、キャリ
ッジモータとしてコイルΦ1〜Φ4を有するステッピン
グモータを用い、駆動信号CM1〜CM4により各コイ
ルに接続されたスイッチ用トランジスタTR1〜TR4
を適切にオン/オフすることにより、図7に示す様に2
相励磁方式にて駆動する。Explaining with reference to FIGS. 6 and 7, a stepping motor having coils Φ1 to Φ4 is used as a carriage motor, and switch transistors TR1 to TR4 connected to each coil by drive signals CM1 to CM4.
By properly turning on / off, as shown in FIG.
It is driven by the phase excitation method.
【0022】フィードモータについても同様な構成で、
駆動信号FM1〜FM4により駆動される。The feed motor has the same structure,
It is driven by the drive signals FM1 to FM4.
【0023】[プリンタコントローラの構成]図8に図
3に示したプリンタコントローラの構成図を示す。[Configuration of Printer Controller] FIG. 8 shows a configuration diagram of the printer controller shown in FIG.
【0024】コントローラの機能ブロックとしては、ホ
ストとのコマンドレベルでのデータのやり取りを行なう
I/Oデータレジスタ、そしてそのレジスタから受信デ
ータをRAM#2に直接書き込む受信バッファコントロ
ーラ、RAM#2内に設けられる印字バッファから印字
データを読み出しヘッドドライバへ対してCOM1〜C
OM8/SEG1〜SEG8の制御信号の送出を行なう
印字バッファコントローラ、更にRAM#2に対して3
方向つまり、CPU#2、受信バッファコントローラ、
印字バッファコントローラからのメモリアクセスを制御
するメモリコントローラ、以上4つのブロックで構成さ
れている。The functional blocks of the controller are the I / O data register for exchanging data at the command level with the host, and the receive buffer controller for directly writing the received data from the register to the RAM # 2. The print data is read from the print buffer provided to the head driver and COM1 to C
A print buffer controller for sending control signals of OM8 / SEG1 to SEG8, and 3 for RAM # 2.
Direction, that is, CPU # 2, receive buffer controller,
The memory controller for controlling memory access from the print buffer controller is composed of the above four blocks.
【0025】図9はプリンタのI/Oデータレジスタ
(図8に示す)のマップを示す。FIG. 9 shows a map of the I / O data register (shown in FIG. 8) of the printer.
【0026】この中でモータコントロールポートは、レ
ジスタの値を直接書き換えることによりポートを制御し
各モータを駆動するものである(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).
【0027】印字バッファエリアは、印字に必要なデー
タ領域を設定するもので、開始アドレス(PB STA
RT)と終了アドレス(PB END)を設定すること
により、その範囲内で印字バッファコントローラによっ
て開始アドレスから順番に印字データを読み出し、終了
アドレスに至るまでRAM#2から印字データを読み出
し、ヘッドドライバに制御信号を送出する。この時、印
字データアドレスポインタ(PB POINT)は現在
データ送出中のデータアドレスを示している。The print buffer area is used to set a data area required for printing, and the start address (PB STA
RT) and end address (PB END) are set, the print buffer controller sequentially reads the print data from the start address within the range, and the print data is read from RAM # 2 until the end address, and the head driver is read. Send a control signal. At this time, the print data address pointer (PB POINT) indicates the data address of the data currently being sent.
【0028】受信データバッファエリアも同様に、受信
に必要なデータ領域を設定するもので、開始アドレス
(IB START)と終了アドレス(IB END)
を設定することにより、その範囲内で受信バッファコン
トローラによって開始アドレスから順番に受信データを
書き込み、終了アドレスに至るまでRAM#2へ受信デ
ータを書き込む。この時、受信データアドレスポインタ
(IB POINT)は現在データ受信済になっている
データアドレスを示している。Similarly, the reception data buffer area also sets a data area required for reception, and has a start address (IB START) and an end address (IB END).
By setting, the reception buffer controller writes the reception data in order from the start address within the range, and the reception data is written to the RAM # 2 until the end address. At this time, the reception data address pointer (IB POINT) indicates the data address that has already received the data.
【0029】図10では上記動作におけるRAM#2上
での印字バッファ(PB)と受信バッファ(IB)のア
ドレス領域をおのおの示している。各アドレスは、図9
に示す様に、プリンタI/Oレジスタにおいて、指示さ
れている。インターフェイス領域は、ホストコンピュー
タとプリンタ間での共通のI/O領域である。FIG. 10 shows the address areas of the print buffer (PB) and the receive buffer (IB) on the RAM # 2 in the above operation. Each address is shown in Figure 9.
As shown in, the instruction is given in the printer I / O register. The interface area is a common I / O area between the host computer and the printer.
【0030】インターフェイス領域の部分は、ホストコ
ンピュータとのデータのやり取りを行なう領域であり、
ホストコンピュータにおいてはパラレルインターフェイ
スのポートに相当する。The interface area is an area for exchanging data with the host computer.
It corresponds to a parallel interface port in the host computer.
【0031】インターフェイス領域については、図11
においてホストコンピュータとプリンタのインターフェ
イス領域における相関関係を示した図で説明する。The interface area is shown in FIG.
Will be described with reference to a diagram showing the correlation in the interface area between the host computer and the printer.
【0032】ホスト側における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 have the same addresses as the I / F data, I / F status, and I / F control registers on the printer side. In addition, 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.
【0033】すなわち、この部分のアドレスは双方向で
読み書きできるレジスタになっている。That is, the address of this portion is a register which can be read and written bidirectionally.
【0034】尚、ホストコンピュータ側にも図14に示
す様に、周辺機器を制御するためのI/Oレジスタを備
えていて、ホストコンピュータ内でのI/O制御に使わ
れている。すなわち図2で示した各ブロックのI/O領
域をもっていて、その中のインターフェイスの制御領域
についてのみが、プリンタ側のI/Oレジスタのインタ
ーフェイス領域と共通になっているという構成になって
いる。As shown in FIG. 14, the host computer side is also provided with an I / O register for controlling peripheral devices, which is used for I / O control in the host computer. That is, the I / O area of each block shown in FIG. 2 is provided, and only the control area of the interface therein is common to the interface area of the I / O register on the printer side.
【0035】図12は、本発明が実施もしくは適用され
たインクジェット記録方式を用いたプリンタユニット
(図2)の内部構成を説明するための斜視図である。図
12において、5001はインクタンクであり、501
2はそれに結合された記録ヘッドである。5001のイ
ンクタンクと5012の記録ヘッドで一体型の交換可能
なカートリッジを形成するものである。5014は、そ
のカートリッジをプリンター本体に取り付けるためのキ
ャリッジであり、5003はそのキャリッジを副走査方
向に走査するためのガイドである。FIG. 12 is a perspective view for explaining the internal structure of a printer unit (FIG. 2) using an ink jet recording system to which the present invention is applied or applied. In FIG. 12, reference numeral 5001 denotes an ink tank, and 501
2 is a recording head coupled to it. The ink tank 5001 and the recording head 5012 form an integral replaceable cartridge. Reference numeral 5014 is a carriage for attaching the cartridge to the printer main body, and reference numeral 5003 is a guide for scanning the carriage in the sub-scanning direction.
【0036】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 is a paper feed motor for rotating the platen roller. The carriage 5014 is provided with a flexible cable (not shown) for supplying a signal pulse current for driving and a current for head temperature control to the recording head 5012, and a print circuit provided with an electric circuit for controlling the printer. It is connected to a plate (not shown).
【0037】さらに、上記構成のプリンタユニット2を
詳細に説明する。駆動モータ5013の正逆回転に連動
して駆動力伝達ギア5011、5009を介して回転す
るリードスクリュー5005の螺旋溝5004に対して
係合するキャリッジ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 5004 of the lead screw 5005 that rotates via the driving force transmission gears 5011 and 5009 in conjunction with the forward / 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 pressing plate which holds the paper in the platen 5 in the carriage movement direction.
Press against 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 a photocoupler and switching the rotation direction of the motor 5013. 5016
Is a cap member 502 that caps the front surface of the recording head.
Reference numeral 5015 is a member for supporting the inside of the cap, and 5015 is a suction means for sucking the inside of the cap.
【0038】5017は、クリーニングブレードで、5
019はこのブレード5017を前後方向に移動可能に
する部材であり、本体支持板5018にこれらは支持さ
れている。ブレードは、この形態でなく周知のクリーニ
ングブレードが本例に適用できることはいうまでもな
い。また、5021は、吸引回復の吸引を開始するため
のレバーで、キャリッジ5014と係合するカム502
0の移動に伴って移動し、駆動モータからの駆動力がク
ラッチ切換等の公知の伝達手段で移動制御される。Reference numeral 5017 is a cleaning blade.
Reference numeral 019 denotes a member that allows the blade 5017 to move in the front-rear direction, and these members are supported by the main body support plate 5018. Needless to say, a well-known cleaning blade can be applied to this example instead of this form. Reference numeral 5021 is a lever for starting suction for suction recovery, and a cam 502 that engages with the carriage 5014.
It moves along with the movement of 0, and the driving force from the driving motor is movement-controlled by a known transmission means such as clutch switching.
【0039】すなわち、駆動モータ5013をキャリッ
ジ5014のホームポジションから逆回転することによ
り、動力伝達ギア5011を5010に切り替え(不図
示)、駆動モータ5013からの駆動力がカム5020
を介してレバー5021に伝わり、記録ヘッド5012
のキャッピングおよびクリーニング、吸引回復が行なえ
るように構成されている。That is, by rotating the drive motor 5013 in the reverse direction 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.
Is transmitted to the lever 5021 via the recording head 5012.
It is designed for capping, cleaning, and suction recovery.
【0040】図13は図2のホスト側のRAM上のメモ
リーマップの詳細な配置を示す。RAMは標準領域とし
てアドレス0000h〜A0000h、拡張領域として
100000h〜FE0000hとがあり、それぞれ6
40KB、15MBの大きさをもつ領域となる。RAM
はこれらの領域に配置されるようにメモリマッピングさ
れる。FIG. 13 shows the detailed layout of the memory map on the RAM on the host side in FIG. The RAM has addresses 0000h to A0000h as standard areas and 100000h to FE0000h as extended areas, each of which has 6 areas.
The area has a size of 40 KB and 15 MB. RAM
Are memory-mapped to be arranged in these areas.
【0041】RAMの標準領域の先頭部分00000h
〜000400hには、割り込み用のベクタを保存する
エリアがあり、この中に割り込みに対する各処理のエン
トリーアドレスが保存される。Head portion 00000h of the standard area of RAM
At ˜000400h, there is an area for storing the vector for interrupt, and the entry address of each processing for the interrupt is stored in this area.
【0042】図13のビデオRAM領域、及びビデオB
IOS ROM領域は、図2のVGACの中に配置さ
れ、ビデオBIOS ROM領域内にはビデオ制御のた
めのプログラムが保持され、ビデオRAM領域には、ビ
デオ表示データが保持される。Video RAM area of FIG. 13 and video B
The IOS ROM area is arranged in the VGAC of FIG. 2, the video BIOS ROM area holds a program for video control, and the video RAM area holds video display data.
【0043】C8000h〜E0000hまでの領域
は、拡張ROM領域となり、拡張ボード等により使用さ
れるROM領域となる。The area from C8000h to E0000h is an expansion ROM area, which is a ROM area used by an expansion board or the like.
【0044】F0000h〜10000hまでの領域
は、ROM BIOSに配置され、各種I/Oの処理を
行うBIOSプログラムを保持している。Areas from F0000h to 10000h are arranged in the ROM BIOS and hold a BIOS program for performing various I / O processing.
【0045】図14に各I/Oのアドレスマップを示
す。各々のハードウェアに設定されたアドレスポートへ
のデータのリード、ライトにより各々のハードウェアと
のデータのやりとりが行われる。一例としてキーボード
について説明すると、キーボードコントローラーとのデ
ータのやりとりは60h〜64hのアドレスに配置され
たポートを介して行い、このうちのデータ受取りポート
を読み出すことにより、キーボードからのデータを受け
ることができる。FIG. 14 shows an address map of each I / O. Data is exchanged with each piece of hardware by reading and writing data to the address port set in the piece of hardware. Taking a keyboard as an example, data is exchanged with a keyboard controller through a port arranged at an address of 60h to 64h, and by reading out a data receiving port, data from the keyboard can be received. .
【0046】他のアドレスについても、同様に扱うこと
が出きる。The same applies to other addresses.
【0047】ここでパラレルセントロニクス1〜3で示
されるのがインターフェイス領域を示していて、前記、
図11に示した様に、プリンタのインターフェイス領域
と共通のI/O空間になっている。The parallel centronics 1 to 3 indicate the interface area.
As shown in FIG. 11, the I / O space is common to the printer interface area.
【0048】図15、16は、図13の割り込みベクタ
の内容を詳細に示した図で、Oh〜Fhまでがハードウ
ェア割り込み、10h以降をソフトウェアに割り込みに
割り当てている。FIGS. 15 and 16 are diagrams showing in detail the contents of the interrupt vector shown in FIG. 13, in which hardware interrupts are assigned from Oh to Fh and software interrupts from 10h are assigned to interrupts.
【0049】各割り込みに対して各エントリーに登録さ
れたアドレスのプログラムが実行される。各エントリー
には、ROM BIOSのプログラム、あるいはRAM
内にあるプログラムへのアドレスがセットされ、ハード
ウェア割り込み時、及びソフトウェア割り込み時に各処
理が実行され、それぞれの処理が行われる。The program of the address registered in each entry is executed for each interrupt. Each entry has a ROM BIOS program or RAM
An address to a program inside is set, each process is executed at the time of hardware interrupt and software interrupt, and each process is performed.
【0050】以下、本体側電源投入後の各処理について
説明する。Each processing after turning on the power source of the main body will be described below.
【0051】図17に電源投入時のフローチャートで、
まずステップS1に進む。キーボードによるソフトリセ
ット処理も電源投入時と同様に、ステップS1へ入って
来る。ステップS1でPOST処理が行なわれ、POS
T処理はpower onself−testで、各ハ
ードウェアのテスト及び初期化を実行する。次にステッ
プS2へ進みシステムプログラム起動のための、ブート
プログラムのロードが行なわれる。ブートプログラムは
FD(フロピィディスク)あるいはHD(ハードディス
ク)などに保存され、例えば、トラック0、セクタ0に
配置される。トラック0、セクタ0をメモリ内に読み込
むことでブートプログラムのロードが行なわれる。ステ
ップS1からステップS2まではROM BIOS内に
存在する。次にステップS3へ進み、ロードされたブー
トプログラムが実行される。ブートプログラムは、F
D、あるいはHDからOSプログラムをロードするため
のプログラムをロードするプログラムで、次にステップ
S4へ進み、OSロードプログラムをロードする。次に
ステップS5へ進み、OSロードプログラムを実行す
る。OSロードプログラムは、OSをメモリ内にロード
するためのプログラムで、まずステップS6でI/Oド
ライバをロードする。I/Oドライバというのは、I/
Oを制御するためのプログラムで、I/Oドライバによ
りOSは、各種I/Oとのデータのやりとりを行なう。
次にステップS7へ進み、I/Oのテストと初期化を行
なう。次にステップS8へ進みOSをメモリへロードす
る。ここまでのステップでOSが実行される準備がとと
のい次にステップS9へ進んで、OSが実行に移され
る。OSは、キーボードからの入力を処理し、各種メッ
セージを表示器に表示し、操作者とのやりとりを行な
う。OSは操作者の各種コマンドの入力に従って各種コ
マンド処理の実行を行なう。FIG. 17 is a flowchart when the power is turned on.
First, the process proceeds to step S1. The soft reset process by the keyboard also comes to step S1 similarly to when the power is turned on. In step S1, the POST processing is performed and the POS
The T process is power on self-test, and tests and initializes each hardware. Next, in step S2, a boot program for loading the system program is loaded. The boot program is stored in an FD (floppy disk) or HD (hard disk), and is arranged in, for example, track 0 and sector 0. The boot program is loaded by reading track 0 and sector 0 in the memory. Steps S1 to S2 exist in the ROM BIOS. Next, in step S3, the loaded boot program is executed. The boot program is F
This is a program for loading a program for loading an OS program from D or HD. Next, in step S4, the OS loading program is loaded. Next, in step S5, 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 S6. I / O driver means I / O
This is a program for controlling O, and the I / O driver causes the OS to exchange data with various I / Os.
Next, in step S7, I / O test and initialization are performed. Next, in step S8, the OS is loaded into the memory. When the OS is ready to be executed in the steps so far, the process proceeds to step S9, and the OS is executed. The OS processes the input from the keyboard, displays various messages on the display, and interacts with the operator. The OS executes various command processes according to the input of various commands by the operator.
【0052】図18は、図17のS1のPOSTを詳細
に説明するフローチャートで、CPU(図2のFPU数
値演算プロセッサ)のテストを行なう(ステップS1
0)。次にROMのテストを行なう(ステップS1
1)。次に電源、バッテリィのチェックを行なう(ステ
ップS12)。次にLCD、LCDアダプタのテストと
初期化を行なうLCDアダプタには、RAM、ROMを
含みそれらのチェックも行なう(ステップS13)。次
に割り込みコントローラのテストと初期化を行なう(ス
テップS14)。次にタイマのテストを行なう(ステッ
プS15)。次にDMAコントローラのテストを行なう
(ステップS16)。次にキーボード、キーボードコン
トローラのテストを行なう(ステップS17)。次にシ
リアルパラレルポートのテスト、初期化を行なう(ステ
ップS18)。次にソフトリセットかどうかをチェック
する(ステップS19)。ソフトリセットならば、ステ
ップS20のRAMのテストと初期化処理をスキップし
ステップS21へ進む。ソフトリセットでない場合ステ
ップS20へ進みRAMのテストと初期化を行なう。次
にFDのテストを行なう(ステップS21)。次にHD
のテストを行なう(ステップS22)。次にリアルタイ
ムクロックのテストを行なう(ステップS23)。次に
プリンタのテストを行なう。プリンタのテストは各種プ
リンタポートのチェックとプリンタ接続のチェックを行
なう(ステップS24)。次にLEDのテストを行なう
(ステップS25)。次に戻りとなる。以上の処理によ
り図17のS1で示すPOST処理が行なわれ、各装置
にエラー等があった場合、それらを知らしめる。FIG. 18 is a flow chart for explaining the POST of S1 of FIG. 17 in detail, and the CPU (FPU numerical arithmetic processor of FIG. 2) is tested (step S1).
0). Next, a ROM test is performed (step S1).
1). Next, the power source and the battery are checked (step S12). Next, the LCD and LCD adapter are tested and initialized. The LCD adapter includes RAM and ROM, and checks them (step S13). Next, the interrupt controller is tested and initialized (step S14). Next, the timer is tested (step S15). Next, the DMA controller is tested (step S16). Next, the keyboard and keyboard controller are tested (step S17). Next, the serial / parallel port is tested and initialized (step S18). Next, it is checked whether it is a soft reset (step S19). If it is a soft reset, the RAM test and the initialization process in step S20 are skipped and the process proceeds to step S21. If it is not a soft reset, the process proceeds to step S20 to test and initialize the RAM. Next, the FD test is performed (step S21). Next HD
Is tested (step S22). Next, the real-time clock is tested (step S23). Then test the printer. In the printer test, various printer ports and printer connections are checked (step S24). Next, the LED test is performed (step S25). Then return. With the above processing, the POST processing shown in S1 of FIG. 17 is performed, and if there is an error or the like in each device, they are notified.
【0053】次に、キーボード割り込み処理とキーコー
ド取得処理について説明する。キーボード割り込み処理
は、キーボードのキー押下に従ってキーボードコントロ
ーラから割り込みが発生し割り込みコントローラにより
処理され、キーボード割り込み処理が実行される。キー
コード取得処理は、キーボード割り込みにより保存され
たキーコードをキーバッファから取り出し、キーコード
は必要とする処理に戻される。尚、キーバッファは、図
13のB10Sコモンエリア内に設けられている。キー
ボード割り込み処理は、図15に示すハードウェア割り
込みのエントリ09hなどに割り当てられ、またキーコ
ード取得処理は、図15に示すソフトウェア割り込みの
エントリ16hなどに割り当てられる。それぞれキーボ
ードから割り込み、ソフトウェア割り込みの呼び出しに
より実行に移される。Next, the keyboard interrupt processing and the key code acquisition processing will be described. In the keyboard interrupt process, an interrupt is generated from the keyboard controller in response to a key press on the keyboard, the interrupt controller processes the interrupt, and the keyboard interrupt process is executed. In the key code acquisition process, the key code saved by the keyboard interrupt is retrieved from the key buffer, and the key code is returned to the required process. The key buffer is provided in the B10S common area in FIG. The keyboard interrupt process is assigned to the hardware interrupt entry 09h shown in FIG. 15, and the key code acquisition process is assigned to the software interrupt entry 16h shown in FIG. Each is executed by calling an interrupt or software interrupt from the keyboard.
【0054】図19は、キーボード割り込みが発生した
場合の処理に関するフローチャートを示す。同図におい
て、まずキーボード割込みが発生すると、S30におい
て、キースキャンコードをI/Oのキーボードに割当て
られたポートから読みとる。読みとったコードはS31
においてソフトリセットに相当するコードであるかどう
か判断され、YesであればS32で印字バッファクリ
アコマンド送信を実行し、実行後実際のソフトリセット
動作を開始する。読みとったコードがソフトリセットで
ない場合、S33においてキーボードバッファが一杯で
ないかどうか確認する。一杯であれば、S34によって
警告のためBeep音を発生し、処理を終了する。一杯
でなければ、S35によってキースキャンコードを文字
コードに対応したキーコードに変換し、さらに変換され
たキーコードをS36によってキーバッファにセットし
て処理を終了する。FIG. 19 is a flow chart showing the processing when a keyboard interrupt occurs. In the figure, when a keyboard interrupt occurs, the key scan code is read from the port assigned to the I / O keyboard in S30. The read code is S31
In step S32, it is determined whether or not the code corresponds to the soft reset. If Yes, the print buffer clear command transmission is executed in S32, and after execution, the actual soft reset operation is started. If the read code is not a soft reset, it is confirmed in S33 whether the keyboard buffer is full. If it is full, a beep sound is generated in S34 for a warning, and the process ends. If it is not full, the key scan code is converted into a key code corresponding to the character code in S35, and the converted key code is set in the key buffer in S36, and the process is ended.
【0055】図20はキーコード取得処理に関するフロ
ーチャートを示す。FIG. 20 shows a flowchart relating to the key code acquisition process.
【0056】同図において、キーコード取得が開始され
ると、まずS40においてキーボードバッファにキーコ
ードがあるかどうかチェックされる。なければS40を
くり返し、キーコードがキーボードバッファに入れられ
るのを待つ。キーコードが存在した場合、S41におい
てキーコードの変換が必要かどうかチェックされ、必要
な場合、S42によってキーコードの変換が行われる
(キーコードの変換は、主として国別にキーボードが異
なる場合などに発生する。)。In the figure, when the key code acquisition is started, it is first checked in S40 whether or not there is a key code in the keyboard buffer. If not, S40 is repeated until the key code is stored in the keyboard buffer. If the key code is present, it is checked in S41 whether or not the key code needs to be converted, and if it is necessary, the key code is converted in S42 (the key code conversion mainly occurs when the keyboard is different for each country). Yes.).
【0057】キーコードの変換が必要でない時、また必
要でS42において変換が行われたあと、S43によっ
てキーコードがキーボードバッファにセットされ、処理
を終了する。When it is not necessary to convert the key code, or after the conversion is performed in step S42 if necessary, the key code is set in the keyboard buffer in step S43, and the process is terminated.
【0058】以上説明した様に、キーボード割り込み処
理内でソフトリセット実行時にプリンタにバッファクリ
アコマンド送信され、プリンタのバッファクリア処理が
行なわれる。As described above, the buffer clear command is transmitted to the printer when the soft reset is executed in the keyboard interrupt process, and the buffer clear process of the printer is performed.
【0059】次に、国切替えコマンドが実行される場合
について説明する。OSは操作者からの国切替えコマン
ドの指定に従って、以下の国切替え処理を実行する。Next, the case where the country switching command is executed will be described. The OS executes the following country switching processing according to the specification of the country switching command from the operator.
【0060】図21はホストにおける、キーから入力さ
れるコマンド解析処理のフローを示す図である。FIG. 21 is a diagram showing a flow of a command analysis process for inputting a key from the host.
【0061】コマンド解析処理が実行されると、S50
においてオペレーターによるキーボードなどからのコマ
ンド入力を受け取り、S51において受け取ったコマン
ドが国切替コマンドであるかどうかチェックする。YE
SであればS52において国切替印字コマンド送信処理
を実行し、再びコマンド入力を待つ。When the command analysis processing is executed, S50
In step S51, the operator receives a command input from a keyboard or the like, and it is checked in step S51 whether the command received is a country switching command. YE
If it is S, the country switching print command transmission process is executed in S52, and the command input is waited again.
【0062】NOであれば、S53において他のコマン
ドであるかチェックし、YESであれば、S54におい
て対応する処理が実行され再びコマンド入力を待つ。If NO, it is checked in S53 if it is another command. If YES, the corresponding process is executed in S54 and the command input is waited again.
【0063】S53〜S54は必要なコマンドの数だけ
類似の処理が拡張されているがここでは詳述しない。Similar processing is expanded in S53 to S54 by the number of necessary commands, but detailed description will not be given here.
【0064】図22は図21のS52のホスト側におけ
る、国切替え印字コマンド送信処理のフローを示す図で
ある。FIG. 22 is a diagram showing the flow of the country switching print command transmission processing on the host side in S52 of FIG.
【0065】国切替え印字コマンド送信処理が実行され
ると、S60において、送られてきたコマンドに従って
ホスト側の現在の国別モード設定を所望された国別モー
ド設定へと変更する。その情報は、図2のRAMに格納
されている。変更が終了すると、S61において、周辺
機器に対して同様の国切替えを行う為に国切替え印字コ
マンドを送信して処理が終了する。When the country switching print command transmission process is executed, the current country mode setting on the host side is changed to the desired country mode setting in accordance with the command sent in S60. The information is stored in the RAM shown in FIG. When the change is completed, in S61, the country switch print command is transmitted to perform the same country switch to the peripheral device, and the process ends.
【0066】図23は図22のS61の国切替印字コマ
ンド送信処理のフローを示す図である。FIG. 23 is a diagram showing a flow of the country switching print command transmission processing in S61 of FIG.
【0067】国切替印字コマンド送信処理が実行される
と、S70において図2の本体(ホスト)側のRAMに
格納された国情報に基づいて変更された国モードを調
べ、プリンタ側に送信すべく、対応する国No.を決定
する。When the country switching print command transmission process is executed, the country mode changed based on the country information stored in the RAM on the main body (host) side of FIG. 2 is checked in S70, and it is transmitted to the printer side. , Corresponding country No. To decide.
【0068】S71において、決定された国No.に応
じた国にプリンタを切替えるため、国切替え印字コマン
ドを送信して処理を終了する。In S71, the determined country number. In order to switch the printer to the country corresponding to the above, the country switching print command is transmitted and the processing is terminated.
【0069】図24は図22のS61の国切替印字コマ
ンド送信処理をエミュレーションで行う場合のフローを
示す図である。FIG. 24 is a diagram showing a flow in the case of performing the country switching print command transmission process of S61 of FIG. 22 by emulation.
【0070】国切替印字コマンド送信処理が実行される
と、S80において本体(ホスト)側の図2のRAMに
保存された変更された国情報を調べ、それに対応するエ
ミュレーションNo.を決定する。そのエミュレーショ
ンNo.は、国情報に対応して、テーブル形式で図2の
RAMに格納されている。When the country switching print command transmission process is executed, the changed country information stored in the RAM of the main body (host) side in FIG. 2 is checked in S80, and the corresponding emulation number. To decide. The emulation No. Are stored in the RAM of FIG. 2 in a table format corresponding to country information.
【0071】S81において、決定されたエミュレーシ
ョンにプリンタを切替えるためにエミュレーション切替
え印字コマンドをプリンタ側へ送信し、処理を終了す
る。In S81, an emulation switching print command is transmitted to the printer side in order to switch the printer to the decided emulation, and the process is ended.
【0072】以上により、国切替コマンドの発行によ
り、ホストの国別モード切替えと、同時にプリンタ側の
国切替えあるいは、プリンタ側のエミュレーション切替
えを行うことができる。プリンタ側の制御は、後述の図
36で説明する。As described above, by issuing the country switch command, it is possible to switch the country mode of the host and simultaneously switch the country of the printer side or the emulation switch of the printer side. The control on the printer side will be described later with reference to FIG.
【0073】次にプリンタ側について説明する。Next, the printer side will be described.
【0074】図25は図3に示したRAM#2で表わさ
れ、バッファ、フラグ等を含むリード/ライトメモリの
詳細を示した図である。図中、受信バッファは本体から
プリンタヘ転送された印字コマンド、印字データを受信
するためのバッファで、プリンタの入力ポートに入力し
たデータが保持される。これは図10において説明し
た。印字データエリアは、印字に必要なフラグ、レジス
タを含んだデータエリアで、印字はこのエリアに保持さ
れた値、例えばマージン情報等を用いて行なわれる。エ
ミュレーションデータエリアはエミュレーションに必要
なフラグ、レジスタ、エミュレーション情報を含んだデ
ータエリアで、エミュレーション処理は、このエリアに
保持された値を用いてエミュレーションを行なう。さら
にこのエミュレーションデータエリアの内容を図26に
詳細に示す。ワークバッファアは印字、エミュレーショ
ンで一時的に使用されるワークエリアで、データの加
工、変更等の仕事に利用される。印字バッファ1〜3は
印字するためのデータを保持するエリアで、エミュレー
ションで作成された印字イメージデータが蓄えられ、こ
の印字バッファに保持されたデータが印字部に転送され
印字が実行される。印字にバッファ1〜3は1つが1度
の印字に必要なサイズのデータが保存出来、本実施例に
おいては、1〜3の3つのバッファを有する。印字バッ
ファが複数用意されているのは、1つの印字バッファが
実際に印字されている間に他のバッファに印字イメージ
を展開出来る様にするためで、印字バッファへのデータ
展開と印字とが平行して行なうことが出来る。ダウンロ
ードフォントバッファはプリンタ内に持つフォントデー
タ以外のフォントを印字する際に本体からのフォントデ
ータの転送により、これらの印字を行なうための、フォ
ントバッファエリアで、このダウンロードフォントにフ
ォントが転送されると、このエリアに保持されたフォン
トで印字が行なわれる。FIG. 25 is a diagram showing details of the read / write memory represented by the RAM # 2 shown in FIG. 3 and including a buffer, a flag and the like. 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 the input port of the printer. This is explained in FIG. The print data area is a data area including flags and registers necessary for printing, and printing is performed using the value held in this area, for example, margin information. The emulation data area is a data area containing flags, registers, and emulation information necessary for emulation, and the emulation processing uses the value held in this area to perform emulation. Further, the contents of this emulation data area are shown in detail in FIG. The work buffer is a work area that is temporarily used for printing and emulation, and is used for work such as data processing and modification. The print buffers 1 to 3 are areas for holding data to be printed, print image data created by emulation is stored, and the data held in the print buffer is transferred to the printing unit to execute printing. One of the buffers 1 to 3 for printing can store data of a size necessary for one printing, and in this embodiment, it has three buffers 1 to 3. Multiple print buffers are provided so that the print image can be expanded to another buffer while one print buffer is actually printed. Data expansion to the print buffer and printing are parallel. You can do it. The download font buffer is a font buffer area that is used to print fonts other than the font data in the printer by transferring font data from the printer. When fonts are transferred to this download font, , Printing is performed with the font held in this area.
【0075】図26はエミュレーションデータエリアの
詳細を示した図で、エミュレーションフラグ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. 26 is a diagram showing the details of the emulation data area, and emulation flag EMFLA.
G holds the emulation number. EMFL
AG uses two bits B0 and B1 to indicate the corresponding NO of emulation. B0 and B1 can have values from 0 to 3, with 0 indicating emulation 1, 1 indicating emulation 2 and 2 indicating emulation 3. In this embodiment, the emulations 1 to 3 are supported, and each emulation corresponds to the value registered in the emulation flag EMFLAG. EMFL
AG is the emulation number specified when the emulation switch command is executed. Is set. The country flag CNTFLAG is a buffer that holds a country code, and is a 4-bit bit of B0 to B3. Is held. B0 to B3 can take values from 0 to 15, and with this value, the country's No. Can be represented. In this embodiment, two countries, Japan and USA, are used. Therefore, if the value is 0, the value is USA, and if the value is 1, the value is Japan. It is possible to have individual values for other countries. According to the country setting command, the country No. Is set.
The emulation information 1 to 3 are areas for holding the emulation information held by each emulation, and B0
The area is represented by 24 bits of B23 to B23. B0
Each bit of B23 to B23 is used for designating information necessary for each emulation, for example, character quality and page length. In addition, values that are initial values used for each emulation are held, and these information can be set and changed by setting and changing commands for each information, and the information corresponding to the currently executed emulation is rewritten. In this embodiment, description of the contents of each bit is omitted, but necessary emulation information can be held. The emulation information 1 to 3 have the same format,
The settings for the bit contents can be specified for each emulation.
【0076】図27にエミュレーション情報の具体例を
示す。この例ではB0〜B2ビットを用いて各ビットに
文字品位,縮小文字、文字コードの機能を持たせ、各ビ
ットが0、1によりそれぞれのエミュレーションでの各
機能の設定を表わしている。各エミュレーションでは同
様の形式にすることも、別々の形式にすることも可能で
ある。複数のビットを用いていくつかの値を持つ様な分
類を行なうことも出来る。FIG. 27 shows a specific example of 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 represents 0 or 1 to indicate the setting of each function in each emulation. Each emulation can have a similar format or a separate format. It is also possible to perform classification so as to have several values by using multiple bits.
【0077】以上、エミュレーションデータエリアに保
持された値に従って各エミュレーションが実行される。As described above, each emulation is executed according to the value held in the emulation data area.
【0078】図28は、エミュレーション実行のためテ
ーブルを示した図で、図3中のROM#2(プリンタ
側)内に保持される。エミュレーション選択テーブルは
各エミュレーションコントロールテーブルを指すポイン
タを含んでおり、各1〜3のテーブルに対応している。
エミュレーションコントロールテーブル1〜3はエミュ
レーション1〜3の各エミュレーションの管理テーブル
でそれぞれのエミュレーションに対応している。エミュ
レーション初期情報1〜3はそれぞれのエミュレーショ
ン情報の初期値を保持するテーブルで各エミュレーショ
ンに対応して初期値を持つ。この初期値は、コマンド指
定時及び情報未設定時の初期値として用いられ、図26
のエミュレーション情報1〜3のエリアへセットされる
ための値である。エミュレーションプログラム1〜3は
各エミュレーションのプログラムを保持しており、各エ
ミュレーション実行に際してエミュレーションプログラ
ム1〜3のいずれかのエミュレーションが実行される。FIG. 28 is a diagram showing a table for emulation execution, which is held in ROM # 2 (on the printer side) in FIG. The emulation selection table includes a pointer that points to each emulation control table and corresponds to each of the tables 1 to 3.
The emulation control tables 1 to 3 are management tables of each emulation of emulations 1 to 3 and correspond to each emulation. The emulation initial information 1 to 3 is a table holding the initial value of each emulation information and has the initial value corresponding to each emulation. This initial value is used as an initial value when a command is specified and when information is not set.
Is a value to be set in the areas of emulation information 1 to 3 of. The emulation programs 1 to 3 hold programs for each emulation, and any one of the emulation programs 1 to 3 is executed when each emulation is executed.
【0079】図29は図28に示したテーブル類の構成
を示した図で、→はポインタを示し、そのアドレスを保
持する。エミュレーション選択テーブルはa〜cのエミ
ュレーションコントロールテーブルへのポインタを有す
る。エミュレーションコントロールテーブルはエミュレ
ーションID,EMIDを有し、これは各エミュレーシ
ョンに対応するエミュレーションの識別子で、各エミュ
レーションに対して個別の値を持つ。エミュレーション
名はエミュレーションの名前を示す文字例で、エミュレ
ーションの名前を知りたい場合に利用することが出来
る。初期情報ポインタはエミュレーション初期情報の初
期値を含んだテーブルを指すポインタで、各エミュレー
ションで各初期情報のテーブルを指す。情報ポインタは
各エミュレーション情報図26のエミュレーション情報
を指すポインタで、現在のエミュレーション情報を示
し、このポインタの先に在るデータをもとにエミュレー
ションを実行する。プログラムポインタは、エミュレー
ションプログラムを指すポインタで、各エミュレーショ
ンが実行するプログラムを示す。このポインタを各エミ
ュレーションの切替え時に、各プログラムのアドレスと
して用いる。FIG. 29 is a diagram showing the configuration of the tables shown in FIG. 28, where .fwdarw. Indicates a pointer and holds its 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 emulations corresponding to each emulation, and have individual values for each emulation. The emulation name is a character example showing 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 the initial value of the emulation initial information, and points to the table of each initial information in each emulation. The information pointer is a pointer that points to the emulation information shown in FIG. 26. The information pointer indicates the current emulation information, and emulation is executed based on the data existing at the end of this pointer. The program pointer is a pointer that points to an emulation program and indicates a program executed by each emulation. This pointer is used as the address of each program when switching each emulation.
【0080】図30に図3のROM#2内の図29のエ
ミュレーション初期情報に設定された初期値を示した図
で、この図は、図26のエミュレーション情報に対応し
ており、この実施例の場合の初期値とを示している。こ
のエミュレーションの場合、高品位、普通、カタカナの
設定が初期値となり、このテーブルの内容がエミュレー
ション情報の初期値となる。FIG. 30 is a diagram showing the initial values set in the emulation initial information of FIG. 29 in the ROM # 2 of FIG. 3, and this diagram corresponds to the emulation information of FIG. 26. And the initial value in the case of. In the case of this emulation, high-quality, normal, and katakana settings are initial values, and the contents of this table are initial values of emulation information.
【0081】以上、エミュレーション実行テーブルを用
いて実際のエミュレーションの切替え管理が行なわれ
る。As described above, actual emulation switching management is performed using the emulation execution table.
【0082】図31はプリンタユニット3の初期化制御
を示すフローチャートである。初期化には3つの項目が
あり、まず始めにキャリッジ5014の初期化を行なう
(S101)。キャリッジ初期化とは、キャリッジ50
14を移動させ、フォトカプラ5007,5008でキ
ャリッジ5014の存在を確認してキャリッジ5014
をホームポジションに位置づけることである。詳細を図
32に示す。FIG. 31 is a flow chart showing the initialization control of the printer unit 3. There are three items for initialization. First, the carriage 5014 is initialized (S101). Carriage initialization means carriage 50
14 is moved, the presence of the carriage 5014 is confirmed by the photocouplers 5007 and 5008, and the carriage 5014
Is to be placed in the home position. Details are shown in FIG. 32.
【0083】次にキャッピングを行なう(S102)。
キャッピングとはキャップ部材5022で記録ヘッド5
012の前面をキャップする動作であり、記録ヘッド5
012の乾燥を防止する役目を果たす。記録ヘッド50
12は印字している間を除き、キャップ部材5022で
キャップされていなければならない。キャッピング動作
の詳細を図33に示す。Next, capping is performed (S102).
What is capping is the cap member 5022 and the recording head 5.
012 is an operation for capping the front surface of the recording head 5
It serves to prevent the 012 from drying out. Recording head 50
12 must be capped by the cap member 5022 except during printing. Details of the capping operation are shown in FIG.
【0084】最後に紙送り初期化を行なう(S10
3)。紙送り初期化とは、紙送りモータ5024の初期
化であり、印字行位置を確定するために行なう。本実施
例では詳述しない。Finally, paper feed initialization is performed (S10).
3). Paper feed initialization is initialization of the paper feed motor 5024, and is performed to determine the print line position. It will not be described in detail in this embodiment.
【0085】図32はキャリッジ初期化の詳細フローで
ある。これは図3のCPU#2による制御である。キャ
リッジ5014に付属するレバー5006がフォトカプ
ラ5007,5008(HPセンサ)を横切っている
(HPセンサOn)ことによってキャリッジ5014が
ホームポジション側領域にあるかが検出でき、HPセン
サがoffからOnになった位置がキャリアのホームポ
ジション(HP)となる。FIG. 32 is a detailed flow of carriage initialization. This is control by the CPU # 2 in FIG. The lever 5006 attached to the carriage 5014 crosses the photocouplers 5007 and 5008 (HP sensor) (HP sensor On) to detect whether the carriage 5014 is in the home position side area, and the HP sensor changes from off to On. The position that has been set is the home position (HP) of the carrier.
【0086】まず、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, and the drive motor 5013 is rotated by 45 pulses in the forward direction (the carriage 5014 is moved by 45 pulses in the right direction) to move the carriage 5014 to the outside 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 in the reverse direction by one pulse (the carriage 5014 is moved in the left direction by one pulse), and the carriage 5014 is moved to the home position side area. In S205 and S206, the carriage 501 is turned on again until the HP sensor turns off.
4 is moved to the right by one pulse at a time, and further moved to the right by 20 pulses in S207. And S208,
In step S209, the carriage 5014 is moved to the left by one pulse, and when the HP sensor is turned off, the carriage 5014 is stopped and the initialization is completed.
【0087】図33はキャッピングの詳細フローであ
る。駆動モータ5013をキャリッジ5014のホーム
ポジションから逆方向に回転させることによって動力伝
達ギアを切り替え、カム5020を介してレバー502
1を移動させる。レバー5021をキャッピング位置に
移動させるためにキャッピングフローとして以下の3つ
の制御(S301〜S303)が必要となる。まずキャ
リッジ5014がホームポジションにあると駆動モータ
5013を逆方向に34ステップ回転させ、駆動伝達ギ
ア5010、5011を切り替える(S301)。次に
さらに逆方向に11ステップ回転し、キャップ部材50
22を記録ヘッド5012から一度遠ざけ(S30
2)、さらに逆方向に45ステップ回転してキャップ部
材5022を記録ヘッド5012の表面に押しあてて、
キャッピングを完了する(S303)。FIG. 33 is a detailed flow of capping. By rotating the drive motor 5013 from the home position of the carriage 5014 in the opposite direction, the power transmission gear is switched, and the lever 502 is moved via the cam 5020.
Move 1 In order to move the lever 5021 to the capping position, the following three controls (S301 to S303) are required as a capping flow. First, when the carriage 5014 is at the home position, the drive motor 5013 is rotated in the reverse direction by 34 steps to switch the drive transmission gears 5010 and 5011 (S301). Then, the cap member 50 is further rotated in the opposite direction by 11 steps.
22 from the recording head 5012 once (S30
2) Further, the cap member 5022 is pressed against the surface of the recording head 5012 by rotating in the opposite direction by 45 steps,
Capping is completed (S303).
【0088】次に、プリンタ側のエミュレーション処理
について説明を行なう。プリンタは、3つのエミュレー
ション処理を持ち、各プログラムを切替えることが出来
る。Next, the emulation processing on the printer side will be described. The printer has three emulation processes and can switch each program.
【0089】図34は、本実施例の印字処理を示したフ
ローチャートで、まずステップS400で初期化処理を
行なう。初期化処理は印字バッファのクリア等の処理を
行なう。次にステップS401へ進み、エミュレーショ
ン選択処理を行なう。この選択処理の詳細は図35に示
す。ステップS401の選択処理によりエミュレーショ
ン1〜3のうちのいずれかが選択され、実行に移され
る。ステップS402〜S404の3つのエミュレーシ
ョンのうちの1つのエミュレーションが行なわれる。各
エミュレーションは、一連の動作が各エミュレーション
内で完結する様に動くため、エミュレーション切替えコ
マンドが実行されると各エミュレーションが終了して、
エミュレーション選択処理ステップS401へ進む。以
上くり返し実行する。FIG. 34 is a flow chart showing the printing process of this embodiment. First, the initialization process is performed in step S400. In the initialization processing, processing such as clearing the print buffer is performed. Next, in step S401, emulation selection processing is performed. Details of this selection processing are shown in FIG. Any one of the emulations 1 to 3 is selected by the selection processing in step S401, and is executed. One of the three emulations of steps S402 to S404 is performed. Since each emulation moves so that a series of operations is completed within each emulation, each emulation ends when the emulation switching command is executed,
The flow proceeds to emulation selection processing step S401. Repeat the above.
【0090】図35は図34のステップS401の詳細
を示したフローチャートで、まず、ステップS410で
図26に示すエミュレーションフラグEMFLAGにセ
ットされたエミュレーションNo.を取り出す。エミュ
レーションフラグEMFLAGは、図26に示してあ
り、B0〜B1にエミュレーションNo.がセットされ
ている。次にステップS411へ進み、エミュレーショ
ンフラグEMFLAGのエミュレーションNo.に対応
したエミュレーション選択テーブルから、対応したエミ
ュレーションコントロールテーブルを選択する。選択さ
れたエミュレーションコントロールテーブルから、エミ
ュレーションプログラムのポインタを取り出す。次にス
テップS412へ進み、ステップS411で取り出した
プログラムアドレスの先へ分岐し、各エミュレーション
プログラムの実行に移る。以上の処理により、エミュレ
ーションの選択処理が実行され、エミュレーションが選
択される。FIG. 35 is a flow chart showing the details of step S401 in FIG. 34. First, in step S410, the emulation No. set in the emulation flag EMFLAG shown in FIG. Take out. The emulation flag EMFLAG is shown in FIG. Is set. Next, the process proceeds to step S411, and the emulation No. of the emulation flag EMFLAG. Select the corresponding emulation control table from the emulation selection table corresponding to. The pointer of the emulation program is fetched from the selected emulation control table. Next, the process proceeds to step S412, the process branches to the end of the program address fetched in step S411, and execution of each emulation program starts. Through the above processing, emulation selection processing is executed and emulation is selected.
【0091】図36は、図34のステップS402〜S
404に示したエミュレーションを詳細に説明するフロ
ーチャートで、各エミュレーションで共通な部分を示し
ている。まず、ステップS420で初期化処理を実行す
る。初期化処理は各エミュレーションで必要なデータエ
リアの初期化等を実行する。次にステップS421へ進
み、送られてきた印字コマンド、印字データから印字コ
マンドの受け取りを行なう。印字データは、本体から送
られたデータが一度受信バッファに保存され、受信バッ
ファからデータの取り出しを行なう。受信データがない
場合には、受信データ待ちとなる。次にステップS42
2へ進み、エミュレーション切替えコマンドかどうかの
チェックを行なう。エミュレーション切替えコマンドな
らば、ステップS423へ進み、エミュレーション切替
え処理を実行する。エミュレーション切替え処理は、図
37に詳細のフローチャートを示す。次に戻りとなる。
エミュレーション切替えコマンドでない場合、ステップ
S424へ進み、国設定コマンドかどうかをチェックす
る。国設定コマンドならば、ステップS425へ進み、
国設定処理を実行する。国設定処理は、図38に詳細の
フローチャートを示す。実行後コマンド受け取りへ戻
る。国設定コマンドでない場合、他のコマンドの処理と
なる。次に、バッファクリアコマンドかどうかのチェッ
クを行なう。バッファクリアコマンドの場合、ステップ
S427へ進み、バッファクリア処理を実行する。バッ
ファクリア処理実行後、コマンド受け取り処理へ戻る。
バッファクリアコマンドでない場合、文字品位設定コマ
ンドかどうかをチェックする。文字品位設定コマンドで
あれば、ステップS429へ進み、文字品位設定処理を
実行する。次にコマンド受け取り処理へ戻る。これら以
外のコマンドの場合、他のコマンドの処理となる。他の
コマンドの処理についての説明は省略するが、一般に用
いられるエミュレーションコマンドが実行出来る。各コ
マンド実行後ステップS421へ進み、以上の処理をく
り返し実行する。FIG. 36 shows steps S402 to S402 of FIG.
It is a flowchart for explaining the emulation shown in 404 in detail, and shows a part common to each emulation. First, in step S420, initialization processing is executed. The initialization process executes initialization of the data area required for each emulation. Next, in step S421, a print command is received from the sent print command and print data. As the print data, the data sent from the main body is once stored in the reception buffer, and the data is taken out from the reception buffer. If there is no received data, it waits for received data. Next in step S42
Proceed to step 2 and check whether it is an emulation switching command. If it is an emulation switching command, the flow advances to step S423 to execute emulation switching processing. FIG. 37 shows a detailed flowchart of the emulation switching process. Then return.
If it is not an emulation switching command, the flow advances to step S424 to check whether it is a country setting command. If it is a country setting command, the process proceeds to step S425,
Perform country setting processing. The detailed country setting process is shown in FIG. 38. After execution, returns to command reception. If it is not a country setting command, it is processed by another command. Next, it is checked whether it is a buffer clear command. If it is a buffer clear command, the process advances to step S427 to execute a buffer clear process. After executing the buffer clearing process, the process returns to the command receiving process.
If it is not a buffer clear command, check if it is a character quality setting command. If it is a character quality setting command, the flow advances to step S429 to execute character quality setting processing. Then, the process returns to the command receiving process. In the case of commands other than these, other commands are processed. Although the description of the processing of other commands is omitted, commonly used emulation commands can be executed. After the execution of each command, the process proceeds to step S421, and the above processing is repeatedly executed.
【0092】以上の処理によりエミュレーション処理中
で、エミュレーション切替えコマンドと国設定コマンド
の処理が実行出来る。With the above processing, the emulation switching command and the country setting command can be executed during the emulation processing.
【0093】図37は、エミュレーション切替え処理の
詳細を示した図で、切替えコマンドが受け取られた時、
実行される。まずステップS430で切替えエミュレー
ションNo.を決める。切替えエミュレーションNo.
は、切替えコマンドに付加して受け取られる。次にステ
ップS431で受け取ったエミュレーションNo.から
エミュレーションコントロールテーブルを決定する。次
に切替えコマンドが、初期化付コマンドかどうかをチェ
ックする。ステップS432切替えコマンドには、2種
類のコマンドがあり、1つは初期化コマンド付きの場合
と、初期化コマンドなしの場合とになる。初期化コマン
ドならば、ステップS433へ進み、初期情報をエミュ
レーション情報エリアにコピーする。次にステップS4
34へ進み初期化コマンドでなければ、ステップS43
4へ進む。次にステップS434でエミュレーションフ
ラグEMFLAGに切替えたエミュレーションNo.を
B0〜B1ビットにセットする。次に戻りとなる。FIG. 37 is a diagram showing details of the emulation switching process. When a switching command is received,
To be executed. First, in step S430, the switching emulation No. Decide. Switching emulation No.
Is received in addition to the switch command. Next, the emulation No. received in step S431. Determine the emulation control table from. Next, it is checked whether the switching command is a command with initialization. The step S432 switching command includes two types of commands, one of which is with an initialization command and the other of which is without an initialization command. If it is an initialization command, the flow advances to step S433 to copy the initial information into the emulation information area. Then step S4
If it is not an initialization command, the process proceeds to step S43.
Go to 4. Next, in step S434, the emulation number EMFLAG that has been switched to the emulation flag EMFLAG. Are set in bits B0 to B1. Then return.
【0094】以上の処理により、エミュレーション切替
え処理が実行され、エミュレーション切替えの準備が行
なえる。By the above processing, the emulation switching processing is executed and the preparation for the emulation switching can be made.
【0095】図38は、国設定処理の詳細を示した図
で、国設定コマンドが受け取られた時に実行される。ま
ず、ステップS440で国フラグCNTFLAGに国N
o.をセットする。次に戻りとなる。以上の処理により
国設定の処理が実行され、国設定が行なえる。FIG. 38 is a diagram showing the details of the country setting process, which is executed when the country setting command is received. First, in step S440, the country flag CNTFLAG is set to the country N.
o. Set. Then return. With the above processing, the country setting process is executed, and the country setting can be performed.
【0096】図39は、バッファクリア処理の詳細を示
した図で、バッファクリアコマンドが受け取られた時に
実行される。まず、ステップS450でバッファのクリ
アを行なう。バッファは、印字バッファなど初期化の必
要性のあるバッファ類を含む。以上の処理によりバッフ
ァクリアの処理が行なえる。FIG. 39 is a diagram showing the details of the buffer clear processing, which is executed when the buffer clear command is received. First, in step S450, the buffer is cleared. The buffer includes buffers such as a print buffer that need to be initialized. By the above processing, the buffer clear processing can be performed.
【0097】図40は、文字品位切替え処理の詳細を示
した図で、文字品位切替えコマンドが受け取られた時に
実行される。まず、ステップS460で、エミュレーシ
ョンフラグEMFLAGにセットされたエミュレーショ
ンNo.を取り出す。次に、このエミュレーションN
o.から、エミュレーション選択テーブルに登録された
エミュレーションコントロールテーブルのアドレスを決
定する。次にステップS461で、ステップS460で
決定されたコントロールテーブル中の情報ポインタに登
録されたアドレスを取り出す。このアドレスの指す先に
エミュレーション情報があり、このエミュレーション情
報は、RAM#2の内に保持されている。次にステップ
S462へ進み、高品位に設定するかどうかをチェック
する。これはコマンドに、高品位かドラフトであるかど
うかを示す値によって行なわれ、高品位が指定された場
合、ステップS463へ進み、エミュレーション情報の
B0ビットを0とする。B0ビットが0とされた場合、
高品位の指定となる。また高品位の指定でない場合、ス
テップS464へ進み、エミュレーション情報のB0ビ
ットを1とする。B0ビットが1とされた場合、ドラフ
トの指定となる。図30にエミュレーション情報の例を
示す。次に戻りとなる。以上の処理により、文字品位切
替えコマンドの実行処理が行なわれ、以後このエミュレ
ーション情報のB0ビットをもとに品位の選択が行なわ
れ、印字が実行される。FIG. 40 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 S460, the emulation No. set in the emulation flag EMFLAG. Take out. Next, this emulation N
o. Determines the address of the emulation control table registered in the emulation selection table. Next, in step S461, the address registered in the information pointer in the control table determined in step S460 is taken out. There is emulation information at the destination pointed to by this address, and this emulation information is held in RAM # 2. Next, in step S462, it is checked whether or not high quality is set. This is performed by a value indicating whether the command is high definition or draft. When high definition is designated, the process proceeds to step S463, and the B0 bit of the emulation information is set to 0. If the B0 bit is set to 0,
It becomes a high-quality designation. If the high quality is not specified, the process proceeds to step S464, and the B0 bit of the emulation information is set to 1. When the B0 bit is set to 1, the draft is designated. FIG. 30 shows an example of emulation information. Then return. By the above processing, the execution processing of the character quality switching command is performed, and thereafter, the quality is selected based on the B0 bit of this emulation information and the printing is executed.
【0098】以上説明した様に、コマンドにより、プリ
ンタのエミュレーション選択処理が行なわれ、エミュレ
ーションの切替えが可能となる。また、国設定コマンド
により、国設定処理が可能となる。またバッファクリア
コマンドにより、バッファクリア処理が可能となる。ま
た、文字品位コマンドにより、文字品位切替え処理が可
能となる。As described above, the emulation selection process of the printer is performed by the command, and the emulation can be switched. In addition, the country setting command enables the country setting process. Also, a buffer clear command enables buffer clear processing. Further, the character quality switching process can be performed by the character quality command.
【0099】〔実施例2〕本実施例においては、エミュ
レーション切替手段はプリンタ側に存在したが、エミュ
レーション切替手段はホスト側に存在させてもよい。[Embodiment 2] In this embodiment, the emulation switching means is provided on the printer side, but the emulation switching means may be provided on the host side.
【0100】〔実施例3〕本実施例においては、エミュ
レーション設定情報メモリ手段がプリンタ側に存在した
が、ホスト側に存在させてプリンタ側に指示するように
してもよい。[Third Embodiment] In the present embodiment, the emulation setting information memory means is provided on the printer side, but it may be provided on the host side to instruct the printer side.
【0101】[0101]
【発明の効果】以上説明したように複数種類のエミュレ
ーション手段の初期設定情報を記憶しておき、エミュレ
ーションを切替えた時に切替えたエミュレーションに対
応した初期設定情報をエミュレーション設定情報メモリ
にセットすることにより、コストアップさせずに複数の
エミュレーションを迅速に切換えて使用できる効果があ
る。As described above, the initial setting information of a plurality of types of emulation means is stored, and when the emulation is switched, the initial setting information corresponding to the switched emulation is set in the emulation setting information memory. There is an effect that a plurality of emulations can be quickly switched and used without increasing the cost.
【図1】本発明を実施したパソコンを示す斜視図。FIG. 1 is a perspective view showing a personal computer embodying the present invention.
【図2】Host−Printer間概略ブロック図。FIG. 2 is a schematic block diagram between Host and Printer.
【図3】プリンタブロック図。FIG. 3 is a printer block diagram.
【図4】記録ヘッド及びヘッドドライバーの電気的構成
図。FIG. 4 is an electrical configuration diagram of a recording head and a head driver.
【図5】ヘッド駆動のタイミングチャート図。FIG. 5 is a timing chart of head driving.
【図6】キャリッジモーター及びドライバーの構成図。FIG. 6 is a configuration diagram of a carriage motor and a driver.
【図7】前記モーターの駆動タイミングを示す図。FIG. 7 is a diagram showing a drive timing of the motor.
【図8】プリンタコントローラ構成図。FIG. 8 is a configuration diagram of a printer controller.
【図9】プリンタI/Oレジスタを示す図。FIG. 9 is a diagram showing a printer I / O register.
【図10】プリンタのRAMのアドレスマップを示す
図。FIG. 10 is a diagram showing an address map of a RAM of the printer.
【図11】ホスト−プリンタ間のI/Oレジスタを示す
図。FIG. 11 is a diagram showing an I / O register between a host and a printer.
【図12】プリンタ内部ユニットの斜視図。FIG. 12 is a perspective view of a printer internal unit.
【図13】ホストのRAMのメモリマップを示す図。FIG. 13 is a diagram showing a memory map of a RAM of a host.
【図14】各IOのアドレスマップ。FIG. 14 is an address map of each IO.
【図15】割り込みベクタの内容を示した図。FIG. 15 is a diagram showing the contents of an interrupt vector.
【図16】割り込みベクタの内容を示した図。FIG. 16 is a diagram showing the contents of an interrupt vector.
【図17】電源投入時のフローチャートを示す図。FIG. 17 is a diagram showing a flowchart when the power is turned on.
【図18】POSTのフローチャートを示す図。FIG. 18 is a diagram showing a flowchart of POST.
【図19】キーボード割込み処理のフローチャートを示
す図。FIG. 19 is a diagram showing a flowchart of keyboard interrupt processing.
【図20】キーコード取得処理のフローチャートを示す
図。FIG. 20 is a diagram showing a flowchart of a key code acquisition process.
【図21】コマンド解析処理のフローチャートを示す
図。FIG. 21 is a diagram showing a flowchart of command analysis processing.
【図22】ホストの国切替処理のフローチャートを示す
図。FIG. 22 is a diagram showing a flowchart of host country switching processing.
【図23】プリンタ国切替処理のフローチャートを示す
図。FIG. 23 is a diagram showing a flowchart of printer country switching processing.
【図24】プリンタ国切替処理のフローチャートを示す
図。FIG. 24 is a diagram showing a flowchart of printer country switching processing.
【図25】プリンタ内のRAMの詳細を示した図。FIG. 25 is a diagram showing details of RAM in the printer.
【図26】エミュレーションデータの詳細を示した図。FIG. 26 is a diagram showing details of emulation data.
【図27】エミュレーション情報の具体例を示した図。FIG. 27 is a diagram showing a specific example of emulation information.
【図28】エミュレーション実行のためのテーブルを示
した図。FIG. 28 is a diagram showing a table for executing emulation.
【図29】エミュレーション実行のためのテーブルの構
成を示した図。FIG. 29 is a diagram showing a configuration of a table for executing emulation.
【図30】エミュレーション初期情報の初期値を示した
図。FIG. 30 is a diagram showing initial values of emulation initial information.
【図31】プリンタユニットの初期化制御を示すフロー
チャートを示した図。FIG. 31 is a diagram showing a flowchart showing initialization control of the printer unit.
【図32】キャリッジ初期化の詳細を示すフローチャー
トを示した図。FIG. 32 is a view showing a flowchart showing details of carriage initialization.
【図33】キャッピングの詳細フローを示した図。FIG. 33 is a diagram showing a detailed flow of capping.
【図34】印字処理を示すフローチャートを示した図。FIG. 34 is a view showing a flowchart showing a printing process.
【図35】エミュレーション選択処理のフローチャート
を示す図。FIG. 35 is a diagram showing a flowchart of emulation selection processing.
【図36】エミュレーションの詳細を示すフローチャー
トを示す図。FIG. 36 is a diagram showing a flowchart showing details of emulation.
【図37】エミュレーション切替処理の詳細を示すフロ
ーチャートを示す図。FIG. 37 is a diagram showing a flowchart showing details of emulation switching processing.
【図38】国設定処理の詳細を示すフローチャートを示
す図。FIG. 38 is a diagram showing a flowchart showing details of country setting processing.
【図39】バッファクリア処理の詳細を示すフローを示
す図。FIG. 39 is a flowchart showing details of buffer clear processing.
【図40】文字品位切替処理の詳細を示すフローを示す
図。FIG. 40 is a diagram showing a flow showing details of character quality switching processing.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 鈴木 尚久 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 (72)発明者 立山 二郎 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 (72)発明者 西山 政希 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 (72)発明者 高瀬 進 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 ─────────────────────────────────────────────────── ─── Continued front page (72) Inventor Naohisa Suzuki Kyano, 3-30-2 Shimomaruko, Ota-ku, Tokyo Within the corporation (72) Inventor Jiro Tateyama Kyano, 3-30-2 Shimomaruko, Ota-ku, Tokyo Within the corporation (72) Inventor Masaki Nishiyama Kyano, 3-30-2 Shimomaruko, Ota-ku, Tokyo Within the corporation (72) Inventor Susumu Takase Kyano, 3-30-2 Shimomaruko, Ota-ku, Tokyo Within the corporation
Claims (5)
格納する第1記憶手段、 エミュレーション情報を格納する第2記憶手段、 ホスト側からのエミュレーションの切替指示に応じてプ
リンタ側のエミュレーションを切替えた場合に、前記第
1記憶手段に格納された前記エミュレーション情報の初
期設定情報を前記第2記憶手段に転送する転送手段とを
有することを特徴とする情報処理装置。1. A first storage means for storing initial setting information of emulation information, a second storage means for storing emulation information, and when the emulation on the printer side is switched in response to an emulation switching instruction from the host side, An information processing apparatus comprising: a transfer unit configured to transfer the initial setting information of the emulation information stored in the first storage unit to the second storage unit.
指示に応じて、プリンタ側のエミュレーションを切替え
た場合に、エミュレーション情報の初期設定情報を転送
することを特徴とする情報処理方法。2. An information processing method, wherein initial setting information of emulation information is transferred when the emulation on the printer side is switched according to an emulation switching instruction from the host side.
部を有し、それらはパラレルインターフェースを介して
接続されていることを特徴とする請求項1記載の情報処
理装置。3. The information processing apparatus according to claim 1, wherein the information processing apparatus includes a host unit and a printer unit, which are connected via a parallel interface.
ンターフェースを介して接続されていることを特徴とす
る請求項2記載の情報処理方法。4. The information processing method according to claim 2, wherein the host side and the printer side are connected via a parallel interface.
り、体積変化を生起させ、インクを吐出口から吐出させ
ることを特徴とする情報処理方法。5. The information processing method, wherein the printer causes a volume change by the action of thermal energy to eject ink from an ejection port.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19034191A JPH0532014A (en) | 1991-07-30 | 1991-07-30 | Information processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19034191A JPH0532014A (en) | 1991-07-30 | 1991-07-30 | Information processing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0532014A true JPH0532014A (en) | 1993-02-09 |
Family
ID=16256586
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19034191A Pending JPH0532014A (en) | 1991-07-30 | 1991-07-30 | Information processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0532014A (en) |
-
1991
- 1991-07-30 JP JP19034191A patent/JPH0532014A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3323527B2 (en) | Printing apparatus and method | |
| US5581668A (en) | Method and apparatus for processing data | |
| JPH0731565B2 (en) | Image display device | |
| JPH0535421A (en) | Information processing method and device | |
| JPH0532016A (en) | Mode switching method and device | |
| US5787308A (en) | Printing apparatus and method in which virtual busy signal is generated when printer buffer has larger vacant area than a predetermined value | |
| JPH0532014A (en) | Information processing method and device | |
| JPH08310086A (en) | Information processing apparatus and printing method thereof | |
| JP3278174B2 (en) | Printing apparatus and initialization method | |
| JPH0532010A (en) | Printing method and device | |
| JPH05169736A (en) | Printer and printer control method | |
| JPH0532011A (en) | Printing method and device | |
| JP3093342B2 (en) | Power saving method and printing apparatus | |
| US5838886A (en) | Printing method and apparatus therefor | |
| JP3542443B2 (en) | Host computer and data transfer method | |
| JPH0216077A (en) | Display device | |
| JPH08320772A (en) | Information processing apparatus and printing method thereof | |
| JPH06155824A (en) | Printer | |
| JPH08292854A (en) | Information processing device | |
| JPH0532013A (en) | Information processing method and device | |
| JP2612937B2 (en) | Printing device | |
| JPH06262809A (en) | Printer control device | |
| JPH078590B2 (en) | Printer device | |
| JPS61193864A (en) | Dot printer control method | |
| Roman | Input/Output |