JP4626667B2 - Printing device and history operation frequency confirmation method of the printing device - Google Patents
Printing device and history operation frequency confirmation method of the printing device Download PDFInfo
- Publication number
- JP4626667B2 JP4626667B2 JP2008096432A JP2008096432A JP4626667B2 JP 4626667 B2 JP4626667 B2 JP 4626667B2 JP 2008096432 A JP2008096432 A JP 2008096432A JP 2008096432 A JP2008096432 A JP 2008096432A JP 4626667 B2 JP4626667 B2 JP 4626667B2
- Authority
- JP
- Japan
- Prior art keywords
- printing apparatus
- storage means
- operations
- count
- printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Images
Description
本発明は、印刷装置及びその履歴動作確認方法に係り、更に詳しくはPOSシステムなどの金銭を扱うシステムで使用される印刷装置に用いて好適な保守情報の取り扱い技術に関する。 The present invention relates to a printing apparatus and a history operation confirmation method thereof, and more particularly to a maintenance information handling technique suitable for use in a printing apparatus used in a money handling system such as a POS system.
従来の印刷装置においては印字文字数などに代表される印刷装置の動作履歴をカウントし記憶し、ホスト装置からの問い合わせに応じてこのカウント値をホスト装置に送信するものはなかった。したがってホスト装置から印刷装置の動作履歴確認を行って印刷装置の保守の内容や時期を知り、印刷装置の適切な保守を行うことが困難であった。
上記の従来技術では印刷装置が動作履歴を記憶してホスト装置に通知することができないため使用者側でホスト装置を介して印刷装置から離れたところでその印刷装置の動作履歴を知ることはできなかった。そのため印刷動作が進むにつれ発生する部品の摩耗等による故障の発生の予測が困難であり、特にPOSシステムにおいては不意の故障発生により店頭でのオペレーションが停止してしまうという問題を有していた。または不意の故障により店頭のオペレーションを停止させないために故障に備えて過剰な予備の印刷装置を持たなくてはならず在庫費用が多く発生するという問題点も有していた。従って、本発明の課題は、ホスト装置を接続していない印刷装置単体の状態で印刷装置の少なくとも、変更可能なカウンタのカウント値及び変更不可能なカウンタのカウント値等の動作履歴の確認が可能な印刷装置を実現することにある。 In the above prior art, since the printing device cannot store the operation history and notify the host device, the user cannot know the operation history of the printing device away from the printing device via the host device. It was. For this reason, it is difficult to predict the occurrence of a failure due to wear of a part or the like that occurs as the printing operation proceeds. In particular, the POS system has a problem that the operation at the store is stopped due to an unexpected failure. Or, in order not to stop the operation of the store due to the unexpected failure, it is necessary to have an excessive spare printing device in preparation for the failure, resulting in a problem that the inventory cost is increased. Accordingly, it is an object of the present invention to check at least the operation history of the changeable counter count value and the non-changeable counter count value of the printing apparatus in a state where the host apparatus is not connected. Is to realize a simple printing apparatus.
上記課題を解決するための、ホスト装置に接続され、該ホスト装置からのコマンド及びデータに基づいて印刷バッファに印刷データを展開して印刷を行う印刷装置において、
当該印刷装置に電源を供給しない状態でも記憶内容を保持可能な不揮発性記憶手段と、
揮発的に記憶するもので、前記印刷装置の稼動時間も含み、当該印刷装置の複数の動作の各動作毎に一つの動作に対して独立してカウントする2つのカウンタで構成される複数組の動作回数カウント手段と、
前記動作回数カウント手段の複数組のカウント値のそれぞれを前記印刷装置の複数の履歴動作回数として、前記不揮発性記憶手段の前記複数の領域にそれぞれ格納する動作回数格納手段と、を備え、
前記動作回数格納手段は、前記印刷装置の稼動時間を計測するタイマーを有し、前記不揮発性記憶手段に格納されている前記印刷装置の動作回数を取得して前記動作回数カウント手段に格納し、前記印刷装置の動作に基づき前記動作回数カウント手段の前記動作回数をカウントして更新し、前記タイマーに基づき一定の時間間隔でタイマー割り込みを発生させ、前記動作回数カウント手段に記憶されている前記動作回数を前記不揮発性記憶手段に格納すると共に、
当該動作回数格納手段は、前記タイマー割込みのタイミング毎に加えて、前記ホスト装置からの第1のコマンドの受信に応じて前記印刷装置の動作回数を前記不揮発性記憶手段に格納し、
前記ホスト装置からカウンタ変更コマンドを受信したとき、前記受信バッファに未印刷の前記印刷データがある場合を除き、前記不揮発性記憶手段の前記複数の領域の内の一つの動作に対して独立してカウントされた2つのカウンタの内の1方の履歴動作回数を初期化することを特徴とする。
In a printing apparatus connected to a host apparatus for solving the above-described problem and performing printing by developing print data in a print buffer based on commands and data from the host apparatus.
Non-volatile storage means capable of holding stored contents even when power is not supplied to the printing apparatus;
It is stored in a volatile manner, and includes a plurality of sets of two counters including the operation time of the printing apparatus and counting each operation of the printing apparatus independently for each operation. Means for counting the number of operations;
Operation number storage means for storing each of a plurality of count values of the operation number counting means as a plurality of history operation times of the printing apparatus in the plurality of areas of the nonvolatile storage means, respectively.
The operation number storage means has a timer for measuring the operation time of the printing apparatus, acquires the operation number of the printing apparatus stored in the nonvolatile storage means, and stores the operation number in the operation number count means, The operation count of the operation count counting unit is updated based on the operation of the printing apparatus, and a timer interrupt is generated at a constant time interval based on the timer, and the operation stored in the operation count counting unit Storing the number of times in the non-volatile storage means;
The operation count storage means stores the operation count of the printing apparatus in the nonvolatile storage means in response to the reception of the first command from the host apparatus in addition to the timing of the timer interruption.
When a counter change command is received from the host device, it is independent of one operation of the plurality of areas of the non-volatile storage means , except when there is unprinted print data in the reception buffer. One of the counted two counters is initialized with the number of history operations.
また、前記ホスト装置からの第2のコマンドの受信に応じて、前記不揮発性記憶手段に格納されている前記動作回数を読み出し、前記ホスト装置に送信する動作回数送信手段とを有することを特徴とする。 And an operation frequency transmission means for reading out the operation count stored in the nonvolatile storage means in response to reception of the second command from the host device and transmitting the read operation count to the host device. To do.
ホスト装置に接続され、該ホスト装置からのコマンド及びデータに基づいて印刷バッファに印刷データを展開して印刷を行う印刷装置の動作回数確認方法であって、
不揮発性記憶手段に格納されている前記印刷装置の動作回数を取得して、動作回数カウント手段に格納するステップと、
前記動作回数カウント手段は、揮発的に記憶するものであり、前記印刷装置の稼動時間も含み、前記印刷装置の複数の動作の各動作毎に一つの動作に対して独立してカウントする2つのカウンタで構成される複数組のカウンタ群から成り、前記動作回数をカウントして更新する動作回数カウントステップと、
前記印刷装置の稼動時間を計測するタイマー手段の計測結果に応じた所定のタイミング
で割り込みを実行する割り込みステップと、
前記割り込みステップに応じて、前記動作回数カウント手段のカウント値に基づき、前
記不揮発性記憶手段に格納する第1の動作回数格納ステップと、
前記所定のタイミング毎に加えて、前記ホスト装置からの第1のコマンドの受信に応じ
て前記印刷装置の動作回数を前記不揮発性記憶手段に格納する第2の動作回数格納ステップと、
前記ホスト装置からカウンタ変更コマンドを受信したとき、前記受信バッファに未印刷の前記印刷データがある場合を除き、前記不揮発性記憶手段の前記複数の領域の内の一つの動作に対して独立してカウントされた2つのカウンタの内の1方の履歴動作回数を初期化するステップと、
前記ホスト装置からの第2のコマンドに応じて、前記不揮発性記憶手段に格納された動作回数をホスト装置に送信するステップと、
を含むことを特徴とする。
A method for confirming the number of operations of a printing apparatus connected to a host apparatus and performing printing by developing print data in a print buffer based on commands and data from the host apparatus ,
Obtaining the number of operations of the printing apparatus stored in the non-volatile storage means, and storing it in the operation count counting means;
The operation number counting means stores volatilely, includes the operation time of the printing apparatus, and counts two operations independently for one operation for each of a plurality of operations of the printing apparatus. An operation frequency counting step comprising a plurality of sets of counters constituted by counters and counting and updating the operation frequency;
An interrupt executing an interrupt at predetermined timing corresponding to the measurement result timer means for measuring the operating hours of the printing device,
A first operation count storage step of storing in the nonvolatile storage means based on the count value of the operation count counting means according to the interrupt step;
A second operation count storage step of storing the operation count of the printing device in the nonvolatile storage means in response to reception of the first command from the host device in addition to the predetermined timing;
When a counter change command is received from the host device, it is independent of one operation of the plurality of areas of the non-volatile storage means, except when there is unprinted print data in the reception buffer. Initializing the number of history operations of one of the two counted counters;
Transmitting the number of operations stored in the non-volatile storage means to the host device in response to a second command from the host device;
It is characterized by including.
なお、参考例としては、
印刷装置に電源を供給しない状態においても記憶内容を保持可能な不揮発性記憶手段と、前記印刷装置の特定の動作回数をカウントする動作回数カウント手段と、該動作回数カウント手段によるカウント値に基づき、前記印刷装置の履歴動作回数を前記不揮発性記憶手段に格納する動作回数格納手段とを備え、ホスト装置からのコマンド及びデータに基づいて印刷を行う印刷装置であって、
前記動作回数格納手段により前記履歴動作回数をそれぞれ前記不揮発性記憶手段の2つの領域に格納し、前記2つの領域の内の一方の履歴動作回数は変更可能なカウント値として前記ホスト装置からのコマンドで変更可能とし、他方の履歴動作回数は変更不可能なカウント値として前記ホスト装置からのコマンドによっては変更不可能とすることを特徴とする。
As a reference example,
Based on the non-volatile storage means capable of holding the stored contents even when power is not supplied to the printing apparatus, the operation number counting means for counting the specific number of operations of the printing apparatus, and the count value by the operation number counting means, An operation frequency storage means for storing the history operation frequency of the printing apparatus in the nonvolatile storage means, and printing based on a command and data from a host device,
The number of history operations is stored in two areas of the nonvolatile storage means by the number of operations storage means, and one history operation number of the two areas is set as a changeable count value by a command from the host device. The other history operation count cannot be changed by a command from the host device as an unchangeable count value.
また、前記印刷装置には、印刷装置単体でのテスト印字モードを備え、前記テスト印字モードでは、 少なくとも、前記変更可能なカウント値及び変更不可能なカウント値の印刷を実行することを特徴とする。
ホスト装置に接続され、該ホスト装置からのコマンド及びデータに基づいて印刷を行う印刷装置であって、該印刷装置に電源を供給しない状態においても記憶内容を保持可能な不揮発性記憶手段と、印刷装置の特定の動作回数をカウントする動作回数カウント手段と、該動作回数カウント手段によるカウント値に基づき、前記印刷装置の履歴動作回数を前記不揮発性記憶手段に格納する動作回数格納手段とを有し、前記動作回数格納手段は、前記履歴動作回数を、所定のタイミング毎に前記不揮発性記憶手段に格納するとともに、前記ホスト装置からカウンタに関する第1のコマンドを受信するとき、前記所定のタイミングとは別個に前記不揮発性記憶手段に格納する印刷装置において、
前記印刷装置には、印刷装置単体でのテスト印字モードを備え、前記テスト印字モードでは、少なくとも、変更可能なカウント値及び変更不可能なカウント値の印刷を実行することを特徴とする。
この構成とすることでホスト装置を接続していない印刷装置単体の状態で印刷装置の少なくとも、変更可能なカウント値及び変更不可能なカウント値等の履歴動作回数の確認が可能である。
Further, the printing apparatus includes a test printing mode for the printing apparatus alone, and in the test printing mode, at least the changeable count value and the non-changeable count value are printed. .
A non-volatile storage means connected to a host device and performing printing based on commands and data from the host device, the non-volatile storage means capable of holding stored contents even when power is not supplied to the printing device, and printing An operation number counting unit that counts a specific operation number of the apparatus, and an operation number storage unit that stores the history operation number of the printing apparatus in the nonvolatile storage unit based on a count value by the operation number counting unit. The operation count storage means stores the history operation count in the nonvolatile storage means at each predetermined timing, and when the first command related to the counter is received from the host device, the predetermined timing is In a printing apparatus for storing separately in the non-volatile storage means,
The printing apparatus is provided with a test printing mode for a single printing apparatus, and in the test printing mode, at least printing of a changeable count value and a non-changeable count value is executed.
With this configuration, it is possible to check at least the number of history operations such as a changeable count value and a non-changeable count value of the printing apparatus in a state where the printing apparatus alone is not connected to the host apparatus.
また、前記テスト印字モードは、所定のスイッチを押しながら電源を投入するとことによりへ移行することを特徴とする。
この構成により、印刷装置の紙送り等の所定のスイッチを押しながら電源を投入するとことによりへ移行することができる。
また、ホスト装置に接続され、該ホスト装置からのコマンド及びデータに基づいて印刷を行う印刷装置であって、該印刷装置の特定の動作回数をカウントする動作回数カウント手段と、該動作回数カウント手段によるカウント値に基づき、前記印刷装置の履歴動作回数を不揮発性記憶手段に格納する動作回数格納手段とを有し、前記動作回数格納手段は、前記履歴動作回数を、所定のタイミング毎に前記不揮発性記憶手段に格納するとともに、前記ホスト装置からカウンタに関する第1のコマンドを受信するとき、前記所定のタイミングとは別個に前記不揮発性記憶手段に格納する印刷装置における履歴動作回数確認方法において、
前記ホスト装置に前記印刷装置が接続されていない状態において、
テスト印字モードへ移行して、少なくとも、変更可能なカウント値及び変更不可能なカウント値の印刷を実行することによって履歴動作回数を確認することを特徴とする。
この構成とすることでホスト装置を接続していない印刷装置単体の状態で印刷装置の少なくとも、変更可能なカウント値及び変更不可能なカウント値等の履歴動作回数の確認が可能である。
Further, the test print mode is shifted to when the power is turned on while pressing a predetermined switch.
With this configuration, it is possible to shift to when the power is turned on while pressing a predetermined switch such as paper feed of the printing apparatus.
A printing device connected to a host device and performing printing based on commands and data from the host device, the operation number counting unit counting a specific number of operations of the printing device, and the operation number counting unit Operation number storage means for storing the history operation count of the printing device in a nonvolatile storage means based on the count value of the printing device, wherein the operation count storage means sets the history operation count to the nonvolatile memory at a predetermined timing. In the method for confirming the number of history operations in the printing apparatus that stores the first command related to the counter from the host device and stores it in the nonvolatile storage means separately from the predetermined timing when the first command is received from the host device.
In a state where the printing device is not connected to the host device,
Shifting to the test print mode, the number of history operations is confirmed by printing at least a changeable count value and a non-changeable count value.
With this configuration, it is possible to check at least the number of history operations such as a changeable count value and a non-changeable count value of the printing apparatus in a state where the printing apparatus alone is not connected to the host apparatus.
また、前記テスト印字モードへの移行は、印刷装置の紙送りスイッチを押しながら電源を投入するとことによりへ移行することを特徴とする。
この構成により、印刷装置の紙送り等の所定のスイッチを押しながら電源を投入するとことによりへ移行することができる。
ホスト装置に接続され、該ホスト装置からのコマンド及びデータに基づいて印刷を行う印刷装置であって、該印刷装置の特定の動作回数をカウントする動作回数カウント手段と、該動作回数カウント手段によるカウント値に基づき、前記印刷装置の履歴動作回数を不揮発性記憶手段に格納する動作回数格納手段とを有し、前記動作回数格納手段は、前記履歴動作回数を、所定のタイミング毎に前記不揮発性記憶手段に格納するとともに、前記ホスト装置からカウンタに関する第1のコマンドを受信するとき、前記所定のタイミングとは別個に前記不揮発性記憶手段に格納する印刷装置における履歴動作回数確認方法において、
前記ホスト装置からカウンタに関する第2のコマンドを受信した場合に、少なくとも、変更可能なカウント値及び変更不可能なカウント値を前記ホスト装置に送信すると共に、
テスト印字モードへ移行して、少なくとも、変更可能なカウント値及び変更不可能なカウント値の印刷を実行することによって動作履歴回数を確認することを特徴とする。
The test print mode may be shifted to when the power is turned on while pressing the paper feed switch of the printing apparatus.
With this configuration, it is possible to shift to when the power is turned on while pressing a predetermined switch such as paper feed of the printing apparatus.
A printing apparatus that is connected to a host apparatus and performs printing based on commands and data from the host apparatus, the operation number counting means for counting a specific number of operations of the printing apparatus, and a count by the operation number counting means Operation number storage means for storing the history operation count of the printing apparatus in a nonvolatile storage means based on the value, wherein the operation count storage means stores the history operation count in the nonvolatile storage at every predetermined timing. In the method for confirming the number of history operations in the printing apparatus that stores the first command related to the counter from the host device and stores the first command in the nonvolatile storage unit separately from the predetermined timing,
When a second command related to a counter is received from the host device, at least a changeable count value and a non-changeable count value are transmitted to the host device;
Shifting to the test print mode, the number of operation histories is confirmed by printing at least a count value that can be changed and a count value that cannot be changed.
また、前記テスト印字モードへの移行は、印刷装置の紙送りスイッチを押しながら電源を投入するとことによりへ移行することを特徴とする。
この構成により、印刷装置の紙送り等の所定のスイッチを押しながら電源を投入するとことによりへ移行することができる。
The test print mode may be shifted to when the power is turned on while pressing the paper feed switch of the printing apparatus.
With this configuration, it is possible to shift to when the power is turned on while pressing a predetermined switch such as paper feed of the printing apparatus.
本発明によれば、ホスト装置を接続していない印刷装置単体の状態で印刷装置の履歴動作回数の確認が可能である。 According to the present invention, it is possible to check the history operation count of a printing apparatus in a state where the printing apparatus is not connected to a host apparatus.
本発明の実施の形態を以下に示す。
第1図は本発明の印刷装置の構成を示すブロック図であり、10は通信制御部、11は処理制御部、12はROM、13はフラッシュROM、14はRAM、15はメカニズム制御部、16はメカニズムをそれぞれ示している。
Embodiments of the present invention will be described below.
FIG. 1 is a block diagram showing the configuration of a printing apparatus according to the present invention. 10 is a communication control unit, 11 is a processing control unit, 12 is a ROM, 13 is a flash ROM, 14 is a RAM, 15 is a mechanism control unit, 16 Indicates the mechanism.
処理制御部11はROM12に記憶された処理手順に従って動作する。
通信制御部10は図示しないホスト装置と接続される。ホスト装置からの印刷データや制御コマンドの受信、印刷装置の動作回数のホスト装置への送信はこの通信制御部10を通して行われる。また、通信制御部10はホスト装置と接続されている信号線により処理制御部11のリセットを実施する機能を合わせ持つ。
The processing control unit 11 operates according to the processing procedure stored in the ROM 12.
The
処理制御部11は通信制御部10を通して受信したデータに基づきメカニズム制御部15を通してメカニズム16を動作させる。メカニズム16はロール紙送り部17、ロール紙印字用ヘッド18、ロール紙カッタ19、単票用紙送り部20、単票用紙印字用ヘッド21、磁気インク文字読み取りヘッド22より構成されている。
The processing control unit 11 operates the
処理制御部11は内部にタイマーを持ち一定の間隔でタイマー割り込み発生させる。ROM12に格納されたこのタイマー割り込み処理により時間が計測され、印刷装置の稼動時間を計測する。 The processing control unit 11 has a timer inside, and generates a timer interrupt at regular intervals. Time is measured by this timer interruption process stored in the ROM 12, and the operating time of the printing apparatus is measured.
処理制御部11はメカニズム制御部15へメカニズム16の制御処理を行う際、その動作回数をRAM14へ記憶させる。このRAM14に記憶されたメカニズム16の動作回数は所定のタイミングにてフラッシュROM13に記憶される。この時、処理制御部11のタイマーによって計測された印刷装置の稼動時間も合わせて記憶する。
When the process control unit 11 performs the control process of the
フラッシュROM13は処理制御部11により読み書き可能であり、電源の供給が無い場合でもその内容を保持可能である。ROM12に記憶されている処理手順ではまず最初にフラッシュROM13に記憶されている印刷装置の動作回数をRAM14にコピーし、その後の動作回数のカウントはRAM14の内容を更
新していく。このような構成にすることにより印刷装置の動作回数のカウントを電源のオン、オフに関わらず継続して行うことが可能となっている。
The
前述のタイマー割り込みによる時間計測では印刷装置の稼動時間を計測すると共にRAM14に記憶されている動作回数のカウント内容をフラッシュROM13に記憶させる時間の計測も実施している。本実施例においてはタイマー割り込み処理による時間計測が2分経過したことを検出する毎にフラッシュROM13に記憶させている。
In the time measurement by the timer interruption described above, the operation time of the printing apparatus is measured and the time for storing the count contents of the number of operations stored in the
カウントする動作としては次のものがあり、それぞれに対してカウンタ番号を付けている。このカウンタ番号は後述する制御コマンドで使用する。また、一つの動作に対して二つのカウンタ番号を付けてある。 There are the following operations for counting, and a counter number is assigned to each. This counter number is used in a control command described later. Two counter numbers are assigned to one operation.
・単票用紙紙送り行数 カウンタ番号a=10
カウンタ番号b=138
・単票用紙印字文字数 カウンタ番号a=11
カウンタ番号b=139
・ロール紙紙送り行数 カウンタ番号a=20
カウンタ番号b=148
・ロール紙ヘッド通電回数 カウンタ番号a=21
カウンタ番号b=149
・ロール紙カッタ駆動回数 カウンタ番号a=50
カウンタ番号b=178
・磁気インク文字読み取り回数 カウンタ番号a=60
カウンタ番号b=188
・製品稼動時間 カウンタ番号a=70
カウンタ番号b=198
カウンタ番号aのカウンタとカウンタ番号bのカウンタはそれぞれ独立したカウンタであり、一つの動作に対してそれぞれのカウンタが更新されていく。
・ Number of cut sheet paper feed counter number a = 10
Counter number b = 138
-Number of characters printed on a single sheet Counter number a = 11
Counter number b = 139
-Number of roll paper feed lines Counter number a = 20
Counter number b = 148
-Roll paper head energization counter number a = 21
Counter number b = 149
-Roll paper cutter drive count Counter number a = 50
Counter number b = 178
・ Number of magnetic ink character reading counter number a = 60
Counter number b = 188
・ Product operation time Counter number a = 70
Counter number b = 198
The counter with counter number a and the counter with counter number b are independent counters, and each counter is updated for one operation.
ここでカウンタ番号aは制御コマンドにより変更可能なカウンタとしカウンタ番号bは制御コマンドにより変更不可能なカウンタである。 Here, the counter number a is a counter that can be changed by a control command, and the counter number b is a counter that cannot be changed by a control command.
次にカウンタ番号aのカウント内容を変更する制御コマンドについて説明する。
図2はこのカウンタ変更コマンドの例である。
変更コマンドはコマンドコード部30とパラメータ部31で構成される。さらにコマンドコード部30は拡張子32と機能コード33により構成され、パラメータ部31は機能拡張用パラメータ34、カウンタ番号指定部35より構成される。拡張子32は文字コード表<1DH>のASCII表記である。機能コード33は、カウンタの変更機能を指定するコード列であり、本実施例ではふたつの文字コードを組み合わせて変更機能を指定している。本実施例における変更コマンドの機能拡張用パラメータ34は、カウンタ変更時のキーを指定する。カウンタ番号指定部35は、変更するカウンタ番号を指定する。
Next, a control command for changing the count content of the counter number a will be described.
FIG. 2 shows an example of the counter change command.
The change command includes a
カウンタ変更コマンド処理においては以下の処理を実施する。 In the counter change command processing, the following processing is performed.
・カウンタ変更コマンドの機能拡張用パラメータ34と所定のキーを比較し、機能拡張用パラメータ34がキーと一致しない場合、カウンタの変更処理を実行しない。これにより所定キーが一致しない場合のカウンタの変更を禁止することが可能となる。
The
・カウンタ番号指定部35により指定されたカウンタ番号が変更可能なカウンタ番号aに該当するか比較し、カウンタ番号指定部35により指定されたカウンタ番号がカウンタ番号aに該当する場合は指定されたカウンタの内容を変更するが、この際本実施例においてはカウンタの内容を0に初期化する。カウンタ番号指定部35により指定されたカウンタ番号がカウンタ番号aに該当しない場合はカウンタの変更は行わない。よって、カウンタ番号bに該当するカウンタ番号のカウンタは変更されることがない。 The counter number specified by the counter number specifying unit 35 is compared with a counter number a that can be changed, and if the counter number specified by the counter number specifying unit 35 corresponds to the counter number a, the specified counter At this time, the contents of the counter are initialized to 0 in this embodiment. If the counter number specified by the counter number specifying unit 35 does not correspond to the counter number a, the counter is not changed. Therefore, the counter of the counter number corresponding to the counter number b is not changed.
・ホスト装置から送信される印刷データを展開して1行単位の印刷バッファへ格納した後に印刷命令により印刷を実行する印刷モードが選択されており、かつ印刷バッファに未印刷のデータがある場合、カウンタの変更処理を実行しない。これによりカウンタ変更処理時のエラー発生等による未印刷データの消滅を防止することができ、印刷終了していない印刷データの保護が可能となる。 When the print mode for executing printing by the print command after the print data transmitted from the host device is expanded and stored in the print buffer for each line is selected and there is unprinted data in the print buffer, Do not execute counter change processing. As a result, it is possible to prevent the disappearance of unprinted data due to the occurrence of an error during the counter changing process, and it is possible to protect the print data that has not been printed.
・ホスト装置から送信される印刷データを展開して複数行に対応する印刷バッファへ格納した後に印刷命令により印刷を実行する印刷モードが選択されている場合、カウンタの変更処理を実行しない。これによりカウンタ変更処理には適切でない印刷モードが選択されている状態におけるカウンタ変更処理の禁止が可能となる。 If the print mode in which print data is transmitted by the print command after the print data transmitted from the host device is expanded and stored in the print buffer corresponding to a plurality of lines is selected, the counter changing process is not executed. Accordingly, it is possible to prohibit the counter change process in a state where a print mode that is not appropriate for the counter change process is selected.
・書き込み実行時に「書き込みエラー」が発生した場合、エラー発生をLEDやブザー等で表示、またはエラーステータス送信や信号線の変化等によりホスト装置に通知する。これによりオペレータまたはホスト装置は、印刷装置内で発生したエラーによりカウンタ変更処理が正常終了していないことが確認できる。 If a “write error” occurs during execution of the write, the error occurrence is displayed by an LED or buzzer, or notified to the host device by sending an error status, changing a signal line, or the like. As a result, the operator or the host device can confirm that the counter changing process has not been completed normally due to an error occurring in the printing apparatus.
このカウンタ変更コマンドは次の機能も合わせ持つ。 This counter change command also has the following functions.
・RAM14に記憶されているカウンタの内容を、前述のタイマー割り込みによる時間計測でフラッシュROM13への書き込み時間に至っていない時間であってもフラッシュROM13への書き込みを実施する。この構成になっていない場合は、変更コマンドによりカウンタの内容が変更されフラッシュROM13への書き込み前に通信制御部11を通してホスト装置が信号線により処理制御部11のリセットをすると変更されたカウンタの内容が失われてしまう。このような問題発生を防止するために変更コマンド処理時にフラッシュROM13への書き込みを同時に行う。
なお、フラッシュROM13への書き込み専用コマンドを設けても同様の効果を有する。
The contents of the counter stored in the
It should be noted that the same effect can be obtained by providing a write-only command for the
図3はカウンタ送信コマンドの例である。
送信コマンドはコマンドコード部40とパラメータ部41で構成される。さらにコマンドコード部40は拡張子42と機能コード43により構成され、パラメータ部41は機能拡張用パラメータ44、カウンタ番号指定部45より構成される。拡張子42は文字コード表<1DH>のASCII表記である。機能コード43は、カウンタの送信機能を指定するコード列であり、本実施例ではふたつの文字コードを組み合わせて変更機能を指定している。本実施例における送信コマンドの機能拡張用パラメータ44は、カウンタ送信時のキーを指定する。カウンタ番号指定部45は、送信するカウンタ番号を指定する。
FIG. 3 shows an example of a counter transmission command.
The transmission command is composed of a
カウンタ送信コマンド処理においては以下の処理を実施する。
・カウンタ送信コマンドの機能拡張用パラメータ44と所定のキーを比較し、機能拡張用パラメータ44がキーと一致しない場合、カウンタの送信処理を実行しない。これにより所定キーが一致しない場合のカウンタの送信を禁止することが可能となる。
The following processing is performed in the counter transmission command processing.
The
・カウンタ番号指定部45により指定されたカウンタ番号がカウントされている番号であった場合はフラッシュROM13に記憶されているカウンタの内容を読みだし送信する。カウンタ番号指定部45により指定されたカウンタ番号がカウントされていない番号であった場合は送信コマンドは無視しデータの送信を行わない。
If the counter number designated by the counter number designation unit 45 is a counted number, the contents of the counter stored in the
・送信実行時にフラッシュROM13の「読み出しエラー」が発生した場合、エラー発生をLEDやブザー等で表示、またはエラーステータス送信や信号線の変化等によりホスト装置に通知する。これによりオペレータまたはホスト装置は、印刷装置内で発生したエラーによりデータが送信されないことが確認できる。
When a “read error” of the
・送信データには[ヘッダコード]または[ターミネートコード]を付加することができる。これによりホスト装置は送信データの開始と終了が簡単に認識できる。 -[Header code] or [Terminate code] can be added to the transmission data. As a result, the host device can easily recognize the start and end of the transmission data.
このカウンタ送信コマンド処理時は次の処理も合わせて実行する。
ホスト装置へのデータ送信処理の第1ステップとしてカウントデータの換算を行う。
カウントしている内容は寿命等を判断する数値として、そのものの数値で分かり易いものと、カウントした数値そのものではもの分かり難いものがある。分かり易いものはそのままでよいが、カウントしている数値そのもので分かり難いものについては寿命などの判断をし易いものにカウント内容を換算する。単票用紙の紙送り行数を例にとって説明する。
During the counter transmission command processing, the following processing is also executed.
The count data is converted as the first step of the data transmission process to the host device.
There are two types of contents that are counted, such as those that are easy to understand as numerical values for determining the lifespan, and those that are difficult to understand with the numerical values themselves. The easy-to-understand values may be left as they are, but for the numerical values that are difficult to understand, the contents of the count are converted to those that are easy to determine the lifespan. A description will be given by taking the number of sheet feed lines of a cut sheet as an example.
単票用紙送り部20の駆動源はステッピングモータである。処理制御部11によるカウントはこのステッピングモータのステップ数をカウントしている。使用者側ではこのステップ数ではどの程度の紙送りが実施されたのかが非常に分かり難い。通常の1行分の紙送りは1/6インチであり、単票用紙送り部20はステッピングモータを24ステップ駆動すると1/6インチ単票用紙を送る構成になっている。そこで内部でのカウント値を24で割り印字行数に換算した値を用意する。
The drive source of the cut
第2ステップとしてデータの変換を実施する。
カウントした内容や換算した数値をそのままホスト装置へ送信すると数値によっては他の制御コードと一致してしまい正常な動作が行えなくなる、7ビット長のデータ通信では送信できない等の問題発生する場合がある。一例として単票用紙の紙送り行数の換算値が00001100Hとなっていた場合、送信データは00H、00H、11H、00Hの4バイトになるがここで11HはXONコードと一緒でありハンドシェイク不良が発生してしまう可能性がある。
Data conversion is performed as the second step.
If the counted contents and converted numerical values are sent to the host device as they are, problems may occur such as that some numerical values match other control codes and normal operation cannot be performed, and that data cannot be transmitted by 7-bit data communication. . As an example, when the converted value of the number of paper feed lines of a cut sheet is 00001100H, the transmission data is 4 bytes of 00H, 00H, 11H, and 00H. Here, 11H is the XON code and the handshake is bad. May occur.
そこでデータ変換を実施する。データ変換はカウント値又は換算値を10進数の文字コードに変換しその上位桁からホスト装置へ送信する。
前述の00001100Hという値の場合は10進数で4864という値になりホスト装置へは34H、38H、36H、34Hという4バイトを送信する。
Therefore, data conversion is performed. In the data conversion, the count value or the converted value is converted into a decimal character code and transmitted from the upper digit to the host device.
In the case of the above-mentioned value 00001100H, the decimal value is 4864, and 4 bytes 34H, 38H, 36H, and 34H are transmitted to the host device.
本発明の印刷装置においてはホスト装置からデータを印刷する以外に印刷装置をテストするテスト印字モードを持っている。図示しない紙送りスイッチを押しながら電源を投入するとことによりテスト印字モードへ移行する。 In addition to printing data from the host device, the printing device of the present invention has a test print mode for testing the printing device. When the power is turned on while pressing a paper feed switch (not shown), the test print mode is entered.
このテスト印字モードにおいて図4に示すようにカウンタ送信コマンドがホスト装置に送信するものと同じ内容を印刷する。図4において50はカウントしている項目を示し、51はカウンタ番号aに属する変更可能なカウンタのカウント値、52はカウンタ番号bに属する変更不可能なカウンタのカウント値を示す。
この構成とすることでホスト装置を接続していない印刷装置単体の状態で印刷装置の動作履歴の確認が可能となっている。
In this test print mode, the same content as that transmitted by the counter transmission command to the host device is printed as shown in FIG. In FIG. 4, 50 indicates an item being counted, 51 indicates a count value of a changeable counter belonging to the counter number a, and 52 indicates a count value of an unchangeable counter belonging to the counter number b.
With this configuration, the operation history of the printing apparatus can be confirmed in a state where the printing apparatus is not connected to the host apparatus.
また、このテスト印字モードの印字動作によってもカウントは進行する。しかし、テスト印字モードは2分間は継続しないためRAM14の内容をフラッシュROM13に書き込むタイミングが来る前に電源を落されてしまう場合がある。この場合においてもカウントされた内容が失われないように、処理制御部11のタイマー割り込み処理による時間計測が書き込みタイミングであると判定する前であってもテスト印字モードが終了したならばフラッシュROM13への書き込みを実施する。
The count is also advanced by the printing operation in the test printing mode. However, since the test print mode does not continue for 2 minutes, the power may be turned off before the timing for writing the contents of the
10・・・処理制御部
11・・・通信制御部
12・・・ROM
13・・・フラッシュROM
14・・・RAM
15・・・メカニズム制御部
16・・・メカニズム
30・・・変更コマンドのコマンドコード部
31・・・変更コマンドのパラメータ部
32・・・変更コマンドの拡張子
33・・・変更コマンドの機能コード
34・・・変更コマンドの機能拡張用パラメータ
35・・・変更コマンドのカウンタ番号指定パラメータ
40・・・送信コマンドのコマンドコード部
41・・・送信コマンドのパラメータ部
42・・・送信コマンドの拡張子
43・・・送信コマンドの機能コード
44・・・送信コマンドの機能拡張用パラメータ
45・・・送信コマンドのカウンタ番号指定パラメータ
10 ... Processing control unit 11 ... Communication control unit 12 ... ROM
13 ... Flash ROM
14 ... RAM
DESCRIPTION OF
Claims (3)
当該印刷装置に電源を供給しない状態でも記憶内容を保持可能な不揮発性記憶手段と、
揮発的に記憶するもので、前記印刷装置の稼動時間も含み、当該印刷装置の複数の動作の各動作毎に一つの動作に対して独立してカウントする2つのカウンタで構成される複数組の動作回数カウント手段と、
前記動作回数カウント手段の複数組のカウント値のそれぞれを前記印刷装置の複数の履歴動作回数として、前記不揮発性記憶手段の前記複数の領域にそれぞれ格納する動作回数格納手段と、を備え、
前記動作回数格納手段は、前記印刷装置の稼動時間を計測するタイマーを有し、前記不揮発性記憶手段に格納されている前記印刷装置の動作回数を取得して前記動作回数カウント手段に格納し、前記印刷装置の動作に基づき前記動作回数カウント手段の前記動作回数をカウントして更新し、前記タイマーに基づき一定の時間間隔でタイマー割り込みを発生させ、前記動作回数カウント手段に記憶されている前記動作回数を前記不揮発性記憶手段に格納すると共に、
当該動作回数格納手段は、前記タイマー割込みのタイミング毎に加えて、前記ホスト装置からの第1のコマンドの受信に応じて前記印刷装置の動作回数を前記不揮発性記憶手段に格納し、
前記ホスト装置からカウンタ変更コマンドを受信したとき、前記受信バッファに未印刷の前記印刷データがある場合を除き、前記不揮発性記憶手段の前記複数の領域の内の一つの動作に対して独立してカウントされた2つのカウンタの内の1方の履歴動作回数を初期化する、
ことを特徴とする印刷装置。 In a printing apparatus that is connected to a host apparatus and performs printing by developing print data in a print buffer based on commands and data from the host apparatus.
Non-volatile storage means capable of holding stored contents even when power is not supplied to the printing apparatus;
It is stored in a volatile manner, and includes a plurality of sets of two counters including the operation time of the printing apparatus and counting each operation of the printing apparatus independently for each operation. Means for counting the number of operations;
Operation number storage means for storing each of a plurality of count values of the operation number counting means as a plurality of history operation times of the printing apparatus in the plurality of areas of the nonvolatile storage means, respectively.
The operation number storage means has a timer for measuring the operation time of the printing apparatus, acquires the operation number of the printing apparatus stored in the nonvolatile storage means, and stores the operation number in the operation number count means, The operation count of the operation count counting unit is updated based on the operation of the printing apparatus, and a timer interrupt is generated at a constant time interval based on the timer, and the operation stored in the operation count counting unit Storing the number of times in the non-volatile storage means;
The operation count storage means stores the operation count of the printing apparatus in the nonvolatile storage means in response to the reception of the first command from the host apparatus in addition to the timing of the timer interruption.
When a counter change command is received from the host device, it is independent of one operation of the plurality of areas of the non-volatile storage means , except when there is unprinted print data in the reception buffer. Initialize the number of history operations of one of the two counted counters.
A printing apparatus characterized by that.
不揮発性記憶手段に格納されている前記印刷装置の動作回数を取得して、動作回数カウント手段に格納するステップと、
前記動作回数カウント手段は、揮発的に記憶するものであり、前記印刷装置の稼動時間も含み、前記印刷装置の複数の動作の各動作毎に一つの動作に対して独立してカウントする2つのカウンタで構成される複数組のカウンタ群から成り、前記動作回数をカウントして更新する動作回数カウントステップと、
前記印刷装置の稼動時間を計測するタイマー手段の計測結果に応じた所定のタイミング
で割り込みを実行する割り込みステップと、
前記割り込みステップに応じて、前記動作回数カウント手段のカウント値に基づき、前
記不揮発性記憶手段に格納する第1の動作回数格納ステップと、
前記所定のタイミング毎に加えて、前記ホスト装置からの第1のコマンドの受信に応じ
て前記印刷装置の動作回数を前記不揮発性記憶手段に格納する第2の動作回数格納ステップと、
前記ホスト装置からカウンタ変更コマンドを受信したとき、前記受信バッファに未印刷の前記印刷データがある場合を除き、前記不揮発性記憶手段の前記複数の領域の内の一つの動作に対して独立してカウントされた2つのカウンタの内の1方の履歴動作回数を初期化するステップと、
前記ホスト装置からの第2のコマンドに応じて、前記不揮発性記憶手段に格納された動作回数をホスト装置に送信するステップと、
を含むことを特徴とする印刷装置の動作回数確認方法。 A method for confirming the number of operations of a printing apparatus connected to a host apparatus and performing printing by developing print data in a print buffer based on commands and data from the host apparatus ,
Obtaining the number of operations of the printing apparatus stored in the non-volatile storage means, and storing it in the operation count counting means;
The operation number counting means stores volatilely, includes the operation time of the printing apparatus, and counts two operations independently for one operation for each of a plurality of operations of the printing apparatus. An operation frequency counting step comprising a plurality of sets of counters constituted by counters and counting and updating the operation frequency;
An interrupt executing an interrupt at predetermined timing corresponding to the measurement result timer means for measuring the operating hours of the printing device,
A first operation count storage step of storing in the nonvolatile storage means based on the count value of the operation count counting means according to the interrupt step;
A second operation count storage step of storing the operation count of the printing device in the nonvolatile storage means in response to reception of the first command from the host device in addition to the predetermined timing;
When a counter change command is received from the host device, it is independent of one operation of the plurality of areas of the non-volatile storage means, except when there is unprinted print data in the reception buffer. Initializing the number of history operations of one of the two counted counters;
Transmitting the number of operations stored in the non-volatile storage means to the host device in response to a second command from the host device;
A method for confirming the number of operations of a printing apparatus, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008096432A JP4626667B2 (en) | 2008-04-02 | 2008-04-02 | Printing device and history operation frequency confirmation method of the printing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008096432A JP4626667B2 (en) | 2008-04-02 | 2008-04-02 | Printing device and history operation frequency confirmation method of the printing device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005230163A Division JP4131273B2 (en) | 2005-08-08 | 2005-08-08 | Printing device and method for confirming operation frequency of printing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008179164A JP2008179164A (en) | 2008-08-07 |
JP4626667B2 true JP4626667B2 (en) | 2011-02-09 |
Family
ID=39723413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008096432A Expired - Lifetime JP4626667B2 (en) | 2008-04-02 | 2008-04-02 | Printing device and history operation frequency confirmation method of the printing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4626667B2 (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2666363B2 (en) * | 1988-05-16 | 1997-10-22 | ソニー株式会社 | Electrical equipment |
JPH02275982A (en) * | 1989-04-18 | 1990-11-09 | Tokyo Electric Co Ltd | Laser printer |
JPH03221973A (en) * | 1990-01-29 | 1991-09-30 | Tokyo Electric Co Ltd | Electrophotographic device |
JPH05213522A (en) * | 1992-02-04 | 1993-08-24 | Toshiba Corp | Paper feeding device and image forming device |
JP2866521B2 (en) * | 1992-03-06 | 1999-03-08 | シャープ株式会社 | Copier memory system |
JPH06312559A (en) * | 1993-04-30 | 1994-11-08 | Tokyo Electric Co Ltd | Printer |
JP3809202B2 (en) * | 1995-06-12 | 2006-08-16 | キヤノン株式会社 | Image output apparatus and image output system |
JPH09198289A (en) * | 1996-01-23 | 1997-07-31 | Kokusai Electric Co Ltd | Backup device for file |
-
2008
- 2008-04-02 JP JP2008096432A patent/JP4626667B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2008179164A (en) | 2008-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100488269B1 (en) | Printing apparatus, its control method and recording medium | |
CN101088050B (en) | Systems and methods for universal imaging components | |
JP2008238799A (en) | Image forming device | |
WO1999027436A1 (en) | Printer, control method therefor and recording medium | |
JP2005288878A (en) | System for managing consumables | |
JP4683089B2 (en) | Printing apparatus and control method thereof | |
JP4626667B2 (en) | Printing device and history operation frequency confirmation method of the printing device | |
JP4131273B2 (en) | Printing device and method for confirming operation frequency of printing device | |
US7788633B2 (en) | Bank note processing machine and method for operating bank note processing machine | |
US6587971B1 (en) | Print control method and print control apparatus | |
JP2005047277A (en) | Method for managing operation option and configuration of machine, and printing machine | |
CN108290419A (en) | System and method for universal imaging components | |
JPH11161456A (en) | Printer and its control method | |
JP5515303B2 (en) | Image forming apparatus, program, and storage medium | |
JP2019074609A (en) | Image forming apparatus, information processing method, and program | |
US11066266B2 (en) | Cutting device, printer and method for detecting operation error | |
JP5959374B2 (en) | Program creation support device | |
EP2371570B1 (en) | Printer | |
JP4309414B2 (en) | Barcode scanner device, setting method, program thereof, and program recording medium | |
JP4998087B2 (en) | Printer | |
CN111016465B (en) | Chip and imaging box | |
JP5000343B2 (en) | Image forming apparatus | |
JP4473640B2 (en) | Printing device | |
US20180091659A1 (en) | Printer and printer control method | |
JP4412312B2 (en) | Printing apparatus and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080501 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080501 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100408 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100413 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100609 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100720 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100914 |
|
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: 20101012 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20101025 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131119 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
EXPY | Cancellation because of completion of term |