JP2013077187A - Medium processing device, control method of medium processing device, and program - Google Patents

Medium processing device, control method of medium processing device, and program Download PDF

Info

Publication number
JP2013077187A
JP2013077187A JP2011216969A JP2011216969A JP2013077187A JP 2013077187 A JP2013077187 A JP 2013077187A JP 2011216969 A JP2011216969 A JP 2011216969A JP 2011216969 A JP2011216969 A JP 2011216969A JP 2013077187 A JP2013077187 A JP 2013077187A
Authority
JP
Japan
Prior art keywords
command
error
medium
medium processing
check
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.)
Withdrawn
Application number
JP2011216969A
Other languages
Japanese (ja)
Inventor
Hiroyuki Akaha
博之 赤羽
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 JP2011216969A priority Critical patent/JP2013077187A/en
Publication of JP2013077187A publication Critical patent/JP2013077187A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce an influence of error occurrence in a medium processing device, which performs processing on a medium, on work efficiency by enabling an external device to control the medium processing device as much as possible even when the error occurs in the medium processing device.SOLUTION: A medium processing device 1 is configured to be able to connect with a host computer 5, and comprises processing means for performing processing on a medium. The medium processing device 1 also comprises a control unit 70 which shifts a state of the medium processing device 1 to an off-line state that stops operation of the processing means while maintaining a communicative state with the host computer 5 when an error occurs in the medium processing device 1, and on receiving a command which does not require operation of the processing means from the host computer 5 while the medium processing device 1 is in the off-line state, executes the received command.

Description

本発明は、媒体を処理する媒体処理装置、媒体処理装置の制御方法、及び、プログラムに関する。   The present invention relates to a medium processing apparatus for processing a medium, a control method for the medium processing apparatus, and a program.

従来、ホストコンピューター等の外部の装置に接続され、媒体を処理するプリンター等の媒体処理装置が知られている。この種の媒体処理装置においては、媒体を処理する処理部にエラーが発生して動作が停止した場合に、外部の装置からメモリーに記憶されている制御値の書き換え等を行うものが知られている(例えば、特許文献1参照)。   Conventionally, a medium processing apparatus such as a printer that is connected to an external apparatus such as a host computer and processes the medium is known. In this type of medium processing device, it is known to rewrite a control value stored in a memory from an external device when an error occurs in a processing unit for processing a medium and the operation stops. (For example, refer to Patent Document 1).

特開2001−225532号公報JP 2001-225532 A

ところで、媒体処理装置において、媒体を処理する処理部の一部にエラーが発生しても、この処理部が関与しない他の処理を実行可能な場合がある。このような場合であっても、従来は、処理部にエラーが発生するとエラーが発生した処理部以外を含めて媒体処理装置全体の動作が停止される。そして、上述のように、外部の装置から送信されるコマンドによってメモリーの書き換え等の処理は行うが、媒体を処理する動作は行えなかった。また、処理部を制御する制御部にエラーが発生すると、例えばメモリーに記憶されている情報の参照等もできない。このため、エラーが発生することにより作業効率が大きく低下してしまうという問題があった。
本発明は、上述した事情に鑑みてなされたものであり、媒体を処理する媒体処理装置において、エラーが発生した場合であっても、できるだけ外部の装置による制御を可能として、エラーの発生による作業効率への影響を低減することを目的とする。
By the way, in the medium processing apparatus, even when an error occurs in a part of the processing unit that processes the medium, there may be a case where other processing not involving the processing unit can be executed. Even in such a case, conventionally, when an error occurs in the processing unit, the operation of the entire medium processing apparatus including those other than the processing unit in which the error has occurred is stopped. As described above, processing such as rewriting of memory is performed by a command transmitted from an external device, but operation of processing a medium cannot be performed. If an error occurs in the control unit that controls the processing unit, for example, information stored in the memory cannot be referred to. For this reason, there has been a problem in that work efficiency is greatly reduced due to the occurrence of an error.
The present invention has been made in view of the above-described circumstances, and even if an error occurs in a medium processing apparatus that processes a medium, control by an external apparatus is possible as much as possible, and work due to the occurrence of an error is possible. The objective is to reduce the impact on efficiency.

上記目的を達成するために、本発明は、外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置であって、エラーが発生した場合に、前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止するエラー制御手段を備え、前記エラー制御手段は、前記エラーが発生して動作を停止した状態で前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行すること、を特徴とする。
本発明によれば、エラーが発生しても、エラーが発生した処理手段の動作を必要としないコマンドであれば、外部の装置から送信されるコマンドを実行できるので、例えば、処理手段の機械部分に関するエラーが発生した場合にメモリーに関するコマンドを実行して、外部の装置によってエラーに関する情報を取得してエラーに対して速やかに対処でき、作業効率への影響を軽微に抑えることができる。また、処理手段の動作を必要としないコマンドを実行するので、エラーが発生した処理手段を動作させてより深刻なエラーや故障を招くおそれがない。
また、上記構成において、複数の前記処理手段を備え、いずれかの前記処理手段においてエラーが発生した場合に、前記エラー制御手段は、前記エラーが発生した前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合に、当該コマンドを実行するようにしてもよい。この場合、エラーを発生していない処理手段に関するコマンドを実行可能であるため、エラーが発生した場合であっても当該エラーを深刻化させないように処理を継続できる。このため、作業効率への影響をより軽微に抑えることができる。
In order to achieve the above object, the present invention is a medium processing apparatus configured to be connectable to an external apparatus and having a processing means for processing a medium. When an error occurs, the present invention Error control means for maintaining the communicable state and stopping the operation of the processing means, and the error control means is a command that does not require the operation of the processing means in a state where the operation has been stopped due to the occurrence of the error. Is received from the external device, the command is executed.
According to the present invention, even if an error occurs, a command transmitted from an external device can be executed as long as the command does not require the operation of the processing means in which the error has occurred. When an error relating to an error occurs, a memory related command is executed, information relating to the error is acquired by an external device, and the error can be promptly dealt with, and the influence on work efficiency can be minimized. In addition, since a command that does not require the operation of the processing means is executed, there is no possibility of causing a more serious error or failure by operating the processing means in which an error has occurred.
Further, in the above configuration, the apparatus includes a plurality of the processing means, and when an error occurs in any of the processing means, the error control means sends a command that does not require the operation of the processing means in which the error has occurred. The command may be executed when received from the external device. In this case, since the command relating to the processing means in which no error has occurred can be executed, even if an error has occurred, the processing can be continued so as not to make the error serious. For this reason, the influence on work efficiency can be suppressed more lightly.

また、本発明は、前記エラー制御手段は、前記エラーが発生して動作を停止した状態で前記外部の装置から受信したコマンドが、予め設定された実行可能コマンドである場合に、当該コマンドを実行することを特徴とする。
本発明によれば、実行可能なコマンドが予め設定されているため、処理手段等に悪影響を及ぼさない範囲でコマンドを実行する一方、エラーが発生した処理手段に影響するコマンド等を実行しないように設定できる。
In the present invention, the error control unit executes the command when the command received from the external device in a state where the operation has been stopped due to the error is a preset executable command. It is characterized by doing.
According to the present invention, since an executable command is preset, the command is executed within a range that does not adversely affect the processing unit and the like, and the command that affects the processing unit in which the error has occurred is not executed. Can be set.

また、本発明は、前記エラーが発生した場合に実行可能なコマンドと、前記エラーの種別と、が対応づけて設定されたことを特徴とする。
本発明によれば、エラーの種別によって異なるコマンドを実行可能なコマンドとして設定できるので、実行可能なコマンド及び実行できないコマンドの設定をエラーの種別毎に最適化できる。
The present invention is characterized in that a command that can be executed when the error occurs and the type of the error are set in association with each other.
According to the present invention, different commands can be set as executable commands depending on the error type, so that the setting of executable commands and non-executable commands can be optimized for each error type.

また、本発明は、前記エラー制御手段は、発生した前記エラーが復帰不可能なエラーである場合に、前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止することを特徴とする。
本発明によれば、復帰不可能なエラーに対し、外部の装置を利用して適切に、かつ速やかに対処できる。
In the present invention, the error control means may stop the operation of the processing means while maintaining a state communicable with the external device when the generated error is an irrecoverable error. Features.
According to the present invention, an unrecoverable error can be appropriately and promptly handled using an external device.

また、上記目的を達成するために、本発明は、外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置の制御方法であって、エラーが発生した場合に前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止し、この動作を停止した状態で、前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行すること、を特徴とする媒体処理装置の制御方法。
本発明によれば、エラーが発生しても、エラーが発生した処理手段の動作を必要としないコマンドであれば、外部の装置から送信されるコマンドを実行できるので、例えば、処理手段の機械部分に関するエラーが発生した場合にメモリーに関するコマンドを実行して、外部の装置によってエラーに関する情報を取得してエラーに対して速やかに対処でき、作業効率への影響を軽微に抑えることができる。また、処理手段の動作を必要としないコマンドを実行するので、エラーが発生した処理手段を動作させてより深刻なエラーや故障を招くおそれがない。
In order to achieve the above object, the present invention is a method for controlling a medium processing apparatus that is configured to be connectable to an external apparatus and includes a processing means for processing a medium. When a command that does not require the operation of the processing unit is received from the external device while the operation of the processing unit is stopped while maintaining a state in which communication with an external device is possible And executing the command. A method for controlling a medium processing apparatus, comprising:
According to the present invention, even if an error occurs, a command transmitted from an external device can be executed as long as the command does not require the operation of the processing means in which the error has occurred. When an error relating to an error occurs, a memory related command is executed, information relating to the error is acquired by an external device, and the error can be promptly dealt with, and the influence on work efficiency can be minimized. In addition, since a command that does not require the operation of the processing means is executed, there is no possibility of causing a more serious error or failure by operating the processing means in which an error has occurred.

また、上記目的を達成するために、本発明は、外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置を制御する制御部が実行可能なプログラムであって、前記制御部を、エラーが発生した場合に前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止し、この動作を停止した状態で、前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行するエラー制御手段として機能させることを特徴とする。
本発明のプログラムを実行すれば、エラーが発生しても、エラーが発生した処理手段の動作を必要としないコマンドであれば、外部の装置から送信されるコマンドを実行できるので、例えば、処理手段の機械部分に関するエラーが発生した場合にメモリーに関するコマンドを実行して、外部の装置によってエラーに関する情報を取得してエラーに対して速やかに対処でき、作業効率への影響を軽微に抑えることができる。また、処理手段の動作を必要としないコマンドを実行するので、エラーが発生した処理手段を動作させてより深刻なエラーや故障を招くおそれがない。
In order to achieve the above object, the present invention is a program that is configured to be connectable to an external apparatus and that can be executed by a control unit that controls a medium processing apparatus including a processing unit that processes a medium. In the case where an error occurs, the control unit maintains the state in which communication with the external device is possible, stops the operation of the processing unit, and does not require the operation of the processing unit in a state where this operation is stopped. When a command is received from the external device, it functions as an error control means for executing the command.
If the program of the present invention is executed, even if an error occurs, any command that does not require the operation of the processing means in which the error has occurred can execute a command transmitted from an external device. When an error related to the machine part occurs, a command related to memory can be executed, information related to the error can be acquired by an external device, and the error can be dealt with promptly, thus minimizing the impact on work efficiency. . In addition, since a command that does not require the operation of the processing means is executed, there is no possibility of causing a more serious error or failure by operating the processing means in which an error has occurred.

