JPH11328042A - Method and device for controlling writing-in to nonvolatile memory in printer - Google Patents

Method and device for controlling writing-in to nonvolatile memory in printer

Info

Publication number
JPH11328042A
JPH11328042A JP10135795A JP13579598A JPH11328042A JP H11328042 A JPH11328042 A JP H11328042A JP 10135795 A JP10135795 A JP 10135795A JP 13579598 A JP13579598 A JP 13579598A JP H11328042 A JPH11328042 A JP H11328042A
Authority
JP
Japan
Prior art keywords
writing
volatile memory
printer
predetermined
central processing
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.)
Granted
Application number
JP10135795A
Other languages
Japanese (ja)
Other versions
JP3823535B2 (en
Inventor
Mitsuaki Terahira
光明 寺平
Shugo Mochizuki
秀剛 望月
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP13579598A priority Critical patent/JP3823535B2/en
Priority to TW087119505A priority patent/TW388832B/en
Priority to KR1019980050558A priority patent/KR100488269B1/en
Priority to BR9805038-9A priority patent/BR9805038A/en
Priority to US09/200,672 priority patent/US6367992B1/en
Priority to CNB98122590XA priority patent/CN1138202C/en
Priority to EP98122168A priority patent/EP0919392B1/en
Priority to DE69812547T priority patent/DE69812547T2/en
Priority to HK99105407A priority patent/HK1020293A1/en
Publication of JPH11328042A publication Critical patent/JPH11328042A/en
Priority to KR10-2004-0068101A priority patent/KR100516700B1/en
Application granted granted Critical
Publication of JP3823535B2 publication Critical patent/JP3823535B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To avoide a decrease in the throughput of printing due to writing while a chieving periodical writing of data to a nonvolatile memory by writing the contents of a volatile memory to the nonvolatile memory when it is judged that a central processing part is not performing a prescribed processing. SOLUTION: Various data preserved in an EEPROM are loaded to a RAM and a counter begins to count the time (201). When it is judged that neither printing operation nor data processing is currently performed, when a predetermined write time has elapses (202) after the counter begins to counting the time, data are written to the EEPROM (204). When it is judged that at least either one of the printing operation and data processing is performed, no writing is performed. Thus, the writing is not performed if at least either one is performed, so a decrease in the throughput of printing due to the writing can be evaded.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、不揮発性メモリ上
に記憶したプリンタの動作状況に関するデータを、揮発
性メモリ上へ読み取って動作するPOS用その他のプリ
ンタに関し、特に前記不揮発性メモリへの更新データの
書き込み制御の方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to another POS printer which operates by reading data relating to the operating state of a printer stored in a nonvolatile memory into a volatile memory, and more particularly to updating the nonvolatile memory. The present invention relates to a data write control method.

【0002】[0002]

【従来の技術】プリンタの動作状況、例えばインク残
量、ヘッドクリーニング時間、印字ヘッドの位置、ロー
ル紙残量等の制御情報や、印字文字数、紙送り行数、稼
働時間等のカウンタ値と呼ばれる情報は、プリンタを正
しく動作させるために必要なデータである。特に、プリ
ンタの動作中における障害(電源オフ、停電、リセット
など)によりプリンタが停止した場合等は、障害復帰時
に停止前の動作状況を確認して正しく回復するための処
理を実行させることが好ましい。
2. Description of the Related Art The operation status of a printer, such as control information such as the remaining amount of ink, head cleaning time, print head position, and remaining amount of roll paper, and counter values such as the number of print characters, the number of paper feed lines, and the operating time are called. The information is data necessary for correctly operating the printer. In particular, when the printer is stopped due to a failure (power off, power failure, reset, etc.) during the operation of the printer, it is preferable to execute a process for confirming the operation status before the stop and recovering correctly when the failure is recovered. .

【0003】このようなことから従来、プリンタにEE
PROM(Electrically ErasableProgrammable ROM)
やフラッシュメモリ等の不揮発性メモリを備え、該不揮
発性メモリ上に、DRAM(Dynamic RAM)等の揮発性メ
モリ内で更新される前記プリンタの動作状況を定期的に
書き込むことによってこれを保存し、次のプリンタの動
作時において不揮発性メモリの内容を揮発性メモリ上に
復帰させ動作するものがある。
For this reason, EE has conventionally been used in printers.
PROM (Electrically Erasable Programmable ROM)
And a non-volatile memory such as a flash memory, on the non-volatile memory, by periodically writing the operation status of the printer updated in a volatile memory such as a DRAM (Dynamic RAM) to save this, Some printers operate by restoring the contents of the non-volatile memory to the volatile memory during the next operation of the printer.

【0004】[0004]

【発明が解決しようとする課題】ところで、このような
従来のプリンタにおいては、プリンタの稼動中における
一定時間間隔毎に、前記不揮発性メモリへのデータの書
き込みを行っている。具体的には、タイマーで計測する
一定時間が経過すると前記不揮発性メモリへの書き込み
処理を行う。そのため、印字動作やデータ処理は、不揮
発性メモリへの書き込みが完了するまで停止してしま
い、印字のスループットを低下させるという問題があっ
た。特に、POS用プリンタにおいては、本来は数秒で
終わるようなレシート発行処理時に不揮発性メモリへの
書き込みが行われると、場合によっては数十秒も客を待
たせてしまうという問題があった。
By the way, in such a conventional printer, data is written to the non-volatile memory at regular time intervals during the operation of the printer. Specifically, when a certain time measured by a timer elapses, a writing process to the nonvolatile memory is performed. Therefore, the printing operation and the data processing are stopped until the writing to the non-volatile memory is completed, and there is a problem that the printing throughput is reduced. In particular, in a POS printer, if writing to a non-volatile memory is performed during a receipt issuance process that normally ends in a few seconds, there is a problem that a customer may wait several tens of seconds in some cases.

【0005】従って本発明の目的は、印字動作やデータ
処理等の高速で行うべき処理を行っている場合には、前
記不揮発性メモリへのデータの書き込みを行わないよう
にすることによって、前記印字のスループットの低下を
回避することにある。
Accordingly, an object of the present invention is to prevent the data from being written into the nonvolatile memory when a process such as a printing operation or data processing that is to be performed at a high speed is performed. To avoid a decrease in throughput.

【0006】[0006]

【課題を解決するための手段】本発明は、プリンタにお
ける不揮発性メモリに対する書き込み制御方法に関す
る。本発明の書き込み制御方法は、前回の揮発性メモリ
の内容を不揮発性メモリへ書き込んでからの間隔を計測
する計測工程と、前記計測工程が所定の間隔を計測する
毎に中央処理部が所定の処理を行っているか否かを判断
する工程と、前記判断工程において、前記中央処理部が
所定の処理を行っていないと判断された場合に、前記揮
発性メモリの内容を前記不揮発性メモリへ書き込む書き
込み工程とを備えている。中央処理部が所定の処理、例
えば印字動作やデータ処理を行っている場合には、前記
不揮発性メモリへの書き込みが行われないので、該プリ
ンタの動作を妨げることがなくなる。
SUMMARY OF THE INVENTION The present invention relates to a write control method for a nonvolatile memory in a printer. The write control method according to the present invention includes a measuring step of measuring an interval since the previous writing of the content of the volatile memory to the nonvolatile memory; A step of determining whether or not processing is being performed; and, in the determining step, when it is determined that the central processing unit is not performing predetermined processing, the contents of the volatile memory are written to the nonvolatile memory. Writing step. When the central processing unit is performing a predetermined process, for example, a printing operation or data processing, writing to the non-volatile memory is not performed, so that the operation of the printer is not hindered.

【0007】本発明はまた、前記判断工程において、前
記中央処理部が所定の処理を行っていると判断された場
合に、前記計測工程は計測を継続し、前記所定の間隔よ
りも大きな第2の間隔が計測された場合、又は中央処理
部が所定の処理を行っていないと判断された場合に前記
揮発性メモリの内容を前記不揮発性メモリへ書き込む工
程とを更に備えて構成することができる。プリンタの動
作が長時間に渡る場合には不揮発性メモリへの書き込み
を行うようにすることによって、長時間不揮発性メモリ
への書き込みが行われないことを回避することができ
る。
In the present invention, when it is determined in the determining step that the central processing unit is performing a predetermined process, the measuring step continues the measurement, and the second step is performed when the central processing unit performs the predetermined process. Writing the content of the volatile memory to the non-volatile memory when the interval is measured or when it is determined that the central processing unit is not performing the predetermined process. . When the operation of the printer is performed for a long time, writing to the non-volatile memory is performed, so that writing to the non-volatile memory is not performed for a long time.

【0008】ここで、前記計測工程は、所定の時間間隔
の計測を行うものであっても良いし、また、プリンタの
動作に伴って変化する値、例えば、印字文字数、紙送り
行数、稼働時間等に基く所定間隔の計測を行うものであ
っても良い。
Here, the measuring step may be a step of measuring at a predetermined time interval, or a value that changes with the operation of the printer, for example, the number of print characters, the number of paper feed lines, Measurement at a predetermined interval based on time or the like may be performed.

【0009】また本発明は、プリンタにおける不揮発性
メモリに対する書き込み制御装置に関する。本発明の書
き込み制御装置は、前回の揮発性メモリの内容を不揮発
性メモリへ書き込んでからの間隔を計測するカウンタ
と、前記カウンタが所定の間隔を計測する毎に前記中央
処理部が所定の処理を行っているか否かを判断する判断
手段と、前記判断手段において、前記中央処理部が所定
の処理を行っていない判断された場合に、前記揮発性メ
モリの内容を前記不揮発性メモリへ書き込む書込手段と
を備えている。
The present invention also relates to a writing control device for a nonvolatile memory in a printer. The write control device according to the present invention includes a counter for measuring an interval since the previous writing of the content of the volatile memory to the nonvolatile memory, and the central processing unit performing a predetermined process each time the counter measures a predetermined interval. Determining means for determining whether or not the central processing unit is performing predetermined processing, and writing the content of the volatile memory to the non-volatile memory when the determining means determines that the central processing unit is not performing the predetermined processing. Insertion means.

【0010】更に本発明の書き込み制御装置は、前記判
断工程において、前記中央処理部が所定の処理を行って
いると判断された場合に、前記カウンタは計測を継続
し、前記所定の間隔よりも大きな第2の間隔が計測され
た場合、又は中央処理部が所定の処理を行っていないと
判断された場合に前記揮発性メモリの内容を前記不揮発
性メモリへ書き込む書込手段とを備えて構成することが
できる。
Further, in the writing control device according to the present invention, when it is determined in the determining step that the central processing unit is performing a predetermined process, the counter continues to measure, and the counter continues to be operated at a predetermined interval. Writing means for writing the content of the volatile memory to the nonvolatile memory when the large second interval is measured or when it is determined that the central processing unit is not performing the predetermined processing. can do.

【0011】[0011]

【発明の実施の形態】以下、本発明の一実施形態を図面
に沿って説明する。図1は本発明の一実施形態に係る制
御方法を実現したプリンタ装置の構成ブロック図であ
る。図においてプリンタ装置1は、プリンタ装置全体の
制御を司るCPU2、メインメモリとしてのRAM3、
制御データ及びプログラム等を格納したROM4、動作
状況に関するデータを格納するEEPROM5、印字ヘ
ッドによる用紙への印字を実現する印字機構6、所定の
経過時間を計測するカウンタ7及びホストコンピュータ
との接続を行うインターフェース8を備えている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a printer device that realizes a control method according to an embodiment of the present invention. In the figure, a printer 1 includes a CPU 2 for controlling the entire printer, a RAM 3 as a main memory,
ROM 4 for storing control data and programs, etc., EEPROM 5 for storing data relating to operating conditions, a printing mechanism 6 for realizing printing on paper by a print head, a counter 7 for measuring a predetermined elapsed time, and connection to a host computer. An interface 8 is provided.

【0012】CPU2は、ROM4上のプログラム及び
制御データ、EEPROM5上のデータをRAM3上に
ロードし、これらのプログラムやデータに基づいてプリ
ンタ装置を制御する。プリンタ装置1の電源を投入した
時点で、ROM4及びEEPROM5上のデータ及びプ
ログラムはRAM3上にロードされ、ロードされたデー
タに従ってプリンタ装置は初期状態にされ、ホストから
の命令を待ち受ける。
The CPU 2 loads programs and control data on the ROM 4 and data on the EEPROM 5 onto the RAM 3 and controls the printer device based on these programs and data. When the power of the printer 1 is turned on, data and programs in the ROM 4 and the EEPROM 5 are loaded on the RAM 3, the printer is initialized according to the loaded data, and waits for a command from the host.

【0013】EEPROM5には、プリンタの動作状
況、すなわちインク残量、ヘッドクリーニング時間、印
字ヘッドの位置、ロール紙残量等の制御情報や、印字文
字数、紙送り行数、稼働時間等のカウンタ値を格納すべ
き記憶領域が確保されている。プリンタ装置1は、図示
しない各種センサを備えており、該各センサによって前
記プリンタ装置の動作状況をリアルタイムで計測してい
る。前記各種制御情報やカウンタ値は、RAM3上で順
次更新され、後述する所定のタイミングでEEPROM
5上の割り当てられた各領域に書き込まれ、保存され
る。EEPROM5上に書き込まれた制御情報及びカウ
ンタ値は、プリンタ装置1の起動時及びリセット時にR
AM3上にロードされ、これらの情報の初期データとさ
れる。例えば、前記ヘッドクリーニング時間は、前回の
ヘッドクリーニング時間を記録したものであり、CPU
2はこのデータに基づいて次回のクリーニングの開始タ
イミングを決定し、実行する。また、プリンタ装置の障
害時、例えば、印字中にプリンタ装置が停止した場合に
は、リセット後に前記EEPROM5から読み込まれた
印字ヘッドの位置の情報を元に、正常状態への復帰動作
を行う。前記EEPROM5への書き込みタイミングの
決定、書き込み、EEPROM5からの読み出しは、C
PU2における制御機能により行われる。
The EEPROM 5 stores operation information of the printer, that is, control information such as ink remaining amount, head cleaning time, print head position, roll paper remaining amount, and counter values such as the number of printing characters, the number of paper feed lines, and the operating time. Is secured. The printer device 1 includes various sensors (not shown), and the sensors measure the operating status of the printer device in real time. The various control information and the counter value are sequentially updated on the RAM 3 and are stored in an EEPROM at a predetermined timing described later.
5 is written and saved in each assigned area. The control information and the counter value written on the EEPROM 5 are used when the printer device 1 is started and reset.
The data is loaded on the AM 3 and is used as initial data of such information. For example, the head cleaning time is obtained by recording the previous head cleaning time,
2 determines and executes the next cleaning start timing based on this data. When a failure occurs in the printer device, for example, when the printer device stops during printing, the operation of returning to the normal state is performed based on the information on the position of the print head read from the EEPROM 5 after the reset. The determination of the write timing to the EEPROM 5, the writing, and the reading from the EEPROM 5 are performed by C
This is performed by the control function of PU2.

【0014】カウンタ7は、図示しない内蔵のクロック
回路に基いて、所定の経過時間を計測する。カウンタ7
により計測される経過時間の中に、EEPROM5への
書き込み経過時間が含まれる。すなわち、EEPROM
5へのデータの書き込みが行われると、CPU2はカウ
ンタ7を起動し、時間の経過をカウントさせる。そして
予め定められた時間(例えば1時間)が経過すると、カ
ウンタ7はCPU2に信号を出力し、時間が経過したこ
とを通知する。尤も、CPU2にこのような機能を持た
せて、経過時間の計測を行うように構成しても良い。
The counter 7 measures a predetermined elapsed time based on a built-in clock circuit (not shown). Counter 7
Includes the elapsed time of writing to the EEPROM 5. That is, the EEPROM
When data is written to 5, the CPU 2 activates the counter 7 to count the passage of time. Then, when a predetermined time (for example, one hour) has elapsed, the counter 7 outputs a signal to the CPU 2 to notify that the time has elapsed. However, the CPU 2 may be configured to have such a function to measure the elapsed time.

【0015】図2は、前記プリンタ装置における第1の
実施形態に係るEEPROMへの書き込み制御を示すフ
ローチャートである。フローチャートでは、プリンタ装
置の動作中においてRAM3上で更新された各種制御情
報やカウンタ値を、定期的にEEPROM5上に書き込
むタイミングを説明している。
FIG. 2 is a flowchart showing write control to the EEPROM according to the first embodiment in the printer device. The flowchart describes the timing at which various control information and counter values updated on the RAM 3 during the operation of the printer device are periodically written on the EEPROM 5.

【0016】プリンタ装置1が起動され又はリセットさ
れると、EEPROM5に保存された各種データがRA
M3上にロードされ、前記カウンタ7による時間計測が
開始される(201)。カウンタ7による時間計測が開
始されてから、予め定められた書き込み時間が経過する
と(202)、現在印字動作とデータ処理を行っていな
いと判断された場合に、EEPROM5に対するデータ
の書き込みを行う(204)。そして、カウンタ7をリ
セットし、次の経過時間が来るのを待つ(205)。工
程203で、印字動作とデータ処理のどちらか一方でも
行われていると判断された場合、EEPROM5への書
き込みは行わない。このように、印字動作とデータ処理
の両方が行われていない場合にのみEEPROM5への
書き込みを行い、どちらか一方でも行われていた場合に
は書き込みを行わないので、該書き込みによる印字のス
ループットの低下を回避することができる。
When the printer 1 is started or reset, various data stored in the EEPROM 5
It is loaded on M3, and time measurement by the counter 7 is started (201). When a predetermined writing time has elapsed since the time measurement by the counter 7 was started (202), when it is determined that the printing operation and the data processing are not currently being performed, the data is written to the EEPROM 5 (204). ). Then, the counter 7 is reset and waits for the next elapsed time (205). If it is determined in step 203 that either the printing operation or the data processing is being performed, the writing to the EEPROM 5 is not performed. As described above, the writing to the EEPROM 5 is performed only when both the printing operation and the data processing are not performed, and the writing is not performed when either one of the printing operation and the data processing is performed. Drops can be avoided.

