JPH0453781A - Initialization system of printer - Google Patents

Initialization system of printer

Info

Publication number
JPH0453781A
JPH0453781A JP16450490A JP16450490A JPH0453781A JP H0453781 A JPH0453781 A JP H0453781A JP 16450490 A JP16450490 A JP 16450490A JP 16450490 A JP16450490 A JP 16450490A JP H0453781 A JPH0453781 A JP H0453781A
Authority
JP
Japan
Prior art keywords
memory
check
printing mechanism
contents
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP16450490A
Other languages
Japanese (ja)
Inventor
Shigeru Aiuchi
相内 茂
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP16450490A priority Critical patent/JPH0453781A/en
Publication of JPH0453781A publication Critical patent/JPH0453781A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To ensure that an operator is not concerned about the possible occurrence of a faulty function of a printer or an erroneous turning ON of a power by checking the first memory device when the power supply is turned ON and permitting a printing mechanism to be initially activated, if it is interpreted that no abnormality is detected through the check. CONSTITUTION:A processor 1 starts an initialization process due to the turning ON of a power supply. That is, first, the first memory 2 is checked, and if no abnormality is detected through this check, a printing mechanism is initially activated. The first memory 2 is used as a control program storage or a work area and therefore, is a comparatively smaller capacity device. Subsequently, the check is completed in a short time and the operation proceeds immediately to the initial activation of a printing mechanism 4. The second memory 3 which stores print data is of a large capacity so that its check requires a long time.

Description

【発明の詳細な説明】 〔概要〕 プリンタ装置の初期化方式に関し、 電源投入操作があったら直ちにtllll動的動作われ
、オペレータに電源投入が正常に行われたか、あるいは
プリンタ装置に何等かの障害が発生したのではないかと
いう不安を抱かせることのないプリンタ装置の初期化方
式を提供することを目的とし、 プロセッサと、該プロセッサの動作に必須の第1のメモ
リと、該プロセッサの動作に必須ではない第2のメモリ
と、該第2のメモリに記憶された情報を印字機構に送る
ことにより印字を行うプリンタ装置において、電源が投
入された際、第1のメモリを検査し、該検査で異常がな
いことが判断された際に印字機構の初期動作を行うよう
にしたことを特徴とする。
[Detailed Description of the Invention] [Summary] Regarding the initialization method of the printer device, when the power is turned on, it is immediately activated dynamically, and the operator is informed whether the power has been turned on normally or if there is some kind of failure in the printer device. The purpose of this invention is to provide an initialization method for a printer device that does not cause anxiety that a In a printer device that performs printing by sending information stored in the non-essential second memory to a printing mechanism, when the power is turned on, the first memory is inspected; The printing mechanism is characterized in that the initial operation of the printing mechanism is performed when it is determined that there is no abnormality.

〔産業上の利用分野〕[Industrial application field]

本発明は、プリンタ装置において、電源投入をオペレー
タに認識させるための初期化方式に関するものである。
The present invention relates to an initialization method for making an operator aware of power-on in a printer device.

近年のコンピュータシステムの普及に伴い、出力手段と
してのプリンタ装置も種々開発され市場に提供されてい
る。
With the spread of computer systems in recent years, various printer devices as output means have been developed and provided on the market.

このようなプリンタ装置では、その信頼性を向上させる
ために、電源投入時に初期診断を行うようになっている
。この初期診断に要する時間は、装置の高速化、高Il
l能化に伴って増加の傾向にあり、電源を投入しても直
ちに装置が使用できないという弊害を生じている。そこ
で、電源投入直後から使用可能なプリンタ装置が望まれ
ている。
In order to improve the reliability of such printer devices, an initial diagnosis is performed when the power is turned on. The time required for this initial diagnosis can be reduced by faster equipment and higher Il.
The number of devices is increasing as the number of users increases, and this has the disadvantage that the device cannot be used immediately even after the power is turned on. Therefore, there is a need for a printer device that can be used immediately after power is turned on.

〔従来の技術〕[Conventional technology]

近年のプリンタ装置は、制御系を簡単にするために、マ
イクロプロセッサを用いて制御系を構成するのが一般的
である。かかるマイクロプロセッサを用いるものは、制
御プログラムを記憶するメモリ及び作業用のワークメモ
リを必須とし、さらに、データ受信用の受信バッファ、
印字出力用のラインバッファ等、種々のメモリを備えて
いる。
In order to simplify the control system of printer devices in recent years, it is common to configure the control system using a microprocessor. A device using such a microprocessor requires a memory for storing a control program and a work memory for working, and also a reception buffer for receiving data,
It is equipped with various types of memory, including a line buffer for print output.

ところで、このようなプリンタ装置では、その信頼性を
担保するために、電源投入時に初期診断、初期動作等の
初期化処理を行うのが通常である。
By the way, in order to ensure the reliability of such a printer device, it is usual to perform initialization processing such as initial diagnosis and initial operation when the power is turned on.

この初期化処理においては、まず、メモリの正当性のチ
エツクを行い、その後、初期動作、例えば印字ヘッドを
ホームポジションに戻したり、プラテンを初期位置に戻
したりする印字機構の初期化を行う、オペレータはこの
印字機構がイニシャル動作することにより電源投入の確
認及び初期化処理が完了し、装置が使用可能状態になっ
たことを認識している。
In this initialization process, the operator first checks the validity of the memory and then initializes the printing mechanism, such as returning the print head to the home position and returning the platen to the initial position. recognizes that the initial operation of this printing mechanism completes the power-on confirmation and initialization processing, and that the device is ready for use.

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