本発明によれば、エラーが発生しても、エラーが発生した処理手段の動作を必要としないコマンドを実行して、作業効率への影響を軽微に抑えることができる。   According to the present invention, even if an error occurs, a command that does not require the operation of the processing means in which the error has occurred can be executed, and the influence on work efficiency can be minimized.

媒体処理装置の外観斜視図である。1 is an external perspective view of a medium processing apparatus. 媒体処理装置の内部構造を示す図である。It is a figure which shows the internal structure of a medium processing apparatus. 媒体処理装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a medium processing apparatus. 媒体処理装置の動作を示すフローチャートである。3 is a flowchart illustrating an operation of the medium processing device. コマンドテーブルの構成を模式的に示す図である。It is a figure which shows the structure of a command table typically. 媒体処理装置の動作を示すフローチャートである。3 is a flowchart illustrating an operation of the medium processing device.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施の形態に係る媒体処理装置1の外観斜視図である。
媒体処理装置1は、シート状の小切手4や帳票類に対し、磁気インク文字の読み取り、読取対象物の両面の光学的読み取り、及び、当該読取対象物への文字や画像の記録(印刷)を行う装置である。また、媒体処理装置1は、クレジットカード等のカード型の媒体に記録された磁気情報を読み取るリーダーとしての機能、及び、感熱ロール紙に画像を記録して切断することにより、画像が記録された所定の紙片を発行する機能を備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is an external perspective view of a medium processing apparatus 1 according to the present embodiment.
The medium processing apparatus 1 reads magnetic ink characters, optically reads both sides of a reading object, and records (prints) characters and images on the reading object on a sheet-like check 4 and forms. It is a device to perform. Further, the medium processing apparatus 1 has a function as a reader for reading magnetic information recorded on a card-type medium such as a credit card, and an image is recorded by recording and cutting the image on a thermal roll paper. A function of issuing a predetermined piece of paper is provided.

本実施形態では、媒体処理装置1の処理対象の媒体として小切手4を処理する場合を例に挙げて説明する。小切手4は、図1に示すように、所定の模様や装飾が施されたシートに金額、振出人、通し番号、サインなどが記録された帳票である。これら金額、振出人、通し番号、サインなどは表面4aに記録される。小切手4の表面4aには小切手4の長辺方向に延びる磁気インク文字列4cが形成されている。磁気インク文字列4cは、磁気インクで印刷された複数の磁気インク文字(MICR文字)が並んだものであり、磁気的または光学的に読み取ることができる。
小切手4の裏面4bには裏書き欄が設けられている。この裏書き欄には、後述するインクジェットヘッド10によって、裏書きに係る画像が記録される。小切手4の短辺方向及び長辺方向のサイズは規格化されているものの、多様な規格が存在するため、実際には様々なサイズがある。媒体処理装置1では、一般的な小切手4のサイズをほぼ包含し得る最大サイズを規定し、この最大サイズ内の小切手4であれば処理できる。
In the present embodiment, a case where a check 4 is processed as a processing target medium of the medium processing apparatus 1 will be described as an example. As shown in FIG. 1, the check 4 is a form in which an amount, a payer, a serial number, a signature, and the like are recorded on a sheet with a predetermined pattern or decoration. The amount, the maker, serial number, signature, etc. are recorded on the surface 4a. A magnetic ink character string 4 c extending in the long side direction of the check 4 is formed on the surface 4 a of the check 4. The magnetic ink character string 4c is a sequence of a plurality of magnetic ink characters (MICR characters) printed with magnetic ink, and can be read magnetically or optically.
An endorsement column is provided on the back surface 4 b of the check 4. In this endorsement column, an image related to the endorsement is recorded by the inkjet head 10 described later. Although the sizes of the short side direction and the long side direction of the check 4 are standardized, since there are various standards, there are actually various sizes. In the medium processing apparatus 1, a maximum size that can substantially include the size of a general check 4 is defined, and any check 4 within this maximum size can be processed.

媒体処理装置1は、本体下部を覆う下部ケース11、及び下部ケース11に被せられるカバー12からなる外装を有し、外装の内部に媒体処理装置1の本体13が収容されている。媒体処理装置1の前面には、小切手4を挿入する挿入口14が開口しており、挿入口14の奥には複数の小切手4を積層して収納できるストッカー15が設けられている。このストッカー15は、前面側へ向かって引き出し自在に構成されており、ストッカー15に収納すべき小切手4のサイズに応じてストッカー15を引き出した上で、このストッカー15に小切手4を収納させることが可能である。
また、カバー12には、上面視で略U字形状に、小切手4の搬送路Wとなるスリット18が形成されている。スリット18は、上述したストッカー15に連通すると共に、スリット18は媒体処理装置1の前面側に設けられたポケット19に連通している。ストッカー15に収納された小切手4は、後述するように1枚ずつ媒体処理装置1の内部に取り込まれ、スリット18を通る間に処理されて、処理後の小切手4はポケット19に排出される。ポケット19には複数の小切手4を収納することができる。
図1に示すように、ストッカー15の側方には、磁気カードリーダーユニット20が設けられている。磁気カードリーダーユニット20は、カバー12に形成されたカードスリット21と、このカードスリット21に対応して設けられたMCR(Magnetic Card Reader)22(図3)とを備え、カードスリット21を通るカード類に磁気的に記録された情報をMCRヘッド22によって読み取る。
The medium processing apparatus 1 has an exterior composed of a lower case 11 that covers the lower part of the main body and a cover 12 that covers the lower case 11, and the main body 13 of the medium processing apparatus 1 is accommodated inside the exterior. An insertion slot 14 into which the check 4 is inserted is opened on the front surface of the medium processing apparatus 1, and a stocker 15 in which a plurality of checks 4 can be stacked and stored is provided behind the insertion slot 14. The stocker 15 is configured to be able to be pulled out toward the front side, and after the stocker 15 is pulled out according to the size of the check 4 to be stored in the stocker 15, the checker 15 can store the check 4 therein. Is possible.
In addition, the cover 12 is formed with a slit 18 serving as a conveyance path W for the check 4 in a substantially U shape when viewed from above. The slit 18 communicates with the stocker 15 described above, and the slit 18 communicates with a pocket 19 provided on the front side of the medium processing apparatus 1. The checks 4 stored in the stocker 15 are taken into the inside of the medium processing apparatus 1 one by one as will be described later, processed while passing through the slit 18, and the processed checks 4 are discharged into the pocket 19. A plurality of checks 4 can be stored in the pocket 19.
As shown in FIG. 1, a magnetic card reader unit 20 is provided on the side of the stocker 15. The magnetic card reader unit 20 includes a card slit 21 formed in the cover 12 and an MCR (Magnetic Card Reader) 22 (FIG. 3) provided corresponding to the card slit 21, and a card passing through the card slit 21. The magnetically recorded information is read by the MCR head 22.

図2は、媒体処理装置1の外装内部に収容されている本体13の構成を示す平面図である。ストッカー15の一側面にはホッパー25が設けられている。このホッパー25は、ホッパー駆動モーター26(図3)により、図中矢印方向に回動可能に構成されており、ストッカー15に貯留された小切手4を他方の側面側に付勢する。
ストッカー15の他方の側面には、後述するASF(Automatically Sheet Feeder)モーター27(図3)により駆動されるピックアップローラー28が配置されており、ホッパー25がピックアップローラー28側に回動すると、この回動に応じてストッカー15内の小切手4のうち1枚がピックアップローラー28に付勢され、当該ローラーに接触して、当該ローラーの回転に応じて搬送路Wに引き込まれる。
ストッカー15の奥には、一対のローラーで構成されるASFローラー29が配置されている。ASFローラー29の2つのローラーは、搬送路Wの両側に配置され、一方は後述するASFモーター27の動力により回転し、他方のローラーは従動ローラーである。ピックアップローラー28に接した小切手4はASFローラー29に挟まれて、スリット18内を下流側へ搬送される。
FIG. 2 is a plan view showing the configuration of the main body 13 accommodated in the exterior of the medium processing apparatus 1. A hopper 25 is provided on one side of the stocker 15. The hopper 25 is configured to be rotatable in the direction of the arrow in the figure by a hopper drive motor 26 (FIG. 3), and urges the check 4 stored in the stocker 15 to the other side face.
A pickup roller 28 driven by an ASF (Automatically Sheet Feeder) motor 27 (FIG. 3), which will be described later, is disposed on the other side surface of the stocker 15, and when the hopper 25 rotates to the pickup roller 28 side, this rotation is performed. One of the checks 4 in the stocker 15 is urged by the pickup roller 28 in response to the movement, contacts the roller, and is drawn into the transport path W according to the rotation of the roller.
An ASF roller 29 composed of a pair of rollers is disposed in the back of the stocker 15. Two rollers of the ASF roller 29 are arranged on both sides of the transport path W, one of which is rotated by the power of the ASF motor 27 described later, and the other roller is a driven roller. The check 4 in contact with the pickup roller 28 is sandwiched between the ASF rollers 29 and conveyed downstream in the slit 18.

ストッカー15の所定の位置には、ASF用紙検出器31(図3)が設けられている。ASF用紙検出器31は、例えば透過型光センサーで構成され、ストッカー15における小切手4の有無を検出する。
また、ストッカー15において、ホッパー25の待機位置には、ホッパー位置検出器32(図3)が設けられている。ホッパー位置検出器32は、例えば透過型光センサーで構成され、ホッパー25が待機位置に位置しているか否かを検出する。
ASFローラー29の下流側には、小切手4の表面4aに接して磁気インク文字列4c(図1)を磁気的に読み取るMICR(Magnetic Ink Character Recognition)ヘッド35が配置されている。MICRヘッド35には、MICRローラー36が対向配置される。MICRローラー36はMICRヘッド35側に付勢されており、小切手4をMICRヘッド35に押しつけながら回転して、小切手4を、MICR文字の読み取りに適した定速で搬送する。MICRヘッド35の上流側には、ASFローラー29により繰り出された小切手4をMICRヘッド35に案内する、一対のローラーからなるアシストローラー37が配置されている。
An ASF paper detector 31 (FIG. 3) is provided at a predetermined position of the stocker 15. The ASF paper detector 31 is composed of, for example, a transmissive optical sensor, and detects the presence or absence of the check 4 in the stocker 15.
In the stocker 15, a hopper position detector 32 (FIG. 3) is provided at the standby position of the hopper 25. The hopper position detector 32 is composed of, for example, a transmissive optical sensor, and detects whether or not the hopper 25 is located at the standby position.
A MICR (Magnetic Ink Character Recognition) head 35 that magnetically reads the magnetic ink character string 4c (FIG. 1) is disposed in contact with the surface 4a of the check 4 on the downstream side of the ASF roller 29. A MICR roller 36 is disposed opposite to the MICR head 35. The MICR roller 36 is urged toward the MICR head 35 and rotates while pressing the check 4 against the MICR head 35 to convey the check 4 at a constant speed suitable for reading MICR characters. On the upstream side of the MICR head 35, an assist roller 37 composed of a pair of rollers for guiding the check 4 fed out by the ASF roller 29 to the MICR head 35 is disposed.