【0017】図3は、プリンタ装置1における第2の実
施形態に係るEEPROMへの書き込み制御を示すフロ
ーチャートである。本実施形態における制御が、先の実
施形態における制御と異なる点は、印字動作とデータ処
理のどちらか一方でも行われていた場合に時間計測を継
続して、第2の時間以内に印字動作とデータ処理が行わ
れていない状態とならないと、印字動作とデータ処理の
実行状態に拘わらず、EEPROM5への書き込みを行
う点である。
FIG. 3 is a flowchart showing a write control to the EEPROM in the printer device 1 according to the second embodiment. The difference between the control according to the present embodiment and the control according to the previous embodiment is that when either the printing operation or the data processing is performed, the time measurement is continued and the printing operation is performed within the second time. If data processing is not performed, writing to the EEPROM 5 is performed regardless of the printing operation and the execution state of data processing.

【0018】すなわち、本実施形態においても同様に、
プリンタ装置1が起動され又はリセットされると、EE
PROM5に保存された各種データがRAM3上にロー
ドされ、前記カウンタ7による時間計測が開始される
(301)。カウンタ7による時間計測が開始されてか
ら、予め定められた第1の時間が経過すると(30
2)、現在印字動作とデータ処理を行っていないかが判
断される(303)。印字動作とデータ処理の両方に使
用されていないと判断された場合に、EEPROM5に
対するデータの書き込みを行う(304)。そして、カ
ウンタ7をリセットし次の経過時間まで待機する(30
5)。
That is, also in the present embodiment,
When the printer device 1 is activated or reset, EE
Various data stored in the PROM 5 is loaded onto the RAM 3 and the counter 7 starts time measurement (301). When a predetermined first time has elapsed since the time measurement by the counter 7 was started (30)
2) It is determined whether a printing operation and data processing are currently being performed (303). When it is determined that the data is not used for both the printing operation and the data processing, the data is written to the EEPROM 5 (304). Then, the counter 7 is reset and waits until the next elapsed time (30).
5).