しかしながら、近年のプリンタ装置においては、より高
速化、高機能化を実現するために、例えば受信バッファ
の容量を大きくしてホスト装置から送られてくる大量の
印字データを一時に受信して蓄えるようになっている。
However, in order to achieve higher speeds and higher functionality in recent printers, for example, the capacity of the receive buffer has been increased to receive and store large amounts of print data sent from the host device at once. It has become.

そして、以降は、ホスト装置の動作とは無関係に受信バ
ッファの内容に編集を施しつつ印字機構に逐次送出して
ローカルに印字を行うようになっている。
From then on, the contents of the receive buffer are edited and sequentially sent to the printing mechanism for local printing, regardless of the operation of the host device.

このようなプリンタ装置では搭載されるメモリの容量も
膨大なものとなり、初期診断において、メモリの正当性
をチエツクするにも多大の時間を必要とする。したがっ
て、オペレータの電源投入操作から印字機構が初期動作
による機械的動作を開始するまでの時間が長くなり、電
源投入が正常に行われたか、あるいはプリンタ装置に何
等かの障害が発生したのではないかという不安をオペレ
ータに抱かせるという問題点があった。
The capacity of the installed memory in such printer devices is enormous, and it takes a great deal of time to check the validity of the memory during initial diagnosis. Therefore, the time from the operator's power-on operation until the printing mechanism starts its initial mechanical operation is longer, indicating that the power was turned on normally or that some kind of failure has occurred in the printer device. There was a problem in that the operator was made to feel uneasy.

この発明は、上記問題点を解決し、電源投入操作があっ
たら直ちに印字機構の機械的動作が行われ、オペレータ
に電源投入が正常に行われたか、あるいはプリンタ装置
に何Wかの障害が発生したのではないかという不安を抱
かせることのないプリンタ装置の初期化方式を提供する
ことを目的とする。
This invention solves the above-mentioned problems, and the mechanical operation of the printing mechanism is performed immediately when the power is turned on, and the operator is informed whether the power has been turned on normally or if a failure of some W occurs in the printer device. An object of the present invention is to provide an initialization method for a printer device that does not give rise to anxiety that the printer may have been damaged.

〔課題を解決するための手段及び作用〕第1図は本発明
の原理説明図である。
[Means and operations for solving the problems] FIG. 1 is a diagram explaining the principle of the present invention.

第1図(a)はプリンタ装置の構成を示すもので、1は
プロセッサであり、装置全体を制御するもの、2は第1
のメモリであり、制御プログラムを記憶したりワークエ
リアとして確保されるプロセッサ1に必須のメモリ、3
は第2のメモリであり、印字データを記憶する受信バッ
ファ、ラインバッファとして使用されるもの、4は印字
8!楕であり、例えば印字ヘッドや紙送りI!楕により
構成されるものである。
FIG. 1(a) shows the configuration of a printer device, where 1 is a processor that controls the entire device, and 2 is a first processor.
3 is a memory that is essential for the processor 1 and is reserved for storing control programs and as a work area.
is the second memory, which is used as a receiving buffer and line buffer for storing print data, and 4 is the print 8! For example, the print head or paper feed I! It is composed of ellipses.

プロセッサ1は、第1図(b)に示すように、電源が投
入されることにより初期化処理を開始する。即ち、まず
、第1のメモリ2を検査する(ステップS1)、この検
査により異常がなければ印字機構の初期動作を行う(ス
テップS2)。
The processor 1 starts initialization processing when the power is turned on, as shown in FIG. 1(b). That is, first, the first memory 2 is inspected (step S1), and if there is no abnormality as a result of this inspection, the initial operation of the printing mechanism is performed (step S2).

上記第1のメモリ2は、制御プログラムの格納やワーク
エリアとして用いるものゆえ、比較的小容量である。し
たがって1.検査も短時間で終了し直ちに印字機構4の
初期動作に移行する。印字機構4は、例えば印字ヘッド
や紙送り機構により構成され、プロセッサ1からの初期
動作の指示により機械的動作を行う、これにより、オペ
レータは電源投入操作から短時間の後に印字機構4の動
作を確認できるので、電源投入が正常に行われたか、あ
るいはプリンタ装置に何等かの障害が発生したのではな
いかというオペレータの不安を排除できるものとなって
いる。
The first memory 2 has a relatively small capacity because it is used for storing control programs and as a work area. Therefore 1. The inspection is completed in a short time and the printing mechanism 4 immediately starts its initial operation. The printing mechanism 4 is composed of, for example, a print head and a paper feed mechanism, and performs mechanical operation based on an initial operation instruction from the processor 1. As a result, the operator can start the operation of the printing mechanism 4 a short time after turning on the power. Since this can be confirmed, it is possible to eliminate the operator's anxiety about whether the power has been turned on normally or whether some kind of failure has occurred in the printer device.

