JPH08329201A - Data writing device for magnetic card - Google Patents

Data writing device for magnetic card

Info

Publication number
JPH08329201A
JPH08329201A JP7134431A JP13443195A JPH08329201A JP H08329201 A JPH08329201 A JP H08329201A JP 7134431 A JP7134431 A JP 7134431A JP 13443195 A JP13443195 A JP 13443195A JP H08329201 A JPH08329201 A JP H08329201A
Authority
JP
Japan
Prior art keywords
magnetic card
clocks
read
data
clock
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
JP7134431A
Other languages
Japanese (ja)
Inventor
Hiromi Ichikawa
裕美 市川
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.)
TEC CORP
Original Assignee
TEC 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 TEC CORP filed Critical TEC CORP
Priority to JP7134431A priority Critical patent/JPH08329201A/en
Publication of JPH08329201A publication Critical patent/JPH08329201A/en
Priority to US08/960,538 priority patent/US5957108A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To perform automatic correction so as to accurately write the data from a prescribed dimensional position based on the leading edge part of a magnetic card. CONSTITUTION: Clock data is written in the carried magnetic card by a write head 16, and data write is started a prescribed number of clocks after the leading edge part of the magnetic card. Contents written in the magnetic card are read by a read head 17. The number of newly read clocks is successively added to calculate a running average of the number of prescribed clocks by an integrating means 21 with respect to the total number of read clocks of the magnetic card read by the read head 17, thus obtaining an average total number of clocks. A calculation means 21 obtains the number of correction clocks corresponding to the standard number of clocks from the leading edge part of the magnetic card to the data write start position based on a ratio of the average total number of clocks to the standard total number of clocks. Data is written in the carried magnetic card this number of correction clocks after the leading edge part of the magnetic card by a control means 21.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、磁気カードにデータを
書き込む磁気カードのデータ書込装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic card data writing device for writing data to a magnetic card.

【0002】[0002]

【従来の技術】従来、磁気カードのデータ書込装置にお
いては、磁気カードをその一方の先端を始端部として搬
送する搬送手段を設け、この搬送手段によって搬送され
る磁気カードの搬送経路中に磁気カードの始端部を検知
するセンサおよび書込ヘッドを順に配設している。
2. Description of the Related Art Conventionally, a data writing device for a magnetic card is provided with a transporting means for transporting the magnetic card with one end thereof as a starting end portion, and a magnetic card is transported in a transporting path of the magnetic card transported by the transporting means. A sensor for detecting the starting end of the card and a writing head are arranged in this order.

【0003】磁気カードへのデータの書込時には、搬送
手段によって磁気カードを搬送し、この磁気カードの始
端部をセンサで検知したときに書込ヘッドからクロック
出力を開始し、センサによって検知された時点から所定
のクロック数後に規定クロック数のデータを磁気カード
に書き込む。
At the time of writing data to the magnetic card, the magnetic card is conveyed by the conveying means, and when the sensor detects the leading end of the magnetic card, the clock output from the write head is started and detected by the sensor. After a predetermined number of clocks from the point in time, a prescribed number of clocks of data is written to the magnetic card.

【0004】そして、このような磁気カードでは、磁気
カードの始端部とデータ開始位置との間およびデータ終
了位置と磁気カードの終端部との間にクロックエリアが
それぞれ設定されるが、磁気カードの始端部を基準とし
てデータの書き込みおよび読み取りが行なわれるため、
データ開始位置が決定される前クロックエリアの寸法精
度が厳しく求められる。
In such a magnetic card, clock areas are set between the start end of the magnetic card and the data start position and between the data end position and the end of the magnetic card. Since data is written and read with the start end as a reference,
The dimensional accuracy of the clock area before the data start position is determined is strictly required.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来の
磁気カードのデータ書込装置では、磁気カードの始端部
とデータ開始位置との間の前クロックエリアに書き込む
クロック数すなわちデータ書込開始位置などが固定パラ
メータとして設定されているため、搬送手段のモータの
回転誤差や経年変化、装置周囲の温度や湿度などの環境
変化などには対応できず、データ書込開始位置の位置ず
れが生じる問題がある。
However, in the conventional magnetic card data writing device, the number of clocks to be written in the previous clock area between the start end of the magnetic card and the data start position, that is, the data writing start position, etc. Since it is set as a fixed parameter, it cannot cope with rotation error of the motor of the conveyance means, secular change, environmental changes such as temperature and humidity around the device, and there is a problem that the data write start position is displaced. .

【0006】本発明は、このような点に鑑みなされたも
ので、磁気カードの始端部を基準とした所定の寸法位置
からデータを正確に書き込むように自動補正できる磁気
カードのデータ書込装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and provides a magnetic card data writing device capable of automatically correcting data so as to accurately write data from a predetermined dimensional position with respect to the starting end of the magnetic card. The purpose is to provide.

【0007】[0007]