【0019】工程303で、印字動作とデータ処理のど
ちらか一方でも行われていると判断された場合、直ぐに
はEEPROM5への書き込みは行わず、カウンタ7に
よる時間計測を継続する(306)。
If it is determined in step 303 that either the printing operation or the data processing is being performed, the writing to the EEPROM 5 is not immediately performed, and the time measurement by the counter 7 is continued (306).

【0020】カウンタ7が該一定時間より長い第2の時
間(例えば、1時間10分)になるまでの間(30
6)、印字動作とデータ処理が行われていないか否か判
断し(303)、どちらも行われていないと判断した場
合には、EEPROM5への書き込みを行う(30
4)。カウンタ7が第2の時間を計測するまでに、印字
動作とデータ処理のどちらか一方が行われ続けていた場
合には、印字動作とデータ処理の動作状態に拘わらずE
EPROM5への書き込みを行う(304)。
Until the counter 7 reaches a second time (for example, 1 hour and 10 minutes) longer than the predetermined time (30 hours).
6) It is determined whether the printing operation and data processing are not performed (303), and if it is determined that neither is performed, writing to the EEPROM 5 is performed (30).
4). If one of the printing operation and the data processing is being performed by the time the counter 7 measures the second time, E is set regardless of the operating state of the printing operation and the data processing.
Writing to the EPROM 5 is performed (304).