また、印刷データを記憶する第2のメモリ3の検査は、
上述した印字機構4の初期動作の後に行う(ステップS
3)、この第2のメモリ3は印字データを記憶するもの
ゆえ大容量であり、検査に長時間を必要とする。しかし
、印字機構が機械的動作を行うことによりプリンタ装置
に正常に電源が投入されたことをオペレータに知らしめ
た後に第2のメモリ3の検査を行うので、通常はオペレ
ータが意識することなく検査は終了し、初期化処理は終
了する。
In addition, the inspection of the second memory 3 that stores print data is as follows:
Performed after the initial operation of the printing mechanism 4 described above (step S
3) Since the second memory 3 stores print data, it has a large capacity and requires a long time for inspection. However, since the second memory 3 is inspected after the printing mechanism performs a mechanical operation to notify the operator that the printer device has been properly powered on, the inspection is usually done without the operator being aware of it. is completed, and the initialization process is completed.

〔実施例〕〔Example〕

第2図は、第1図に示したプリンタ装置の一実施例を示
したものである。
FIG. 2 shows an embodiment of the printer device shown in FIG.

図中、第1図で示したものと同−又は相当部分は同一の
記号で示しており、1はCPU(中央処理装置)、2a
はROM (リードオンリメモリ)、3はRAM (ラ
ンダムアクセスメモリ)、4は印字機構、5は入出力ボ
ート、6a、6bはドライバ、7は入出力ボート、8は
システムパスである。
In the figure, parts that are the same as or equivalent to those shown in Figure 1 are indicated by the same symbols, 1 is the CPU (central processing unit), 2a is
is a ROM (read only memory), 3 is a RAM (random access memory), 4 is a printing mechanism, 5 is an input/output board, 6a and 6b are drivers, 7 is an input/output board, and 8 is a system path.

CPUIは、例えばマイクロプロセッサにより構成され
るもので、本発明の特徴に関係する初期化処理を行う他
、装置全体の制御を司るものである。このCPUIは、
システムバス8を介して各ユニットと接続されている。
The CPUI is composed of, for example, a microprocessor, and in addition to performing initialization processing related to the features of the present invention, it also controls the entire device. This CPUI is
It is connected to each unit via a system bus 8.

また、CPUIは、その内部に複数の汎用レジスタを有
しており、この汎用レジスタは次のように割り当てられ
ている。
Further, the CPUI has a plurality of general-purpose registers therein, and these general-purpose registers are allocated as follows.

■アキュムレータ(以下、rACCJと略す)・・・R
OMチエツクの際の累算器として用いられる。
■Accumulator (hereinafter abbreviated as rACCJ)...R
Used as an accumulator during OM check.

■アドレスレジスタ(以下、rADRJと略す)・・・
ROM2a又はRAM3にアクセスする際のアドレスを
保持するレジスタとして用いられる。
■Address register (hereinafter abbreviated as rADRJ)...
It is used as a register to hold an address when accessing ROM2a or RAM3.

■テンポラリレジスタ(以下、rTRJと略す)・・・
ROM2a又はRAM3から読出したデータを一時的に
保持する為に用いられる。
■Temporary register (hereinafter abbreviated as rTRJ)...
It is used to temporarily hold data read from ROM2a or RAM3.

■スタートアドレスレジスタ(以下、rSTARTJと
略す)・・・RAM3のチエツクを開始するべきアドレ
スを保持するために用いられる。
(2) Start address register (hereinafter abbreviated as rSTARTJ): Used to hold the address at which to start checking the RAM3.

■最大アドレスレジスタ(以下、rMAXJと略す)・
・・RAM3のチエツクを終了するべき最大アドレス+
1を保持するために用いられる。
■Maximum address register (hereinafter abbreviated as rMAXJ)・
...Maximum address at which to finish checking RAM3 +
Used to hold 1.

ROM2aは、CPUIの制御プログラムを記憶するプ
ログラムメモリとして使用されるものである。このRO
M2aには、制御プログラムの他、処理に必要な種々の
定数(詳細は後述)が記憶されている。
The ROM 2a is used as a program memory that stores a CPU control program. This R.O.
In addition to the control program, M2a stores various constants necessary for processing (details will be described later).

RAM3は、CPUIのワークエリア2bとして使用さ
れる他、第3図に示すように、受信バッファ3a及びラ
インバッファ3bとして使用されるものである。
In addition to being used as a work area 2b for the CPUI, the RAM 3 is also used as a receiving buffer 3a and a line buffer 3b, as shown in FIG.

ワークエリア2bは、CPUIが使用するレジスタある
いはフラグ等が定義される領域であり、例えばRAM3
全体に対して10〜20%前後といった比較的小さいメ
モリ領域である。上記第1のメモリ2は、このワークエ
リア2bとROM2aとにより構成されるもので、これ
らはCPU1が動作するのに最小限必要なメモリである
The work area 2b is an area where registers, flags, etc. used by the CPUI are defined, and for example, RAM3
It is a relatively small memory area, about 10 to 20% of the total. The first memory 2 is composed of the work area 2b and the ROM 2a, and these are the minimum memory necessary for the CPU 1 to operate.

受信バッファ3aは、ホスト装置から受信した印字デー
タを一時記憶するもので、大きいメモリ領域を専有する
。ラインバッファ3bは、実際に印字する1行分のデー
タを記憶するものである。
The reception buffer 3a temporarily stores print data received from the host device, and occupies a large memory area. The line buffer 3b stores one line of data to be actually printed.