また、搬送路W上においてアシストローラー37とMICRヘッド35との間には、用紙長検出器38が配置されている。用紙長検出器38は、例えば反射型光センサーで構成され、搬送路W上を通る小切手4の検出位置における有無を検出することにより、小切手4の先端及び後端を検出する。用紙長検出器38の検出値は後述する制御部70により取得され、この検出値の変化に基づいて小切手4の長さが求められる。
搬送路W上でMICRヘッド35の下流側には、搬送路Wを挟んで対向する一対のローラーを有する第1搬送ローラー40が設けられ、さらに、この第1搬送ローラー40の下流側には第2搬送ローラー41が設けられている。これら第1搬送ローラー40、及び、第2搬送ローラー41は、搬送モーター42(図3)によって回転駆動されるローラーであり、これらローラーによって小切手4はインクジェットプリンターユニット44へ搬送される。
Further, a sheet length detector 38 is disposed between the assist roller 37 and the MICR head 35 on the transport path W. The paper length detector 38 is constituted by, for example, a reflection type optical sensor, and detects the front end and the rear end of the check 4 by detecting the presence or absence of the check 4 passing on the conveyance path W. The detection value of the paper length detector 38 is acquired by the control unit 70 described later, and the length of the check 4 is obtained based on the change in the detection value.
On the downstream side of the MICR head 35 on the conveyance path W, a first conveyance roller 40 having a pair of rollers facing each other across the conveyance path W is provided. Further, on the downstream side of the first conveyance roller 40, a first conveyance roller 40 is provided. Two transport rollers 41 are provided. The first transport roller 40 and the second transport roller 41 are rollers that are rotationally driven by a transport motor 42 (FIG. 3), and the check 4 is transported to the inkjet printer unit 44 by these rollers.

インクジェットプリンターユニット44(処理手段)は、インクジェットヘッド10を備えている。インクジェットヘッド10は、本体13の前部に収容されているインクカートリッジ45からインクの供給を受けて、小切手4にインクを吐出するインクジェット方式の記録ヘッドである。このインクジェットヘッド10は、いわゆるラインインクジェットヘッドであり、小切手4に対する記録の際は、一定の速度で搬送される小切手4の裏面4bに対して、固定された状態のインクジェットヘッド10からインクが吐出されて、画像が記録される。この小切手4の裏面4bに記録される画像は、いわゆる裏書きと呼ばれる文字や記号等である。
インクジェットヘッド10の上流側であって、インクジェットヘッド10と、第2搬送ローラー41との間には、中間検出器46が設けられている。中間検出器46は、例えば反射型光センサーで構成され、検出位置における小切手4の有無を検出する。
The ink jet printer unit 44 (processing means) includes the ink jet head 10. The ink jet head 10 is an ink jet type recording head that receives ink supplied from an ink cartridge 45 accommodated in the front portion of the main body 13 and discharges ink to the check 4. The inkjet head 10 is a so-called line inkjet head, and when recording on the check 4, ink is ejected from the fixed inkjet head 10 to the back surface 4 b of the check 4 conveyed at a constant speed. The image is recorded. The image recorded on the back surface 4b of the check 4 is a so-called endorsement character or symbol.
An intermediate detector 46 is provided on the upstream side of the inkjet head 10 and between the inkjet head 10 and the second transport roller 41. The intermediate detector 46 is composed of, for example, a reflective optical sensor, and detects the presence or absence of the check 4 at the detection position.

インクジェットヘッド10の下流には、小切手4を光学的に読み取るCIS(Contact Image Sensor)ユニットが配置されている。このCISユニットは、小切手4の表面4aを読み取る表面CISユニット47(処理手段)と、裏面4bを読み取る裏面CISユニット48(処理手段)とを有し、小切手4の両面を光学的に読み取り可能である。表面CISユニット47と裏面CISユニット48は搬送路Wを挟んで対向配置されており、これらユニットの上流側には第1CISローラー50が配置され、また、下流側には第2CISローラー51が配置されている。これら第1CISローラー50、及び、第2CISローラー51は、搬送モーター42によって回転駆動されるローラーであり、これらローラーによってCISユニットによって読み取り中の小切手4が安定して搬送される。
第2CISローラー51の下流には、排出検出器52が設けられている。排出検出器52は、例えば反射型光センサーで構成され、検出位置における小切手4の有無を検出する。
A CIS (Contact Image Sensor) unit that optically reads the check 4 is disposed downstream of the inkjet head 10. This CIS unit has a front surface CIS unit 47 (processing means) for reading the front surface 4a of the check 4 and a back surface CIS unit 48 (processing means) for reading the back surface 4b, and can optically read both sides of the check 4. is there. The front surface CIS unit 47 and the rear surface CIS unit 48 are arranged to face each other across the conveyance path W. The first CIS roller 50 is arranged on the upstream side of these units, and the second CIS roller 51 is arranged on the downstream side. ing. The first CIS roller 50 and the second CIS roller 51 are rollers that are rotationally driven by a conveyance motor 42, and the check 4 being read by the CIS unit is stably conveyed by these rollers.
A discharge detector 52 is provided downstream of the second CIS roller 51. The discharge detector 52 is composed of, for example, a reflective optical sensor, and detects the presence or absence of the check 4 at the detection position.

表面CISユニット47、及び裏面CISユニット48の下流側には上述したポケット19が設けられている。ポケット19は、メインポケット19aと、サブポケット19bとに区画されており、スリット18が分岐して、それぞれのポケット19に連通している。これらメインポケット19a、及び、サブポケット19bには、それぞれ複数の小切手4を収納できる。
そして、スリット18が分岐した位置には、小切手4を排出すべきポケット19を、メインポケット19aとサブポケット19bとのいずれかに切り替える切替板54が配置されている。切替板54は、メインポケット19aに連通する経路とサブポケット19bに連通する経路のいずれか一方を塞ぐことで小切手4を他方に案内するガイドであり、切替板駆動モーター55によって駆動される。切替板54からメインポケット19aに繋がる経路には排出ローラー56が設けられ、また、切替板54からサブポケット19bに繋がる経路には排出ローラー57が設けられており、小切手4は、これらローラーにより切替板54に案内されたいずれかのポケット19にスムーズに排出される。
後述するように、媒体処理装置1は、MICRヘッド35による磁気インク文字列4cの読み取り結果に基づいて、小切手4が正しくセットされていると判別した場合は、小切手4をメインポケット19aに排出し、一方、小切手4が正しくセットされていないと判別した場合は、サブポケット19bに排出する。
The pocket 19 described above is provided on the downstream side of the front surface CIS unit 47 and the rear surface CIS unit 48. The pocket 19 is divided into a main pocket 19 a and a sub-pocket 19 b, and the slit 18 is branched to communicate with each pocket 19. A plurality of checks 4 can be stored in each of the main pocket 19a and the sub pocket 19b.
A switching plate 54 for switching the pocket 19 from which the check 4 is to be discharged to either the main pocket 19a or the sub pocket 19b is disposed at the position where the slit 18 branches. The switching plate 54 is a guide that guides the check 4 to the other by closing either one of the route communicating with the main pocket 19 a and the route communicating with the sub pocket 19 b, and is driven by the switching plate drive motor 55. A discharge roller 56 is provided in a path connecting the switching plate 54 to the main pocket 19a, and a discharge roller 57 is provided in a path connecting the switching plate 54 to the sub pocket 19b. The check 4 is switched by these rollers. It is smoothly discharged into any of the pockets 19 guided by the plate 54.
As will be described later, when the medium processing apparatus 1 determines that the check 4 is set correctly based on the reading result of the magnetic ink character string 4c by the MICR head 35, the medium processing apparatus 1 discharges the check 4 into the main pocket 19a. On the other hand, if it is determined that the check 4 is not set correctly, the check 4 is discharged into the sub pocket 19b.

また、図1及び図2に示すように、媒体処理装置1の中央部には、画像が記録された紙片を発行するサーマルプリンターユニット60(処理手段)が設けられている。
図1に示すように、サーマルプリンターユニット60は、ユニット本体の上部を覆うプリンターカバー61を備えている。このプリンターカバー61は、カバー12に対して開閉自在に取り付けられており、プリンターカバー61を開くと、感熱ロール紙(媒体)を収容可能な空間であるロール紙収容部62が露出し、感熱ロール紙の補充や交換が可能となる。プリンターカバー61には、排紙口63が形成されており、ロール紙収容部62に収容された感熱ロール紙は、排紙口63を介して、排出される。
サーマルプリンターユニット60は、ロール紙収容部62に収容した感熱ロール紙を繰り出して搬送路上を搬送させるローラー状のプラテン(不図示)と、プラテンに対向配置されたサーマルヘッド65(図3)と、搬送方向に対し直交する方向に感熱ロール紙を切断するカッターユニット66とを備えている。紙片の発行に際し、サーマルプリンターユニット60は、プラテンを駆動して感熱ロール紙を搬送方向に搬送しつつ、サーマルヘッド65により感熱ロール紙に画像を記録し、カッターユニット66によって所定の位置で感熱ロール紙を切断することにより、紙片を発行する。
As shown in FIGS. 1 and 2, a thermal printer unit 60 (processing means) that issues a piece of paper on which an image is recorded is provided at the center of the medium processing apparatus 1.
As shown in FIG. 1, the thermal printer unit 60 includes a printer cover 61 that covers an upper portion of the unit main body. The printer cover 61 is attached to the cover 12 so as to be openable and closable. When the printer cover 61 is opened, a roll paper storage unit 62 that is a space that can store thermal roll paper (medium) is exposed, and the thermal roll is exposed. Paper can be replenished and replaced. The printer cover 61 is provided with a paper discharge port 63, and the thermal roll paper stored in the roll paper storage unit 62 is discharged through the paper discharge port 63.
The thermal printer unit 60 includes a roller-shaped platen (not shown) that feeds out the thermal roll paper stored in the roll paper storage unit 62 and transports it on the transport path, and a thermal head 65 (FIG. 3) disposed opposite the platen. And a cutter unit 66 that cuts the thermal roll paper in a direction orthogonal to the transport direction. When issuing a piece of paper, the thermal printer unit 60 drives the platen to convey the thermal roll paper in the conveyance direction, records an image on the thermal roll paper by the thermal head 65, and the thermal roll at a predetermined position by the cutter unit 66. A piece of paper is issued by cutting the paper.

図3は、媒体処理装置1とホストコンピューター5(外部の装置)とを接続して構成される複合処理システム8の機能的構成を示すブロック図である。
媒体処理装置1は、媒体処理装置1全体を中枢的に制御する制御部70(エラー制御手段)と、インクジェットプリンターユニット44及びサーマルプリンターユニット60を制御するプリンター制御部71と、ヘッド駆動回路72と、モータードライバー73と、読取制御回路74と、センサー駆動回路75と、インターフェイス部76と、フラッシュROM77と、を有し、これらの各部は相互に通信可能に接続されている。
FIG. 3 is a block diagram showing a functional configuration of the composite processing system 8 configured by connecting the medium processing apparatus 1 and the host computer 5 (external apparatus).
The medium processing apparatus 1 includes a control unit 70 (error control unit) that centrally controls the entire medium processing apparatus 1, a printer control unit 71 that controls the inkjet printer unit 44 and the thermal printer unit 60, a head drive circuit 72, and the like. The motor driver 73, the reading control circuit 74, the sensor driving circuit 75, the interface unit 76, and the flash ROM 77 are connected to each other so that they can communicate with each other.