【0021】先の実施形態においては、印字動作とデー
タ処理のどちらか一方でも行われている場合、EEPR
OM5への書き込みが保留され続ける。その結果、デー
タの書き込み間隔が空いてしまい、その間に電源OFF
等が行われるとカウンタに誤差が生じたり、失われる制
御情報があるという欠点がある。例えば、POS用プリ
ンタでは、デイリーリポート(売上等に関する1日の集
計データ)といったものは、数分間印字が継続される場
合があり、書き込みが保留にされる時間が長い。また、
印字を継続することによりカウント値や制御情報も変化
するため、書き込みが行われないまま電源OFF等され
たときに発生するカウンタの誤差は大きくなり、失われ
る制御情報が多くなる。
In the above embodiment, when either the printing operation or the data processing is performed, the EEPR
Writing to OM5 continues to be suspended. As a result, the data writing interval becomes long, during which the power is turned off.
However, there is a drawback in that the counter causes an error in the counter or loses some control information. For example, in a POS printer, printing of a daily report (total data of one day concerning sales etc.) may be continued for several minutes, and writing is suspended for a long time. Also,
Since the count value and control information change as printing is continued, the error of the counter that occurs when the power is turned off or the like without writing is increased, and the control information that is lost is increased.

【0022】本実施形態においては、このような欠点を
解決するために印字動作とデータ処理のどちらか一方で
も行われていると判断された場合にも、第2の時間まで
にEEPROM5への書き込みを行う。
In the present embodiment, even if it is determined that either the printing operation or the data processing is being performed in order to solve such a drawback, the writing to the EEPROM 5 is performed by the second time. I do.