【課題を解決するための手段】本発明の磁気カードのデ
ータ書込装置は、磁気カードを搬送する搬送手段と、こ
の搬送手段によって搬送される磁気カードの始端部を検
知するセンサと、前記搬送手段によって搬送される磁気
カードの始端部が前記センサで検知された時点からクロ
ック出力して所定のクロック数後にデータを磁気カード
に書き込む書込ヘッドと、前記搬送手段によって搬送さ
れる磁気カードに書き込まれた内容を読み取る読取ヘッ
ドと、この読取ヘッドで読み取られる磁気カードの読取
総クロック数について新しい読取分を順次加えながら所
定の読取数分を移動平均して平均総クロック数を求める
積分手段と、前記磁気カードの全長域の標準総クロック
数、磁気カードの始端部からデータの開始位置までの標
準クロック数を記憶する記憶手段と、前記平均総クロッ
ク数と標準総クロック数との比に基づいて、前記磁気カ
ードの始端部からデータ書込開始位置までの標準クロッ
ク数に相当する補正クロック数を求める演算手段と、前
記搬送手段により搬送される磁気カードに対して前記書
込ヘッドにより磁気カードの始端部から前記演算手段で
求められた補正クロック数後にデータを書き込ませる制
御手段とを備えたものである。
SUMMARY OF THE INVENTION A magnetic card data writing apparatus according to the present invention comprises a carrying means for carrying a magnetic card, a sensor for detecting a leading end of the magnetic card carried by the carrying means, and the carrying means. A write head for outputting data to the magnetic card after a predetermined number of clocks from the time when the sensor detects the starting end of the magnetic card carried by the means, and writing on the magnetic card carried by the carrying means. A reading head for reading the read contents, and an integrating means for moving average of a predetermined number of readings to obtain an average total number of clocks while sequentially adding new readings for the total number of reading clocks of the magnetic card read by the reading head. Enter the standard total number of clocks in the full length area of the magnetic card and the standard number of clocks from the beginning of the magnetic card to the data start position. Storage means for calculating the correction clock number corresponding to the standard clock number from the starting end of the magnetic card to the data writing start position, based on the ratio of the average total clock number and the standard total clock number. And a control means for writing data to the magnetic card conveyed by the conveying means from the start end of the magnetic card by the write head after the number of correction clocks calculated by the arithmetic means.

【0008】[0008]

【作用】本発明の磁気カードのデータ書込装置では、磁
気カードを搬送手段で搬送し、磁気カードの始端部がセ
ンサで検知された時点からクロック出力する書込ヘッド
にて所定のクロック数後にデータを磁気カードに書き込
み、読取ヘッドで磁気カードに書き込まれた内容を読み
取る。読取ヘッドで読み取られる磁気カードの読取総ク
ロック数について新しい読取分を順次加えながら所定の
読取数分を移動平均して平均総クロック数を求め、さら
に、平均総クロック数と標準総クロック数との比に基づ
いて、磁気カードの始端部からデータ書込開始位置まで
の標準クロック数に相当する補正クロック数を求める。
そして、搬送手段により搬送される磁気カードに対し
て、磁気カードの始端部から演算手段で求められた補正
クロック数後にデータを書き込ませる。
In the data writing apparatus for a magnetic card of the present invention, the magnetic card is conveyed by the conveying means, and the clock is output from the time when the starting end of the magnetic card is detected by the sensor, and the write head outputs a predetermined number of clocks. Data is written to the magnetic card, and the read head reads the content written on the magnetic card. Regarding the total reading clock number of the magnetic card read by the reading head, a new reading amount is sequentially added, and the predetermined total reading number is moving averaged to obtain the average total clock number. Furthermore, the average total clock number and the standard total clock number are calculated. Based on the ratio, the correction clock number corresponding to the standard clock number from the start end of the magnetic card to the data writing start position is obtained.
Then, data is written to the magnetic card carried by the carrying means after the correction clock number calculated by the computing means from the start end of the magnetic card.

【0009】[0009]

【実施例】以下、本発明の磁気カードのデータ書込装置
の一実施例の構成を図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of an embodiment of a magnetic card data writing apparatus of the present invention will be described below with reference to the drawings.

【0010】図3は磁気カード1の一例を示す。この磁
気カード1は、搬送方向に細長い矩形に形成され、始端
部1aの一方の角部に切欠部2が形成され、終端部1bの近
傍に切り離し可能とするミシン目3が形成され、切欠部
2側の縁部に沿って磁気記録可能とする磁気記録帯4が
形成されている。
FIG. 3 shows an example of the magnetic card 1. This magnetic card 1 is formed in a slender rectangular shape in the carrying direction, has a notch 2 at one corner of a start end 1a, and has a perforation 3 which is detachable near the end 1b. A magnetic recording band 4 that enables magnetic recording is formed along the edge portion on the second side.

【0011】磁気カード1の磁気記録帯4には、始端部
1aから前クロックエリアC1 、データエリアD、後クロ
ックエリアC2 が順に配置されている。なお、前クロッ
クエリアC1 は長さ寸法が規定され、データエリアDは
クロック数が規定され、後クロックエリアC2 は規定長
さ寸法以上に規定されている。データエリアDの開始位
置STX にはスタートフラグが記録され、終了位置ETX に
はエンドフラグが記録される。
The magnetic recording band 4 of the magnetic card 1 has a start end portion.
A front clock area C1, a data area D, and a rear clock area C2 are sequentially arranged from 1a. The length dimension of the front clock area C1 is regulated, the number of clocks is regulated in the data area D, and the rear clock area C2 is regulated to be longer than the regulated length dimension. A start flag is recorded at the start position STX of the data area D, and an end flag is recorded at the end position ETX.