制御部70は、CPU、その他の周辺回路を備え、フラッシュROM77に記憶されている制御プログラムをCPUにより読み出して実行することにより、媒体処理装置1の各部を制御する。
プリンター制御部71は、制御部70の制御の下、ヘッド駆動回路72を介してインクジェットヘッド10に駆動電流を供給し、小切手4への記録を行う。また、プリンター制御部71は、制御部70の制御の下、ヘッド駆動回路72を介してサーマルヘッド65に駆動電流を供給し、感熱ロール紙への記録を行う。
モータードライバー73は、ホッパー駆動モーター26に接続され、制御部70の制御に従ってホッパー25を回動させる。また、モータードライバー73は、ASFモーター27、及び、搬送モーター42に接続され、これら各モーターに駆動電流や駆動パルスを出力して、制御部70の制御に従いこれらモーターを動作させて、これらモーターに接続されたローラーを駆動する。
また、モータードライバー73は、切替板駆動モーター55に接続され、制御部70の制御の下、当該モーターに駆動電流や駆動パルスを出力することによって切替板54を移動させ、小切手4が排出されるポケット19を、メインポケット19a側、又は、サブポケット19b側に切り替える。
The control unit 70 includes a CPU and other peripheral circuits, and controls each unit of the medium processing apparatus 1 by reading and executing a control program stored in the flash ROM 77 by the CPU.
The printer control unit 71 supplies a drive current to the inkjet head 10 via the head drive circuit 72 under the control of the control unit 70 and performs recording on the check 4. In addition, the printer control unit 71 supplies a drive current to the thermal head 65 via the head drive circuit 72 under the control of the control unit 70, and performs recording on the thermal roll paper.
The motor driver 73 is connected to the hopper drive motor 26 and rotates the hopper 25 under the control of the control unit 70. The motor driver 73 is connected to the ASF motor 27 and the transport motor 42, outputs drive currents and drive pulses to these motors, operates these motors according to the control of the control unit 70, Drive the connected roller.
Further, the motor driver 73 is connected to the switching plate driving motor 55, and under the control of the control unit 70, the switching plate 54 is moved by outputting a driving current and a driving pulse to the motor, and the check 4 is discharged. The pocket 19 is switched to the main pocket 19a side or the sub pocket 19b side.

読取制御回路74は、MCRヘッド22、MICRヘッド35、表面CISユニット47、及び、裏面CISユニット48に接続されている。
読取制御回路74は、制御部70の制御に従って、カードスリット21(図1)にカード類が通される際にMCRヘッド22によって磁気情報を読み取らせ、MCRヘッド22が出力する読取信号をデジタル化して制御部70に出力する。
また、読取制御回路74は、制御部70の制御に従って、MICRヘッド35によって磁気情報を読み取らせ、MICRヘッド35が出力する読取信号をデジタル化して制御部70に出力する。
また、読取制御回路74は、制御部70の制御に従って、表面CISユニット47及び裏面CISユニット48に、小切手4の表面4a及び裏面4bの読み取りを実行させる。
センサー駆動回路75は、ASF用紙検出器31、ホッパー位置検出器32、用紙長検出器38、中間検出器46、及び、排出検出器52に接続され、これらの各検出器に電流を供給して、所定周期で出力値を取得し、取得した出力値をデジタルデータに変換して制御部70に出力する。
インターフェイス部76は、ホストコンピューター5に対して有線または無線で接続され、制御部70の制御に従って、ホストコンピューター5との間で制御データを含む各種データを送受信する。
フラッシュROM77は、各種データを書き換え可能に、不揮発的に記憶する。フラッシュROM77には、媒体処理装置1の制御用の制御プログラムが記憶されているほか、コマンドテーブル77aが記憶されている。コマンドテーブル77aについては、後述する。また、フラッシュROM77には、媒体処理装置1で発生したエラーの履歴(ログ)等を記憶するログ領域77bが設けられる。
RAM78は、揮発性メモリーであり、制御部70のワークエリアとして機能する。RAM78には、ホストコンピューター5から受信したコマンドやデータを一時的に記憶する受信バッファー79、インクジェットヘッド10により印刷する印刷イメージを展開するためのインクジェットヘッド用バッファー80、及び、サーマルヘッド65により印刷する印刷イメージを展開するためのサーマルヘッド用バッファー81が形成されている。
The reading control circuit 74 is connected to the MCR head 22, the MICR head 35, the front surface CIS unit 47, and the back surface CIS unit 48.
The reading control circuit 74 causes the MCR head 22 to read magnetic information when the cards are passed through the card slit 21 (FIG. 1) and digitizes the reading signal output from the MCR head 22 according to the control of the control unit 70. To the control unit 70.
Further, the read control circuit 74 causes the MICR head 35 to read magnetic information under the control of the control unit 70, digitizes the read signal output from the MICR head 35, and outputs it to the control unit 70.
In addition, the reading control circuit 74 causes the front surface CIS unit 47 and the back surface CIS unit 48 to read the front surface 4 a and the back surface 4 b of the check 4 under the control of the control unit 70.
The sensor driving circuit 75 is connected to the ASF paper detector 31, the hopper position detector 32, the paper length detector 38, the intermediate detector 46, and the discharge detector 52, and supplies current to each of these detectors. The output value is acquired at a predetermined cycle, and the acquired output value is converted into digital data and output to the control unit 70.
The interface unit 76 is connected to the host computer 5 in a wired or wireless manner, and transmits and receives various data including control data to and from the host computer 5 under the control of the control unit 70.
The flash ROM 77 stores various data in a rewritable manner. The flash ROM 77 stores a control program for controlling the medium processing apparatus 1, and also stores a command table 77a. The command table 77a will be described later. Further, the flash ROM 77 is provided with a log area 77b for storing a history (log) of errors that have occurred in the medium processing apparatus 1.
The RAM 78 is a volatile memory and functions as a work area for the control unit 70. The RAM 78 is printed with a reception buffer 79 for temporarily storing commands and data received from the host computer 5, an inkjet head buffer 80 for developing a print image to be printed by the inkjet head 10, and a thermal head 65. A thermal head buffer 81 for developing a print image is formed.

次いで、小切手4を処理する際の媒体処理装置1の基本的な動作について説明する。
上述したように、ストッカー15には、複数枚の小切手4を収納可能である。そして、媒体処理装置1は、ストッカー15に収納された複数の小切手4について、所定のタイミングで、順次、搬送路W上に繰り出し、以下で説明する一連の処理を、各小切手4について連続して実行可能である。
Next, the basic operation of the medium processing apparatus 1 when processing the check 4 will be described.
As described above, the stocker 15 can store a plurality of checks 4. Then, the medium processing apparatus 1 sequentially feeds the plurality of checks 4 stored in the stocker 15 onto the transport path W at a predetermined timing, and continuously performs a series of processes described below for each check 4. It is feasible.

図4は、ストッカー15に収納された1枚の小切手4に対して実行される一連の処理を示すフローチャートである。
以下の説明の前提として、ホストコンピューター5から入力された制御コマンドには、処理対象となる1枚の小切手4を処理するために必要なコマンドやデータが、不足無く含まれているものとする。
ホストコンピューター5から小切手4の処理に係る制御コマンドが入力されると(ステップSA1)、媒体処理装置1の制御部70の制御部70は、ホッパー位置検出器32の検出値や、ASF用紙検出器31の検出値を監視しつつ、ホッパー駆動モーター26や、ASFモーター27を駆動して、ストッカー15に収納された小切手4のうち1枚を搬送路Wに送り出して、小切手4の搬送を開始する(ステップSA2)。
以後、制御部70は、小切手4を略一定の速度で搬送しつつ、小切手4に対して各種処理を実行する。
次いで、制御部70は、用紙長検出器38の検出値を監視することにより小切手4の位置を管理しつつ、MICRヘッド35によって、小切手4の磁気インク文字列4cを読み取る(ステップSA3)。
次いで、制御部70は、MICRヘッド35の読み取り結果に基づいて、小切手4が上下逆および裏表逆にセットされることなく、正しくセットされているか否かを判別する(ステップSA4)。詳細には、制御部70は、磁気インク文字列4cを構成する磁気インク文字について、磁気インク文字を読み取って得られる検出波形と、基準波形との比較による磁気インク文字認識を行って、磁気インク文字認識の成否により、小切手4が正しくセットされているか否かを判別する。
FIG. 4 is a flowchart showing a series of processing executed for one check 4 stored in the stocker 15.
As a premise of the following description, it is assumed that the control command input from the host computer 5 includes a command and data necessary for processing one check 4 to be processed without any shortage.
When a control command related to the processing of the check 4 is input from the host computer 5 (step SA1), the control unit 70 of the control unit 70 of the medium processing apparatus 1 detects the detection value of the hopper position detector 32 or the ASF paper detector. While monitoring the detected value 31, the hopper drive motor 26 and the ASF motor 27 are driven, and one of the checks 4 stored in the stocker 15 is sent to the transport path W to start transporting the check 4. (Step SA2).
Thereafter, the control unit 70 executes various processes on the check 4 while conveying the check 4 at a substantially constant speed.
Next, the control unit 70 reads the magnetic ink character string 4c of the check 4 by the MICR head 35 while managing the position of the check 4 by monitoring the detection value of the paper length detector 38 (step SA3).
Next, the control unit 70 determines whether the check 4 is set correctly without being set upside down and upside down based on the reading result of the MICR head 35 (step SA4). Specifically, the control unit 70 performs magnetic ink character recognition by comparing the detected waveform obtained by reading the magnetic ink character with the reference waveform for the magnetic ink character constituting the magnetic ink character string 4c, and thereby the magnetic ink character. It is determined whether or not the check 4 is correctly set based on the success or failure of character recognition.

次いで、制御部70は、ステップSA4の判別結果に基づいて、切替板54を切り替える(ステップSA5)。詳述すると、本実施形態では、小切手4の上下及び裏表が正しくセットされている場合は、小切手4はメインポケット19aに排出され、一方、小切手4が正しくセットされていない場合は、小切手4はサブポケット19bに排出されるものとされている。ステップSA5において、制御部70は、小切手4が正しくセットされている場合、切替板54をメインポケット19a側に切り替え、小切手4が正しくセットされていない場合、切替板54をサブポケット19b側に切り替える。   Next, the control unit 70 switches the switching plate 54 based on the determination result of step SA4 (step SA5). More specifically, in this embodiment, when the upper and lower sides and the front and back sides of the check 4 are correctly set, the check 4 is discharged into the main pocket 19a, while when the check 4 is not set correctly, the check 4 is It is assumed that it is discharged into the sub pocket 19b. In step SA5, the control unit 70 switches the switching plate 54 to the main pocket 19a side when the check 4 is set correctly, and switches the switching plate 54 to the sub pocket 19b side when the check 4 is not set correctly. .

次いで、制御部70は、中間検出器46の検出値を監視することにより小切手4の位置を監視しつつ、搬送モーター42の駆動により各種モーターを駆動して小切手4をさらに搬送し、インクジェットヘッド10により、小切手4の裏面4bに、インクジェットヘッド用バッファー80に展開した印刷イメージを印刷する(ステップSA6)。なお、小切手4が正しくセットされていない場合は、ステップSA7において、印刷を行わないようにしてもよい。
次いで、制御部70は、表面CISユニット47によって小切手4の表面4aを光学的に読み取ると共に、裏面CISユニット48によって裏面4bを光学的に読み取り、読み取り結果をホストコンピューター5に出力する(ステップSA7)。なお、小切手4が正しくセットされていない場合は、ステップSA7において、小切手4の読み取りを行わないようにしてもよい。
次いで、制御部70は、排出検出器52の検出値を監視することにより小切手4が正常に排紙されたか否かを監視しつつ、搬送モーター42を駆動することにより各種モーターを駆動して小切手4をポケット19に排出する(ステップSA8)。その際、小切手4は、切替板54に導かれてメインポケット19a、サブポケット19bのうちMICRヘッド35の読み取り結果に応じた適切なポケット19に排出される。
Next, the control unit 70 monitors the position of the check 4 by monitoring the detection value of the intermediate detector 46, drives the various motors by driving the transport motor 42, and further transports the check 4. Thus, the print image developed in the ink jet head buffer 80 is printed on the back surface 4b of the check 4 (step SA6). If the check 4 is not set correctly, printing may not be performed in step SA7.
Next, the controller 70 optically reads the front surface 4a of the check 4 by the front surface CIS unit 47 and optically reads the rear surface 4b by the back surface CIS unit 48 and outputs the read result to the host computer 5 (step SA7). . If the check 4 is not set correctly, the check 4 may not be read in step SA7.
Next, the control unit 70 monitors the detection value of the discharge detector 52 to monitor whether or not the check 4 is normally discharged, and drives the various motors by driving the transport motor 42 to check the check. 4 is discharged into the pocket 19 (step SA8). At that time, the check 4 is guided to the switching plate 54 and discharged into the appropriate pocket 19 corresponding to the reading result of the MICR head 35 out of the main pocket 19a and the sub pocket 19b.