【0023】以上、本発明の一実施形態を図面に沿って
説明したが、本発明は前記実施形態において示された事
項に限定されず、特許請求の範囲及び発明の詳細な説明
の記載、並びに周知の技術に基づいて、当業者がその変
更・応用を行うことができる範囲が含まれる。前記実施
形態においては、プリンタの動作状況に関するデータを
記憶する不揮発性メモリとしてEEPROMを示した
が、フラッシュメモリを用いても良い。また、不揮発性
メモリ上に保存するデータは、前記実施形態に示したも
のに限らず、各種のプリンタの動作状況に関するデータ
を対象とすることができるし、また前記実施形態に示し
たものの一部を対象としても良い。不揮発性メモリはま
た、動作状況に関するデータ以外のデータ、例えばフォ
ントデータやプログラム等を共に格納するように構成し
ても良い。
As described above, an embodiment of the present invention has been described with reference to the drawings. However, the present invention is not limited to the matters shown in the embodiment, and the claims and the detailed description of the invention, and The range in which those skilled in the art can make changes and applications based on well-known techniques is included. In the above-described embodiment, the EEPROM is shown as the nonvolatile memory for storing data relating to the operation status of the printer, but a flash memory may be used. The data stored in the non-volatile memory is not limited to the data described in the above embodiment, and may be data relating to the operation status of various printers. May be targeted. The non-volatile memory may also be configured to store data other than the data relating to the operation status, such as font data and programs.