上記第2のメモリ3は、この受信バッファ3aとライン
バッファ3bとにより構成されるもので、CPUIが動
作するためには必須のものではなく、CPUIが各部を
制御して印字動作を行わせる際に使用するものである。
The second memory 3 is composed of the receiving buffer 3a and the line buffer 3b, and is not essential for the operation of the CPU, but is used when the CPU controls each section to perform printing operations. It is used for.

印字機構4は、印字ヘッド10、この印字ヘッド10を
搭載したキャリアを駆動するモータ11、あるいは紙送
りを制御するモータ12等により構成されている。
The printing mechanism 4 includes a print head 10, a motor 11 that drives a carrier on which the print head 10 is mounted, a motor 12 that controls paper feeding, and the like.

入出力ボート5はシステムバス8を介して受は取った印
字データや制御データをドライバ6a。
The input/output boat 5 receives print data and control data via the system bus 8 to a driver 6a.

6bに送り出す仲介を行うものである。6b.

ドライバ6aは、印字ヘッド10を駆動するもので、こ
れにより印字ヘッド10が用紙に接触して印字を行うよ
うになっている。また、ドライバ6bは、モータ11.
12を駆動するもので、この駆動によりモータ11が回
転され、印字ヘッド10を搭載したキャリアが同一行内
で移動されて印字が行われるとともに、モータ12が回
転されて紙送り機構が駆動され、改行あるいは改頁等が
行われるようになっている。
The driver 6a drives the print head 10, so that the print head 10 contacts the paper and performs printing. Further, the driver 6b is connected to the motor 11.
This drive rotates the motor 11, moves the carrier carrying the print head 10 within the same line to perform printing, and rotates the motor 12 to drive the paper feed mechanism to perform line feed. Alternatively, a page break or the like is performed.

入出カポ−ドアは、ホスト装置からの印刷データを受は
取り、システムバス8を介してRAM3の受信バッファ
3aに送り出す仲介を行うものである。
The input/output port door receives and receives print data from the host device and mediates sending it to the receiving buffer 3a of the RAM 3 via the system bus 8.

次に、上記構成において第4図及び第5図のフローチャ
ー1・を参照しながら動作を説明する。なお、第4図は
初期化処理のメインルーチン、第5図はこのメインルー
チンでコールされるサブルーチンを示している。
Next, the operation of the above configuration will be described with reference to flowchart 1 in FIGS. 4 and 5. Note that FIG. 4 shows the main routine for initialization processing, and FIG. 5 shows the subroutines called by this main routine.

プリンタ装置の電源が投入されると、まず、ROM2a
のチエツクが行われる。このROM2aのチエツクは、
サムチエツク方式により行われる。
When the power of the printer device is turned on, first, the ROM2a
A check is performed. This ROM2a check is
This is done using the thumb check method.

なお、ROM2a又はRAM3のアクセス単位は1バイ
トであるものとする。したがって、上記サムチエツクに
おける加算も1バイト単位で行われるものとする。
It is assumed that the access unit of the ROM 2a or RAM 3 is 1 byte. Therefore, it is assumed that addition in the sum check is also performed in units of 1 byte.

まず、CPTJ 1はACCをクリアする(ステップ5
10)。次いで、CP U 1はADRをクリアしくス
テップ511)、初期設定を終了する。
First, CPTJ 1 clears ACC (step 5
10). Next, the CPU 1 clears the ADR (step 511) and ends the initial setting.

次いで、ADRの内容をアドレスとしてROM2aの内
容を読出し、TRにセットする(ステップS12〉。そ
して、ACCの内容にTRの内容を加算しくステップ3
13)、累積値を算出する。
Next, the contents of the ROM 2a are read out using the contents of ADR as an address and set in TR (step S12). Then, the contents of TR are added to the contents of ACC in step 3.
13) Calculate the cumulative value.

この加算の際、1バイトから溢れたデータは捨てられる
9次いで、ADRの内容をインクリメントし、その結果
がROM2aの最大アドレス+1である定数ROM I
Iaxと一致するか否かを調べる(ステップ515)、
この定数ROM waxはROM2aの所定領域に記憶
されているものである。
During this addition, the data overflowing from 1 byte is discarded.Next, the contents of ADR are incremented, and the result is the constant ROM I which is the maximum address of ROM2a + 1.
Check whether it matches Iax (step 515),
This constant ROM wax is stored in a predetermined area of the ROM 2a.

上記ステップS15で一致しないことが判断されるとス
テップS12に戻って同様の動作を繰り返す、かかる縁
り返し実行において、上記ステップS15でADRの内
容とROM鋤a×とが一致したことが判断されると、換
言すれば、ROM2aの全内容が1バイト単位で累算さ
れたことが判断されると、ACCに残っている累算結果
と定数SUMとが等しいか否かが調べられる(ステップ
516)、この定数SUMは、予め計算され、ROM2
aの所定領域に記憶されているものである。
If it is determined in step S15 that they do not match, the process returns to step S12 and the same operation is repeated. In this reversing execution, it is determined in step S15 that the contents of ADR and ROM plow ax match. In other words, when it is determined that the entire contents of the ROM 2a have been accumulated in 1-byte units, it is checked whether the accumulation result remaining in the ACC is equal to the constant SUM (step 516). ), this constant SUM is calculated in advance and is stored in ROM2
This is stored in a predetermined area of a.