また、サーマルプリンターユニット60によって、紙片を発行する際には、ホストコンピューター5から媒体処理装置1に対して、紙片を発行させるための記録コマンドが入力される。この記録コマンドには、感熱ロール紙の搬送を指示するコマンドや、感熱ロール紙の切断を指示するコマンドのほか、感熱ロール紙への画像の記録を指示するコマンドが含まれており、この画像の記録を指示するコマンドには、記録すべき画像の画像データが含まれている。なお、媒体処理装置1の内蔵フォントを利用可能な場合は、画像データに代えて、又は、画像データと併せて、内蔵フォントを指定する情報を含むようにしてもよい。制御部70は、入力された記録コマンドに基づいて、サーマルヘッド用バッファー81に印刷イメージを展開する。そして、制御部70は、適宜感熱ロール紙を搬送しつつ、サーマルヘッド用バッファー81に展開した印刷イメージに基づいて、ヘッド駆動回路72を駆動して、サーマルヘッド65を駆動し、感熱ロール紙にドットを形成し、画像を記録する。感熱ロール紙への画像の記録の完了後、制御部70は、感熱ロール紙の切断を指示するコマンドに基づいて、感熱ロール紙を切断する。これにより、感熱ロール紙から所定の長さの用紙が切り離されて、所定の画像が記録された紙片が発行される。   When the thermal printer unit 60 issues a piece of paper, a recording command for issuing the piece of paper is input from the host computer 5 to the medium processing apparatus 1. This recording command includes a command for instructing conveyance of the thermal roll paper, a command for instructing cutting of the thermal roll paper, and a command for instructing recording of an image on the thermal roll paper. The command for instructing recording includes image data of an image to be recorded. If the built-in font of the medium processing apparatus 1 can be used, information specifying the built-in font may be included instead of the image data or together with the image data. The control unit 70 develops a print image in the thermal head buffer 81 based on the input recording command. Then, the control unit 70 drives the head driving circuit 72 and drives the thermal head 65 based on the print image developed in the thermal head buffer 81 while appropriately transporting the thermal roll paper, thereby driving the thermal roll paper. Dots are formed and an image is recorded. After completing the recording of the image on the thermal roll paper, the control unit 70 cuts the thermal roll paper based on a command for instructing cutting of the thermal roll paper. As a result, a sheet of a predetermined length is separated from the thermal roll paper, and a piece of paper on which a predetermined image is recorded is issued.

このように、媒体処理装置1は、媒体である小切手4または感熱ロール紙を処理する処理手段として、MICRヘッド35、インクジェットヘッド10を備えたインクジェットプリンターユニット44、表面CISユニット47及び裏面CISユニット48、及び、サーマルヘッド65を備えたサーマルプリンターユニット60を具備している。   As described above, the medium processing apparatus 1 has a MICR head 35, an ink jet printer unit 44 including the ink jet head 10, a front surface CIS unit 47, and a back surface CIS unit 48 as processing means for processing the check 4 or thermal roll paper as a medium. And a thermal printer unit 60 provided with a thermal head 65.

制御部70は、エラー制御手段として機能し、媒体処理装置1において発生するエラーを検出する。この機能は、フラッシュROMに記憶されている制御プログラムを実行することにより実現され、小切手4または感熱ロール紙に対する処理の実行中であっても、待機中であっても、媒体処理装置1でエラーが発生した場合は速やかにエラーを検出する。
具体的には、制御部70は、予め設定された所定時間周期でセンサー駆動回路75を介して各検出器の検出状態を検出し、エラーに該当する検出状態であると判別した場合にはエラー(異常)として検出する。
The control unit 70 functions as an error control unit and detects an error that occurs in the medium processing apparatus 1. This function is realized by executing a control program stored in the flash ROM, and the medium processing apparatus 1 generates an error regardless of whether the check 4 or the thermal roll paper is being processed or is in a standby state. If this occurs, an error is detected immediately.
Specifically, the control unit 70 detects the detection state of each detector via the sensor driving circuit 75 at a predetermined time period set in advance, and if it is determined that the detection state corresponds to the error, an error occurs. Detect as (abnormal).

制御部70が検出するエラーには様々なものがあるが、媒体処理装置1全体に関するエラーとしては、例えば、カバーオープン検出器(図示略)によりカバー12またはプリンターカバー61の開放を検出したこと(カバーオープン)、初期状態でホッパー位置検出器32によりホッパー25が初期位置に戻っていないと検出したこと等がある。また、小切手4に関するエラーとしては、処理コマンドを受信した後にストッカー15に小切手4が無いこと、小切手4の搬送ジャム、等が挙げられる。小切手4のジャムは、例えば、小切手4の搬送量が所定以上であるのに用紙長検出器38で小切手4の先端または後端が検出されない、搬送量に対して中間検出器46または排出検出器52で小切手4の先端または後端が検出されるタイミングが遅い等の事象に基づき検出される。
また、インクジェットプリンターユニット44に関連するエラーとしては、インクカートリッジ45のインク切れ、インクジェットヘッド10のクリーニングやフラッシングにより排出されたインクを貯留する廃液タンクの容量超過、インクジェットヘッド10のノズルチェックにより基準を超える不良ノズルが検出されるエラー等が挙げられる。
また、小切手4及び感熱ロール紙の搬送に関する搬送エラーの他にも、モータードライバー73の温度異常(高温エラー)、サーマルヘッド65の温度異常(高温エラー)、RAM78のインクジェットヘッド用バッファー80またはサーマルヘッド用バッファー81で印刷イメージの展開中に異常が発生するバッファーエラー、ロール紙収容部62の紙切れ、フラッシュROM77に記憶された制御プログラムや設定値等のデータの読出不良(メモリーエラー)、等のエラーがある。
There are various errors detected by the control unit 70. As an error relating to the entire medium processing apparatus 1, for example, the opening of the cover 12 or the printer cover 61 is detected by a cover open detector (not shown) ( Cover open), and the hopper position detector 32 detects that the hopper 25 has not returned to the initial position in the initial state. Further, the error relating to the check 4 includes the absence of the check 4 in the stocker 15 after receiving the processing command, the conveyance jam of the check 4, and the like. The jam of the check 4 is, for example, an intermediate detector 46 or a discharge detector with respect to the carry amount in which the check length is not detected by the paper length detector 38 even though the carry amount of the check 4 is equal to or greater than a predetermined amount. 52, based on an event such as the timing at which the leading edge or trailing edge of the check 4 is detected is late.
In addition, as errors related to the ink jet printer unit 44, the ink cartridge 45 is out of ink, the capacity of the waste liquid tank storing the ink discharged by cleaning or flushing the ink jet head 10, and the nozzle check of the ink jet head 10 are used as a reference. An error or the like in which a defective nozzle exceeding the maximum is detected.
In addition to a transport error related to the transport of the check 4 and the heat-sensitive roll paper, a temperature abnormality (high temperature error) of the motor driver 73, a temperature abnormality of the thermal head 65 (high temperature error), the inkjet head buffer 80 of the RAM 78 or the thermal head. Errors such as buffer errors that cause abnormalities during the development of the print image in the buffer 81, out of paper in the roll paper storage unit 62, data reading errors (memory errors) such as control programs and setting values stored in the flash ROM 77, etc. There is.

エラーが発生した場合、制御部70は、媒体処理装置1の全体の動作を停止して、ホストコンピューター5に対してエラー発生を通知するとともに、オフライン状態に移行する。一般的な媒体処理装置は、エラーの発生とともに、ホストコンピューター等の外部の装置から送信されたデータ(コマンドを含む)を受信しないビジー状態となるが、本実施形態の媒体処理装置1は、オフライン状態に移行する。オフライン状態は、少なくとも上記の各処理手段を全て停止させ、動作不可となる待機状態である。制御部70は、ホストコンピューター5に対して、印刷、磁気読取、光学読取の動作を行えない状態として通知する。一方、オフライン状態で、制御部70は、インターフェイス部76を介してホストコンピューター5との間でデータを送受信できる状態を維持しており、ホストコンピューター5からコマンドが送信された場合には、そのコマンドを受信する。なお、オフライン状態で、制御部70は、処理手段の動作とともに、印刷イメージの展開等のデータ処理を停止させてもよい。   When an error occurs, the control unit 70 stops the overall operation of the medium processing apparatus 1, notifies the host computer 5 of the occurrence of the error, and shifts to an offline state. A general medium processing apparatus enters a busy state in which data (including a command) transmitted from an external apparatus such as a host computer is not received when an error occurs, but the medium processing apparatus 1 according to the present embodiment is offline. Transition to the state. The offline state is a standby state in which at least all the above processing units are stopped and cannot be operated. The control unit 70 notifies the host computer 5 that the printing, magnetic reading, and optical reading operations cannot be performed. On the other hand, in the offline state, the control unit 70 maintains a state in which data can be transmitted to and received from the host computer 5 via the interface unit 76. If a command is transmitted from the host computer 5, the command Receive. In the offline state, the control unit 70 may stop data processing such as development of a print image together with the operation of the processing unit.

制御部70は、エラー検出後のオフライン状態でホストコンピューター5からのコマンドを受信した場合に、予め設定された特定のコマンドを実行し、それ以外のコマンドは破棄する処理を行う。例えば、小切手4のジャムが発生している状態で、小切手4の搬送を指示するコマンドを実行してしまえば、小切手4の汚損や媒体処理装置1の搬送系の故障を招く可能性がある。つまり、エラーが発生している状態では処理手段の動作を伴うコマンドは実行すべきでない。このため、制御部70は、エラー検出後のオフライン状態では、処理手段の動作を伴うコマンドは破棄し、処理手段の動作を必要とせず実行可能なコマンドのみを実行する。
制御部70は、エラー検出後のオフライン状態で受信したコマンドが実行可能なコマンドであるか否かを速やかに判別するため、フラッシュROM77に記憶したコマンドテーブル77aを参照する。
When the control unit 70 receives a command from the host computer 5 in an offline state after error detection, the control unit 70 executes a specific command set in advance and discards other commands. For example, if a command for instructing the conveyance of the check 4 is executed in a state where the check 4 is jammed, the check 4 may be contaminated or the conveyance system of the medium processing apparatus 1 may be broken. That is, a command accompanied by the operation of the processing means should not be executed when an error has occurred. For this reason, in the offline state after error detection, the control unit 70 discards the command accompanied by the operation of the processing unit and executes only the executable command without requiring the operation of the processing unit.
The controller 70 refers to the command table 77a stored in the flash ROM 77 in order to quickly determine whether or not the command received in the offline state after the error detection is an executable command.