【0024】更に、前記実施形態においては一定時間経
過毎に所定の処理の実行状態を判断するように構成した
が、プリンタの動作に伴って変化する値、例えば印字枚
数や印字行数に基く所定間隔毎にこの判断を行うように
構成しても良い。
Further, in the above-described embodiment, the execution state of the predetermined process is determined at every elapse of a predetermined time. However, a value that changes with the operation of the printer, for example, a predetermined The determination may be made for each interval.

【0025】[0025]

【発明の効果】以上の如く本発明によれば、所定の処
理、例えば印字動作とデータ処理の両方が行われていな
い場合にのみ不揮発性メモリへの書き込みを行い、どち
らか一方でも行われていた場合には書き込みを行わない
ので、不揮発性メモリに対し定期的にデータの書き込み
を達成しつつ、該書き込みによる印字のスループットの
低下を回避することができる。
As described above, according to the present invention, writing to the nonvolatile memory is performed only when a predetermined process, for example, both the printing operation and the data process are not performed, and either of the processes is performed. In such a case, since writing is not performed, it is possible to avoid a decrease in printing throughput due to the writing while periodically writing data to the nonvolatile memory.

【0026】また、前記判断工程において、印字動作と
データ処理のどちらか一方でも行われていると判断され
た場合にも、第2の時間までに不揮発性メモリへの書き
込みを行うため、所定の書き込み間隔が維持され、書き
込み間隔が空くことによるデータ喪失の危険性を低減す
ることができる。
Also, in the above-mentioned determination step, when it is determined that either the printing operation or the data processing is being performed, the writing to the nonvolatile memory is performed by the second time. The writing interval is maintained, and the risk of data loss due to the writing interval being reduced can be reduced.

【0027】本発明は特に、POS用プリンタにおける
デイリーリポートのように、一括して大量の印字出力を
行う必要があるプリンタ装置においてその効果が顕著で
ある。
The effect of the present invention is particularly remarkable in a printer device which needs to collectively output a large amount of prints, such as a daily report in a POS printer.

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

【図1】本発明の一実施形態に係る制御方法を実現した
プリンタ装置の構成ブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a printer that implements a control method according to an embodiment of the present invention.

【図2】図1のプリンタ装置における第1の実施形態に
係るEEPROMへの書き込み制御を示すフローチャー
トである。
FIG. 2 is a flowchart showing write control to an EEPROM according to the first embodiment in the printer device of FIG. 1;

【図3】図1のプリンタ装置における第2の実施形態に
係るEEPROMへの書き込み制御を示すフローチャー
トである。
FIG. 3 is a flowchart illustrating write control to an EEPROM according to a second embodiment in the printer device of FIG. 1;

【符号の説明】[Explanation of symbols]