【0012】図2はデータ書込装置の概略構造を示し、
磁気カード1が通過可能とする搬送通路11が形成され、
この搬送通路11の下側に沿って磁気カード1の始端部1a
を先端として搬送する搬送手段12が配設されている。搬
送手段12は、搬送通路11の下側に沿って複数の搬送ベル
ト13が回転自在に張設され、この複数の搬送ベルト13に
モータ14から回転駆動力が伝達される。
FIG. 2 shows a schematic structure of the data writing device.
A transport passage 11 through which the magnetic card 1 can pass is formed,
Along the lower side of the transport passage 11, the starting end 1a of the magnetic card 1
Conveying means 12 for conveying with the tip as a tip is provided. In the conveying means 12, a plurality of conveyor belts 13 are rotatably stretched along the lower side of the conveying passage 11, and a rotational driving force is transmitted from a motor 14 to the plurality of conveyor belts 13.

【0013】搬送通路11の上面には、搬送方向の上流側
から、搬送される磁気カード1の始端部1aを検知するセ
ンサ15、磁気カード1の磁気記録帯4にデータを書き込
む書込ヘッド16、書き込まれたデータを読み取る読取ヘ
ッド17が順に配設されている。
On the upper surface of the transport passage 11, from the upstream side in the transport direction, a sensor 15 for detecting the starting end portion 1a of the magnetic card 1 to be transported, and a write head 16 for writing data on the magnetic recording band 4 of the magnetic card 1. A reading head 17 for reading the written data is sequentially arranged.

【0014】図1はデータ書込装置のブロック図を示
し、21はデータ書込装置全体を制御するCPUで、この
CPU21のシステムバスに、プログラム等を記憶した記
憶手段(第2の記憶手段)としてのROM22、各種デー
タを書込読出可能とする記憶手段(第1の記憶手段)と
してのRAM23がそれぞれ接続されている。
FIG. 1 shows a block diagram of a data writing device. Reference numeral 21 denotes a CPU for controlling the entire data writing device, and storage means (second storage means) for storing programs and the like on a system bus of the CPU 21. And a RAM 23 as a storage means (first storage means) capable of writing and reading various data.

【0015】さらに、CPU21のシステムバスには、書
込ヘッド16に対する書込信号および読取ヘッド17からの
読取信号を処理するヘッド回路24、センサ15からの検知
信号を処理するセンサ回路25、モータ14の駆動を制御す
るモータ回路26が接続されている。
Further, the system bus of the CPU 21 has a head circuit 24 for processing a write signal to the write head 16 and a read signal from the read head 17, a sensor circuit 25 for processing a detection signal from the sensor 15, and a motor 14. A motor circuit 26 for controlling the drive of is connected.

【0016】そして、ROM22には、磁気カード1の磁
気記録帯4の全長の長さおよび標準総クロック数などの
標準値、磁気カード1の磁気記録帯4に書き込まれる各
クロックエリアC1 ,C2 およびデータエリアDの長さ
および標準クロック数などの標準値、センサ15から書込
ヘッド16までの長さおよび標準クロック数などの標準値
がそれぞれ書き込まれている。
In the ROM 22, standard values such as the total length of the magnetic recording band 4 of the magnetic card 1 and the standard total number of clocks, the clock areas C1 and C2 written in the magnetic recording band 4 of the magnetic card 1, and Standard values such as the length of the data area D and the standard clock number, and standard values such as the length from the sensor 15 to the write head 16 and the standard clock number are respectively written.

【0017】また、RAM23は、読取ヘッド17で読み取
られたクロック数をカウントする機能、読取ヘッド17で
読み取られる磁気カード1の読取総クロック数を順次記
憶する機能を有する。
The RAM 23 also has a function of counting the number of clocks read by the read head 17 and a function of sequentially storing the total number of read clocks of the magnetic card 1 read by the read head 17.

【0018】さらに、CPU21は、以下の機能をプログ
ラムとして有している。
Further, the CPU 21 has the following functions as a program.

【0019】搬送される磁気カード1の先端がセンサ15
で検知された時点からクロック出力させて所定のクロッ
ク数後に規定クロック数のデータを磁気カード1の磁気
記録帯4に書き込ませる書込手段の機能。
The tip of the conveyed magnetic card 1 is the sensor 15
The function of a writing means for outputting a clock from a time point detected by the above and writing a predetermined number of clocks of data to the magnetic recording band 4 of the magnetic card 1 after a predetermined number of clocks.

【0020】読取ヘッド17で読み取られる磁気カード1
の読取総クロック数について新しい読取分を順次加えな
がら所定の読取数分(例えば10回分)を移動平均して
平均総クロック数を求める積分手段の機能。
Magnetic card 1 read by the reading head 17
With respect to the total number of read clocks, the function of the integration means for obtaining an average total number of clocks by moving-averaging a predetermined number of times (for example, 10 times) while sequentially adding new readings.

