JPH02226554A - Magnetic card reader/writer - Google Patents

Magnetic card reader/writer

Info

Publication number
JPH02226554A
JPH02226554A JP1043968A JP4396889A JPH02226554A JP H02226554 A JPH02226554 A JP H02226554A JP 1043968 A JP1043968 A JP 1043968A JP 4396889 A JP4396889 A JP 4396889A JP H02226554 A JPH02226554 A JP H02226554A
Authority
JP
Japan
Prior art keywords
data
magnetic card
write
head
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1043968A
Other languages
Japanese (ja)
Inventor
Kiyoaki Takiguchi
清昭 滝口
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.)
NIPPON KAADE CENTER KK
Original Assignee
NIPPON KAADE CENTER KK
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 NIPPON KAADE CENTER KK filed Critical NIPPON KAADE CENTER KK
Priority to JP1043968A priority Critical patent/JPH02226554A/en
Publication of JPH02226554A publication Critical patent/JPH02226554A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a magnetic card from being disabled to use in another device by providing a write auxiliary processing means which stores write completed data transiently and performs re-write based on storage data when a write error occurs. CONSTITUTION:A control circuit 50 reads data via a read head 36 when the magnetic card is inserted, and supplies it to the write auxiliary processing means 22, and stores it in a data storage processing circuit 65. When payment is performed, a processor 100 subtracts a sale amount from read data, and supplies a difference to a write head 32. After write is completed, the data is read again from the card, and is compared with the data after substraction, and the means 22 is started up when noncoincidence is obtained. The means 22 resets temporarily stored data when the write is performed normally, however, when an error occurs, read data is supplied to the head 32 as it is, and is written on the card. Therefore, the data in the card can be recovered to the one before reading. In such a way, since the data can be recovered to the one before reading even when the write error occurs in the magnetic card, it is possible to prevent the card from being disabled to use hereafter.

Description

【発明の詳細な説明】[Detailed description of the invention]