図5は、コマンドテーブル77aの構成例を模式的に示す図である。
この図5に例示するように、コマンドテーブル77aは、エラーの種別毎、及び、コマンドの種類毎に、エラー検出後のオフライン状態で実行可能か否かを定めたテーブルである。図5の例では、エラー種別を格納するフィールドに、搬送エラー、モータードライバー温度異常、サーマルヘッド温度異常、バッファーエラー、メモリーエラーの5種類のエラー種別が設定されている。
FIG. 5 is a diagram schematically illustrating a configuration example of the command table 77a.
As illustrated in FIG. 5, the command table 77 a is a table that determines whether or not execution is possible in an offline state after error detection for each error type and each command type. In the example of FIG. 5, five error types are set in the field for storing the error type: conveyance error, motor driver temperature abnormality, thermal head temperature abnormality, buffer error, and memory error.

コマンドテーブル77aのコマンド種別を格納するフィールドには、ファームウェア書換コマンド、ログ取得コマンド、設定値取得コマンド、インクジェット(IJ)印刷コマンド、サーマル印刷コマンド、オートカットコマンドの各コマンド種別が設定されている。ファームウェア書換コマンドは、フラッシュROM77に記憶されている媒体処理装置1の制御プログラム(ファームウェア)の書き換えを指示するコマンドである。ファームウェア書換コマンドを実行する場合、制御部70は、コマンドに続いてホストコンピューター5から送信される新しい制御プログラムを受信し、フラッシュROM77の制御プログラムを書き換える。例えば、フラッシュROM77に記憶された制御プログラムの読み出し異常によるエラーが発生した場合、ファームウェア書換コマンドにより、フラッシュROM77の制御プログラムを工場出荷状態の制御プログラムに書き換えることによって、エラーを解消できるか、或いは、少なくとも基本的ないくつかの機能を媒体処理装置1が実行できるようになるので、エラーを解消するための制御が可能になる。
ログ取得コマンドは、ホストコンピューター5によって、フラッシュROM77のログ領域77bに記憶されているエラーのログを取得するためのコマンドである。制御部70は、ログ取得コマンドを実行する場合、ログ領域77bに記憶されたログを、コマンドに対する応答あるいはステータスの通知として、ホストコンピューター5に送信する。制御部70は、エラーが発生した場合に、エラー要因を検出した検出器、エラーの種別、エラーを検出した時刻等の情報をログ領域77bに記憶させる。また、ログ領域77bには、常時、小切手4の累積処理数、媒体処理装置1の累積稼働時間、直近のメンテナンスの日時等が記憶されている。ホストコンピューター5は、ログ取得コマンドにより、ログ領域77bに記憶された様々な情報を取得できるので、これらの情報を解析することでエラーへの適切かつ速やかな対処が可能となる。
In the field for storing the command type of the command table 77a, command types of a firmware rewrite command, a log acquisition command, a set value acquisition command, an inkjet (IJ) print command, a thermal print command, and an auto cut command are set. The firmware rewrite command is a command for instructing rewriting of the control program (firmware) of the medium processing apparatus 1 stored in the flash ROM 77. When executing the firmware rewrite command, the control unit 70 receives a new control program transmitted from the host computer 5 following the command, and rewrites the control program in the flash ROM 77. For example, if an error occurs due to an abnormal read-out of the control program stored in the flash ROM 77, the error can be resolved by rewriting the control program in the flash ROM 77 to a factory default control program by a firmware rewrite command, or Since the media processing apparatus 1 can execute at least some basic functions, control for eliminating errors can be performed.
The log acquisition command is a command for acquiring an error log stored in the log area 77 b of the flash ROM 77 by the host computer 5. When executing the log acquisition command, the control unit 70 transmits the log stored in the log area 77b to the host computer 5 as a response to the command or a status notification. When an error occurs, the control unit 70 causes the log area 77b to store information such as the detector that detected the error factor, the type of error, and the time when the error was detected. The log area 77b always stores the accumulated number of checks 4, the accumulated operation time of the medium processing apparatus 1, the date and time of the latest maintenance, and the like. Since the host computer 5 can acquire various information stored in the log area 77b by the log acquisition command, the error can be appropriately and promptly dealt with by analyzing the information.

設定値取得コマンドは、ホストコンピューター5によって、フラッシュROM77に記憶されている各種設定値を取得するためのコマンドである。この設定値は、媒体処理装置1の使用開始後にユーザーが任意に設定できる設定値であって、ホストコンピューター5からコマンドを送信し、或いは、媒体処理装置1が備える操作パネル(図示略)を操作することで設定される。この設定値が適切でないとエラーが頻繁に発生することがある。例えば、サーマルヘッド65の温度異常を検出する温度の閾値または基準値が、サーマルヘッド65の定格の上限より低い温度に設定されている場合、サーマルヘッド65が印刷を実行している間に、特に故障を招くような状態でなくても、サーマルヘッド65の温度が閾値または基準値に達してエラーが検出される。この場合、媒体処理装置1がリセットされても、すぐにサーマルヘッド65の温度異常が検出されてしまうので、媒体処理装置1を相当時間放置してサーマルヘッド65を放冷しなければエラーが解消しない。設定値取得コマンドを実行すると、制御部70は、フラッシュROM77に記憶された設定値を、コマンドに対する応答あるいはステータスの通知として、ホストコンピューター5に送信するので、ホストコンピューター5がフラッシュROM77に記憶された設定値を取得できる。その後、ホストコンピューター5によって設定値を解析することで、エラーの原因が設定値にあるか否か等を知ることができ、エラーへの適切かつ速やかな対処が可能となる。また、設定値に異常がある場合にはファームウェア書換コマンドにより設定値を工場出荷時の値に書き戻すことができる。
インクジェット印刷コマンドはインクジェットヘッド10による印刷を指示するコマンドであり、サーマル印刷コマンドはサーマルヘッド65による印刷を指示するコマンドであり、オートカットコマンドは、感熱ロール紙をカットするカッターユニット66によるカット動作を指示するコマンドである。
The setting value acquisition command is a command for acquiring various setting values stored in the flash ROM 77 by the host computer 5. This set value is a set value that can be arbitrarily set by the user after the use of the medium processing apparatus 1 is started, and a command is transmitted from the host computer 5 or an operation panel (not shown) provided in the medium processing apparatus 1 is operated. It is set by doing. If this setting value is not appropriate, errors may occur frequently. For example, when the temperature threshold value or the reference value for detecting the temperature abnormality of the thermal head 65 is set to a temperature lower than the upper limit of the rating of the thermal head 65, the thermal head 65 is particularly executing during printing. Even if it does not cause a failure, the temperature of the thermal head 65 reaches a threshold value or a reference value, and an error is detected. In this case, even if the medium processing apparatus 1 is reset, the temperature abnormality of the thermal head 65 is detected immediately. Therefore, if the medium processing apparatus 1 is left for a considerable period of time and the thermal head 65 is not allowed to cool, the error is resolved. do not do. When the set value acquisition command is executed, the control unit 70 transmits the set value stored in the flash ROM 77 to the host computer 5 as a response to the command or notification of status, so that the host computer 5 is stored in the flash ROM 77. The setting value can be acquired. Thereafter, by analyzing the set value by the host computer 5, it is possible to know whether or not the cause of the error is the set value, and it is possible to appropriately and promptly cope with the error. If the set value is abnormal, the set value can be written back to the factory default value by a firmware rewrite command.
The inkjet printing command is a command for instructing printing by the inkjet head 10, the thermal printing command is a command for instructing printing by the thermal head 65, and the auto cut command is a cutting operation by the cutter unit 66 that cuts the thermal roll paper. It is a command to instruct.

コマンドテーブル77aには、各種のコマンドについて、エラーの種別毎に実行可能か実行不可かが設定されている。図中、実行可能は記号「○」、実行不可は記号「×」で示される。図5の例では、搬送エラー、モータードライバー温度異常、サーマルヘッド温度異常、バッファーエラーのいずれが発生した場合であっても、フラッシュROM77に対するアクセスは実行できるので、ファームウェア書換コマンド、ログ取得コマンド、設定値取得コマンドのいずれも、実行可能と設定されている。これに対し、メモリーエラーの発生時には、フラッシュROM77そのものに異常が発生している可能性があるため、さらなるファームウェアの損傷や症状の深刻化を避けるため、ファームウェア書換コマンド、ログ取得コマンド、設定値取得コマンドのいずれも、実行できないものと設定されている。
また、処理手段の動作に関係するコマンドについては、そのコマンドが動作させる処理手段にエラーが発生していない場合は実行可能に設定されている。具体的には、搬送エラーが発生した場合、インクジェット印刷コマンド、サーマル印刷コマンド、及びオートカットコマンドは実行不可と設定されている。ただし、制御部70が、小切手4に関する搬送エラーと感熱ロール紙に関する搬送エラーとを区別して検出する構成であれば、コマンドテーブル77aにおいて小切手4の搬送エラー発生時はサーマル印刷コマンド及びオートカットコマンドは実行可能と設定し、感熱ロール紙の搬送エラー発生時にはインクジェット印刷コマンドを実行可能と設定することができる。モータードライバー温度異常が発生した場合は、モーターを動作させることができないので、インクジェット印刷コマンド、サーマル印刷コマンド、及びオートカットコマンドのいずれも実行不可と設定される。これに対し、サーマルヘッド温度異常が発生した場合、インクジェットヘッド10による印刷は可能であり、カッターユニット66の動作も可能なため、インクジェット印刷コマンド及びオートカットコマンドは実行可能に設定されている。
制御部70は、エラー検出後のオフライン状態でホストコンピューター5から受信したコマンドが、このコマンドテーブル77aにおいて、検出したエラーに対応して実行可能と設定されたコマンドである場合は、当該コマンドを実行する。また、コマンドテーブル77aにおいて実行不可と設定されているコマンド、及び、コマンドテーブル77aのコマンド種別のフィールドに定義されていないコマンドは、実行しない。
つまり、制御部70は、コマンドテーブル77aを参照することでコマンドのフィルターとして機能し、このフィルターを通ったコマンドのみを実行する。
このように、媒体処理装置1では、コマンドテーブル77aを利用して、エラーが発生した場合に、エラーに関わる機構部やメモリー等の損傷や異常の深刻化を招くおそれがないコマンドについては、実行可能とするよう設定されている。コマンドテーブル77aによれば、エラーの種別毎およびコマンドの種別毎に実行の可否を設定可能である。このため、媒体処理装置1の故障や異常の深刻化を招くことなく、エラーが発生した場合も一部の動作を実行できる。
In the command table 77a, whether various commands can be executed or not is set for each error type. In the figure, executable is indicated by the symbol “◯”, and unexecutable is indicated by the symbol “x”. In the example of FIG. 5, the flash ROM 77 can be accessed regardless of whether a transport error, motor driver temperature abnormality, thermal head temperature abnormality, or buffer error occurs, so the firmware rewrite command, log acquisition command, and setting All of the value acquisition commands are set to be executable. On the other hand, when a memory error occurs, there may be an abnormality in the flash ROM 77 itself. Therefore, to avoid further damage to the firmware and the severity of symptoms, a firmware rewrite command, log acquisition command, and setting value acquisition None of the commands are set to run.
Further, a command related to the operation of the processing means is set to be executable when no error has occurred in the processing means operated by the command. Specifically, when a conveyance error occurs, the inkjet print command, thermal print command, and auto cut command are set to be unexecutable. However, if the control unit 70 is configured to distinguish and detect a transport error related to the check 4 and a transport error related to the thermal roll paper, the thermal print command and the auto-cut command are used when the transport error of the check 4 occurs in the command table 77a. It can be set to be executable, and an inkjet printing command can be set to be executable when a thermal roll paper transport error occurs. When the motor driver temperature abnormality occurs, the motor cannot be operated, and therefore, any of the inkjet printing command, the thermal printing command, and the auto cut command is set to be unexecutable. On the other hand, when the thermal head temperature abnormality occurs, printing by the inkjet head 10 is possible and the operation of the cutter unit 66 is also possible, so that the inkjet print command and the auto cut command are set to be executable.
When the command received from the host computer 5 in the offline state after the error detection is a command set to be executable in response to the detected error in the command table 77a, the control unit 70 executes the command. To do. Also, commands that are set to be unexecutable in the command table 77a and commands that are not defined in the command type field of the command table 77a are not executed.
That is, the control unit 70 functions as a command filter by referring to the command table 77a, and executes only the command that passes through this filter.
As described above, the medium processing apparatus 1 executes a command using the command table 77a for a command that does not cause a damage to a mechanism unit or a memory related to the error or a serious abnormality when an error occurs. It is set to be possible. According to the command table 77a, it is possible to set whether to execute each error type and each command type. For this reason, some operations can be executed even when an error occurs without causing a failure or a serious abnormality of the medium processing apparatus 1.