【0021】平均総クロック数と標準総クロック数との
比に基づいて、磁気カード1の始端部1aからデータ書込
開始位置STX までの標準クロック数に相当する補正クロ
ック数を求める第1の演算手段の機能。
A first calculation for obtaining a correction clock number corresponding to the standard clock number from the starting end 1a of the magnetic card 1 to the data writing start position STX based on the ratio of the average total clock number and the standard total clock number. Function of the means.

【0022】平均総クロック数と標準総クロック数との
比に基づいて、センサ15から書込ヘッド16までの標準ク
ロック数に相当する補正クロック数を求める第2の演算
手段の機能。
The function of the second arithmetic means for obtaining the correction clock number corresponding to the standard clock number from the sensor 15 to the write head 16 based on the ratio of the average total clock number and the standard total clock number.

【0023】搬送手段12により搬送される磁気カード1
の始端部1aをセンサ15で検知した時点から、第1および
第2の演算手段で求められた補正クロック数を加算した
クロック数後にデータを書き込ませることにより、磁気
カード1の始端部1aから第1の演算手段で求められた補
正クロック数後にデータを書き込ませる制御手段の機
能。
The magnetic card 1 carried by the carrying means 12
The data is written after the number of clocks obtained by adding the correction clock numbers obtained by the first and second arithmetic means from the time when the sensor 15 detects the beginning 1a of the The function of the control means for writing the data after the number of correction clocks calculated by the first calculation means.

【0024】次に、本実施例の作用を説明する。Next, the operation of this embodiment will be described.

【0025】まず、磁気カード1への書込読取動作を、
図4のタイミングチャートを参照して説明する。
First, the writing / reading operation to / from the magnetic card 1 will be described.
This will be described with reference to the timing chart of FIG.

【0026】搬送通路11内の磁気カード1の始端部1aを
先端として搬送し、その磁気カード1の始端部1aをセン
サ15で検知したら、書込ヘッド16からクロックデータの
磁気出力を開始する。
When the starting end 1a of the magnetic card 1 in the carrying path 11 is carried as the leading end and the starting end 1a of the magnetic card 1 is detected by the sensor 15, magnetic writing of clock data from the write head 16 is started.

【0027】磁気カード1の始端部1aが書込ヘッド16の
位置に達すると、磁気カード1の磁気記録帯4に対し
て、クロックデータを書き込みながら、センサ15の検知
時点から所定のクロック数後に規定クロック数の実際の
データを書き込み、さらに、そのデータの書き込み後に
クロックデータを終端部1bまで書き込む。そして、デー
タ書込開始位置STX は、平均総クロック数と標準総クロ
ック数との比に基づいて求められる補正クロック数後に
補正されるものであり、これらについては後述する。
When the starting end 1a of the magnetic card 1 reaches the position of the write head 16, while writing clock data to the magnetic recording band 4 of the magnetic card 1, a predetermined number of clocks elapses from the time when the sensor 15 detects the clock data. The actual data of the specified number of clocks is written, and further, the clock data is written to the terminal end portion 1b after the writing of the data. The data writing start position STX is corrected after the correction clock number obtained based on the ratio of the average total clock number and the standard total clock number, which will be described later.

【0028】磁気カード1の磁気記録帯4への書き込み
とともに、読取ヘッド17で磁気カード1に書き込まれた
内容を読み取り、読取ヘッド17で読み取ったクロック信
号をRAM23でカウントし、各エリアC1 ,D,C2 の
クロック数や読取総クロック数を求める。
Along with the writing to the magnetic recording band 4 of the magnetic card 1, the contents written in the magnetic card 1 are read by the read head 17, the clock signals read by the read head 17 are counted in the RAM 23, and each area C1, D is read. , C2 clock count and total read clock count.

【0029】読取ヘッド17からの読取出力がなくなった
ら、あるいは図示しないを通過検知センサで磁気カード
1の通過を検知したら、書込ヘッド16からの磁気出力を
終了する。
When there is no read output from the read head 17, or when the passage detection sensor (not shown) detects the passage of the magnetic card 1, the magnetic output from the write head 16 is terminated.

【0030】そして、磁気カード1の磁気記録帯4に書
き込まれるフォーマットは、図5に示すように、磁気カ
ード1の磁気記録帯4の書き込み範囲すなわち磁気カー
ド1の全長域に対して、始端部1aから前クロックエリア
C1 、データエリアD、後クロックエリアC2 の順に書
き込まれ、データエリアDの開始位置STX にはスタート
フラグが書き込まれ、終了位置ETX にはエンドフラグが
書き込まれる。
The format written in the magnetic recording band 4 of the magnetic card 1 is, as shown in FIG. 5, a start end portion with respect to the writing range of the magnetic recording band 4 of the magnetic card 1, that is, the entire length region of the magnetic card 1. From 1a, the front clock area C1, the data area D, and the rear clock area C2 are written in this order. A start flag is written at the start position STX of the data area D and an end flag is written at the end position ETX.

【0031】次に、CPU21の積分手段の機能による平
均総クロック数の求め方について説明する。
Next, how to obtain the average total number of clocks by the function of the integrating means of the CPU 21 will be described.