(産業上の利用分野〕 本発明は、前払いして得た班員カードのデータを読み取
るとともに、必要なデータを磁気カードに書き込むこと
のできるビl気カード読取書込装置に関し、特に書き込
みエラーが発生した際に磁気カードから最初に読み取っ
たデータをそのまま磁気カードに書き込めるようにした
磁気カード読取書込装置に関する。 (従来の技術) この種の磁気カード読取書込装置は、前払いして得た磁
気カードのデータを読み取るとともに、必要なデータを
書き込むことのできる装置として知られており、電話機
、自動券売機、自動販売機等に利用されている。 ところで、従来の磁気カード読取書込装置の主要な構成
は、磁気カードとの相対運動により磁気カードからデー
タを読み取る読取ヘッドと、磁気カードとの相対運動に
より、与えられた書込データを磁気カードに書き込む書
込ヘッドと、読取ヘッドからの読取データを処理して所
定のデータとし、このデータから販売金額分を差し引き
、その差し引き復のデータを処理して書込データとして
書込ヘッドに与える制御をし、かつ磁気カードと前記各
ヘッドとの相対運動を制?ヰする処理装置とを備えたも
のが、−a的である。 このような磁気カード読取書込装置によれば、磁気カー
ドを当該装置に挿入すると、次のような処理が当該装置
内で行われる。すなわち、磁気カードは搬送機構により
内部へと移動されて、読取ヘッド上を磁気カードが移動
する際に磁気カードからデータが読取ヘッドを介して読
み取ら机、これが処理装置に入力される。処理装置は、
読取ヘッドからの読取データを処理して所定のデータと
し、このデータから販売金額分を差し引き、その差し引
き後のデータを処理して書込データとじて書込ヘッドに
与える。書込データは書込ヘッドに与えられ、磁気カー
ドが書込ヘッド上を、移動することにより、その書込デ
ータが磁気カードに書き込まれる。そして、上記処理装
置は、41気カードへのデータの書き込みが終了した際
に、再度読取ヘッドを介して磁気カードからデータを読
み取って、これを上記差し引き後のデータと比較し、書
き込みが正確に行われたかを
(Industrial Application Field) The present invention relates to a billboard card reading/writing device that can read data on prepaid squad members' cards and write necessary data onto magnetic cards, and in particular, the present invention relates to a billboard card reading/writing device that is capable of reading data on prepaid squad members' cards and writing necessary data onto magnetic cards. This type of magnetic card reading/writing device is capable of writing data that is first read from a magnetic card onto a magnetic card as is when a magnetic card occurs. It is known as a device that can read data on magnetic cards and write necessary data, and is used in telephones, automatic ticket vending machines, automatic vending machines, etc. By the way, conventional magnetic card reading and writing devices The main components are: a read head that reads data from the magnetic card by relative movement to the magnetic card; a write head that writes given write data to the magnetic card by movement relative to the magnetic card; Processing the read data to obtain predetermined data, subtracting the sales amount from this data, processing the subtracted data, and controlling the data to be given to the write head as write data, and controlling the magnetic card and each of the heads. Type-a is one that is equipped with a processing device that controls the relative movement of the magnetic card. That is, the magnetic card is moved inside by a transport mechanism, and the data is read from the magnetic card through the reading head as the magnetic card moves over the reading head, which is the processing unit. is input into the processing device.
The read data from the read head is processed into predetermined data, the sales amount is subtracted from this data, and the data after the deduction is processed and provided to the write head as write data. Write data is applied to the write head, and as the magnetic card moves over the write head, the write data is written to the magnetic card. Then, when the writing of data to the 41-ki card is completed, the processing device reads the data from the magnetic card again via the reading head and compares it with the data after the above deduction, to ensure that the writing is accurate. Was it done?

【lにしていた。 (発明が解決しようとする課題) しかしながら、上記従来の磁気カード読取書込装置は、
書き込みエラーが発生しても、そのまま磁気カードを当
該装置から排出してしまうので、以後当15 磁気カー
ドを使用できなくなってしまうという欠点がある。 本発明は、上記欠点を解消するためになされたもので、
書き込みエラーが発生した際に最初に読み取ったデータ
を磁気カードに書き込めるようにした磁気カード読取書
込装置を堤供することを目的とする。 〔課題を解決するための手段〕 上記目的を達成するために、本発明に係る磁気カー1゛
読取書込装置は、磁気カードとの相対連動により磁気カ
ードからデータを読み取る読取ヘッドと、磁気カードと
の相対運動により、与えられた書込データを磁気カード
に書き込む書込へシトと、読取ヘッドからの読取データ
を処理して所定のデータとし、このデータから販売金額
分を差し”引き、その差し引き後のデータを処理して書
込データとして書込ヘッドに与える゛制f′nをし、か
つ磁気カードと前記各ヘッドとの相対運動を制御する処
理装置とを備えてなるyl磁気カード読取書込装置おい
て、前記読取ヘッドで読み取ったデータを一時記憶し書
き込みエラーが発生した際に、その記憶している読み取
ったままのデータを前記書込へラドに与える書込補助処
理手段を設け、かつ上記処理装置は、磁気カードへのデ
ータの書き込みが終了した際に、再fy&取へラドを介
して磁気カードからデータを読み取って、これを上記差
し引き後のデータと比較し、不一致のときに書き込みエ
ラーが発生したとして前記書込補助処理手段を起動する
構成としたことを特徴とするものである。 〔作用〕 上記磁気カード読取書込装置に磁気カードを挿入する。 すると、磁気カード読取書込装置において、制御装置は
、読取ヘッドを介して磁気カードからデータを読み取り
、同時に書込補助処理手段に前記読取ヘッドで読み取っ
たデータを与え、されを−時記憶させる。そして、支払
いをする。すると、当該磁気カード読取書込装置の内部
において、上記処理装置は、まず読取ヘッドからの読取
データから販売金額分を差し引き、その差し引き後のデ
ータを処理して書込データとして書込ヘッドに与える。 ついで、上記処理装置は、磁気カードへのデータの書き
込みが終了した後に、再痩読取ヘッドを介して磁気カー
ドからデータを読み取って、これを上記差し引き後のデ
ータと比較し、不一致のときに書き込みエラーが発生し
たとして前記書込補助処理手段を起動する。起動をかけ
ら飢た書込補助処理手段は、その記憶している読み取っ
たままのデータを前記書込ヘッドを介して班気カードに
書き込む。 これにより、磁気カードに書き込みエラーが発生しても
読み取り前のデータに復旧できるので、当該磁気カード
が他の磁気カード読取書込装置で使用できなくなるとい
うことがない。 (実施例〕 以下、本発明を図示の実施例に基づいて説明する。 第1図は本発明に係る磁気カード読取書込装置の実施例
を通用した自動販売機を示す斜視図である。 第1図において、自動販売itは、直方体形状をしてお
り、この直方体の前面パネル部2に、商品見本を展示す
るシラーケース部3a、 3b、3c、 3dを設け、
その下部に表示ランプ内蔵の商品選択ボタン4a、4b
、4C14dを設け、紙幣挿入口5および硬貨投入口6
を設け、その下部に釣銭受は皿7を設け、かつ商品取出
口8を設け、さらに磁気カード9が挿入されるカード差
込口10を設けて構成されている。また、自動販売機【
は、カードの取り忘れやその他音響をもって報知する音
響報知器11と、精算をキャンセルするためのキャンセ
ルレバー12と、使用不能表示灯13とををそれぞれ設
けている。 第2図は本発明の実施例で用いる磁気カードを示す説明
図である。 この磁気カード9は、薄いプラスチック、紙等により形
成された柔軟性のあるものであり、その表面には、第2
図(1)に示すように、積電金額およびその精算状態を
表示するためのエリア14が設けら机ている。そして、
この磁気カード9の表面にはその他必要な事項(販売金
額、発行音名等)が印刷されている。また、前記磁気カ
ード9は、その裏面に、第2図(II)に示すように磁
気記録媒体としての磁気ストライプ15が設けられてい
る。磁気ストライプ15は、第2図(III)に示すよ
うに、発行年月日、発行会社、金額、その他必要なデー
タがコード化されてデータCdとして記録されている。 第3図は上記自動販売機lの内部構成を示す構成図であ
る。 前記自動販売機lの内部には、貨幣処理機構18と、磁
気カード読取書込装置19と、精算処理装置20と、商
品排出機構21と、書込補助処理手段22とが設けられ
ている。また、貨幣処理機構18は、紙幣挿入口5およ
び硬貨投入口6に投入等された貨幣の真1および貨幣の
価値を読み取るものである。 4n気カード読取書込装置19は、磁気カード9からデ
ータを読み取り、その読取データを処理して所定のデー
タとし、このデータから販売金領分を差し引き、その差
し引き後のデータを処理して演算処理手段20に与え、
演算処理手段20において精算処理さ丸た書込データを
受は取り、この書込データを磁気カード9に書き込む制
御をし、かつ磁気カード9と後述のヘッドとの相対運動
を制御する。 また、上記磁気カード読取書込装置19は、磁気カード
9へのデータの書き込みが終了した隙に、再度磁気カー
ド9からデータを読み取って、これを上記差し引き後の
データと比較し、不一致のときに書き込みエラーが発生
したとして書込補助処理手段22に起動をかけるととも
に、演算処理手段20に通知する構成となっている。精
算処理装置20は、貨幣処理機構18と、磁気カード読
取書込装置19とからの価値データを処理し、商品選択
ボタン4a、4b、4c、4dの指定を受け、これに基
づいて商品排出WJ構21を駆動するものである。また
、精算処理装置20は、い磁気カード読取書込装ff1
19からの書き込みエラーの通知を受けると、使用不能
表示灯13を点灯し、以後の販売動作を禁止する。 書込補助処理手段22は、磁気カード9から読み取った
データを一時記憶し書き込みエラーが発生した際に、そ
の記憶している読み取ったままのデータを磁気カード9
に書き込むものである。なお、貨幣処理機構18につい
ては、本発明と直接関係がないので、以後説明を省略す
る。 第4図は、磁気カード読取書込装置19の構成を示す構
成図である。 磁気カード読取書込装置191′−次のように構成され
ている。すなわち、前記カード差込口10に対応した位
1には、一対の送りローラー30.31が平行に回転可
能に設けられている。前記送りローラー30.3】に近
接して読取磁気ヘッド32が設けられけている。前記読
取磁気へラド32は、磁気カード9のデータ用磁気スト
ライプ15から金額や発行者等のデータを読み取るもの
である。また、反射型の光学読取装置33.34.35
が設けられている。これら反射型の光学読取装置33.
34.35は、磁気カード9の位1を検出するものであ
る。読取磁気ヘッド32の近くには、書込磁気ヘッド3
6が設けられている。この書込磁気へンド36は、デー
タ用磁気ストライプ15に金額のデータを書き込むもの
である。読取磁気ヘッド32には、押圧ローラー37が
設けられている。書込磁気ヘッド36は、押圧ローラー
38が設けられている。前記一対の送りローラー30.
31に対して、さらに一対の送りローラー39.40が
平行に回転可能に設けられている。前記送りローラー3
9.40に対して図示左側には、パンチ機構41が設け
られている。かかるパンチ機構41は、パンチ指令によ
り磁気カード9のエリア14にパンチ穴を開けられるよ
うな機構を有している。また、一対のローラー42.4
3が平行に回転可能に設けられており、前記ローラー4
2.43の図示右側には、ストッパ兼用のカード当接検
出センサ44が設けである。前記送りローラー30、送
りローラー39、ローラー42は、図示しない機構を介
して駆動用のステップモータ45に連結されており、ス
テップモータ45の回転にしたがって回転動作すること
になる。 そして、当該ステップモータ45の回転に伴ってローラ
ー30.31.39.40.42.43が回転し、ロー
ラー30.3】の間、ローラー39.40の間、ローラ
ー42.43の間を磁気カード9が移動する。 前記読取磁気へラド32と、光学読取装置33.34.
35と、パンチ機構41と、カード当接検出センサ44
は、制御部!50に電気的に接続されている。また、制
御装置50は、書込ドライバ47を介して書込磁気ヘッ
ド36を接続されている。また、制御装置50は、モー
ターコントローラ46を介してステップモータ45を回
転させるようにしである。そして、精算処理装置20と
制御装置50とで処理袋z tooが構成されている。 書込補助処理手段22は、磁気カーV9から読取班員ヘ
ッド32を介して読み取ったデータを直接取り込んで一
時記憶し、書き込みが正常であるときにはその記憶デー
タをリセットするが、書き込みエラーが発生したときに
はその記憶している読み取ったままのデータを書込磁気
ヘッド36に与えて磁気カード9に書き込むものである
。この書込補助処理手段22の動作は、データ記憶処理
回路65と、書込1−ライバ67とからなる構成で動作
するようになっている。 第5図は、制御装置50と書込補助処理手段22とを示
す構成図である。 制御装置50は、増幅回路51と、F2Fデコーダ52
と、F2Fエンコーダ53と、入出力部54と、コント
ローラ55とから構成されている。コントローラ55は
、CPL156、RO阿57、IIAM58、インター
フェース59、外部インターフェース60とから構成さ
れている。 制御装置50のCPl、I56には、図示しないがタイ
マーが備えられている。また、ROM57には、当該制
御装置50を実現させるプログラムが記憶されている。 書込補助処理手段22のデータ記憶処理回路65は、次
のとおり構成されている。すなわち、読取磁気ヘッド3
2からの読取データは増幅回路68で増幅されてF2F
デコーダ69に供給されるようにしである。 P2Fデコーダ69でデコードされたデータは、制御部
70の制御下に記憶部71に記憶される。制御部70は
、入出力部54に接続されており、コントローラ55の
制?Wを受けるようになっている。制御部70は、コン
トローラ55から書き込みが正常の報告を受けると、記
憶部71に記憶されているデータをリセフトする。一方
制御部70は、コントローラ55から書き込み異常が発
生したとして起動を受けると、記憶部71に記憶してお
いたデータをF2Fエンコーダ72、ドライバ67を介
して書込磁気ヘンド36に与える。これにより、磁気カ
ード9は、磁気カード読取書込装置に挿入する前のデー
タに復旧する。 このように構成さ机た実施例の作用を説明する。 第6図は、磁気カード読取書込装置の作用を説明するた
めに示すフローチャートである。第7図は、書込補助処
理手段22の作用を説明するために示すフローチャート
である。 制御装置50は、センサ33により磁気カード9が挿入
れれたかを判定している(ステップ200)。制御装置
50は、磁気カード9の挿入をセンサ33により検知す
ると(ステップ200)、モーターコントローラ46を
駿勤してステップモータ45を正回転させ、書込補助処
理手段22に読み込み指令を出す(ステップ201)。 そして、制御装置50は、読取磁気ヘッド32を介して
磁気カード9のデータを読み取り、これを精算処理装置
20に転送し、精算処理装置20の記憶装置(図示せず
)に記憶させる(ステップ202)。この動作は、全デ
ータを読み取るまで実行される(ステップ202〜20
3)。ついで、センサ34.35により、磁気カード9
が所定の位置にきたときに、ステップモータ45を停止
する(ステップ204)。 ここで、書込補助処理手段22は制?1装置50からの
指令により動作を開始し、第7図に示すように、読取磁
気ヘッド32からのデータを読み取り(ステップ300
)、記憶部71に当該データを記憶しくステップ301
)、IIJ御装置50からの指令待ちtなる(ステップ
302) 。 また、精算処理装置20は記憶したデータが差し引き可
能か、または他のカードかを判定する(ステップ205
)。ここで、精算処理装置20は、当該磁気カード9が
使用可能であると判定すると(ステップ205)、販売
できる商品の商品選択ボタン4a、4b、4C14dを
点灯する(ステップ206)。そして、精算処理装置2
0は、商品選択ボタン4a、4b、4c、4dが押され
るのを待つ(ステップ207) 、商品選択ボタン4a
、4b、4cs4dが押されると、精算処理装置20は
、その商品の販売価格に相当する金額をデータから差し
引く(ステ・ンプ208’) 、ついで、精算処理装置
20は、磁気カード9の所定のデータを図示しない記憶
部に記憶する(ステ・ノブ209) 、そして、精算処
理装置20は、その差し引き後のデータを処理装置50
に転送する。すると、制御装置50は磁気カード9をカ
ード差込口】OPの所定の位置に位置させるために、モ
ーターコントローラ46を介してステップモータ45を
逆回転させる(ステップ210) 、制御装置50は、
センサ33.34.35を用いて磁気カード9が所定の
位置にくるとくステップ212)、ステップモータ45
を停止する(ステップ2]2) 。 ついで、磁気カード9にデータを書き込む動作に移る。 すなわち、制御装置50は、モーターコントローラ46
を介してステップモータ45を正回転させ(ステップ2
13)、差し引いたデータを書込ドライバ47を介して
書込磁気ヘッド36を与えて磁気カード9に書き込む(
ステップ214) 、制御部W50は、書き込みが完了
するまで、ステップ213〜215を繰り返す(ステッ
プ215) 、書き込みが完了したときに、制御装置i
50は、ステップモータ45を停止させる(ステップ2
16)。 さらに、磁気カード9に書き込まれたデータが正しいか
を判定する。すなわち、制御装置50は磁気カード9を
カード差込口10例の所定の位置に位1さ廿るためムご
、ステップモータ45を逆回転させて(ステップ217
)、所定の位置に磁気カード9が位置した際に(ステッ
プ218)、ステップモータ45を停止させる(ステッ
プ219)、ついで、制御装置50は、ステップモータ
45を正回転させる(ステップ220)。読取磁気へノ
ド32を介して制m装置f50に磁気カード9のデータ
を取り込む(ステップ22])。 こ机は、全データを取り込む作業をするまで、実行され
る(ステップ220〜222) 、全データの読み取り
が完了すると、@御装置50は、ステップモータ45を
停止する(ステップ223) 、そして、差し引きした
データと、いま読み込んだデータとを比較する(ステッ
プ224)。 ここで、両者が同一であると制御装置!150で判定さ
れると(ステップ225)、リセット指令を出しくステ
ップ226)、ステップモータ45を逆回転させ(ステ
ップ227)、磁気カード9がカード差込口10から突
出する位になったところで停止させる(ステップ227
〜229)。このとき、書込補助処理手段22は、第7
図に示すように指令待ちの状態であり(ステップ302
)、IIJrIj部70は指令がくると指令の内容を判
定する(ステップ303) 、制御部70は、指令がリ
セット指令と判定すると、@蓋部70は、記憶部71を
リセットしくステップ304)、処理を終了する。 一方、両者が不一致であると制御装置5oで判定される
と(ステップ225)、制御n装置50は磁気カード9
がカード差込口10例の所定の位置となるまでステップ
モータ45を逆回転させる(ステップ230〜231)
、ついで、制御装置50は、ステップモータ45を停止
しくステップ232)、書き込みエラーが発生したとし
て書込補助処理手段22に書き込み指令を出す(ステッ
プ233)、そして、制御装置50は、磁気カード9が
書込補助処理手段22により元のデータの書き込みが完
了するまでステップモータ45を正回転させる(ステッ
プ234〜235) 。 このとき、書込補助処理手段22は第7図に示すように
指令待ちの状態であり(ステップ302)、制御部70
は指令がくると指令の内容を判定する(ステップ303
)。制御部70は、指令が書き込みエラーによる書き込
み指令と判定すると、記憶部71から元のデータを取り
出しくステップ305)、これを書込ドライバ67を介
して書込磁気ヘッド36に与える(ステップ306)、
この動作は、全データが書き込み完了するまで、続けら
れる(ステップ305〜30?) 。 そして、制御部70は、書き込み完了後、記憶部71を
リセットしくステップ304)、処理を終了する。 このようにして書き込みが完了すると、制御装置50は
、ステップモータ45を停止しくステップ236)、使
用不能表示灯13を点灯させ、以後の動作を停止さ−1
)(ステップ237)、ステップ227に移行する。 これにより、磁気カード9は、元のデータが復旧するこ
とになる。 なお、上記実施例では、自動販売機1を例にとって説明
したが、これに限定されない。 [発明の効果〕 以上述べたように本発明は、磁気カードに書き込みエラ
ーが発生しても読み取り前のデータに復旧できるので、
当該磁気カードが他の磁気カード読取書込装置で使用で
きなくなるということがない。
[I had it set to l. (Problems to be Solved by the Invention) However, the above-mentioned conventional magnetic card reading/writing device
Even if a write error occurs, the magnetic card is directly ejected from the device, so there is a drawback that the magnetic card cannot be used from now on. The present invention has been made to solve the above-mentioned drawbacks.
To provide a magnetic card reading/writing device capable of writing first read data to a magnetic card when a writing error occurs. [Means for Solving the Problems] In order to achieve the above object, a magnetic card 1 reading/writing device according to the present invention includes a reading head that reads data from a magnetic card by relative interlocking with the magnetic card, and a magnetic card reading/writing device. The given write data is written to the magnetic card by the relative movement with the magnetic card, and the read data from the read head is processed into predetermined data, the sales amount is subtracted from this data, and the yl magnetic card reader comprising a processing device which processes the data after subtraction and applies it to the write head as write data, and which controls the relative movement between the magnetic card and each of the heads. The writing device is provided with a writing auxiliary processing means for temporarily storing the data read by the reading head and supplying the stored read data to the writing head when a writing error occurs. , and when the writing of data to the magnetic card is completed, the processing device reads the data from the magnetic card via refy & retrieval, compares it with the data after the above deduction, and when there is a discrepancy. The present invention is characterized in that the write auxiliary processing means is activated when a write error occurs. [Operation] A magnetic card is inserted into the magnetic card reading/writing device. Then, the magnetic card reading/writing device In the writing device, the control device reads data from the magnetic card through the reading head, and at the same time supplies the data read by the reading head to the writing auxiliary processing means to store the data at - time.Then, the controller makes the payment. Then, inside the magnetic card reading/writing device, the processing device first subtracts the sales amount from the read data from the reading head, processes the subtracted data, and sends it to the writing head as write data. Then, after the data has been written to the magnetic card, the processing device reads the data from the magnetic card through the resampling read head, compares it with the data after the subtraction, and determines if there is a discrepancy. The write auxiliary processing means is activated on the assumption that a write error has occurred.When the write auxiliary processing means is activated, the write auxiliary processing means writes the stored data as it has been read to the memory card through the write head. As a result, even if a write error occurs on the magnetic card, the data before reading can be restored, so the magnetic card will not become unusable with other magnetic card reading/writing devices. (Example) Hereinafter, the present invention will be explained based on illustrated embodiments. FIG. 1 is a perspective view showing a vending machine using an embodiment of the magnetic card reading/writing device according to the present invention. In FIG. 1, the vending machine is shaped like a rectangular parallelepiped, and the front panel section 2 of the rectangular parallelepiped is provided with case sections 3a, 3b, 3c, and 3d for displaying product samples.
Product selection buttons 4a and 4b with built-in display lamps at the bottom
, 4C14d are provided, and a bill insertion slot 5 and a coin insertion slot 6 are provided.
A change tray 7 is provided at the bottom of the change tray, a product outlet 8 is provided, and a card insertion port 10 into which a magnetic card 9 is inserted is provided. In addition, vending machines [
is provided with an acoustic alarm 11 for notifying the user that a card has been left behind or other audible notifications, a cancel lever 12 for canceling the payment, and an unusable indicator light 13. FIG. 2 is an explanatory diagram showing a magnetic card used in an embodiment of the present invention. This magnetic card 9 is a flexible one made of thin plastic, paper, etc., and has a second magnetic card on its surface.
As shown in FIG. 1, an area 14 is provided for displaying the amount of electricity and its settlement status. and,
Other necessary information (sales amount, issued note name, etc.) is printed on the surface of the magnetic card 9. Further, the magnetic card 9 is provided with a magnetic stripe 15 as a magnetic recording medium on its back surface, as shown in FIG. 2 (II). As shown in FIG. 2 (III), the magnetic stripe 15 has the date of issue, issuing company, amount, and other necessary data coded and recorded as data Cd. FIG. 3 is a configuration diagram showing the internal configuration of the vending machine 1. As shown in FIG. Inside the vending machine 1, a money processing mechanism 18, a magnetic card reading/writing device 19, a payment processing device 20, a product ejection mechanism 21, and a writing auxiliary processing means 22 are provided. Further, the money processing mechanism 18 reads the value and value of the money inserted into the bill insertion slot 5 and the coin insertion slot 6. The 4n card reading/writing device 19 reads data from the magnetic card 9, processes the read data to obtain predetermined data, subtracts the sales proceeds from this data, processes the deducted data, and performs arithmetic processing. give means 20;
The arithmetic processing means 20 receives and receives the written data that has been processed for payment, controls the writing of this written data onto the magnetic card 9, and controls the relative movement between the magnetic card 9 and a head to be described later. Further, the magnetic card reading/writing device 19 reads the data from the magnetic card 9 again after finishing writing the data to the magnetic card 9, compares it with the data after the above-mentioned deduction, and if there is a discrepancy, The write auxiliary processing means 22 is activated and the arithmetic processing means 20 is notified that a write error has occurred. The settlement processing device 20 processes the value data from the money processing mechanism 18 and the magnetic card reading/writing device 19, receives the specification of the product selection buttons 4a, 4b, 4c, and 4d, and based on this, the product discharge WJ It drives the structure 21. The payment processing device 20 also includes a magnetic card reading/writing device ff1.
When receiving a write error notification from 19, the unusable indicator light 13 is turned on and subsequent sales operations are prohibited. The write auxiliary processing means 22 temporarily stores the data read from the magnetic card 9, and when a write error occurs, the stored data as read is transferred to the magnetic card 9.
This is what you write in. Note that the money processing mechanism 18 is not directly related to the present invention, so a description thereof will be omitted hereafter. FIG. 4 is a configuration diagram showing the configuration of the magnetic card reading/writing device 19. Magnetic card reading/writing device 191' is configured as follows. That is, a pair of feed rollers 30 and 31 are provided at position 1 corresponding to the card insertion slot 10 so as to be rotatable in parallel. A reading magnetic head 32 is provided adjacent to the feed roller 30.3. The magnetic reader 32 reads data such as the amount of money and the issuer from the data magnetic stripe 15 of the magnetic card 9. Also, reflective optical reading device 33.34.35
is provided. These reflective optical reading devices 33.
34.35 detects the digit 1 of the magnetic card 9. A write magnetic head 3 is located near the read magnetic head 32.
6 is provided. This write magnetic head 36 is used to write monetary data on the data magnetic stripe 15. The reading magnetic head 32 is provided with a pressing roller 37 . The write magnetic head 36 is provided with a pressing roller 38 . The pair of feed rollers 30.
A pair of feed rollers 39 and 40 are further rotatably provided in parallel to 31. The feed roller 3
9. A punch mechanism 41 is provided on the left side in the drawing with respect to 40. The punch mechanism 41 has a mechanism that can punch holes in the area 14 of the magnetic card 9 in response to a punch command. Also, a pair of rollers 42.4
3 are rotatably provided in parallel, and the roller 4
A card contact detection sensor 44 which also serves as a stopper is provided on the right side of 2.43 in the drawing. The feed roller 30, feed roller 39, and roller 42 are connected to a driving step motor 45 via a mechanism not shown, and rotate according to the rotation of the step motor 45. As the step motor 45 rotates, the rollers 30.31.39.40.42.43 rotate, and the magnetic fields are moved between the rollers 30.3], 39.40, and 42.43. Card 9 moves. The reading magnetic helad 32 and the optical reading device 33, 34.
35, punch mechanism 41, and card contact detection sensor 44
The control section! 50. The control device 50 is also connected to the write magnetic head 36 via a write driver 47 . Further, the control device 50 is configured to rotate the step motor 45 via the motor controller 46. The payment processing device 20 and the control device 50 constitute a processing bag z too. The write auxiliary processing means 22 directly captures and temporarily stores data read from the magnetic car V9 through the reading head 32, and resets the stored data when the write is normal, but when a write error occurs. Sometimes, the stored and read data is given to the write magnetic head 36 to be written onto the magnetic card 9. The operation of the write auxiliary processing means 22 is made up of a data storage processing circuit 65 and a write 1-driver 67. FIG. 5 is a configuration diagram showing the control device 50 and the write auxiliary processing means 22. As shown in FIG. The control device 50 includes an amplifier circuit 51 and an F2F decoder 52.
, an F2F encoder 53, an input/output section 54, and a controller 55. The controller 55 includes a CPL 156, an RO 57, an IIAM 58, an interface 59, and an external interface 60. Although not shown, the CP1 and I56 of the control device 50 are equipped with a timer. Further, the ROM 57 stores a program that implements the control device 50. The data storage processing circuit 65 of the write auxiliary processing means 22 is configured as follows. That is, the reading magnetic head 3
The read data from F2F is amplified by the amplifier circuit 68 and sent to F2F.
The signal is supplied to the decoder 69. The data decoded by the P2F decoder 69 is stored in the storage unit 71 under the control of the control unit 70. The control unit 70 is connected to the input/output unit 54 and controls the controller 55 . It is designed to receive a W. When the control unit 70 receives a report from the controller 55 that the writing is normal, it resets the data stored in the storage unit 71. On the other hand, when the control section 70 receives activation from the controller 55 indicating that a write abnormality has occurred, it supplies the data stored in the storage section 71 to the write magnetic hand 36 via the F2F encoder 72 and the driver 67. Thereby, the magnetic card 9 is restored to the data before being inserted into the magnetic card reading/writing device. The operation of the embodiment configured in this way will be explained. FIG. 6 is a flowchart shown to explain the operation of the magnetic card reading/writing device. FIG. 7 is a flow chart shown to explain the operation of the write auxiliary processing means 22. The control device 50 determines whether the magnetic card 9 has been inserted using the sensor 33 (step 200). When the control device 50 detects insertion of the magnetic card 9 by the sensor 33 (step 200), the control device 50 operates the motor controller 46 to rotate the step motor 45 in the forward direction, and issues a reading command to the write auxiliary processing means 22 (step 200). 201). Then, the control device 50 reads the data on the magnetic card 9 via the reading magnetic head 32, transfers it to the payment processing device 20, and stores it in the storage device (not shown) of the payment processing device 20 (step 202). ). This operation is executed until all data is read (steps 202-20
3). Then, the sensor 34.35 detects the magnetic card 9.
When the step motor 45 reaches a predetermined position, the step motor 45 is stopped (step 204). Here, the write auxiliary processing means 22 is controlled? 1 device 50, and as shown in FIG. 7, reads data from the reading magnetic head 32 (step 300).
), store the data in the storage unit 71 (Step 301)
) and waits for a command from the IIJ control device 50 (step 302). Further, the payment processing device 20 determines whether the stored data can be deducted or whether it is from another card (step 205).
). Here, when the payment processing device 20 determines that the magnetic card 9 can be used (step 205), it lights up the product selection buttons 4a, 4b, and 4C14d of the products that can be sold (step 206). And payment processing device 2
0 waits for product selection buttons 4a, 4b, 4c, and 4d to be pressed (step 207), product selection button 4a
, 4b, 4cs4d are pressed, the payment processing device 20 deducts the amount corresponding to the selling price of the product from the data (step 208'). The data is stored in a storage unit (not shown) (step knob 209), and the payment processing device 20 stores the data after the deduction in the processing device 50.
Transfer to. Then, the control device 50 reversely rotates the step motor 45 via the motor controller 46 in order to position the magnetic card 9 at a predetermined position in the card slot OP (step 210).
The magnetic card 9 is brought into position using the sensors 33, 34, 35 (step 212), the step motor 45
(Step 2). Next, the operation moves on to write data to the magnetic card 9. That is, the control device 50 controls the motor controller 46
The step motor 45 is rotated in the forward direction via the (step 2
13) Write the subtracted data to the magnetic card 9 by applying the write magnetic head 36 via the write driver 47 (
Step 214), the control unit W50 repeats steps 213 to 215 until the writing is completed (step 215), when the writing is completed, the control unit W50
50 stops the step motor 45 (step 2
16). Furthermore, it is determined whether the data written on the magnetic card 9 is correct. That is, the control device 50 reversely rotates the step motor 45 in order to place the magnetic card 9 in the predetermined position of the card insertion slot 10 (step 217).
), when the magnetic card 9 is located at a predetermined position (step 218), the step motor 45 is stopped (step 219), and then the control device 50 rotates the step motor 45 in the forward direction (step 220). The data on the magnetic card 9 is taken into the controller f50 via the read magnetic nozzle 32 (step 22). This machine is executed until all the data has been read (steps 220 to 222). When all the data has been read, the controller 50 stops the step motor 45 (step 223), and The subtracted data is compared with the data just read (step 224). Here, if both are the same, the control device! If it is determined in step 150 (step 225), a reset command is issued (step 226), the step motor 45 is rotated in the reverse direction (step 227), and stopped when the magnetic card 9 reaches the point where it protrudes from the card slot 10. (Step 227
~229). At this time, the write auxiliary processing means 22
As shown in the figure, it is in a state of waiting for a command (step 302).
), When the command is received, the IIJrIj unit 70 determines the content of the command (step 303). When the control unit 70 determines that the command is a reset command, the lid unit 70 resets the storage unit 71 (step 304). Finish the process. On the other hand, if the control device 5o determines that the two do not match (step 225), the control device 50 controls the magnetic card 9
The step motor 45 is rotated in the reverse direction until it is at the predetermined position of the 10 card slots (steps 230 to 231).
Then, the control device 50 stops the step motor 45 (Step 232), determines that a write error has occurred, and issues a write command to the write auxiliary processing means 22 (Step 233). The step motor 45 is rotated in the forward direction until the write auxiliary processing means 22 completes writing of the original data (steps 234 to 235). At this time, the write auxiliary processing means 22 is in a state of waiting for a command as shown in FIG. 7 (step 302), and the control section 70
When a command arrives, it determines the content of the command (step 303
). If the control unit 70 determines that the command is a write command due to a write error, it retrieves the original data from the storage unit 71 (step 305) and provides this to the write magnetic head 36 via the write driver 67 (step 306). ,
This operation continues until all data has been written (steps 305-30?). After the writing is completed, the control unit 70 resets the storage unit 71 (step 304), and ends the process. When the writing is completed in this way, the control device 50 stops the step motor 45 (step 236), turns on the unusable indicator light 13, and stops the subsequent operation.
) (step 237), and the process moves to step 227. As a result, the original data on the magnetic card 9 is restored. In addition, although the said Example demonstrated taking the vending machine 1 as an example, it is not limited to this. [Effects of the Invention] As described above, in the present invention, even if a writing error occurs in a magnetic card, it is possible to restore the data to the data before reading.
There is no possibility that the magnetic card becomes unusable with other magnetic card reading/writing devices.

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