1 プリンタ装置 2 中央処理部 3 RAM 4 ROM 5 EEPROM 6 印字機構 7 カウンタ 8 インターフェース DESCRIPTION OF SYMBOLS 1 Printer device 2 Central processing unit 3 RAM 4 ROM 5 EEPROM 6 Printing mechanism 7 Counter 8 Interface

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プリンタの動作状況に関するデータを記
憶する不揮発性メモリと、該不揮発性メモリから読み出
したデータ及びプリンタの動作に伴って更新された前記
データを一時的に記憶する揮発性メモリと、プリンタの
動作、前記不揮発性メモリ及び揮発性メモリに対するデ
ータの読み書きを制御するための中央処理部とを備えた
プリンタにおける前記不揮発性メモリに対する書き込み
制御方法であって、 前回の揮発性メモリの内容を不揮発性メモリへ書き込ん
でからの間隔を計測する計測工程と、 前記計測工程が所定の間隔を計測する毎に中央処理部が
所定の処理を行っているか否かを判断する工程と、 前記判断工程において、前記中央処理部が所定の処理を
行っていないと判断された場合に、前記揮発性メモリの
内容を前記不揮発性メモリへ書き込む書き込み工程と、
を備えたことを特徴とするプリンタにおける不揮発性メ
モリへの書き込み制御方法。
A nonvolatile memory for storing data relating to an operation state of the printer, a volatile memory for temporarily storing data read from the nonvolatile memory and the data updated with the operation of the printer, A write control method for the non-volatile memory in a printer including a printer operation, a central processing unit for controlling reading and writing of data to and from the non-volatile memory and the volatile memory. A measuring step of measuring an interval after writing to the non-volatile memory; a step of determining whether or not a central processing unit is performing a predetermined process each time the measuring step measures a predetermined interval; In the above, when it is determined that the central processing unit is not performing a predetermined process, the contents of the volatile memory A writing process for writing to the memory;
A method for controlling writing to a non-volatile memory in a printer, comprising:
【請求項2】 前記判断工程において、前記中央処理部
が所定の処理を行っていると判断された場合に、前記計
測工程は計測を継続し、 前記所定の間隔よりも大きな第2の間隔が計測された場
合、又は中央処理部が所定の処理を行っていないと判断
された場合に前記揮発性メモリの内容を前記不揮発性メ
モリへ書き込む工程と、を更に備えたことを特徴とする
請求項1記載のプリンタにおける不揮発性メモリへの書
き込み制御方法。
2. In the determining step, when it is determined that the central processing unit is performing a predetermined process, the measuring step continues the measurement, and a second interval larger than the predetermined interval is determined. Writing the content of the volatile memory to the non-volatile memory when the measurement has been performed or when the central processing unit has determined that the predetermined processing has not been performed. 2. A method for controlling writing to a nonvolatile memory in the printer according to 1.
【請求項3】 前記計測工程は、所定の時間間隔の計測
を行うことを特徴とする請求項1又は2記載のプリンタ
における不揮発性メモリへの書き込み制御方法。
3. The method according to claim 1, wherein the measuring step includes measuring at a predetermined time interval.
【請求項4】 前記計測工程は、プリンタの動作に伴っ
て変化する値に基く所定間隔の計測を行うことを特徴と
する請求項1又は2記載のプリンタにおける不揮発性メ
モリへの書き込み制御方法。
4. The method according to claim 1, wherein the measuring step measures at predetermined intervals based on a value that changes with the operation of the printer.
【請求項5】 プリンタの動作状況に関するデータを記
憶する不揮発性メモリと、該不揮発性メモリから読み出
したデータ及びプリンタの動作に伴って更新された前記
データを一時的に記憶する揮発性メモリと、プリンタの
動作、前記不揮発性メモリ及び揮発性メモリに対するデ
ータの読み書きを制御するための中央処理部とを備えた
プリンタにおける前記不揮発性メモリに対する書き込み
制御装置であって、 前回の揮発性メモリの内容を不揮発性メモリへ書き込ん
でからの間隔を計測するカウンタと、 前記カウンタが所定の間隔を計測する毎に前記中央処理
部が所定の処理を行っているか否かを判断する判断手段
と、 前記判断手段において、前記中央処理部が所定の処理を
行っていない判断された場合に、前記揮発性メモリの内
容を前記不揮発性メモリへ書き込む書込手段と、を備え
たことを特徴とするプリンタにおける不揮発性メモリへ
の書き込み制御装置。
5. A non-volatile memory for storing data relating to the operation status of the printer, a volatile memory for temporarily storing data read from the non-volatile memory and the data updated with the operation of the printer, A central processing unit for controlling the operation of the printer, reading and writing data to and from the nonvolatile memory and the volatile memory, a write control device for the nonvolatile memory in the printer, wherein the contents of the previous volatile memory A counter for measuring an interval after writing to the non-volatile memory; determining means for determining whether or not the central processing unit is performing predetermined processing each time the counter measures a predetermined interval; and the determining means. In the above, when it is determined that the central processing unit is not performing the predetermined process, the content of the volatile memory is A writing control device for writing to a non-volatile memory in a printer, comprising: writing means for writing to a volatile memory.
【請求項6】 前記判断工程において、前記中央処理部
が所定の処理を行っていると判断された場合に、前記カ
ウンタは計測を継続し、 前記所定の間隔よりも大きな第2の間隔が計測された場
合、又は中央処理部が所定の処理を行っていないと判断
された場合に前記揮発性メモリの内容を前記不揮発性メ
モリへ書き込む書込手段と、を更に備えたことを特徴と
する請求項5記載のプリンタにおける不揮発性メモリへ
の書き込み制御装置。
6. In the determining step, when it is determined that the central processing unit is performing a predetermined process, the counter continues to measure, and a second interval larger than the predetermined interval is measured. And writing means for writing the contents of the volatile memory to the nonvolatile memory when the processing has been performed or when it is determined that the central processing unit has not performed the predetermined processing. Item 6. A control device for writing into a nonvolatile memory in the printer according to Item 5.
JP13579598A 1997-11-26 1998-05-18 Write control method to nonvolatile memory in printer and printer Expired - Lifetime JP3823535B2 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
JP13579598A JP3823535B2 (en) 1998-05-18 1998-05-18 Write control method to nonvolatile memory in printer and printer
TW087119505A TW388832B (en) 1997-11-26 1998-11-24 Printing apparatus and its control method
BR9805038-9A BR9805038A (en) 1997-11-26 1998-11-25 Apparatus for printing and control process.
US09/200,672 US6367992B1 (en) 1997-11-26 1998-11-25 Printing apparatus and control method therefor
CNB98122590XA CN1138202C (en) 1997-11-26 1998-11-25 Printing apparatus and control method thereof
KR1019980050558A KR100488269B1 (en) 1997-11-26 1998-11-25 Printing apparatus, its control method and recording medium
EP98122168A EP0919392B1 (en) 1997-11-26 1998-11-26 Printing apparatus, method of controlling it and storage medium
DE69812547T DE69812547T2 (en) 1997-11-26 1998-11-26 Pressure equipment, method for its control and storage medium
HK99105407A HK1020293A1 (en) 1997-11-26 1999-11-22 Printing apparatus and control method thereof
KR10-2004-0068101A KR100516700B1 (en) 1997-11-26 2004-08-27 Printing apparatus and control methed therefor and its recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13579598A JP3823535B2 (en) 1998-05-18 1998-05-18 Write control method to nonvolatile memory in printer and printer