【0032】読取ヘッド17で読み取られる磁気カード1
の全長域の読取総クロック数が、磁気カード1の書込読
取動作毎にRAM23に順次蓄積記憶される。そして、書
込読取動作毎に新しい読取分の読取総クロック数を順次
加えながら所定の読取数分を移動平均し、平均総クロッ
ク数を求める。
Magnetic card 1 read by the reading head 17
The total number of read clocks in the full length area of is sequentially accumulated and stored in the RAM 23 for each writing / reading operation of the magnetic card 1. Then, for each writing / reading operation, a new reading total number of reading clocks is sequentially added, and a predetermined number of readings are moving averaged to obtain an average total number of clocks.

【0033】具体例を図6に示し、平均化する数を10
回分に仮定すると、図6(a) に示すように、書込読取動
作の10回目までは、その回数までの読取総クロック数
の総数をその回数分で割って平均値を求め、それを平均
総クロック数とする。
A concrete example is shown in FIG. 6, and the number to be averaged is 10
Assuming the number of times, as shown in FIG. 6 (a), until the 10th write / read operation, the total number of read clocks up to that number is divided by the number of times to obtain an average value, and the average value is calculated. The total number of clocks.

【0034】そして、図6(b) に示すように、11回目
の書込読取動作によって読取総クロック数が得られたと
き、2回目から11回目までの書込読取動作の読取総ク
ロック数の総数を母数の10で割って平均値を求める。
Then, as shown in FIG. 6B, when the total read clock number is obtained by the 11th write / read operation, the total read clock number of the second to 11th write / read operations is Divide the total number by 10 of the parameter to obtain the average value.

【0035】さらに、図6(c) に示すように、12回目
の書込読取動作によって読取総クロック数が得られたと
き、3回目から12回目までの書込読取動作の読取総ク
ロック数の総数を母数の10で割って平均値を求める。
Further, as shown in FIG. 6C, when the total number of read clocks is obtained by the twelfth write / read operation, the total number of read clocks of the third to twelfth read / write operations is Divide the total number by 10 of the parameter to obtain the average value.

【0036】このように、書込読取動作毎に新しい読取
分の読取総クロック数を順次加えながら所定の読取数分
を移動平均し、平均総クロック数を求める。
In this way, the average total number of clocks is obtained by sequentially adding the new total number of read clocks for each read / write operation and averaging a predetermined number of reads.

【0037】次に、CPU21の演算手段の機能による補
正クロック数の求め方について説明する。
Next, how to obtain the number of correction clocks by the function of the calculating means of the CPU 21 will be described.

【0038】標準総クロック数をCLK1、求められた平均
総クロック数をCLK2として、補正係数CLK3=CLK2/CLK1
を求める。
Correction coefficient CLK3 = CLK2 / CLK1 where CLK1 is the standard total number of clocks and CLK2 is the calculated average total number of clocks.
Ask for.

【0039】この補正係数CLK3を磁気カード1の始端部
1aからデータ書込開始位置STX までの標準クロック数に
乗算し、磁気カード1の始端部1aからデータ書込開始位
置STX までの補正クロック数を得る。さらに、補正係数
CLK3をセンサ15から書込ヘッド16までの標準クロック数
に乗算し、センサ15から書込ヘッド16までの補正クロッ
ク数を得る。
This correction coefficient CLK3 is used as the starting end of the magnetic card 1.
The standard clock number from 1a to the data writing start position STX is multiplied to obtain the correction clock number from the starting end 1a of the magnetic card 1 to the data writing start position STX. In addition, the correction factor
CLK3 is multiplied by the standard clock number from the sensor 15 to the write head 16 to obtain the corrected clock number from the sensor 15 to the write head 16.

【0040】次に、書込読取動作を具体例を挙げて説明
する。
Next, the writing / reading operation will be described with a specific example.

【0041】ROM22に記憶された標準値は、図7に示
すように、磁気カード1の磁気平均記録密度を210DP
I 、磁気カード1の長さL1 を241.9mm、磁気カー
ド1の始端部1aからデータ書込開始位置STX までの長さ
L2 を10mm、データエリアDのクロック数を1700
bit とする。
The standard value stored in the ROM 22 is, as shown in FIG. 7, the magnetic average recording density of the magnetic card 1 of 210 DP.
I, the length L1 of the magnetic card 1 is 241.9 mm, the length L2 from the starting end 1a of the magnetic card 1 to the data writing start position STX is 10 mm, and the number of clocks of the data area D is 1700.
bit.

【0042】したがって、磁気カード1に書き込まれる
標準総クロック数は241.9/25.4×210=約
2000bit 、磁気カード1の始端部1aからデータ書込
開始位置STX までの標準クロック数は10/25.4×
210=約83bit となる。なお、図8(b) には、標準
総クロック数が2000bit の場合の各エリアのクロッ
ク数を示し、前クロックエリアC1 が約83bit 、デー
タエリアDのクロック数が1700bit 、後クロックエ
リアC2 が217bit となる。
Therefore, the standard total number of clocks written in the magnetic card 1 is 241.9 / 25.4 × 210 = about 2000 bits, and the standard number of clocks from the start end 1a of the magnetic card 1 to the data writing start position STX is 10. /25.4x
210 = about 83 bits. FIG. 8B shows the number of clocks in each area when the standard total number of clocks is 2000 bits. The front clock area C1 is about 83 bits, the data area D clock number is 1700 bits, and the rear clock area C2 is 217 bits. Becomes