第1図は本発明の実施例が適用された自動販売機を示す
斜視図、第2図は同実施例で使用される磁気カードを示
す説明図、第3図は自動販売機のブロック図、第4図は
磁気カード読取書込装置を示す構成図、第5図は磁気カ
ード読取書込装置の処理装置と書込補助処理手段を示す
ブロック図、第6図は磁気カード読取書込装置の動作を
示すフローチャート、第7図は書込補助処理手段の動作
を示すフローチャートである。 1・・・自動販売機、9・・・磁気カード、19・・・
磁気カード読取書込装置、22・・・書込補助処理手段
(データ記憶処理回路65、書込ドライバ67) 、3
2・・・読取磁気ヘッド、36・・・書込磁気ヘッド、
100・・・処理袋f(清算処理装置20、処理袋ff
50)。 第1因
FIG. 1 is a perspective view showing a vending machine to which an embodiment of the present invention is applied, FIG. 2 is an explanatory diagram showing a magnetic card used in the embodiment, and FIG. 3 is a block diagram of the vending machine. FIG. 4 is a block diagram showing the magnetic card reading/writing device, FIG. 5 is a block diagram showing the processing device and writing auxiliary processing means of the magnetic card reading/writing device, and FIG. 6 is a block diagram showing the magnetic card reading/writing device. Flowchart showing the operation. FIG. 7 is a flowchart showing the operation of the write auxiliary processing means. 1... Vending machine, 9... Magnetic card, 19...
Magnetic card reading/writing device, 22...Writing auxiliary processing means (data storage processing circuit 65, writing driver 67), 3
2... Read magnetic head, 36... Write magnetic head,
100...processing bag f (payment processing device 20, processing bag ff
50). First cause