Publications (2)

Publication Number Publication Date
JPH11328042A true JPH11328042A (en) 1999-11-30
JP3823535B2 JP3823535B2 (en) 2006-09-20

Family

ID=15160013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13579598A Expired - Lifetime JP3823535B2 (en) 1997-11-26 1998-05-18 Write control method to nonvolatile memory in printer and printer

Country Status (1)

Country Link
JP (1) JP3823535B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6967733B1 (en) 1999-09-02 2005-11-22 Seiko Epson Corporation Printer and a control method and recording medium for the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6967733B1 (en) 1999-09-02 2005-11-22 Seiko Epson Corporation Printer and a control method and recording medium for the same

Also Published As

Publication number Publication date
JP3823535B2 (en) 2006-09-20

Similar Documents

Publication Publication Date Title
US7999954B2 (en) Methods and devices for host error detection by a printer
KR100488269B1 (en) Printing apparatus, its control method and recording medium
EP0957447B1 (en) Control method of saving data from volatile to nonvolatile memory in a printer
JP3826617B2 (en) Patent application title: PRINTER HAVING NONVOLATILE MEMORY AND METHOD FOR CONTROLLING WRITE TO NONVOLATILE MEMORY IN THE PRINTER
US8769215B2 (en) Recording device, recording device control method, and storage medium
JP2007021787A (en) Information processor having function of maintenance counter
JPH11328042A (en) Method and device for controlling writing-in to nonvolatile memory in printer
JPH11328041A (en) Method and device for controlling write-in to non-volatile memory in printer
US10148830B2 (en) Control method of a printer, printer and printer set with memory attached to a communication cable
JP2005115975A (en) Information processor
JP4130310B2 (en) Inkjet printer system
US8724148B2 (en) Recording device that can connect to a control device, control method for a recording device that can connect to a control device, and storage medium that stores a program for controlling parts of a recording device that can connect to a control device
JPH08255040A (en) Printer device
JP4106822B2 (en) Printing apparatus, initialization method, and information recording medium
JPH11232183A (en) Printer control information managing device and recording medium for recording control information management program
JP6088990B2 (en) Label printer and its control program
JPH06282361A (en) Data protecting device for electronic apparatus
JP2011192107A (en) Control device, recording system, control method of the control device and program
JP2000103145A (en) Printing apparatus, reset method and information- recording medium
JP6318275B2 (en) Label printer and its control program
JP2012141808A (en) Control device, control method thereof, and program
JP2001071588A (en) Recording apparatus
JPH04313117A (en) Printer
JP4507601B2 (en) Image forming apparatus
JP2005346662A (en) Information equipment, control method for information equipment. and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060306

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060619

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130707

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term