【0043】そして、図8(a) に示すように、移動平均
によって求められた平均総クロック数CLK2が2200bi
t であった場合には、補正係数CLK3=2200/200
0=1.1となり、磁気カード1の始端部1aからデータ
書込開始位置STX までの補正クロック数は83×1.1
=約91bit となる。なお、データエリアDのクロック
数は1700bit のままであるため、後クロックエリア
C2 は409bit となる。
Then, as shown in FIG. 8 (a), the average total clock number CLK2 obtained by the moving average is 2200bi.
If t, the correction coefficient CLK3 = 2200/200
0 = 1.1, and the number of correction clocks from the start end 1a of the magnetic card 1 to the data writing start position STX is 83 × 1.1.
= Approx. 91 bits. Since the number of clocks in the data area D remains 1700 bits, the rear clock area C2 has 409 bits.

【0044】また、図8(c) に示すように、移動平均に
よって求められた平均総クロック数CLK2が1800bit
であった場合には、補正係数CLK3=1800/2000
=0.1となり、磁気カード1の始端部1aからデータ書
込開始位置STX までの補正クロック数は83×0.9=
約75bit となる。なお、データエリアDのクロック数
は1700bit のままであるため、後クロックエリアC
2 は25bit となる。
Further, as shown in FIG. 8C, the average total clock number CLK2 obtained by the moving average is 1800 bits.
If it is, the correction coefficient CLK3 = 1800/2000
= 0.1, and the number of correction clocks from the start end 1a of the magnetic card 1 to the data writing start position STX is 83 × 0.9 =
It becomes about 75 bits. Since the number of clocks in the data area D remains 1,700 bits,
2 is 25 bits.

【0045】そして、磁気カード1に対する書込時にお
いて、磁気カード1の始端部1aから求められた補正クロ
ック数後にデータを書き込ませることにより、データ書
込開始位置STX を始端部1aから所定の長さ寸法位置に書
き込むことができる。
At the time of writing to the magnetic card 1, the data writing start position STX is set to a predetermined length from the starting end 1a by writing the data after the correction clock number obtained from the starting end 1a of the magnetic card 1. It is possible to write in the dimensional position.

【0046】このデータ書込開始位置STX を検証してみ
ると、平均総クロック数CLK2が2200bit であった場
合には241.9/2200×91=10.005mm 平均総クロック数CLK2が1800bit であった場合には
241.9/1800×75=10.08mmとなり、磁
気カード1の始端部1aからデータ書込開始位置STX まで
の距離を10mmにできる。
When the data writing start position STX is verified, when the average total clock number CLK2 is 2200 bits, 241.9 / 2200 × 91 = 10.005 mm The average total clock number CLK2 is 1800 bits. In this case, 241.9 / 1800 × 75 = 10.08 mm, and the distance from the start end 1a of the magnetic card 1 to the data writing start position STX can be 10 mm.

【0047】なお、実際には、センサ15から書込ヘッド
16までの標準クロック数に相当する補正クロック数も求
め、搬送手段12により搬送される磁気カード1の始端部
1aをセンサ15で検知した時点から、センサ15から書込ヘ
ッド16までの補正クロック数と磁気カード1の始端部1a
からデータ書込開始位置STX までの補正クロック数とを
加算したクロック数後にデータを書き込ませることによ
り、データ書込開始位置STX を始端部1aから所定の長さ
寸法位置に書き込むことができる。これは、センサ15と
書込ヘッド16の位置が搬送方向に対して離れている場合
であり、仮に、センサ15と書込ヘッド16の位置が搬送方
向に対して同一位置にあれば、センサ15から書込ヘッド
16までの補正クロック数を求めて使用する必要はない。
Actually, from the sensor 15 to the writing head
The correction clock number corresponding to the standard clock number up to 16 is also obtained, and the start end portion of the magnetic card 1 conveyed by the conveying means 12
From the time when the sensor 15 detects 1a, the number of correction clocks from the sensor 15 to the write head 16 and the start end 1a of the magnetic card 1
To the data writing start position STX, the data writing start position STX can be written from the starting end portion 1a to a predetermined length dimension position by writing the data after the number of clocks obtained by adding the correction clock numbers. This is the case where the position of the sensor 15 and the write head 16 are apart from each other in the carrying direction. If the position of the sensor 15 and the write head 16 are at the same position in the carrying direction, the sensor 15 From write head
It is not necessary to find and use a correction clock number up to 16.