Claims (1)

【特許請求の範囲】[Claims] 磁気カードとの相対運動により磁気カードからデータを
読み取る読取ヘッドと、磁気カードとの相対連動により
、与えられた書込データを磁気カードに書き込む書込ヘ
ッドと、読取ヘッドからの読取データを処理して所定の
データとし、このデータから販売金額分を差し引き、そ
の差し引き後のデータを処理して書込データとして書込
ヘッドに与える制御をし、かつ磁気カードと前記各ヘッ
ドとの相対運動を制御する処理装置とを備えてなる磁気
カード読取書込装置において、前記読取ヘッドで読み取
ったデータを一時記憶し書き込みエラーが発生した際に
、その記憶している読み取ったままのデータを前記書込
ヘッドに与える書込補助処理手段を設け、かつ上記処理
装置は、磁気カードへのデータの書き込みが終了した際
に、再度読取ヘッドを介して磁気カードからデータを読
み取って、これを上記差し引き後のデータと比較し、不
一致のときに書き込みエラーが発生したとして前記書込
補助処理手段を起動する構成としたことを特徴とする磁
気カード読取書込装置。
A read head reads data from the magnetic card through relative movement with the magnetic card, a write head writes given write data to the magnetic card through relative interlocking with the magnetic card, and a write head processes the read data from the read head. to obtain predetermined data, subtract the sales amount from this data, process the subtracted data, and control the data to be applied to the write head as write data, and control the relative movement between the magnetic card and each of the heads. In a magnetic card reading/writing device, the data read by the reading head is temporarily stored, and when a writing error occurs, the stored data as read is transferred to the writing head. A writing auxiliary processing means is provided, and the processing device reads the data from the magnetic card again through the reading head when writing of data to the magnetic card is completed, and converts it into the data after the above-mentioned deduction. A magnetic card reading/writing device characterized in that the magnetic card reading/writing device is configured to start the write auxiliary processing means on the assumption that a write error has occurred when there is a mismatch.
JP1043968A 1989-02-25 1989-02-25 Magnetic card reader/writer Pending JPH02226554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1043968A JPH02226554A (en) 1989-02-25 1989-02-25 Magnetic card reader/writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1043968A JPH02226554A (en) 1989-02-25 1989-02-25 Magnetic card reader/writer