なお、上記に例示した媒体処理装置1のエラーのうち、廃液タンクの容量超過、モータードライバー73の温度異常、サーマルヘッド65の温度異常、バッファーエラー、メモリーエラー等は、放置により自然に解消することが期待できるエラーとはいえず、また、ユーザーが手軽に解消できるようなエラーでもない。これらのエラーが発生した場合、通常は専門家による作業を必要とする。そこのため、これらのエラーを、制御部70は「復帰不可能エラー」として検出する。
これに対し、搬送エラー、インクカートリッジ45のインク切れ、ロール紙収容部62の紙切れ、カバーオープン等のエラーは、媒体処理装置1を使用するユーザーがジャムを起こした用紙を取り除いたり、インクカートリッジ45や感熱ロール紙を交換したり、カバー12を閉じたりすれば、専門家が作業しなくても解消できるので、復帰不可能エラーとは区別される。
Of the errors of the medium processing apparatus 1 exemplified above, the excess capacity of the waste tank, the abnormal temperature of the motor driver 73, the abnormal temperature of the thermal head 65, the buffer error, the memory error, etc. can be resolved naturally by leaving them alone. Is not an error that can be expected, nor is it an error that users can easily resolve. When these errors occur, they usually require specialist work. For this reason, the controller 70 detects these errors as “unrecoverable errors”.
On the other hand, errors such as a transport error, ink out of the ink cartridge 45, paper out of the roll paper storage unit 62, cover open, and the like are removed by the user using the media processing apparatus 1 from the jammed paper or the ink cartridge 45. It can be resolved from an unrecoverable error because it can be resolved without the need for an expert to replace the heat-sensitive roll paper or close the cover 12.

そして、コマンドテーブル77aにおいて、復帰不可能エラーとそれ以外のエラーとに分けて、各コマンドが実行可能であるか実行不可であるかを設定してもよい。
また、制御部70は、エラーを検出した場合に、そのエラーが復帰不可能エラーである場合のみオフライン状態に移行して、ホストコンピューター5から受信したコマンドのうちコマンドテーブル77aで実行可能と設定されたコマンドを実行するようにしてもよい。この場合、復帰不可能エラーでないエラーを検出した場合は、通常のオフライン状態またはビジー状態となり、ユーザーの手作業による復旧や電源のオン−オフ操作、或いはリセットスイッチの操作による復旧を待機する構成としてもよい。
In the command table 77a, whether each command can be executed or cannot be executed may be set separately for non-recoverable errors and other errors.
In addition, when an error is detected, the control unit 70 shifts to an offline state only when the error is an unrecoverable error, and is set to be executable in the command table 77a among the commands received from the host computer 5. The command may be executed. In this case, when an error that is not an unrecoverable error is detected, the normal offline state or busy state is entered, and a recovery by a manual operation by the user, a power on / off operation, or a reset switch operation is waited for. Also good.

図6は、媒体処理装置1の動作を示すフローチャートであり、エラー検出時の制御部70の動作を示す。
図6に示す動作は、媒体処理装置1の動作状態にかかわらず、例えば処理手段が処理中であるか否かに関係なく、制御部70がエラーを検出した際に割り込み処理として開始される。
制御部70は、エラーの発生を検出すると(ステップSB1)、オフライン状態に移行し(ステップSB2)、ホストコンピューター5に対してオフラインを通知するとともに、ホストコンピューター5から送信されるコマンドを受信可能な状態を維持する。制御部70は、ステップSB1で検出したエラーの種別を判別し(ステップSB3)、エラーの種別を含む情報をログ領域77bに記憶させる(ステップSB4)。
FIG. 6 is a flowchart showing the operation of the medium processing apparatus 1, and shows the operation of the control unit 70 when an error is detected.
The operation illustrated in FIG. 6 is started as an interrupt process when the control unit 70 detects an error, regardless of whether the processing unit is processing, for example, regardless of the operation state of the medium processing apparatus 1.
When detecting the occurrence of an error (step SB1), the control unit 70 shifts to an offline state (step SB2), notifies the host computer 5 of offline, and can receive a command transmitted from the host computer 5. Maintain state. The control unit 70 determines the type of error detected in step SB1 (step SB3), and stores information including the type of error in the log area 77b (step SB4).

ここで、制御部70は、ホストコンピューター5からのコマンドの受信を待機し(ステップSB5)、コマンドを受信した場合(ステップSB5;Yes)には、受信したコマンドをいったん受信バッファー79に格納してから、コマンドテーブル77aを参照し(ステップSB6)、受信したコマンドが実行可能なコマンドであるか否かを判別する(ステップSB7)。
受信したコマンドが、コマンドテーブル77aにおいて、ステップSB3で判別したエラー種別に対して実行不可と設定されている場合、及び、コマンドテーブル77aにおいて設定されていないコマンドである場合(ステップSB7;No)には、制御部70は、受信したコマンドを破棄して(ステップSB8)、ステップSB5に戻る。コマンドを破棄する場合、受信バッファー79に記憶したコマンドは消去される。
一方、受信したコマンドが、コマンドテーブル77aにおいて、ステップSB3で判別したエラー種別に対して実行可能と設定されている場合(ステップSB7;Yes)、制御部70は、受信したコマンドを実行して(ステップSB9)、本処理を終了する。
Here, the control unit 70 waits for reception of a command from the host computer 5 (step SB5). When the command is received (step SB5; Yes), the received command is temporarily stored in the reception buffer 79. From the command table 77a (step SB6), it is determined whether or not the received command is an executable command (step SB7).
When the received command is set to be unexecutable for the error type determined at step SB3 in the command table 77a, and when the command is not set in the command table 77a (step SB7; No) The control unit 70 discards the received command (step SB8) and returns to step SB5. When discarding a command, the command stored in the reception buffer 79 is deleted.
On the other hand, when the received command is set to be executable for the error type determined in step SB3 in the command table 77a (step SB7; Yes), the control unit 70 executes the received command ( Step SB9), the process is terminated.

以上説明したように、本発明を適用した実施形態に係る媒体処理装置1は、ホストコンピューター5に接続可能に構成され、媒体としての小切手4或いは感熱ロール紙を処理する処理手段として、MICRヘッド35、インクジェットヘッド10を備えたインクジェットプリンターユニット44、表面CISユニット47及び裏面CISユニット48、及び、サーマルヘッド65を備えたサーマルプリンターユニット60等を具備し、制御部70により、媒体処理装置1のエラーが発生した場合に、ホストコンピューター5と通信可能な状態を維持して処理手段の動作を停止するオフライン状態に移行し、エラーが発生して動作を停止した状態すなわちエラー検出後のオフライン状態で、処理手段の動作を必要としないコマンドをホストコンピューター5から受信した場合には、当該コマンドを実行する。
これにより、エラーが発生してもホストコンピューター5から送信されるコマンドを実行でき、ホストコンピューター5によってエラーに関する情報を取得する等の対応が可能となる。これにより、エラーに対して速やかに対処でき、作業効率への影響をより軽微に抑えることができる。また、コマンドを実行しても、エラーが発生した処理手段を動作させることがないので、より深刻なエラーや故障を招くおそれがない。
As described above, the medium processing apparatus 1 according to the embodiment to which the present invention is applied is configured to be connectable to the host computer 5, and the MICR head 35 is used as processing means for processing the check 4 or heat-sensitive roll paper as the medium. Inkjet printer unit 44 equipped with inkjet head 10, front surface CIS unit 47 and rear surface CIS unit 48, thermal printer unit 60 equipped with thermal head 65, and the like. When an error occurs, the state shifts to an offline state in which the operation of the processing means is stopped while maintaining a state communicable with the host computer 5, and an operation is stopped due to an error, that is, an offline state after the error is detected. Commands that do not require processing means to operate When receiving from Yuta 5 executes the command.
Thereby, even if an error occurs, a command transmitted from the host computer 5 can be executed, and it is possible to cope with the host computer 5 by acquiring information about the error. As a result, errors can be dealt with promptly, and the influence on work efficiency can be suppressed to a lesser extent. Further, even if the command is executed, the processing means in which the error has occurred is not operated, so there is no possibility of causing a more serious error or failure.

従来の媒体処理装置では、エラーの内容によっては、例えば復帰不可能なエラーの発生時には、ビジー状態となって、ホストコンピューター等の外部の装置から送信されるコマンド等を受信しなくなってしまっていた。このような場合、外部の装置が媒体処理装置と通信してエラーの発生箇所等の情報を得ることはできないため、専門家が媒体処理装置の制御基板を取り外してメモリーを解析する等の作業が必要であり、エラーの解析や復旧に手間がかかっていた。
これに対し、本実施形態の媒体処理装置1は、エラーが発生してもオフライン状態に移行するとともにコマンドを受信可能な状態を維持し、図5に例示したコマンドテーブル77aで実行可能と設定されたコマンドを受信した場合は当該コマンドを実行するので、例えば図5に示したバッファーエラーやサーマルヘッド65の温度異常エラー等の復帰不可能エラーが発生した場合であっても、ホストコンピューター5によってエラーログを取得できるので、エラーの原因解析や復旧を速やかに行うことができる。さらに、復帰不可能エラーが発生した場合であっても、フラッシュROM77に記憶した設定値やプログラムの書き換えが可能であるため、不適切な設定値等に起因するエラーを速やかに解消できる。これにより、エラー発生時の作業効率の低下を軽微に抑えることができる。
In the conventional media processing device, depending on the content of the error, for example, when an unrecoverable error occurs, the medium processing device becomes busy and does not receive commands sent from an external device such as a host computer. . In such a case, an external device cannot communicate with the media processing device to obtain information such as the location where an error has occurred, so an expert can remove the control board of the media processing device and analyze the memory. It was necessary, and it took time and effort to analyze and recover from errors.
On the other hand, the medium processing apparatus 1 according to the present embodiment is set to be executable in the command table 77a illustrated in FIG. 5 while shifting to an offline state and maintaining a state where a command can be received even if an error occurs. When the received command is received, the command is executed. For example, even if an unrecoverable error such as a buffer error or a thermal head 65 temperature error shown in FIG. Since logs can be acquired, error cause analysis and recovery can be performed promptly. Furthermore, even if an unrecoverable error occurs, the setting value stored in the flash ROM 77 and the program can be rewritten, so that an error caused by an inappropriate setting value can be quickly eliminated. As a result, it is possible to suppress a decrease in work efficiency when an error occurs.