【0048】また、移動平均の平均化する数(本実施例
では10回)すなわち母数を、読取クロック数の変化率
に連動して変化させることにより、積分時定数を変化さ
せる可変手段の機能をCPU21に備えてもよい。この可
変手段の機能によれば、例えば、読取クロック数の変化
率が大きい場合には、移動平均の母数を小さくすること
で、積分時定数を小さくし、急激なデータ変化に追従可
能にできるようにし、逆に、読取クロック数の変化率が
小さい場合には、移動平均の母数を大きくすることで、
積分時定数を大きくし、読取クロック数のばらつきに対
応し、安定した書込位置補正を行なえるようにできる。
Further, the function of the variable means for changing the integration time constant by changing the averaging number (10 times in this embodiment) of the moving average, that is, the parameter, in association with the change rate of the read clock number. May be provided in the CPU 21. According to the function of this variable means, for example, when the rate of change of the number of read clocks is large, the integral time constant can be reduced by making the parameter of the moving average small, and it is possible to follow a rapid data change. On the contrary, when the change rate of the read clock number is small, by increasing the parameter of the moving average,
It is possible to increase the integration time constant, cope with the variation in the number of read clocks, and perform stable writing position correction.

【0049】すなわち、装置電源投入直後などの安定動
作領域に達するまでは読取クロック数の変化率は急激で
あることが予想でき、移動平均の母数を小さく設定する
ことで、積分時定数小さくし、データ変化率に追従させ
る。その後は、読取クロック数の変化率と変動幅を判断
しながら、徐々に移動平均の母数を大きくし、積分時定
数を大きくすることで、安定した書込位置補正を行なえ
るようにできる。
That is, it can be expected that the rate of change in the number of read clocks is rapid until the stable operation area is reached immediately after the power source of the apparatus is turned on. Therefore, the integral time constant can be reduced by setting the parameter of the moving average to a small value. , Follow the rate of data change. After that, it is possible to perform stable writing position correction by gradually increasing the parameter of the moving average and increasing the integration time constant while determining the rate of change and the fluctuation range of the number of read clocks.

【0050】このように、平均移動の母数を管理しなが
ら、読取総クロック数の移動平均にて平均総クロック数
を求め、平均総クロック数と標準総クロック数との比に
基づいて、磁気カードの始端部からデータ書込開始位置
までの標準クロック数に相当する補正クロック数を求
め、この補正クロック数にてデータ書込開始位置STX を
自動補正するため、搬送手段12のモータ14の回転誤差や
経年変化、装置周囲の温度や湿度などの環境変化などに
対応でき、データ書込開始位置STX が安定した位置に書
き込まれた磁気カード1を発行できる。
As described above, while controlling the parameter of the average movement, the average total number of clocks is obtained by the moving average of the total number of read clocks, and the magnetic field is calculated based on the ratio of the average total number of clocks to the standard total number of clocks. The number of correction clocks corresponding to the standard number of clocks from the start edge of the card to the data writing start position is obtained, and the motor 14 of the conveying means 12 rotates to automatically correct the data writing start position STX with this correction clock number. It is possible to deal with errors, aging, environmental changes such as temperature and humidity around the device, and issue the magnetic card 1 in which the data writing start position STX is written at a stable position.

【0051】また、移動平均をとることにより、磁気カ
ード1の長さのばらつきにも対応できる。
Further, by taking the moving average, it is possible to cope with variations in the length of the magnetic card 1.

【0052】[0052]

【発明の効果】本発明によれば、読取ヘッドで読み取ら
れる磁気カードの読取総クロック数について新しい読取
分を順次加えながら所定の読取数分を移動平均して平均
総クロック数を求め、さらに、平均総クロック数と標準
総クロック数との比に基づいて、磁気カードの始端部か
らデータ書込開始位置までの標準クロック数に相当する
補正クロック数を求めるため、この補正クロック数によ
って、磁気カードの始端部を基準とした所定の寸法位置
からデータを正確に書き込むように自動補正できる。
According to the present invention, the average total number of clocks is calculated by moving and averaging a predetermined number of readings while sequentially adding new readings to the total number of reading clocks of the magnetic card read by the reading head. Based on the ratio of the average total number of clocks to the standard total number of clocks, the correction clock number corresponding to the standard clock number from the start end of the magnetic card to the data writing start position is obtained. It is possible to automatically correct the data so that the data is accurately written from a predetermined dimensional position based on the starting end of the.

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

【図1】本発明の磁気カードのデータ書込装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a magnetic card data writing device of the present invention.

【図2】同上実施例のデータ書込装置の機構の概略図で
ある。
FIG. 2 is a schematic view of the mechanism of the data writing device of the above embodiment.

【図3】同上実施例のデータ書込装置の磁気カードの一
例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of a magnetic card of the data writing device of the embodiment.

【図4】同上実施例のデータ書込装置による書込読取動
作のタイミングチャートである。
FIG. 4 is a timing chart of a writing / reading operation by the data writing device of the embodiment.

【図5】同上実施例のデータ書込装置において磁気カー
ドに書き込むフォーマットの説明図である。
FIG. 5 is an explanatory diagram of a format for writing to a magnetic card in the data writing device according to the embodiment.

【図6】同上実施例のデータ書込装置において移動平均
を求める説明図である。
FIG. 6 is an explanatory diagram for obtaining a moving average in the data writing device according to the embodiment.

【図7】同上実施例のデータ書込装置において磁気カー
ドに書き込む具体例を示す説明図である。
FIG. 7 is an explanatory diagram showing a specific example of writing in a magnetic card in the data writing device of the above-mentioned embodiment.