この比較の結果、一致したことが判断されるとROM2
aの内容は正常であると判断してステップSL7以下の
ワークエリア2bのチエツク動作に移る。一方、一致し
ないことが判断されると、ROM2aの内容に誤りがあ
るものと判断してメモリアラーム処理に移る(ステップ
829)。このメモリアラーム処理は、エラーが発生し
た旨を、例えば操作パネルに設けられた表示器(図示し
ない)に表示してオペレータに注意を促すものである。
As a result of this comparison, if it is determined that they match, the ROM2
It is determined that the contents of a are normal, and the process moves to step SL7 and subsequent steps to check the work area 2b. On the other hand, if it is determined that they do not match, it is determined that there is an error in the contents of the ROM 2a, and the process moves to memory alarm processing (step 829). In this memory alarm process, the fact that an error has occurred is displayed on, for example, a display (not shown) provided on the operation panel to alert the operator.

以」−により、ROM2aのチエツクを終了する。The check of the ROM 2a is ended by "-".

次いで、ワークエリア2bのチエツクを行う。Next, the work area 2b is checked.

まず、パラメータのセットを行う(ステップS17.5
18)。即ち、ワークエリア2bの先頭アドレスを、5
TARTにセットする(ステップS]7)、また、ワー
クエリア2bの最大アドレス七1を、MAXにセラ1〜
する(ステップ918)。
First, set parameters (step S17.5
18). That is, the start address of the work area 2b is set to 5.
TART (step S] 7), and set the maximum address 71 of work area 2b to MAX.
(step 918).

そして、メモリチエツクサブルーチンをコールする(ス
テップ519)。
Then, the memory check subroutine is called (step 519).

メモリッチニックサブルーチンでは、次のように動作す
る。まず、5TARTの内容をADRに移す(ステップ
530)、そして、このADRの内容をアドレスとして
RAM3にデータ55N(添字の「8」は16進数であ
ることを示す)を書き込む(ステップ531)、次いで
、ADRの内容をインクリメントしくステップ532)
、MAXに記憶している内容と一致するか否かを調べ(
ステップ33B)、一致しなければステップS31に戻
る。そして、上記ステップ831〜333を一致するま
で繰り返し実行する。ここで、ADHの内容とMAXの
内容とが一致したということはワークエリア2b全領域
にデータ55.が書き込まれたことを意味し、次に、読
出し及び比較処理に移る。
The memory patch subroutine operates as follows. First, the contents of 5TART are transferred to ADR (step 530), and data 55N (the subscript "8" indicates a hexadecimal number) is written to RAM3 using the contents of this ADR as an address (step 531). , increment the contents of ADR (step 532).
, check whether it matches the content stored in MAX (
Step 33B), if they do not match, the process returns to step S31. Then, steps 831 to 333 described above are repeatedly executed until they match. Here, the fact that the contents of ADH and the contents of MAX match means that data 55. This means that the data has been written, and the next step is to read and compare.

即ち、まず、5TARTの内容をADRに移す(ステッ
プ534)、そして、このADRの内容をアドレスとし
てRAM3からデータを読出しTRにセットする(ステ
ップ535)、次いで、TRの内容と定数55.とを比
較する(ステップ536)、この定数558は、ROM
 2 aの所定領域に記憶されているものである。
That is, first, the contents of 5TART are transferred to ADR (step 534), then data is read from RAM 3 using the contents of this ADR as an address and set in TR (step 535), and then the contents of TR and constant 55. (step 536), this constant 558 is
2a is stored in a predetermined area.

上記比較の結果、TRの内容と定数55□とが一致すれ
ば当該アドレス位置では正常に書込/読出ができたとし
て次のアドレスの処理に移る。
As a result of the above comparison, if the contents of TR and the constant 55□ match, it is assumed that writing/reading has been performed normally at the address position and the process moves on to the next address.

一方、上記ステップS36で一致しないことが判断され
ると、ステップS29へ分岐して上述したメモリアラー
ノ、処理を実行する。
On the other hand, if it is determined in step S36 that they do not match, the process branches to step S29 and the memorization process described above is executed.

次いで、ADRの内容をインクリメントシくステップ5
37)、その結果がMAXに記憶している内容と一致す
るか否かを調べる(ステップ838)。そして、上記ス
テップS35〜S38を一致するまで繰り返し実行する
。ここで、ADRの内容とMAXの内容とが一致したと
いうことは、ワークエリア2b全領域に書き込まれたデ
ータ55、が正常に読出されたことを意味し、次にデー
タを変えて読出/書込処理を行う。
Next, the contents of ADR are incremented in step 5.
37), and checks whether the result matches the contents stored in MAX (step 838). Then, steps S35 to S38 are repeatedly executed until they match. Here, the fact that the contents of ADR and the contents of MAX match means that the data 55 written in the entire area of the work area 2b has been read normally, and then the data can be changed and read/written. processing.