Publications (1)

Publication Number Publication Date
JPH02226554A true JPH02226554A (en) 1990-09-10

Family

ID=12678510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1043968A Pending JPH02226554A (en) 1989-02-25 1989-02-25 Magnetic card reader/writer

Country Status (1)

Country Link
JP (1) JPH02226554A (en)

Similar Documents

Publication Publication Date Title
JPH03100791A (en) Magnetic card vending machine
JPH02226554A (en) Magnetic card reader/writer
JPH02226555A (en) Magnetic card reader/writer
JPS6237795A (en) Card type vending machine
JPH04354092A (en) Automatic prepaid card vending machine
JPH04314599A (en) Optical information recording card for frequency management
JPH03181005A (en) Method for preventing magnetic card from being copied
JP2642152B2 (en) Card reissue method in card system
JP2622256B2 (en) Product reservation transaction method by card
JPH0351976A (en) Control method for card reader
JPH0348389A (en) Method for deciding authenticity of magnetic card
JPH0253197A (en) Control and processing method for prepaid card sales
JP2730263B2 (en) Card-type vending machine controller
JPH02251497A (en) Magnetic card
JPH0639390Y2 (en) Card type vending machine controller
JPH0477944B2 (en)
JP2514128B2 (en) Prepaid card and its printing method
JPH0568781B2 (en)
JPS6359693A (en) Card type vending machine
JPH05282530A (en) Prepaid card using type automatic vending machine
JPH06101183B2 (en) Warning system for magnetic card reader / writer
JPH0318992A (en) Card reader managing method
JPH02253391A (en) Magnetic card adjustment system
JPH05282535A (en) Card processor
JPH0769978B2 (en) Card type vending machine