【図8】同上実施例のデータ書込装置において書込位置
の補正を説明する説明図である。
FIG. 8 is an explanatory diagram illustrating correction of a writing position in the data writing device according to the embodiment.

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

1 磁気カード 12 搬送手段 15 センサ 16 書込ヘッド 17 読取ヘッド 21 積分手段、演算手段ならびに制御手段としてのC
PU 22 記憶手段としてのROM
1 magnetic card 12 conveying means 15 sensor 16 writing head 17 reading head 21 C as integration means, calculation means and control means
PU 22 ROM as storage means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 磁気カードを搬送する搬送手段と、 この搬送手段によって搬送される磁気カードの始端部を
検知するセンサと、 前記搬送手段によって搬送される磁気カードの始端部が
前記センサで検知された時点からクロック出力して所定
のクロック数後にデータを磁気カードに書き込む書込ヘ
ッドと、 前記搬送手段によって搬送される磁気カードに書き込ま
れた内容を読み取る読取ヘッドと、 この読取ヘッドで読み取られる磁気カードの読取総クロ
ック数について新しい読取分を順次加えながら所定の読
取数分を移動平均して平均総クロック数を求める積分手
段と、 前記磁気カードの全長域の標準総クロック数、磁気カー
ドの始端部からデータの開始位置までの標準クロック数
を記憶する記憶手段と、 前記平均総クロック数と標準総クロック数との比に基づ
いて、前記磁気カードの始端部からデータ書込開始位置
までの標準クロック数に相当する補正クロック数を求め
る演算手段と、 前記搬送手段により搬送される磁気カードに対して前記
書込ヘッドにより磁気カードの始端部から前記演算手段
で求められた補正クロック数後にデータを書き込ませる
制御手段とを備えたことを特徴とする磁気カードのデー
タ書込装置。
1. A conveying means for conveying a magnetic card, a sensor for detecting a starting end portion of a magnetic card conveyed by the conveying means, and a starting end portion of a magnetic card conveyed by the conveying means is detected by the sensor. From the time when a clock is output and a predetermined number of clocks are followed to write data to the magnetic card, a read head for reading the contents written on the magnetic card carried by the carrying means, and a magnetic read by the read head. Integrating means for obtaining the average total clock number by moving average a predetermined number of read numbers while sequentially adding new read numbers to the total read clock number of the card; standard total clock number in the full length area of the magnetic card; Storage means for storing the standard clock number from the section to the data start position, and the average total clock number and the standard total clock number. A calculation means for obtaining a correction clock number corresponding to the standard clock number from the start end portion of the magnetic card to the data writing start position based on the ratio of the number of clocks to the magnetic card conveyed by the conveying means. And a control means for causing the write head to write data from the start end of the magnetic card after the number of correction clocks calculated by the arithmetic means, and a data writing device for a magnetic card.
JP7134431A 1995-05-31 1995-05-31 Data writing device for magnetic card Pending JPH08329201A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7134431A JPH08329201A (en) 1995-05-31 1995-05-31 Data writing device for magnetic card
US08/960,538 US5957108A (en) 1995-05-31 1997-10-31 Engine throttle sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7134431A JPH08329201A (en) 1995-05-31 1995-05-31 Data writing device for magnetic card

Publications (1)

Publication Number Publication Date
JPH08329201A true JPH08329201A (en) 1996-12-13

Family

ID=15128226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7134431A Pending JPH08329201A (en) 1995-05-31 1995-05-31 Data writing device for magnetic card

Country Status (1)

Country Link
JP (1) JPH08329201A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003078427A (en) * 2001-09-05 2003-03-14 Nec Corp Portable telephone terminal, intermittent reception controlling method used for the same, and program thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003078427A (en) * 2001-09-05 2003-03-14 Nec Corp Portable telephone terminal, intermittent reception controlling method used for the same, and program thereof

Similar Documents

Publication Publication Date Title
JPH08329201A (en) Data writing device for magnetic card
EP0331193A2 (en) Vector operation instruction issue control method
JP2806492B2 (en) Data writing device for magnetic card
JPH0528626A (en) Card reader
JPH07147049A (en) Ticket machine
JP3745546B2 (en) Data correction device
JP3062396B2 (en) Ticketing device
JP2814287B2 (en) Card reader / writer device
JPH056232B2 (en)
JPH05128415A (en) Automatic compensation method of encode position
JP2918190B2 (en) Magnetic writing device
JP3245902B2 (en) Redundant bit setting device for magnetic ticket
JPH03216065A (en) Original reader
JPH06267178A (en) Magnetic recorder
JPH0514356Y2 (en)
JP2911214B2 (en) Printing control device
JPS6270146A (en) Device for monitoring condition of conveyance of document
JPH03194469A (en) On-vehicle angular speed detecting device
JPH0581493A (en) Magnetic card write clock adjustment system
JP2000348441A (en) Device for measuring jitter of magnetically recorded data
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
JPH03215749A (en) Conveying speed measuring instrument for paper sheets
JPH0728926A (en) Magnetic medium reading device
JPH055283B2 (en)
JPH0543273U (en) Bill recognition device