即ち、まず、5TARTの内容をADRに移す(ステッ
プ539) 、そして、このADRの内容をアドレスと
してRAM3にデータAA、を書き込む(ステップ54
0)。次いで、ADRの内容をインクリメントしくステ
ップ541)、MAXに記憶している内容と一致するか
否かを調べ(ステップ542)、一致しなければステッ
プS40に戻る。そして、上記ステップ340〜S42
を一致するまで繰り返し実行する。ここで、ADRの内
容とMAXの内容とが一致したということは、ワークエ
リア2b全領域にデータAA、が書き込まれたことを意
味し、次に、読出し及び比較処理に移る。
That is, first, the contents of 5TART are transferred to ADR (step 539), and data AA is written to RAM3 using the contents of this ADR as an address (step 54).
0). Next, the contents of ADR are incremented (step 541), and it is checked whether they match the contents stored in MAX (step 542), and if they do not match, the process returns to step S40. Then, the above steps 340 to S42
Repeat until a match is found. Here, the fact that the contents of ADR and the contents of MAX match means that the data AA has been written in the entire area of the work area 2b, and then the process moves to read and compare processing.

即ち、まず、5TARTの内容をADRに移す(ステッ
プ343)、そして、このADRの内容をアドレスとし
てRAM3からデータを読出し、TRにセットする(ス
テップ544)、次いで、TRの内容と定数AA、とを
比較する(ステップ545)、この定数AA、は、RO
M2aの所定領域に記憶されているものである。
That is, first, the contents of 5TART are transferred to ADR (step 343), then data is read from RAM 3 using the contents of this ADR as an address and set in TR (step 544), and then the contents of TR and constant AA are (step 545), this constant AA, is RO
This is stored in a predetermined area of M2a.

上記比較の結果、TRの内容と定数AA、とが一致すれ
ば当該アドレス位置では正常に書込/読出ができたとし
て次のアドレスの処理に移る。
As a result of the above comparison, if the content of TR and the constant AA match, it is assumed that writing/reading has been performed normally at the address position and the process moves on to the next address.

方、上記ステップS45で一致しないことが判断される
と、ステップS29へ分岐して上述したメモリアラーム
処理を実行する。
On the other hand, if it is determined in step S45 that they do not match, the process branches to step S29 and the memory alarm process described above is executed.

次いで、ADHの内容をインクリメントしくステップ5
46)、その結果がMAXに記憶している内容と一致す
るか否かを調べる(ステップ547)。そして、」1記
ステップ8445〜S47を一致するまで繰り返し実行
する。ここで、ADRの内容とMAXの内容が一致した
ということは、ワークエリア2b全領域に書き込まれた
データAA□が正常に読出されたことを意味し、次に、
ワークエリア2bのクリア処理を行う。
Next, increment the contents of ADH in step 5.
46), and checks whether the result matches the contents stored in MAX (step 547). Then, steps 8445 to S47 in ``1'' are repeatedly executed until they match. Here, the fact that the contents of ADR and the contents of MAX match means that the data AA□ written in the entire area of the work area 2b has been read normally, and next,
Clear processing of the work area 2b is performed.

即ち、まず、5TARTの内容をADRに移す(ステッ
プ548)、そして、このADRの内容をアドレスとし
てRAM3にデータ00□を書き込む(ステップ549
)。次いで、ADHの内容をインクリメントしくステッ
プ550)、MAXに記憶している内容と一致するか否
かを調べる(ステップ551)。そして、上記ステップ
849〜S51を一致するまで縁り返し実行する。ここ
で、ADRの内容とMAXの内容とが一致したというこ
とは、ワークエリア2b全領域にデータ008が書き込
まれてクリア処理が終了したことを意味し、このサブル
ーチンからリターンしてメインルーチンに戻る0以上の
処理により、ワークエリア2bのチエツクが完了する。
That is, first, the contents of 5TART are transferred to ADR (step 548), and data 00□ is written to RAM3 using the contents of this ADR as an address (step 549).
). Next, the contents of ADH are incremented (step 550), and it is checked whether they match the contents stored in MAX (step 551). Then, steps 849 to S51 are repeated until they match. Here, the fact that the contents of ADR and the contents of MAX match means that data 008 has been written to the entire work area 2b and the clearing process has been completed, and the process returns from this subroutine to the main routine. By processing 0 or more, the check of the work area 2b is completed.

次に、印字機構4の初期動作を行う。即ち、まず、プリ
ンタ装置にセットされている用紙が連続帳票であるか否
かを判断する(ステップ520)。
Next, the initial operation of the printing mechanism 4 is performed. That is, first, it is determined whether the paper set in the printer device is a continuous form (step 520).

これは、用紙ルートを検知するセンサ(図示しない)か
らの信号を調べることにより行われる。そして、連続帳
票でないことが判断されると、セットされている用紙は
単票であると判断し、用紙排出処理を行う(ステップ5
21)、そして、ドライバ6bを駆動してモータ11を
回転させることにより、印字ヘッド10をti載したキ
ャリアを移動させる(ステップ522) 、このキャリ
アの移動は次のように行われる。即ち、印字ヘッドがホ
ームポジションに設けられたセンサ(図示しない)を横
切っていたら印字ヘッドがセンサ位lを抜けるようにキ
ャリアを移動させる。一方、印字ヘッドが横切っていな
かったら、センサに入るようにキャリアを移動させる。
This is done by examining signals from a sensor (not shown) that detects the paper route. If it is determined that the paper is not a continuous form, it is determined that the set paper is a single form, and paper ejection processing is performed (step 5).
21) Then, by driving the driver 6b and rotating the motor 11, the carrier on which the print head 10 is mounted is moved (step 522). This carrier movement is performed as follows. That is, if the print head crosses a sensor (not shown) provided at the home position, the carrier is moved so that the print head passes through the sensor position l. On the other hand, if the print head is not across, move the carrier so that it enters the sensor.

