JPH05128415A - Automatic compensation method of encode position - Google Patents
Automatic compensation method of encode positionInfo
- Publication number
- JPH05128415A JPH05128415A JP3319833A JP31983391A JPH05128415A JP H05128415 A JPH05128415 A JP H05128415A JP 3319833 A JP3319833 A JP 3319833A JP 31983391 A JP31983391 A JP 31983391A JP H05128415 A JPH05128415 A JP H05128415A
- Authority
- JP
- Japan
- Prior art keywords
- magnetic
- magnetic card
- card
- data
- written
- 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
Links
Landscapes
- Digital Magnetic Recording (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、磁気カードの正規の
エンコード位置に磁気データを書込んで発行する場合の
エンコード位置自動補正方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically correcting an encoded position when magnetic data is written and issued at a regular encoded position of a magnetic card.
【0002】[0002]
【従来の技術】たとえば駅に設置される券売機は発行す
る切符(磁気カード)に所定の磁気データを書込んで発
行するが、その場合の磁気データの書込み位置(エンコ
ード位置)は規約上磁気カードのほぼ中央とされてお
り、そのため磁気カードを一定速度で搬送させている状
態で光電センサによりカード先端を検出し、該検出時点
から設定された時間後に磁気データの書込みを行なう方
法が一般化されている。2. Description of the Related Art For example, a ticket vending machine installed at a station writes predetermined magnetic data on a ticket (magnetic card) to be issued, and in that case, the magnetic data writing position (encoding position) is magnetic according to the regulations. Since it is located almost in the center of the card, a method is generally used in which the tip of the card is detected by a photoelectric sensor while the magnetic card is being transported at a constant speed, and magnetic data is written after a set time from the detection time. Has been done.
【0003】しかし、上記の方法では、券売機等の磁気
カード発行機の機差により光電センサと書込み磁気ヘッ
ドとの相対位置がばらつくため、磁気カードの正規のエ
ンコード位置に正確に書込むことが困難となり、1台ご
とに該相対位置の調整が必要となる煩雑さがあった。However, in the above method, the relative position between the photoelectric sensor and the writing magnetic head varies due to the machine difference of the magnetic card issuing machine such as a ticket vending machine, so that the correct recording position on the magnetic card can be accurately written. It has become difficult, and the relative position has to be adjusted for each device, which is complicated.
【0004】このため実公昭63−31156号公報
に、磁気カードの先端検出から所定数のクロック信号を
書込むと共に、これに続いて磁気データの書き込みを行
ない、次にクロック信号および磁気データの読取りを行
なって磁気データが読取られるまでの間のクロック信号
数を基準数と比較し、該クロック信号数の基準数からの
多少により、以後の磁気カードから上述の所定数クロッ
ク信号を減少または増加させてエンコード位置の修正を
施す技術が開示されている。これによれば磁気カード発
行機の磁気データエンコード位置の調整が機器側におい
て自動的になされることになる。For this reason, in Japanese Utility Model Publication No. 63-31156, a predetermined number of clock signals are written from the detection of the leading edge of the magnetic card, magnetic data is subsequently written, and then the clock signal and magnetic data are read. The number of clock signals until the magnetic data is read is compared with the reference number, and the above-mentioned predetermined number of clock signals is decreased or increased from the subsequent magnetic card depending on the number of the clock signals from the reference number. There is disclosed a technique for correcting the encoding position by using. According to this, the magnetic data encoding position of the magnetic card issuing machine is automatically adjusted on the device side.
【0005】[0005]
【発明が解決しようとする課題】しかし、上述の公報記
載の技術は、磁気カード発行機に通した1枚目の磁気カ
ードはエンコード位置の補正判定に使われ、そのエンコ
ード位置の修正を施されることがないから、その分無駄
を生じるという問題を有していた。However, in the technique described in the above publication, the first magnetic card passed through the magnetic card issuing machine is used for the correction judgment of the encode position and the encode position is corrected. Therefore, there was a problem that it wasted accordingly.
【0006】そこでこの発明は、磁気カード発行機にお
ける光電センサと書込み磁気ヘッドとの相対位置が不要
になると共に、磁気カードの無駄を省くことができるエ
ンコード位置自動補正方法の提供を目的とする。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an automatic encoding position correcting method which eliminates the need for a relative position between a photoelectric sensor and a writing magnetic head in a magnetic card issuing machine and can eliminate waste of the magnetic card.
【0007】[0007]
【課題を解決するための手段】この発明は、磁気カード
に書込むデータのエンコード位置を補正する方法であっ
て、上記磁気カードを一定速度で搬送させて光電センサ
により該磁気カードの先端を検出し、その先端検出時点
から予め定められたタイマ時間経過後に上記磁気データ
の書込みを行ない、次に書込まれた磁気データの読取り
を行なって、エンコード位置にずれがあるときに、該ず
れに対応して上記タイマ時間を修正したのち、当該磁気
カードの先端検出からデータ書込みまでの処理を繰返す
エンコード位置自動補正方法であることを特徴とする。SUMMARY OF THE INVENTION The present invention is a method for correcting the encoded position of data to be written on a magnetic card, in which the magnetic card is conveyed at a constant speed and the tip of the magnetic card is detected by a photoelectric sensor. Then, the magnetic data is written after a predetermined timer time has elapsed from the time when the leading edge was detected, and then the written magnetic data is read, and when there is a deviation in the encoding position, the deviation is dealt with. After correcting the timer time, the automatic encoding position correction method repeats the processes from the detection of the leading end of the magnetic card to the data writing.
【0008】[0008]
【作用】この発明によれば、磁気カードに該カード先端
から所定の距離をおいたエンコード位置に磁気データを
書込んで発行する際、書込まれた磁気データのエンコー
ド位置にずれがあると、このずれ分を修正して再度当該
磁気カードに書込みが行なわれる。According to the present invention, when the magnetic data is written in the magnetic card at an encoding position a predetermined distance from the card tip and is issued, if the encoded position of the written magnetic data is deviated, This deviation is corrected and the magnetic card is rewritten.
【0009】[0009]
【発明の効果】このように同一磁気カードにずれに対応
した再書込みがなされるので、1枚目から磁気データを
正確な位置に書込んで発行することができる。As described above, since the rewriting corresponding to the shift is performed on the same magnetic card, it is possible to write and issue the magnetic data at the correct position from the first sheet.
【0010】[0010]
【実施例】以下、この発明の一実施例を図面に基づき詳
述する。図1はこの発明のエンコード位置自動補正方法
にかかる制御回路を示し、磁気カードAを一定速度で搬
送する搬送経路1が設けられ、この搬送経路1の上流側
に搬送されてくる磁気カードAの先端を検出する光電セ
ンサ2が配置され、この光電センサ2の検出信号がセン
サ入力回路3を通しCPU4に送られるようになされて
いる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a control circuit according to the encoding position automatic correction method of the present invention. A transport path 1 for transporting the magnetic card A at a constant speed is provided, and a magnetic card A transported upstream of the transport path 1 is shown. A photoelectric sensor 2 for detecting the tip is arranged, and a detection signal of this photoelectric sensor 2 is sent to a CPU 4 through a sensor input circuit 3.
【0011】一方、上述の搬送経路1の光電センサ2か
らLなる距離をおいた下流位置に書込み磁気ヘッド5が
設けられ、CPU4はタイマ回路6からのタイムアップ
信号により出力回路7、書込み回路8を通し書込み磁気
ヘッド5によって磁気カードAに書込み処理を施すよう
に構成されている。さらに書込み磁気ヘッド5よりも下
流位置に読取り磁気ヘッド9が設けられ、書込み磁気ヘ
ッド5で磁気カードに書込まれた信号を読取り、これを
読取り回路10および入力回路11を介しCPU4に送
り込むようになされている。また、該CPU4による後
述する処理動作がメモリ12に記録されるように構成さ
れている。On the other hand, a write magnetic head 5 is provided at a downstream position at a distance L from the photoelectric sensor 2 on the above-mentioned transport path 1, and the CPU 4 receives the time-up signal from the timer circuit 6 to output the output circuit 7 and the write circuit 8. The magnetic card A is configured to be written by the write magnetic head 5. Further, a read magnetic head 9 is provided at a position downstream of the write magnetic head 5 so that the write magnetic head 5 reads the signal written on the magnetic card and sends it to the CPU 4 via the read circuit 10 and the input circuit 11. Has been done. The processing operation described later by the CPU 4 is recorded in the memory 12.
【0012】さらに、この実施例のエンコード位置自動
補正方法は、図4に示すように磁気カード中央のデータ
のエンコード位置の前後のプリアンブル、ポストアンブ
ルに同数ずつのクロック信号a〜aを上述の書込み磁気
ヘッド5で書込み、次に読取り磁気ヘッド9でプリアン
ブルのクロック信号数を読取って、これが規定数と一致
するか、増減しているかによって前述のCPU4がエン
コーダ位置の判定を行なう。そして、一致するとき、つ
まりデータが正しいエンコード位置に書込まれていると
きに磁気カードAをそのまま図1の左方へ送り出し、一
致しないときは磁気カードAを元の位置まで戻し、その
不一致分タイマ回路6のタイマ値xを変更して磁気カー
ドAに対して再度書込みを行なうように構成されてい
る。Further, in the automatic encoding position correcting method of this embodiment, as shown in FIG. 4, the same number of clock signals a to a are added to the preamble and the postamble before and after the encoding position of the data in the center of the magnetic card as described above. The magnetic head 5 writes and then the read magnetic head 9 reads the number of preamble clock signals, and the CPU 4 determines the encoder position depending on whether the number of preamble clock signals is equal to a specified number or is increased or decreased. Then, when they match, that is, when the data is written in the correct encoding position, the magnetic card A is sent to the left side of FIG. 1 as it is, and when they do not match, the magnetic card A is returned to the original position and the mismatch The timer value x of the timer circuit 6 is changed and the magnetic card A is rewritten.
【0013】そのためタイマ回路6のタイマ値xは光電
センサ2が磁気カードAの先端を検出した時点から、磁
気カードAが書込み磁気ヘッド5に至った時間後に磁気
カードAにプリアンブルのクロック信号a〜aを書込む
ように設定されていると共に、読取り磁気ヘッド10に
よるプリアンブルの読取り判定時に誤差がある場合に、
前述のCPU4が上記タイマ値xを誤差分に応じて変更
するようになされている。Therefore, the timer value x of the timer circuit 6 is the preamble clock signal a to the magnetic card A after the time when the magnetic card A reaches the write magnetic head 5 from the time when the photoelectric sensor 2 detects the tip of the magnetic card A. When it is set to write a, and there is an error in the reading judgment of the preamble by the reading magnetic head 10,
The CPU 4 described above is adapted to change the timer value x according to the error.
【0014】次に、本発明のエンコード位置自動補正方
法を図2のフローチャート、および図3のタイムチャー
トを参照しつつ説明する。磁気カードAが所定位置から
送られて光電センサ2がこれを検出し、図3に示すセン
サ出力がCPU4に送られ、該CPU4がタイマ回路6
をセットする(ステップn1)。Next, the encoding position automatic correction method of the present invention will be described with reference to the flowchart of FIG. 2 and the time chart of FIG. The magnetic card A is sent from a predetermined position, the photoelectric sensor 2 detects it, the sensor output shown in FIG. 3 is sent to the CPU 4, and the CPU 4 causes the timer circuit 6 to operate.
Is set (step n1).
【0015】上述のタイマ回路6は図4のxmsの経過
後にタイムアップし、そのタイムアップ時点から書込み
磁気ヘッド5が磁気カードAにプリアンブル分、データ
分等の信号書込みを行ない、次に該書込まれた信号が読
取り磁気ヘッド9によって読取られる(ステップn2,
n3,n4)。The above-mentioned timer circuit 6 times up after the lapse of xms in FIG. 4, the writing magnetic head 5 writes signals for the preamble, data, etc. to the magnetic card A from the time-up time, and then the writing is performed. The embedded signal is read by the read magnetic head 9 (step n2,
n3, n4).
【0016】CPU4は上述の読取り信号のうち、プリ
アンブル分のクロック信号数を規定数と照合し、合致し
ているときは磁気カードAの送り出し処理を終了する
(ステップn5)。Of the above-mentioned read signals, the CPU 4 collates the number of clock signals for the preamble with a prescribed number, and if they match, terminates the sending-out process of the magnetic card A (step n5).
【0017】しかし、合致していないときは、そのずれ
数からタイマ回路6の補正値yを算出して該タイマ回路
6のタイマ値xを修正すると共に、磁気カードAを元の
位置へ引き戻す(ステップn6,n7,n8)。そし
て、再びステップn1からn8までの処理を施す。However, when they do not match, the correction value y of the timer circuit 6 is calculated from the deviation number, the timer value x of the timer circuit 6 is corrected, and the magnetic card A is returned to its original position ( Steps n6, n7, n8). Then, the processes of steps n1 to n8 are performed again.
【0018】このように発行する磁気カードAのエンコ
ード位置を、プリアンブルのクロックパルス数から読取
って正規の位置にあるか否かを判定し、正規の位置にな
いときは磁気カードAを引き戻すと共に、エンコード位
置のずれ分を修正して再書込みを行なうものであるか
ら、光電センサ2と書込み用磁気ヘッド5との距離Lの
調整を施すことなくエンコード位置の自動補正が可能に
なると共に、搬送経路1に通した1枚目の磁気カードA
から正規のエンコードに信号を書込むことが可能とな
る。The encoding position of the magnetic card A thus issued is read from the number of clock pulses of the preamble to determine whether it is in the proper position. When it is not in the proper position, the magnetic card A is pulled back and Since the misalignment of the encoding position is corrected and rewriting is performed, the encoding position can be automatically corrected without adjusting the distance L between the photoelectric sensor 2 and the writing magnetic head 5, and the transport path can be obtained. The first magnetic card A passed through 1.
It is possible to write a signal to a regular encoding from.
【図1】この発明のエンコード位置自動補正方法の説明
に用いる制御回路図。FIG. 1 is a control circuit diagram used for explaining an encoding position automatic correction method according to the present invention.
【図2】この発明のエンコード位置自動補正方法におけ
る処理動作を示すフローチャート。FIG. 2 is a flowchart showing a processing operation in the encoding position automatic correction method of the present invention.
【図3】この発明のエンコード位置自動補正方法におけ
るタイムチャート。FIG. 3 is a time chart in the encoding position automatic correction method of the present invention.
【図4】この発明のエンコード位置自動補正方法に磁気
カードのエンコード位置を示す平面図。FIG. 4 is a plan view showing the encode position of the magnetic card in the encode position automatic correction method of the present invention.
1…搬送経路 2…光電センサ 4…CPU 5…書込み磁気ヘッド 6…タイマ回路 9…読取り磁気ヘッド A…磁気カード 1 ... Transport path 2 ... Photoelectric sensor 4 ... CPU 5 ... Write magnetic head 6 ... Timer circuit 9 ... Read magnetic head A ... Magnetic card
Claims (1)
置を補正する方法であって、上記磁気カードを一定速度
で搬送させて光電センサにより該磁気カードの先端を検
出し、その先端検出時点から予め定められたタイマ時間
経過後に上記磁気データの書込みを行ない、次に書込ま
れた磁気データの読取りを行なって、エンコード位置に
ずれがあるときに、該ずれに対応して上記タイマ時間を
修正したのち、当該磁気カードの先端検出からデータ書
込みまでの処理を繰返すエンコード位置自動補正方法。1. A method for correcting an encoding position of data to be written on a magnetic card, wherein the magnetic card is conveyed at a constant speed, a photoelectric sensor detects a front end of the magnetic card, and the front end is detected in advance. The magnetic data is written after the lapse of a predetermined timer time, the written magnetic data is read next, and when there is a deviation in the encoding position, the timer time is corrected in response to the deviation. After that, an encoding position automatic correction method in which the processes from the detection of the leading edge of the magnetic card to the data writing are repeated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3319833A JPH05128415A (en) | 1991-11-06 | 1991-11-06 | Automatic compensation method of encode position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3319833A JPH05128415A (en) | 1991-11-06 | 1991-11-06 | Automatic compensation method of encode position |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05128415A true JPH05128415A (en) | 1993-05-25 |
Family
ID=18114726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3319833A Pending JPH05128415A (en) | 1991-11-06 | 1991-11-06 | Automatic compensation method of encode position |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05128415A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005044453A (en) * | 2003-07-24 | 2005-02-17 | Sankyo Seiki Mfg Co Ltd | Method for calculating correction value of writing position of magnetic information writing/reading device and method for calculating correction value of writing position |
-
1991
- 1991-11-06 JP JP3319833A patent/JPH05128415A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005044453A (en) * | 2003-07-24 | 2005-02-17 | Sankyo Seiki Mfg Co Ltd | Method for calculating correction value of writing position of magnetic information writing/reading device and method for calculating correction value of writing position |
JP4500021B2 (en) * | 2003-07-24 | 2010-07-14 | 日本電産サンキョー株式会社 | Write position correction value calculation method and write position correction value calculation program for magnetic information writing / reading apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0678131B2 (en) | Friction separation paper feed control method | |
JPH05128415A (en) | Automatic compensation method of encode position | |
JP2806492B2 (en) | Data writing device for magnetic card | |
JPS6220036Y2 (en) | ||
JP3245902B2 (en) | Redundant bit setting device for magnetic ticket | |
JP2911214B2 (en) | Printing control device | |
JPH056232B2 (en) | ||
JP2001136348A (en) | Method and device for automatically adjusting image line sensor read start time, recording medium having program for automatically adjusting image line sensor read start time recorded thereon, and recording medium having image data read processing program recorded thereon | |
JPS6331156Y2 (en) | ||
JPH03216065A (en) | Original reader | |
JP3270855B2 (en) | Media position control device | |
JP3739590B2 (en) | Media reader | |
JPH06301909A (en) | Magnetic information recording method | |
JP2725583B2 (en) | Optical reader | |
JP2581881Y2 (en) | Card read / write device | |
JP3429893B2 (en) | Magnetic recording media processing equipment for automatic ticket gates | |
JPH07147049A (en) | Ticket machine | |
JP4480247B2 (en) | Media processing device | |
JPH0728926A (en) | Magnetic medium reading device | |
JP2741567B2 (en) | Read data judgment method | |
JPH10177625A (en) | Ic card reader and method for positioning stop of ic card | |
JP2002216173A (en) | Error monitoring method for processing equipment | |
JPH08329201A (en) | Data writing device for magnetic card | |
JPH0581493A (en) | Magnetic card writing clock adjustment method | |
JPH06195889A (en) | Magnetic medium reading device |