また、媒体処理装置1は、インクジェットヘッド10、サーマルヘッド65、モータードライバー73、カッターユニット66、及び搬送手段を含む複数の処理手段を備え、制御部70は、エラーが発生した処理手段の動作を必要としないコマンドであれば、ホストコンピューター5から送信されるコマンドを実行できるので、例えば、エラーが発生していない処理手段の動作を指示するコマンドを実行するなど、エラーが発生した場合であっても当該エラーを深刻化させないように処理を継続でき、作業効率への影響をより軽微に抑えることができる。   In addition, the medium processing apparatus 1 includes a plurality of processing units including the inkjet head 10, the thermal head 65, the motor driver 73, the cutter unit 66, and a conveying unit, and the control unit 70 operates the processing unit in which an error has occurred. If the command is not necessary, the command transmitted from the host computer 5 can be executed. For example, when an error occurs, for example, a command for instructing the operation of the processing means in which no error has occurred is executed. However, the processing can be continued so as not to make the error serious, and the influence on work efficiency can be suppressed to a lesser extent.

また、制御部70は、エラー検出後のオフライン状態でホストコンピューター5から受信したコマンドが、予め設定された実行可能コマンドである場合に、当該コマンドを実行するので、実行可能なコマンドが予め設定されているため、処理手段等に悪影響を及ぼさない範囲でコマンドを実行する一方、エラーが発生した処理手段に影響するコマンド等を実行しないように設定できる。また、例えば、エラーの解消に有用なコマンドを実行可能として設定する一方、不要なコマンドを実行しないように設定することもできる。   The control unit 70 executes the command when the command received from the host computer 5 in the offline state after the error detection is a preset executable command. Therefore, the executable command is preset. Therefore, it is possible to set so that the command is executed within a range that does not adversely affect the processing means and the like, and the command that affects the processing means in which the error has occurred is not executed. In addition, for example, it is possible to set a command useful for error resolution to be executable, while not setting an unnecessary command.

また、媒体処理装置1では、コマンドテーブル77aにより、エラーが発生した場合に実行可能なコマンドと、エラーの種別と、が対応づけて設定されている。このコマンドテーブル77aにより、エラーの種別ごとに実行可能なコマンドを設定できるので、実行可能なコマンド及び実行できないコマンドの設定をエラーの種別毎に最適化できる。
さらに、制御部70は、発生したエラーが復帰不可能なエラーである場合に、オフライン状態に移行してもよく、この場合、復帰不可能なエラーに対し、ホストコンピューター5を利用して適切に、かつ速やかに対処できる。
In the medium processing apparatus 1, a command that can be executed when an error occurs and an error type are set in association with each other by the command table 77a. Since the command table 77a can set an executable command for each error type, the setting of an executable command and a command that cannot be executed can be optimized for each error type.
Further, the control unit 70 may shift to an offline state when the error that has occurred is an unrecoverable error. In this case, the host computer 5 is used to appropriately deal with the unrecoverable error. And can be dealt with promptly.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。上述した実施形態では、媒体処理装置1は、媒体としての小切手4或いは感熱ロール紙を処理する処理手段として、MICRヘッド35、インクジェットヘッド10を備えたインクジェットプリンターユニット44、表面CISユニット47及び裏面CISユニット48、及び、サーマルヘッド65を備えたサーマルプリンターユニット60等を備える構成として説明したが、本発明はこれに限定されるものではなく、これらの一部の機能のみを備えた構成とすることも勿論可能である。また、制御部70が検出するエラーの種別は上記に列挙したものに限定されず、媒体処理装置1の動作に支障を来すエラーとして検出されるエラーは全て含まれる。また、例えば、上記の実施形態では、媒体処理装置1の搬送路W上に、MICRヘッド35、インクジェットヘッド10、及び、CISユニットの各処理手段が順次配置された構造として説明したが、処理手段の配置順や具体的構造は、これに限らない。また、例えば、図3に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。さらに、制御部70の機能を、媒体処理装置1に外部接続される別の装置に持たせるようにしてもよい。また、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図4、図6で示した各フローチャートの各ステップを実行するようにしてもよい。   The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention. In the above-described embodiment, the medium processing apparatus 1 uses the MICR head 35, the ink jet printer unit 44 including the ink jet head 10, the front surface CIS unit 47, and the back surface CIS as processing means for processing the check 4 or the thermal roll paper as the medium. The configuration including the unit 48 and the thermal printer unit 60 including the thermal head 65 has been described as an example. However, the present invention is not limited to this, and the configuration includes only a part of these functions. Of course it is possible. Further, the types of errors detected by the control unit 70 are not limited to those listed above, and all errors detected as errors that hinder the operation of the medium processing apparatus 1 are included. Further, for example, in the above embodiment, the description has been given of the structure in which the processing means of the MICR head 35, the inkjet head 10, and the CIS unit are sequentially arranged on the conveyance path W of the medium processing apparatus 1. The arrangement order and the specific structure are not limited to this. Further, for example, each functional block shown in FIG. 3 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration. Furthermore, the function of the control unit 70 may be provided in another device externally connected to the medium processing device 1. Further, each step of each flowchart shown in FIGS. 4 and 6 may be executed by executing a program stored in an externally connected storage medium.

1…媒体処理装置、4…小切手(媒体)、5…ホストコンピューター(外部の装置)、10…インクジェットヘッド、44…インクジェットプリンターユニット(処理手段)、47…表面CISユニット(処理手段)、48…裏面CISユニット(処理手段)、60…サーマルプリンターユニット(処理手段)、65…サーマルヘッド、70…制御部(エラー制御手段)、77…フラッシュROM、77a…コマンドテーブル、77b…ログ領域、78…RAM、79…受信バッファー。   DESCRIPTION OF SYMBOLS 1 ... Medium processing apparatus, 4 ... Check (medium), 5 ... Host computer (external apparatus), 10 ... Inkjet head, 44 ... Inkjet printer unit (processing means), 47 ... Surface CIS unit (processing means), 48 ... Back CIS unit (processing means), 60 ... thermal printer unit (processing means), 65 ... thermal head, 70 ... control unit (error control means), 77 ... flash ROM, 77a ... command table, 77b ... log area, 78 ... RAM, 79. Reception buffer.

Claims (6)

外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置であって、
エラーが発生した場合に、前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止するエラー制御手段を備え、
前記エラー制御手段は、前記エラーが発生して動作を停止した状態で前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行すること、
を特徴とする媒体処理装置。
A medium processing apparatus configured to be connectable to an external apparatus and provided with processing means for processing a medium,
In the event of an error, comprising an error control means for maintaining the communicable state with the external device and stopping the operation of the processing means,
When the error control means receives a command from the external device that does not require the operation of the processing means in a state where the error has occurred and the operation is stopped, the command is executed.
A medium processing apparatus.
前記エラー制御手段は、前記エラーが発生して動作を停止した状態で前記外部の装置から受信したコマンドが、予め設定された実行可能コマンドである場合に、当該コマンドを実行することを特徴とする請求項1記載の媒体処理装置。   The error control means executes the command when the command received from the external device in the state where the error has occurred and the operation is stopped is a preset executable command. The medium processing apparatus according to claim 1. 前記エラーが発生した場合に実行可能なコマンドと、前記エラーの種別と、が対応づけて設定されたことを特徴とする請求項2記載の媒体処理装置。   The medium processing apparatus according to claim 2, wherein a command that can be executed when the error occurs and the type of the error are set in association with each other. 前記エラー制御手段は、発生した前記エラーが復帰不可能なエラーである場合に、前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止することを特徴とする請求項1から3のいずれかに記載の媒体処理装置。   2. The error control unit, when the generated error is an unrecoverable error, maintains a state in which communication with the external device is possible and stops the operation of the processing unit. 4. The medium processing apparatus according to any one of items 1 to 3. 外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置の制御方法であって、
エラーが発生した場合に前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止し、この動作を停止した状態で、前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行すること、
を特徴とする媒体処理装置の制御方法。
A method of controlling a medium processing apparatus configured to be connectable to an external apparatus and provided with processing means for processing a medium,
When an error occurs, the state of communication with the external device is maintained and the operation of the processing unit is stopped. With this operation stopped, a command that does not require the operation of the processing unit is issued. If received from the device, execute the command,
A method for controlling a medium processing apparatus.
外部の装置に接続可能に構成され、媒体を処理する処理手段を備えた媒体処理装置を制御する制御部が実行可能なプログラムであって、
前記制御部を、
エラーが発生した場合に前記外部の装置と通信可能な状態を維持して前記処理手段の動作を停止し、この動作を停止した状態で、前記処理手段の動作を必要としないコマンドを前記外部の装置から受信した場合には、当該コマンドを実行するエラー制御手段として機能させることを特徴とするプログラム。
A program that is configured to be connectable to an external device and that can be executed by a control unit that controls a medium processing apparatus including processing means for processing a medium,
The control unit
When an error occurs, the state of communication with the external device is maintained and the operation of the processing unit is stopped. With this operation stopped, a command that does not require the operation of the processing unit is issued. A program that, when received from an apparatus, functions as error control means for executing the command.
JP2011216969A 2011-09-30 2011-09-30 Medium processing device, control method of medium processing device, and program Withdrawn JP2013077187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011216969A JP2013077187A (en) 2011-09-30 2011-09-30 Medium processing device, control method of medium processing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011216969A JP2013077187A (en) 2011-09-30 2011-09-30 Medium processing device, control method of medium processing device, and program

Publications (1)

Publication Number Publication Date
JP2013077187A true JP2013077187A (en) 2013-04-25

Family

ID=48480598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011216969A Withdrawn JP2013077187A (en) 2011-09-30 2011-09-30 Medium processing device, control method of medium processing device, and program

Country Status (1)

Country Link
JP (1) JP2013077187A (en)

Similar Documents

Publication Publication Date Title
JP5803504B2 (en) Medium processing apparatus and method for controlling medium processing apparatus
JP5899748B2 (en) Medium processing apparatus and method for controlling medium processing apparatus
JP5974499B2 (en) RECORDING DEVICE, CONTROL DEVICE, AND RECORDING DEVICE CONTROL METHOD
JP6127404B2 (en) Medium processing apparatus and method for controlling medium processing apparatus
JP2013077187A (en) Medium processing device, control method of medium processing device, and program
JP2013071414A (en) Medium treatment apparatus, method for controlling the same, and program
JP2007137035A (en) Control method of print medium processor and print medium processor
JP2013073500A (en) Composite processor, control method of composite processor, and program
JP7031328B2 (en) Printing device and control method of printing device
JP5899750B2 (en) Medium processing apparatus, method for controlling medium processing apparatus, and program
US9152364B2 (en) Media processing device, control method for a media processing device, and recording medium storing a program executed by a control unit that controls a media processing device
JP5866926B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP7010026B2 (en) Printer and printer control method
JP2012061790A (en) Medium processing apparatus, method for controlling the same, and program
JP6407120B2 (en) Printer and printer control program
JP5906638B2 (en) Medium processing apparatus, method for controlling medium processing apparatus, and program
JP5887780B2 (en) Medium processing apparatus, method for controlling medium processing apparatus, and program
JP2013146939A (en) Medium processing apparatus, and method for controlling the same
JP2006088688A (en) Printer and printer control method
JP2013120966A (en) Controller, method of controlling the same, and program
JP2013021489A (en) Reading apparatus, reading apparatus control method, and storage medium
JP2013063527A (en) Recording device, method of controlling recording device, and program
JP2013071376A (en) Recording apparatus, control method of recording apparatus, and program
JP2018176652A (en) Printer and control method for printer
JP2013021488A (en) Reading apparatus, reading apparatus control method, and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202