この初期動作により、オペレータは電源が正常に投入さ
れたことを知ることができる。
This initial operation allows the operator to know that the power has been turned on normally.

以上の印字機構10の初期動作が完了すると、受信バッ
ファ3aのチエツクを行う。
When the above initial operation of the printing mechanism 10 is completed, the reception buffer 3a is checked.

まず、パラメータのセットを行う(ステップS22.5
23)。即ち、受信バッファ3aの先頭アドレスを5T
ARTにセットする(ステップ522)。また、受信バ
ッファ3aの最大アドレス+1をMAXにセットする(
ステップ823)。
First, parameters are set (step S22.5
23). That is, the start address of the reception buffer 3a is set to 5T.
ART (step 522). Also, set the maximum address of the reception buffer 3a +1 to MAX (
step 823).

そして、メモリチエツクサブルーチンをコールする(ス
テップ525)、以降の動作は、」二連したワークエリ
ア2bのチエツクと同じであり、データ5511.AA
、の書込/読出チエツクを行い、最後にゼロクリアして
受信バッファ3aのチエツク処理を終了する。
Then, the memory check subroutine is called (step 525), and the subsequent operation is the same as the double check of the work area 2b, and the data 5511. A.A.
, and finally clears it to zero to end the check process of the reception buffer 3a.

以上の受信バッファ3aのチエツクが完了すると、ライ
ンバッファ3bのチエツクを行う。
When the above checking of the reception buffer 3a is completed, the line buffer 3b is checked.

まず、パラメータのセットを行う(ステップS26.5
27)、即ち、ラインバッファ3bの先頭アドレスを5
TARTにセットする(ステップ526)、また、ライ
ンバッファ3bの最大アドレス+1をMAXにセットす
る(ステップ527)。
First, parameters are set (step S26.5
27), that is, the start address of the line buffer 3b is set to 5.
TART is set (step 526), and the maximum address +1 of the line buffer 3b is set to MAX (step 527).

そして、メモリチエツクサブルーチンをコールする(ス
テップ528)、以降の動作は、上述したワークエリア
2bのチエツクと同じであり、データ55.、AA工の
書込/読出チエツクを行い、最後にゼロクリアしてライ
ンバッファ3bのチエツク処理を終了する。
Then, the memory check subroutine is called (step 528).The subsequent operation is the same as the check of the work area 2b described above, and the data 55. , AA processing is performed, and finally, the line buffer 3b is cleared to zero and the line buffer 3b check processing is completed.

以上のラインバッファ3bのチエツクが完了すると、通
常の処理、即ち、ホスト装置からデータを受は取って印
字する処理を行う。
When the above checking of the line buffer 3b is completed, normal processing, that is, processing for receiving and printing data from the host device is performed.

なお、上記実施例では、初期動作の後に続けて受信バッ
ファ3a、ラインバッファ3bのチエツクを行うように
構成したが、これらのチエツクは印刷動作を開始する前
の任意のタイミングで行うように構成しても良い。
In the above embodiment, the receiving buffer 3a and line buffer 3b are checked after the initial operation, but these checks can be performed at any timing before starting the printing operation. It's okay.

〔発明の効果〕〔Effect of the invention〕

以上詳述したように本発明の1リンタ装置の初期化方式
によれば、まずプロセッサの動作に必要な最低限のメモ
リをチエツクし、このチエツクで異常がなければ印字機
構の初期動作を行うようにし、また、大容量のメモリの
チエツクは上記初期動作の後に行うようにしたので、電
源投入操作があったら直ちに印字機構の機械的動作が行
われ、電源投入が正常に行われたか、あるいはプリンタ
装置に何等かの障害が発生したのではないかというオペ
レータが抱く不安を除去できるプリンタ装置の初期化方
式を提供できる。
As described in detail above, according to the initialization method of the printer of the present invention, the minimum memory necessary for the operation of the processor is first checked, and if there is no abnormality in this check, the initial operation of the printing mechanism is performed. In addition, since the large-capacity memory check is performed after the initial operation described above, the mechanical operation of the printing mechanism is immediately performed when the power is turned on, and whether the power has been turned on normally or whether the printer It is possible to provide an initialization method for a printer device that can eliminate the operator's anxiety about whether some kind of failure has occurred in the device.

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

