JPH0157425B2 - - Google Patents
Info
- Publication number
- JPH0157425B2 JPH0157425B2 JP55164298A JP16429880A JPH0157425B2 JP H0157425 B2 JPH0157425 B2 JP H0157425B2 JP 55164298 A JP55164298 A JP 55164298A JP 16429880 A JP16429880 A JP 16429880A JP H0157425 B2 JPH0157425 B2 JP H0157425B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording
- recorded
- block
- abnormality
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/18—Error detection or correction; Testing, e.g. of drop-outs
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】
この発明は、磁気記録媒体のデータ記録異常判
定装置に関し、特に各種のデータをあるブロツク
単位で磁気記録媒体に記録する場合におけるデー
タの記録異常を判別するような、磁気記録媒体の
データ記録異常判定装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data recording abnormality determination device for a magnetic recording medium, and in particular to a magnetic recording medium for determining a data recording abnormality when recording various data on a magnetic recording medium in block units. The present invention relates to a data recording abnormality determination device for a recording medium.
たとえば、電子式キヤツシユレジスタ(ECR)
やガソリンスタンドにおけるPOSシステムにお
いては、オンラインで登録データを収集するため
に、磁気記録媒体の一例のカセツトテープに登録
データを収集記録している。このように、登録デ
ータを収集記録したカセツトテープは、営業終了
後において計算センタなどの1カ所へ集められ、
各種のデータ処理あるいは集計処理を行なうため
に利用される。ところが、登録データをカセツト
テープに磁気記録する場合、記録異常があると、
誤つたデータを収集することになる。したがつ
て、カセツトテープに記録された登録データを収
集する時点において、カセツトテープのデータ記
録異常が発見されたのでは、データの修復が困難
であるという問題点があつた。 For example, electronic cash register (ECR)
In order to collect registration data online in POS systems at gas stations and gas stations, the registration data is collected and recorded on a cassette tape, which is an example of a magnetic recording medium. In this way, the cassette tapes that collect and record registered data are collected at one location, such as a calculation center, after business hours.
It is used to perform various data processing or aggregation processing. However, when recording registration data magnetically on a cassette tape, if there is a recording error,
You will end up collecting incorrect data. Therefore, if a data recording abnormality on the cassette tape is discovered at the time of collecting the registration data recorded on the cassette tape, there is a problem in that it is difficult to restore the data.
それゆえに、この発明の目的は、ECRやPOS
システムなどの端末装置において収集すべきデー
タを磁気記録媒体に記録したのちそれを回収する
前に記録異常の有無を判断でき、後でデータ処理
する場合において記録異常のデータブロツク番号
を知ることができるようにした、磁気記録媒体の
データ記録異常判定装置を提供することである。 Therefore, the purpose of this invention is to
After data to be collected in a terminal device such as a system is recorded on a magnetic recording medium, it is possible to determine the presence or absence of a recording abnormality before collecting the data, and when processing the data later, the data block number of the recording abnormality can be known. An object of the present invention is to provide a data recording abnormality determination device for a magnetic recording medium.
この発明は、要約すれば、磁気記録媒体に収集
すべきデータを記録する際に、多量のデータを所
定のデータ長のブロツク単位に分けて磁気記録し
かつ各データブロツクごとにそれぞれ異なる番号
を付けるものとする。そして、磁気記録媒体から
データを読取つてデータ記録異常を検出し、記録
異常のあつたデータブロツクを識別可能なよう
に、端末装置に内臓する印字手段に印字記録させ
るものである。 In summary, when recording data to be collected on a magnetic recording medium, the present invention magnetically records a large amount of data by dividing it into blocks of a predetermined data length, and assigns a different number to each data block. shall be taken as a thing. Then, data is read from the magnetic recording medium to detect data recording abnormalities, and the printing means built into the terminal device prints and records the data blocks in which the recording abnormalities occur so that they can be identified.
なお、以下の説明では、データを収集すべき端
末装置の一例として、ECRの場合について説明
する。 In the following description, an ECR will be described as an example of a terminal device from which data should be collected.
以下に、図面を参照してこの発明の具体的な実
施例について説明する。 Hereinafter, specific embodiments of the present invention will be described with reference to the drawings.
第1図はこの発明のデータ記録異常判定装置が
適用される端末装置の一例の電子式キヤツシユレ
ジスタのブロツク図である。図において、ECR
10は、マイクロコンピユータまたはマイクロプ
ロセツサ(以下CPU)11を含む。このCPU1
1には、磁気記録再生装置12が接続される。こ
の磁気記録再生装置12は、磁気記録媒体の一例
のカセツトテープに含まれる磁気テープまたは磁
気カードに情報を磁気的に記録するものである。
また、CPU11には、キーボード13およびプ
リンタ14が接続される。このキーボード13
は、端末装置がECRであれば、登録情報を入力
するための数値キー131、部門コードや合計キ
ーなどのフアンクシヨンキー132および磁気記
録したデータをチエツク指令するためのチエツク
指令キー133を含む。プリンタ14は、キーボ
ード13の操作によつて登録された登録データを
顧客のレシートとして印字記録するとともに、店
舗の控えをプリントし、さらに後述の第7図に示
すように磁気記録異常の有無を識別する情報を印
字記録するために用いられる。さらに、CPU1
1には、後述の第6図に示すような動作プログラ
ムを記憶するための読出専用メモリ(ROM)1
5および登録データを一時記憶したり各種の処理
データを記憶するための書込読出し可能なメモリ
(RAM)30が接続される。なお、RAM30の
記憶領域の詳細については、後述の第5図で説明
する。 FIG. 1 is a block diagram of an electronic cash register which is an example of a terminal device to which the data recording abnormality determination device of the present invention is applied. In the figure, ECR
10 includes a microcomputer or microprocessor (hereinafter referred to as CPU) 11. This CPU1
A magnetic recording/reproducing device 12 is connected to 1. The magnetic recording/reproducing device 12 magnetically records information on a magnetic tape or a magnetic card included in a cassette tape, which is an example of a magnetic recording medium.
Further, a keyboard 13 and a printer 14 are connected to the CPU 11 . This keyboard 13
If the terminal device is an ECR, it includes numeric keys 131 for inputting registration information, function keys 132 such as department codes and total keys, and a check command key 133 for commanding to check magnetically recorded data. The printer 14 prints and records the registered data registered by operating the keyboard 13 as a customer's receipt, prints a store copy, and further identifies the presence or absence of magnetic recording abnormalities as shown in FIG. 7, which will be described later. It is used to print and record information. Furthermore, CPU1
1 includes a read-only memory (ROM) 1 for storing an operating program as shown in FIG. 6, which will be described later.
5 and a writable/readable memory (RAM) 30 for temporarily storing registration data and storing various processing data are connected. Note that details of the storage area of the RAM 30 will be explained in FIG. 5, which will be described later.
第2図は磁気記録再生装置12によつてデータ
が磁気記録される磁気記録媒体の一例の磁気テー
プの記録態様を図解的に示した図である。 FIG. 2 is a diagram schematically showing a recording mode of a magnetic tape, which is an example of a magnetic recording medium on which data is magnetically recorded by the magnetic recording/reproducing device 12. As shown in FIG.
図において、磁気記録媒体がたとえばカセツト
テープの磁気テープ20である場合は、磁気テー
プの巻初め部分に巻初めの識別情報BOTを表わ
す透孔21が穿設される。そして、磁気テープ2
0の移送方向の先頭領域には、テープヘツダ記録
領域22が割り当てられる。そして、テープヘツ
ダ記録領域22に後続する移送方向に沿う領域
は、複数のデータブロツク単位ごとにデータを記
録するためのデータブロツク記録領域231〜2
3nを含むデータ記録領域23として定められ
る。そして、データ記録領域の最後のデータブロ
ツク23nに後続する部分には、データを記録終
了したことを表わすテープエンドマークがテープ
エンドマーク記録領域24に記録される。そし
て、磁気テープ20の巻末には、巻末を表わす識
別情報BOTを意味する透孔25が穿設される。 In the figure, when the magnetic recording medium is, for example, a magnetic tape 20 such as a cassette tape, a through hole 21 representing identification information BOT at the beginning of the winding is bored at the beginning of the magnetic tape. And magnetic tape 2
The tape header recording area 22 is allocated to the leading area in the transport direction of 0. The area following the tape header recording area 22 along the transport direction is a data block recording area 231 to 2 for recording data in units of a plurality of data blocks.
3n is defined as the data recording area 23. Then, in a portion of the data recording area following the last data block 23n, a tape end mark indicating that data recording has been completed is recorded in the tape end mark recording area 24. A through hole 25 is provided at the end of the magnetic tape 20 to indicate identification information BOT representing the end of the tape.
第3図は前記テープヘツダ記録領域22に記録
されるテープヘツダブロツクのデータ内容を図解
的に示した図である。たとえば、テープヘツダ記
録領域22は、複数の記録領域22a〜22hに
分けられる。この記録領域22aには、1つのブ
ロツク単位のデータ記録初めを表わすプリアンプ
ルコードが記録される。記録領域22bには、カ
セツトテープを識別するためのテープ識別コード
が記録される。記録領域22cには、記録年月日
データが記録される。記録領域22dには、この
カセツトテープにデータが記録された記録場所を
表わすコードが記録される。記録領域22eに
は、スペースコードが記録される。記録領域22
fおよび22gには、記録されたデータのチエツ
クを行なうためのチエツクコード(CRCコード)
がそれぞれ記録される。このようなチエツクコー
ドは、たとえばパリテイエラーを検出するための
パリテイエラーコードやその他各種のエラーコー
ドが用いられる。テープヘツダ記録領域22の最
後の記録領域22hには、1ブロツクのデータの
記録終端を表わすポストアンブルコードが記録さ
れる。 FIG. 3 is a diagram schematically showing the data contents of the tape header block recorded in the tape header recording area 22. For example, the tape header recording area 22 is divided into a plurality of recording areas 22a to 22h. A preamble code indicating the beginning of data recording in one block unit is recorded in this recording area 22a. A tape identification code for identifying the cassette tape is recorded in the recording area 22b. Recording date data is recorded in the recording area 22c. A code representing the recording location where data is recorded on this cassette tape is recorded in the recording area 22d. A space code is recorded in the recording area 22e. Recording area 22
f and 22g contain a check code (CRC code) for checking recorded data.
are recorded respectively. As such a check code, for example, a parity error code for detecting a parity error and various other error codes are used. In the last recording area 22h of the tape header recording area 22, a postamble code indicating the end of recording of one block of data is recorded.
第4図は前記データ記録領域23に含まれる各
データブロツクに記録される1ブロツク単位のデ
ータを図解的に示した図である。1つの記録領域
231〜23nは、それぞれ複数の記録領域23
a〜23kに分けられる。そして、記録領域23
aには、1ブロツク単位のデータの記録初めであ
ることを表わすポストアンブルコードが記録され
る。記録領域23bには、データブロツクの番号
を表わすブロツク番号コードが記録される。この
データブロツクの番号は、連続番号とする。記録
領域23cには、処理区分コードが記録される。
記録領域23dには、カード情報が記録される。
記録領域23eには、商品コードが記録される。
記録領域23fには、数量を表わすデータが記録
される。記録領域23gには、単価を表わすデー
タが記録される。記録領域23hには合計金額デ
ータが記録される。記録領域23iおよび23j
には、チエツクコードがそれぞれ記録される。記
録領域23kには、1ブロツクのデータ記録終了
を表わすポストアンブルコードが記録される。な
お、図示の記録データは、端末装置がECRの場
合を示すが、ここに記録されるデータは端末装置
の種類によつて適宜のデータが記録されるものと
する。ただし、プリアンプルコード、データブロ
ツク番号、チエツクコード、ポストアンブルコー
ドのそれぞれは、端末装置がいかなる種類であつ
ても同様に記録されるものとする。 FIG. 4 is a diagram schematically showing one block unit of data recorded in each data block included in the data recording area 23. One recording area 231 to 23n each corresponds to a plurality of recording areas 23
It is divided into a to 23k. And recording area 23
A postamble code indicating that it is the beginning of data recording in units of one block is recorded in a. A block number code representing the data block number is recorded in the recording area 23b. The data block numbers are consecutive numbers. A processing classification code is recorded in the recording area 23c.
Card information is recorded in the recording area 23d.
A product code is recorded in the recording area 23e.
Data representing the quantity is recorded in the recording area 23f. Data representing the unit price is recorded in the recording area 23g. Total amount data is recorded in the recording area 23h. Recording areas 23i and 23j
A check code is recorded in each. A postamble code indicating the end of recording one block of data is recorded in the recording area 23k. Note that the recorded data shown in the figure shows the case where the terminal device is an ECR, but the data recorded here is assumed to be appropriate data depending on the type of the terminal device. However, each of the preamble code, data block number, check code, and postamble code shall be recorded in the same way regardless of the type of terminal device.
第5図は前記RAM30の記憶領域に記憶され
るデータを図解的に示した図である。RAM30
は、複数の記憶領域31〜38を含む。この記憶
領域31は、磁気テープ20にブロツク単位で記
録されたデータの合計数を記憶するものであつ
て、その内容が1データブロツクごとに1ずつ歩
進した内容に書き換えられる。したがつて、記憶
領域31は、全データ件数カウンタ領域として用
いられる。記憶領域32には、1本のカセツトテ
ープに記録されたブロツク単位のデータのうち、
正常に記録されたブロツクの数を計数記憶する正
常データ件数カウンタ領域として用いられる。記
憶領域32は、1本の磁気テープに記録されたデ
ータのうち、記録異常の生じた累計数を計数記憶
する累計エラー件数カウンタ領域として用いられ
る。記憶領域34は異常のあつたブロツク数を一
時的に計数記憶するエラー仮カウンタ領域として
用いられる。なお、以下の説明では、各記憶領域
31〜34をカウンタと略称する。記憶領域35
は、直前に記録された1ブロツクのデータブロツ
ク番号を記憶する領域である。記憶領域36は、
記録異常があつたことを記憶するためのエラーフ
ラグとして用いられる。記憶領域37は、収集す
べき登録データを記録する領域として用いられ
る。 FIG. 5 is a diagram schematically showing data stored in the storage area of the RAM 30. RAM30
includes a plurality of storage areas 31-38. This storage area 31 stores the total number of data recorded in blocks on the magnetic tape 20, and its contents are rewritten in increments of 1 for each data block. Therefore, the storage area 31 is used as a total data item counter area. The storage area 32 stores data in blocks recorded on one cassette tape.
This area is used as a normal data count counter area that counts and stores the number of normally recorded blocks. The storage area 32 is used as a cumulative error counter area that counts and stores the cumulative number of recording abnormalities among the data recorded on one magnetic tape. The storage area 34 is used as a temporary error counter area for temporarily counting and storing the number of abnormal blocks. In addition, in the following description, each storage area 31-34 will be abbreviated as a counter. Storage area 35
is an area for storing the data block number of one block recorded immediately before. The storage area 36 is
It is used as an error flag to remember that a recording abnormality has occurred. The storage area 37 is used as an area for recording registration data to be collected.
第6図はこの発明の特徴となる磁気テープに記
録したデータが異常か否かを判断するためのフロ
ーチヤートである。なお、この発明が適用される
端末装置の一例のECRの通常の登録動作は、従
来周知の動作によつて行なわれるので、そのフロ
ーチヤートを省略する。そこで、以下には、本願
の発明に関連する点のみを簡単に説明する。
ECRにおいては、キーボード13によつて登録
された登録データがRAM30の登録データ記憶
領域38に記憶される。この登録データの記憶態
様としては、たとえば商品コード別の売上数量と
その単価および合計金額などである。 FIG. 6 is a flowchart for determining whether or not data recorded on a magnetic tape is abnormal, which is a feature of the present invention. Note that the normal registration operation of the ECR of an example of a terminal device to which the present invention is applied is performed by a conventionally well-known operation, so a flowchart thereof will be omitted. Therefore, only the points related to the invention of the present application will be briefly explained below.
In the ECR, registration data registered using the keyboard 13 is stored in the registration data storage area 38 of the RAM 30. The storage format of this registered data includes, for example, the sales quantity for each product code, its unit price, and the total amount.
第7図は磁気テープの記録異常を判別した結果
を前記プリンタ14で印字記録した印字フオーマ
ツトの一例を図解的に示した図である。 FIG. 7 is a diagram schematically showing an example of a printing format in which the results of determining recording abnormalities on the magnetic tape are printed and recorded by the printer 14.
次に、第1図〜第7図を参照して、この実施例
の具体的な動作を説明する。 Next, the specific operation of this embodiment will be explained with reference to FIGS. 1 to 7.
ECR10の登録データ記憶領域38に記憶さ
れている登録データは、適宜の記録指令に応じて
磁気テープに磁気記録されている。そして、デー
タ記録領域23に後続する記録領域24には、テ
ープエンドマークが記録されている。そして、磁
気テープ20に磁気記録されている登録データを
収集するためにカセツトテープを回収する際に
は、磁気テープに記録されたデータの記録異常が
ないか否かを以下のごとくして判断させる。この
とき、オペレータは、カセツトテープを巻戻した
後、前記チエツク指令キー133を押圧する。こ
れに応じて、CPU11は第6図に示すフローチ
ヤートの動作を開始する。 The registration data stored in the registration data storage area 38 of the ECR 10 is magnetically recorded on a magnetic tape in response to an appropriate recording command. A tape end mark is recorded in a recording area 24 following the data recording area 23. When the cassette tape is recovered to collect the registration data magnetically recorded on the magnetic tape 20, it is determined whether or not there is any recording abnormality in the data recorded on the magnetic tape as follows. . At this time, the operator presses the check command key 133 after rewinding the cassette tape. In response to this, the CPU 11 starts the operation of the flowchart shown in FIG.
まず、ステツプ1において、磁気記録再生装置
12が駆動し初めて、磁気テープを移送させる。
このとき、磁気記録再生装置12に含まれる光電
検出器(図示せず)が巻初めを表わす透孔21を
検出する。続いて、ステツプ2において、磁気テ
ープ20に記録されている1ブロツク(第1ブロ
ツク)のデータが読出される。ステツプ3におい
て、磁気テープから読出された1ブロツクのデー
タが正常に記録されているか否かを判断する。こ
のとき、最初に読出された1ブロツクのデータが
テープヘツダであるため、プリアンプルコードと
テープ識別コードと第1および第2のチエツクコ
ードとポストアンブルコードとに基づいて、正常
に記録されたか否かが判断される。もし、正常に
記録されていれば、ステツプ4において今、読出
された1ブロツクのデータがテープヘツダを表わ
すデータか否かを判断する。もし、テープヘツダ
を表わすデータであれば、後述のステツプ5へ進
む。一方、ステツプ3において、読取りデータが
記録異常であることを判断した場合またはステツ
プ4において今読取られたデータがテープヘツダ
でないことを判断した場合は、記録異常であるの
で以後のデータブロツクの読取りを行なうことな
く動作を終了する。 First, in step 1, the magnetic recording/reproducing device 12 is driven to transport the magnetic tape.
At this time, a photoelectric detector (not shown) included in the magnetic recording/reproducing device 12 detects the through hole 21 representing the beginning of the winding. Subsequently, in step 2, one block (first block) of data recorded on the magnetic tape 20 is read out. In step 3, it is determined whether one block of data read from the magnetic tape has been recorded normally. At this time, since the first block of data read is the tape header, it is determined whether or not it was recorded normally based on the preamble code, tape identification code, first and second check codes, and postamble code. is judged. If the data has been recorded normally, it is determined in step 4 whether or not the one block of data that has just been read represents a tape header. If the data represents a tape header, the process advances to step 5, which will be described later. On the other hand, if it is determined in step 3 that the read data is a recording error, or if it is determined in step 4 that the data just read is not a tape header, this indicates a recording error and the subsequent data block will be read. The operation ends without any trouble.
前述のごとくテープヘツダを表わすデータが正
常に記録されていれば、ステツプ5においてカウ
ンタ31が1に設定される。すなわち、テープヘ
ツダを表わすデータが正常であれば、1つのブロ
ツク単位のデータとして数える。ステツプ6にお
いて、カウンタ32,33,34の内容がすべて
クリアされる。すなわち、各カウンタの内容がゼ
ロに設定される。ステツプ7において、エラーフ
ラグ37にゼロが設定される。このようにして、
初期状態の設定が行なわれる。 If the data representing the tape header is recorded normally as described above, the counter 31 is set to 1 in step 5. That is, if the data representing the tape header is normal, it is counted as one block of data. In step 6, the contents of counters 32, 33, and 34 are all cleared. That is, the contents of each counter are set to zero. In step 7, the error flag 37 is set to zero. In this way,
Initial state settings are performed.
続いて、ステツプ8において、透孔25が検出
されたか否か、すなわちEOTマークが検出され
たか否かを判断する。しかしながら、1本のカセ
ツトテープに記録されている全てのデータブロツ
クの記録異常を判断終了していなければ、EOT
マークを検出しないので、ステツプ9へ進む。ス
テツプ9において、磁気テープの移送方向順次に
記録されている1つのデータブロツクの記録内容
が読取られる。ステツプ10において、今読取られ
た1ブロツクのデータが正常に記録されているか
否かを判断する。 Subsequently, in step 8, it is determined whether or not the through hole 25 has been detected, that is, whether or not the EOT mark has been detected. However, if the recording abnormality of all data blocks recorded on one cassette tape has not been determined, the EOT
Since no mark is detected, proceed to step 9. In step 9, the recorded contents of one data block recorded sequentially in the transport direction of the magnetic tape are read. In step 10, it is determined whether the one block of data that has just been read has been recorded normally.
この1ブロツクのデータが正常に記録されてい
るか否かの判断は、第4図に示すプリアンプルコ
ード、チエツクコードまたはポストアンブルコー
ドに基づいて行なわれる。データが正常に記録さ
れていることを判断した場合は、ステツプ11へ進
む。ステツプ11において、今読出されたデータが
テープエンドマークか否かを判断する。テープエ
ンドマークでないことを判断すると、ステツプ12
へ進む。ステツプ12において、エラーフラグ37
の記憶内容が論理「1」か否かを判断する。この
とき、未だデータの記録異常が検出されなけれ
ば、エラーフラグ37には論理「1」が記憶され
ていないので、ステツプ13へ進む。ステツプ13に
おいて、今読出された1つのデータブロツクの番
号が所定の順序すなわち昇順か否かを判断する。
データブロツクの番号が所定の順序であれば、デ
ータが正常に記録されていることを判断してステ
ツプ14へ進む。ステツプ14において、今読出され
たデータブロツクの番号(すなわち今回のデータ
ブロツク番号)が前回のデータブロツク番号を記
憶するための記憶領域35に更新的に書込まれ
る。ステツプ15において、カウンタ32の内容に
1が加算される。これによつて、正常に記録され
たデータブロツク数が1だけ歩進されることにな
る。そののち、ステツプ16において、カウンタ3
1の内容に1が加算されて、記録異常をチエツク
した全データブロツク数が1だけ歩進される。そ
ののち、前述のステツプ8へ戻る。このようにし
て、磁気テープから読出された1つのブロツクの
データが正常に記録されていれば、前述のステツ
プ8〜16の動作がブロツク番号順次に繰り返され
る。 A determination as to whether this one block of data has been recorded normally is made based on the preamble code, check code, or postamble code shown in FIG. If it is determined that the data has been recorded normally, proceed to step 11. In step 11, it is determined whether the data just read is a tape end mark. If it is determined that it is not a tape end mark, proceed to step 12.
Proceed to. In step 12, error flag 37
It is determined whether the stored content of is logical "1" or not. At this time, if no data recording abnormality is detected yet, the logic "1" is not stored in the error flag 37, and the process proceeds to step 13. In step 13, it is determined whether the number of one data block just read out is in a predetermined order, that is, in ascending order.
If the data block numbers are in the predetermined order, it is determined that the data has been recorded normally, and the process proceeds to step 14. In step 14, the number of the data block just read out (ie, the current data block number) is updated in the storage area 35 for storing the previous data block number. At step 15, the contents of the counter 32 are incremented by 1. As a result, the number of normally recorded data blocks is incremented by one. After that, in step 16, the counter 3
1 is added to the contents of 1, and the total number of data blocks checked for recording abnormality is incremented by 1. Thereafter, the process returns to step 8 described above. In this manner, if the data of one block read from the magnetic tape is recorded normally, the operations of steps 8 to 16 described above are repeated in the order of block numbers.
次に、ある番号のデータブロツクにおける磁気
記録内容が正常に記録されていない場合の動作を
説明する。前述のステツプ10において、1ブロツ
クのデータが正常に記録されていない場合は、ス
テツプ17へ進む。ステツプ17において、エラーフ
ラグ37に論理「1」が設定される。その後、ス
テツプ18において、カウンタ34に1が加算され
る。これによつて、カウンタ34は、記録異常の
ブロツク数が連続する場合にそれを計数する。続
いて、ステツプ19において、カウンタ33に1が
加算される。その後、前述のステツプ16、ステツ
プ8へ進む。そして、1つのデータブロツクの内
容が正常に記録されていない場合であれば、前述
のステツプ8〜10、17〜19、16の動作が繰り返さ
れる。 Next, an explanation will be given of the operation when the magnetic recording contents in a data block of a certain number are not recorded normally. In step 10 described above, if one block of data is not recorded normally, the process advances to step 17. At step 17, the error flag 37 is set to logic "1". Thereafter, in step 18, the counter 34 is incremented by one. As a result, the counter 34 counts the number of consecutive blocks with abnormal recording. Subsequently, in step 19, 1 is added to the counter 33. Thereafter, the process proceeds to step 16 and step 8 described above. If the contents of one data block are not recorded normally, the operations of steps 8 to 10, 17 to 19, and 16 described above are repeated.
たとえば、5番目のデータブロツク(テープヘ
ツダを含む)が正常に記録されていて、6番目の
データブロツクから9番目のデータブロツクまで
記録異常である場合を想定する。この場合、ステ
ツプ9において10番目のデータブロツクが読取ら
れると、以後の動作を行なう。すなわち、ステツ
プ10において、10番目のデータブロツクが正常に
記録されていることを判断する。続いて、ステツ
プ11において、今読出されたデータがテープエン
ドマークでないことを判断する。ステツプ12にお
いて、エラーフラグ36に論理「1」が記憶され
ていることを判断し、ステツプ20へ進む。ステツ
プ20において、記憶領域35に記憶されているデ
ータ記録異常発生以前のデータブロツク番号およ
び今回読出されたデータブロツクの番号ならびに
カウンタ34の計数値(すなわち連続して記録異
常のあつたブロツク数)が、それぞれプリンタ1
4に与えられ、印字記録される。この記録状態が
第7図に示される。すなわち、記録異常が発生す
る前の前回のブロツク番号は、記号D/Aのあと
に印字される。その同じ行には、記録異常後にお
ける最初の正常なブロツク番号が記号D/Bのあ
とに印字される。そして、記録異常の連続するブ
ロツク数は、同じ行の記号Eのあとに印字され
る。 For example, assume that the fifth data block (including the tape header) is recorded normally, but the sixth to ninth data blocks are abnormally recorded. In this case, when the 10th data block is read in step 9, the subsequent operations are performed. That is, in step 10, it is determined that the 10th data block has been recorded normally. Next, in step 11, it is determined that the data just read is not a tape end mark. At step 12, it is determined that logic "1" is stored in the error flag 36, and the process proceeds to step 20. In step 20, the data block number stored in the storage area 35 before the data recording error occurred, the number of the data block read this time, and the count value of the counter 34 (that is, the number of blocks in which a recording error occurred continuously) are calculated. , each printer 1
4 and is printed and recorded. This recording state is shown in FIG. That is, the previous block number before the recording error occurred is printed after the symbol D/A. On the same line, the first normal block number after the recording error is printed after the symbol D/B. The number of consecutive blocks with recording errors is printed after the symbol E on the same line.
したがつて、このように印字記録した記録異常
のチエツク表を見れば、カセツトテープを計算セ
ンター等で収集記録する場合において、どのブロ
ツク番号のデータが記録異常であるかを容易に識
別できる。このため、記録異常のあつたブロツク
番号のデータが、ECR10のジヤーナルプリン
タで店舗用の控えとして印字記録されているデー
タから読取つてキー操作で入力することによつ
て、容易に記録異常のデータを修正できる利点が
ある。 Therefore, by looking at the record abnormality check table printed and recorded in this manner, it is possible to easily identify which block number of data has a recording abnormality when cassette tapes are collected and recorded at a calculation center or the like. Therefore, the data of the block number in which the recording error occurred can be easily retrieved by reading it from the data printed and recorded as a store copy using the ECR10 journal printer and inputting it by key operation. It has the advantage of being modifiable.
その後、ステツプ21において、エラーフラグ3
6がリセツトされる。ステツプ22において、カウ
ンタ34がリセツトされる。その後、前述のステ
ツプ14へ進む。 After that, in step 21, the error flag 3
6 is reset. At step 22, counter 34 is reset. Thereafter, proceed to step 14 described above.
次に、データ記録領域23に記録されているデ
ータブロツクの番号が所定の順序でないような異
常の場合、すなわちある数のブロツクだけデータ
が記録されていない場合を説明する。この場合
は、前述のステツプ13において、データのブロツ
ク番号が昇順でないことを判断する。そして、ス
テツプ22において、記憶領域35に記憶されてい
る前回のブロツク番号および今回読出されたデー
タブロツクの番号が、プリンタ14に与えられ印
字記録される。この場合の印字態様としては、た
とえば前回のブロツク番号が記号D/Aのあとに
印字され、今回のブロツク番号がD/Bのあとに
印字される。このとき、今回のブロツク番号の印
字行と同じ行の後には、記録異常回数を表わすデ
ータが何ら印字されない。これによつて、記録異
常が連続した場合と昇順にデータが記録されてい
ない場合の2種類の記録異常を識別可能に印字で
きる利点がある。 Next, a case where there is an abnormality in which the numbers of data blocks recorded in the data recording area 23 are not in a predetermined order, that is, a case where data is not recorded in only a certain number of blocks will be explained. In this case, in step 13 described above, it is determined that the data block numbers are not in ascending order. Then, in step 22, the previous block number stored in the storage area 35 and the number of the data block read this time are given to the printer 14 and printed and recorded. In this case, for example, the previous block number is printed after the symbol D/A, and the current block number is printed after D/B. At this time, no data representing the number of recording abnormalities is printed after the same line as the print line of the current block number. This has the advantage that two types of recording abnormalities can be printed in a distinguishable manner: when recording abnormalities are continuous and when data is not recorded in ascending order.
前述のごとくして磁気テープ20に記録された
すべてのデータが正常に記録されているか否かが
判断され、正常に記録されていない場合は第7図
に示すように記録異常を識別可能なデータが印字
記録される。 As described above, it is determined whether all the data recorded on the magnetic tape 20 is recorded normally or not, and if it is not recorded normally, data that can identify the recording abnormality as shown in FIG. 7 is determined. is printed and recorded.
なお、第7図の印字例では、記録異常のブロツ
ク番号の直前のブロツク番号と、記録異常の発生
後における最初に正常に記録されたブロツク番号
とを印字することによつて、記録異常を視覚的に
識別可能に印字する場合について説明したが、そ
の他の各種の印字フオーマツトによつて印字して
もよい。たとえば、記録異常を判断するごとに、
そのブロツク番号を印字してもよい。 In the printing example shown in Fig. 7, by printing the block number immediately before the block number of the recording abnormality and the first normally recorded block number after the occurrence of the recording abnormality, the recording abnormality can be visually recognized. Although the case of printing in a manner that is visually distinguishable has been described, it is also possible to print in various other printing formats. For example, each time a recording abnormality is determined,
The block number may be printed.
ところで、前述のごとく磁気テープ20に記録
されたデータのブロツク単位で記録異常か否かを
判断し、全てのデータブロツクの記録異常か否か
の判断を終了すると、次のごとく動作を行なう。
すなわち、前述のステツプ11において、テープエ
ンドマークが判別され、ステツプ24へ進む。ステ
ツプ24において、テープエンドマークのあとにデ
ータが記録されているか否かを判断する。もし、
テープエンドマークのあとにデータが記録されて
いれば、記録異常であるので前述のステツプ17へ
進む。一方、テープエンドマークのあとにデータ
が記録されていない場合、または前述のステツプ
8において巻末を表わす透孔25が検出された場
合は、ステツプ25へ進む。ステツプ25において、
カウンタ31で計数されている全データ件数、カ
ウンタ32で計数されている正常データ件数、カ
ウンタ32で計数されている累計エラー件数が、
それぞれ読出されてプリンタ14に与えられ、プ
リンタ14で印字される。すなわち、全データ件
数は、第7図に示すように記号A.LLのあとに印
字される。また、正常データ件数は、同じ行にお
ける記号DATAのあとに印字される。さらに、
累計エラー件数は、記号Eの後に印字される。 By the way, as described above, it is determined whether or not there is a recording abnormality in each block of data recorded on the magnetic tape 20, and when the determination as to whether or not there is a recording abnormality in all data blocks is completed, the following operation is performed.
That is, in step 11 described above, the tape end mark is determined, and the process proceeds to step 24. In step 24, it is determined whether data is recorded after the tape end mark. if,
If data is recorded after the tape end mark, this indicates a recording error and the process proceeds to step 17 described above. On the other hand, if no data is recorded after the tape end mark, or if the through hole 25 representing the end of the tape is detected in step 8, the process advances to step 25. In step 25,
The total number of data items counted by the counter 31, the number of normal data items counted by the counter 32, and the total number of error items counted by the counter 32 are as follows:
Each is read out and given to the printer 14, and printed by the printer 14. That is, the total number of data items is printed after the symbol A.LL as shown in FIG. Also, the number of normal data items is printed after the symbol DATA on the same line. moreover,
The cumulative number of errors is printed after the symbol E.
以上のようにこの発明においては、記録異常検
出手段がデータ記録異常を検出しないとき、デー
タ読出し手段によつて読出された正常のブロツク
データの番号を第1の記憶手段に更新的に記憶さ
せ、記録異常検出手段がデータ記録異常を検出し
た後における最初の正常なデータブロツクの番号
を第2の記憶手段に記憶させる、記憶制御手段を
備えている。あるブロツクに記録異常が生じる
と、記録異常が生じたブロツクの前後の正常なブ
ロツクの番号がそれぞれ第1、第2記憶手段に記
憶されているので、連続して複数のブロツクに異
常があることを検出した場合にも2つの記憶手段
の記憶データを印字手段で印字するだけで、どの
ブロツクとどのブロツクとに異常があるかがわか
る。従つて、複数のブロツクに異常があることを
検出した場合でも、異常のあるデータブロツクの
番号を一括して表示することができるので、無駄
な記憶領域を必要としない、という効果を奏す
る。これにより、端末装置のデータを磁気記録媒
体に記録してデータを収集する場合において、端
末装置のプリンタで記録されているデータにもと
づいて異常のあつたブロツク番号のデータを容易
に変更することができ、また記録異常にもとづく
誤つたデータを収集することが防止できるため処
理データの正確さを向上できる。 As described above, in the present invention, when the recording abnormality detecting means does not detect a data recording abnormality, the number of the normal block data read by the data reading means is updatedly stored in the first storage means, A storage control means is provided for causing the second storage means to store the number of the first normal data block after the recording abnormality detection means detects a data recording abnormality. When a recording abnormality occurs in a certain block, the numbers of normal blocks before and after the block in which the recording abnormality occurred are stored in the first and second storage means, respectively, so that the abnormality can occur in multiple blocks in succession. Even if abnormality is detected, it is possible to know which block has the abnormality by simply printing the data stored in the two storage means using the printing means. Therefore, even if it is detected that a plurality of data blocks have an abnormality, the numbers of the data blocks with the abnormality can be displayed all at once, so there is an effect that no unnecessary storage area is required. As a result, when collecting data by recording terminal device data on a magnetic recording medium, it is possible to easily change the data of the block number where the abnormality occurred based on the data recorded by the terminal device's printer. In addition, since it is possible to prevent the collection of erroneous data based on recording abnormalities, the accuracy of processed data can be improved.
第1図はこの発明が適用される端末装置の一例
の電子式キヤツシユレジスタのブロツク図であ
る。第2図は磁気記録媒体の一例の磁気テープに
磁気記録される記録態様を図解的に示した図であ
る。第3図はテープヘツダのデータ内容を図解的
に示した図である。第4図はデータブロツクのデ
ータ内容を図解的に示した図である。第5図は
RAM30の記憶領域を図解的に示した図であ
る。第6図はこの発明の一実施例の動作を説明す
るためのフローチヤートである。第7図は記録異
常を判別した結果を印字記録した印字フオーマツ
トの一例を示す図解図である。
図において、10はECR、11はCPU、12
は磁気記録再生装置、13はキーボード、14は
プリンタ、15はROM、30はRAMを示す。
FIG. 1 is a block diagram of an electronic cash register which is an example of a terminal device to which the present invention is applied. FIG. 2 is a diagram schematically showing a recording mode in which magnetic recording is performed on a magnetic tape, which is an example of a magnetic recording medium. FIG. 3 is a diagram schematically showing the data contents of the tape header. FIG. 4 is a diagram schematically showing the data contents of the data block. Figure 5 is
3 is a diagram schematically showing a storage area of RAM 30. FIG. FIG. 6 is a flowchart for explaining the operation of one embodiment of the present invention. FIG. 7 is an illustrative diagram showing an example of a printing format in which the results of determining recording abnormalities are printed. In the figure, 10 is ECR, 11 is CPU, 12
1 is a magnetic recording/reproducing device, 13 is a keyboard, 14 is a printer, 15 is a ROM, and 30 is a RAM.
Claims (1)
磁気記録されかつ各データブロツク別に番号が定
められた磁気記録媒体におけるデータ記録異常を
判定する装置であつて、 前記磁気記録媒体に磁気記録されたデータを読
出すデータ読出手段、 前記データ読出手段によつて読出された1つの
データブロツクにおけるデータ記録異常を検出す
る記録異常検出手段、 先行する正常なデータブロツクの番号を記憶す
る第1の記憶手段、 後続する正常なデータブロツクの番号を記憶す
る第2の記憶手段、 前記記録異常検出手段がデータ記録異常を検出
しないとき、前記データ読出手段によつて読出さ
れた正常なブロツクデータの番号を前記第1の記
憶手段に更新的に記憶させ、前記記録異常検出手
段がデータ記録異常を検出した後における最初の
正常なデータブロツクの番号を前記第2の記憶手
段に記憶させる記憶制御手段、 印字手段、および 前記第1の記憶手段の記憶内容と前記第2の記
憶手段の記憶内容とに基づいて、データ記録異常
のデータブロツクの番号を識別可能な態様で前記
印字手段に印字させる印字制御手段を備えた、磁
気記録媒体のデータ記録異常判定装置。 2 前記磁気記録媒体は、前記複数のデータブロ
ツクのうちの最初のデータブロツクに磁気記録媒
体の識別情報を磁気記録し、 前記記録異常検出手段は、前記磁気記録媒体の
識別情報が予め定める識別情報でないことに基づ
いて記録異常であることを検出する、特許請求の
範囲第1項記載の磁気記録媒体のデータ記録異常
判定装置。 3 前記記録異常検出手段は、前記データ読出手
段から読出されたデータブロツクの番号が所定の
順序でないことに基づいて記録異常であることを
検出する、特許請求の範囲第1項記載の磁気記録
媒体のデータ記録異常判定装置。 4 前記印字制御手段は、前記データ記録異常の
データブロツクの番号を識別可能な態様として、
前記第1の記憶手段に記憶されている先行する正
常なデータブロツクの番号と前記第2の記憶手段
に記憶されている後続する正常なデータブロツク
の番号を前記印字手段に印字させる、特許請求の
範囲第1項ないし第3項のいずれかに記載の磁気
記録媒体のデータ記録異常判定装置。[Scope of Claims] 1. A device for determining data recording abnormality in a magnetic recording medium in which data is magnetically recorded divided into a plurality of data blocks and a number is determined for each data block, the device comprising: Data reading means for reading out magnetically recorded data; Recording abnormality detection means for detecting a data recording abnormality in one data block read by the data reading means; a second storage means for storing the number of a subsequent normal data block; when the recording abnormality detecting means does not detect a data recording abnormality, the normal block data read by the data reading means; a number of the first normal data block after the recording abnormality detecting means detects a data recording abnormality is stored in the second storing means. means, a printing means, and causing the printing means to print a number of a data block in which data recording is abnormal in an identifiable manner based on the stored contents of the first storage means and the stored contents of the second storage means. A data recording abnormality determination device for a magnetic recording medium, comprising a print control means. 2. The magnetic recording medium magnetically records identification information of the magnetic recording medium in the first data block of the plurality of data blocks, and the recording abnormality detection means detects that the identification information of the magnetic recording medium is predetermined identification information. 2. A data recording abnormality determination device for a magnetic recording medium according to claim 1, which detects a recording abnormality based on the fact that the data recording abnormality is not detected. 3. The magnetic recording medium according to claim 1, wherein the recording abnormality detecting means detects a recording abnormality based on the fact that the data block numbers read from the data reading means are not in a predetermined order. Data recording abnormality determination device. 4. The print control means is capable of identifying the number of the data block having the data recording abnormality,
Claims further comprising causing the printing means to print a number of a preceding normal data block stored in the first storage means and a number of a subsequent normal data block stored in the second storage means. A data recording abnormality determination device for a magnetic recording medium according to any one of items 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16429880A JPS5788583A (en) | 1980-11-20 | 1980-11-20 | Data recording failure discriminator for magnetic recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16429880A JPS5788583A (en) | 1980-11-20 | 1980-11-20 | Data recording failure discriminator for magnetic recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5788583A JPS5788583A (en) | 1982-06-02 |
| JPH0157425B2 true JPH0157425B2 (en) | 1989-12-05 |
Family
ID=15790452
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16429880A Granted JPS5788583A (en) | 1980-11-20 | 1980-11-20 | Data recording failure discriminator for magnetic recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5788583A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07107783B2 (en) * | 1985-05-30 | 1995-11-15 | ソニー株式会社 | Error information check device |
| JPH04105822U (en) * | 1991-02-19 | 1992-09-11 | 太陽誘電株式会社 | Inspection device for information recording media |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5562515A (en) * | 1978-11-05 | 1980-05-12 | Fujitsu Ltd | Medium write error processing system |
-
1980
- 1980-11-20 JP JP16429880A patent/JPS5788583A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5788583A (en) | 1982-06-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3333269B2 (en) | Tape format detection system | |
| US3700320A (en) | Automatic searching system | |
| JPH046017B2 (en) | ||
| JPS6299893A (en) | Electronic type cash register | |
| JPS6327288Y2 (en) | ||
| US5783809A (en) | Card processing device | |
| JPH0157425B2 (en) | ||
| CN113837568B (en) | Risk order identification method, apparatus, electronic device and machine-readable storage medium | |
| JP3099343B2 (en) | Media processing device | |
| JPH08161448A (en) | Control mechanism of automatic teller machine | |
| JP3411147B2 (en) | Seal registration device | |
| JPH07334720A (en) | Automated teller machine | |
| JPH0944730A (en) | Automatic cash transaction equipment | |
| JPS60122426A (en) | Write data check system | |
| JP3125760B2 (en) | Media processing device | |
| JPH0330893B2 (en) | ||
| JP3270160B2 (en) | Electronics | |
| JPS62169267A (en) | Trading device management system | |
| JPH11102465A (en) | Prepaid card system, reading device, prepaid card and card failure management method | |
| JPS63269270A (en) | Status information logger | |
| JP2598695Y2 (en) | Prepaid card sales equipment | |
| JPS6320701A (en) | Method for detecting degree of deterioration of file storage device | |
| JPS61276095A (en) | Automatic transactor | |
| JPH0415778A (en) | Card data check device | |
| KR870000374B1 (en) | Computer terminal for toll gate |