第1図は本発明のプリンタ装置の初期化方式を原理的に
説明するための図、 第2図は本発明の実施例に係るプリンタ装置の構成を示
す図、 第3図は本発明の実施例のRAMの割り当てを説明する
ための図、 第4図及び第5図は本発明の実施例の動作を説明するた
めのフローチャートである。 図において、 1・・・プロセッサ(CPU)、 2・・第1のメモリ(ROM、RAM)、3・・・第2
のメモリ (RAM) 4・・・印字機構。 図中、 同一符号は同−又は相当部分を示す。 (a) (b) 木を明0只1戴明図 粥 図 第 図 一′811nメ1ンノンナシ動午70−第 図 (?す2) 欠カヒーイ′l’lリメイ〉ルーナシ篤りσ70−第 
4  ”2  (Yっ1 ) 創え停’lの+j7ルチン動f託フ[7−第 図 (t91
FIG. 1 is a diagram for explaining the principle of the initialization method of a printer device according to the present invention, FIG. 2 is a diagram showing the configuration of a printer device according to an embodiment of the present invention, and FIG. 3 is a diagram for implementing the present invention. FIG. 4 and FIG. 5 are flowcharts for explaining the operation of the embodiment of the present invention. In the figure, 1... Processor (CPU), 2... First memory (ROM, RAM), 3... Second
Memory (RAM) 4... Printing mechanism. In the figures, the same reference numerals indicate the same or equivalent parts. (a) (b) The tree is 0 just 1, and the figure is 70.
4 ”2 (Y-1) Creation stop 'l's +j7 Rutin movement f [7-Figure (t91

Claims (2)

【特許請求の範囲】[Claims] (1)プロセッサ(1)と、該プロセッサ(1)の動作
に必須の第1のメモリ(2)と、該プロセッサ(1)の
動作に必須ではない第2のメモリ(3)と、該第2のメ
モリ(3)に記憶された情報を印字機構(4)に送るこ
とにより印字を行うプリンタ装置において、電源が投入
された際、第1のメモリ(1)を検査し、該検査で異常
がないことが判断された際に印字機構(4)の初期動作
を行うことを特徴とするプリンタ装置の初期化方式。
(1) A processor (1), a first memory (2) that is essential for the operation of the processor (1), a second memory (3) that is not essential for the operation of the processor (1), and a first memory (3) that is not essential for the operation of the processor (1); In a printer device that prints by sending information stored in the second memory (3) to the printing mechanism (4), when the power is turned on, the first memory (1) is inspected, and the inspection detects any abnormalities. An initialization method for a printer device, characterized in that an initial operation of a printing mechanism (4) is performed when it is determined that there is no printer.
(2)プロセッサ(1)と、該プロセッサ(1)の動作
に必須の第1のメモリ(2)と、該プロセッサ(1)の
動作に必須ではない第2のメモリ(3)と、該第2のメ
モリ(3)に記憶された情報を印字機構(4)に送るこ
とにより印字を行うプリンタ装置において、電源が投入
された際、第1のメモリ(1)を検査し、該検査で異常
がないことが判断された際に印字機構(4)の初期動作
を行い、該初期動作の後の所定タイミングで第2のメモ
リ(3)を検査することを特徴とするプリンタ装置の初
期化方式。
(2) a processor (1), a first memory (2) that is essential for the operation of the processor (1), a second memory (3) that is not essential for the operation of the processor (1), and a first memory (3) that is not essential for the operation of the processor (1); In a printer device that prints by sending information stored in the second memory (3) to the printing mechanism (4), when the power is turned on, the first memory (1) is inspected, and the inspection detects any abnormalities. An initialization method for a printer device, characterized in that an initial operation of a printing mechanism (4) is performed when it is determined that there is no memory, and a second memory (3) is inspected at a predetermined timing after the initial operation. .
JP16450490A 1990-06-22 1990-06-22 Initialization system of printer Pending JPH0453781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16450490A JPH0453781A (en) 1990-06-22 1990-06-22 Initialization system of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16450490A JPH0453781A (en) 1990-06-22 1990-06-22 Initialization system of printer

Publications (1)

Publication Number Publication Date
JPH0453781A true JPH0453781A (en) 1992-02-21

Family

ID=15794417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16450490A Pending JPH0453781A (en) 1990-06-22 1990-06-22 Initialization system of printer

Country Status (1)

Country Link
JP (1) JPH0453781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6193429B1 (en) 1999-05-25 2001-02-27 Dong-A Pencil Co., Ltd. Tip mechanism for knock-type ballpoint pen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6193429B1 (en) 1999-05-25 2001-02-27 Dong-A Pencil Co., Ltd. Tip mechanism for knock-type ballpoint pen

Similar Documents

Publication Publication Date Title
US4660999A (en) Dot-matrix printer with font cartridge unit
JP2997005B2 (en) Output device
US7337312B2 (en) Processor and firmware download method for same
JP2745669B2 (en) Printer
JPH0453781A (en) Initialization system of printer
JP3001213B2 (en) Printer control device
US11537302B2 (en) Printer configured to control printing operation using information stored in flash memories
JP2803598B2 (en) Printer device
JPS6043528B2 (en) electronic typewriter
JPH0292657A (en) Printer
JPH04313117A (en) Printer
JPH0798668A (en) Storage system for fault information of information processor
JPS5913784B2 (en) Abnormality detection method for multiprocessor systems
JPH06155867A (en) Thermal printer
JP3176192B2 (en) Page printer
JP2612937B2 (en) Printing device
JP3060376U (en) Memory device
JP3576669B2 (en) Recording device and data control method
JPH05116363A (en) Thermal printer
JPH1035061A (en) Printing apparatus
JPH11348391A (en) Printer controller
JPH09179794A (en) Built-in type printer system and inspection method therefor
JPH09258922A (en) Information processor, information processing method and storage medium
JPH0691955A (en) Ic card attachable printer and data controlling method using the printer
JPH11191054A (en) Fault diagnostic system for printer