JPH043023B2 - - Google Patents
Info
- Publication number
- JPH043023B2 JPH043023B2 JP56091762A JP9176281A JPH043023B2 JP H043023 B2 JPH043023 B2 JP H043023B2 JP 56091762 A JP56091762 A JP 56091762A JP 9176281 A JP9176281 A JP 9176281A JP H043023 B2 JPH043023 B2 JP H043023B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- digits
- recording
- recorded
- department
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B5/00—Recording by magnetisation or demagnetisation of a record carrier; Reproducing by magnetic means; Record carriers therefor
- G11B5/02—Recording, reproducing, or erasing methods; Read, write or erase circuits therefor
- G11B5/09—Digital recording
Landscapes
- Cash Registers Or Receiving Machines (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】
この発明は、例えば電子式金銭登録機(以下、
これをECRと言う)において、Z精算データを
カセツトテープへ記録する際などに好適な、記録
装置に関する。[Detailed Description of the Invention] The present invention provides, for example, an electronic cash register (hereinafter referred to as
This invention relates to a recording device suitable for recording Z settlement data on a cassette tape in the ECR.
ECRにおいて、Z精算データをカセツトテー
プへ記録する場合、従来は、ECRの各種合計器
の最大桁数に応じて磁気テープ上の1レコードエ
リアの桁数を設定していた。例えば、部門別合計
器の点数が3桁、金額が6桁ならば、記録するデ
ータの桁数も、点数については3桁また金額につ
いては6桁が必要とされていた。(第1図参照)
しかしながら、各合計器から最大桁数のデータ
が発生する頻度は極めて希であり、このためこの
ように各レコードエリアの桁数を対応する合計器
の最大データ桁数に合せることは、テープ上の記
憶エリアを無駄に使用すると共に、記録時間の増
大を招くという問題がある。 In the ECR, when recording Z settlement data on a cassette tape, conventionally, the number of digits in one record area on the magnetic tape was set according to the maximum number of digits of various totalizers in the ECR. For example, if the score on the departmental totalizer is 3 digits and the amount is 6 digits, the number of digits to be recorded must be 3 digits for the score and 6 digits for the amount. (See Figure 1) However, it is extremely rare for each totalizer to generate data with the maximum number of digits, so the number of digits in each record area is adjusted to match the maximum number of data digits in the corresponding totalizer. This has the problem of wasting the storage area on the tape and increasing the recording time.
この発明は、上記の問題を解決するためになさ
れたもので、その目的とするところは、この種の
記録装置において、記録時間を短縮すると共に、
記憶エリアを有効に利用し、高密度データ記録を
可能とすることにある。 This invention was made to solve the above problem, and its purpose is to shorten the recording time in this type of recording device, and to
The purpose is to make effective use of storage area and enable high-density data recording.
すなわち、この発明はそれぞれ任意の桁数を有
する複数の数値データを、記録媒体の各レコード
エリアに順次記録する記録装置であつて;
記録媒体に記録されるデータの桁数を制限する
桁数制限値を最も発生頻度の高い桁数に設定して
記憶するメモリ
被記録数値データの大きさと前記桁数制限値と
を比較するデータサイズ判別手段と;
前記データサイズ判別手段の判別結果が、制限
桁数より大きい場合には、前記桁数制限値を超え
る残りの数値データを、次のレコードエリアに順
次記録させるオーバサイズデータ処理手段とを具
備することを特徴とするものである。 That is, the present invention is a recording device that sequentially records a plurality of numerical data each having an arbitrary number of digits in each record area of a recording medium; a memory for setting and storing a value to the number of digits with the highest frequency of occurrence; a data size determining means for comparing the size of the recorded numerical data with the digit limit value; If the number of digits exceeds the number of digits, the remaining numerical data exceeding the digit number limit is sequentially recorded in the next record area.
以下に、この発明の一実施例を添付図面に従つ
て詳細に説明する。 An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
第2図は、この発明が適用されるECRの外観
を示すものである。同図に示す如く、ECR1の
正面には、表示器2、操作パネル3、プリンタ部
4が設けられており、またこのECR1には前述
のZ精算データを記録するためのカセツトデツキ
5が接続されている。 FIG. 2 shows the appearance of an ECR to which this invention is applied. As shown in the figure, a display 2, an operation panel 3, and a printer section 4 are provided on the front of the ECR 1, and a cassette deck 5 for recording the aforementioned Z payment data is connected to the ECR 1. There is.
操作パネル3上には、第3図に示す如く、モー
ド切替用のキースイツチ6、各種数値データを打
ち込むためのテンキー7、各種部門データを入力
する際に使用される部門キー8が設けられている
他、周知の如くクリアキー9、小計キー10、合
計キー11が設けられている。 As shown in FIG. 3, the operation panel 3 is provided with a key switch 6 for mode switching, a numeric keypad 7 for inputting various numerical data, and a department key 8 used for inputting various department data. In addition, as is well known, a clear key 9, a subtotal key 10, and a total key 11 are provided.
第4図は、このECRの電気的なシステム構成
を示すブロツク図である。同図に示す如く、この
ECRは、CPU12を中心として構成されるマイ
クロコンピユータによつて制御されており、この
発明に係わる磁気テープ記録制御は、プログラム
RAM14およびワーキングRAM13内の所定
エリアを利用して行なわれる。ワーキングRAM
の内容を第5図に示す。 FIG. 4 is a block diagram showing the electrical system configuration of this ECR. As shown in the figure, this
The ECR is controlled by a microcomputer mainly composed of the CPU 12, and the magnetic tape recording control according to the present invention is performed by a program.
This is performed using predetermined areas within the RAM 14 and working RAM 13. working RAM
The contents are shown in Figure 5.
次に、このECRにおいて、Z精算データが、
カセツトテープに記録される場合の動作を、第6
図のフローチヤートを参照しつつ説明する。 Next, in this ECR, the Z settlement data is
The operation when recording on a cassette tape is explained in the sixth section.
This will be explained with reference to the flowchart shown in the figure.
このECRにおいては、商品の売価をテンキー
によつて入力し、商品分類別に設けられた部門キ
ーによつて、売上げ登録し、五つの商品分類売上
げを行なうものである。入力された商品の金額と
個数は、各商品別に、部門別合計器(第5図参
照)に累計される。 In this ECR, the sales price of a product is entered using the numeric keypad, sales are registered using department keys provided for each product category, and sales are made by five product categories. The input price and number of products are accumulated in a departmental totalizer (see FIG. 5) for each product.
累計された部門別合計器データは、たとえば閉
店時のZ精算(累計データをクリアする機能)時
に、カセツトテープに記録された後、プリンタに
よつて、売上げレポートとして印字される。 The accumulated departmental totalizer data is recorded on a cassette tape, for example, at the time of Z settlement (a function to clear accumulated data) at the time of store closing, and then printed out as a sales report by a printer.
そこで、以下データ記録時における処理実施例
を第6図のフローチヤートに従つて説明する。 Therefore, an example of processing during data recording will be described below with reference to the flowchart of FIG.
まず、モードスイツチをZ精算に回し、合計キ
ーを押下すると、ステツプ(1)→ステツプ(2)と進ん
だ後、ステツプ(3)〜(7)が繰り返し実行される。す
なわち、部門別合計器の部門1合計器を、ロード
エリア(WORK1)へロードし、点数および金額
エリアのデータ有無を判定する。点数、金額デー
タ共にデータ無しであれば、部門2合計器を同様
にロードし、判定する。全ての合計器にデータが
なければ、カセツトテープへのデータ記録は行わ
れず売上げレポートの印字処理に移る。 First, when the mode switch is turned to Z settlement and the total key is pressed, the process advances from step (1) to step (2), and then steps (3) to (7) are repeatedly executed. That is, the department 1 totalizer of the departmental totalizers is loaded into the load area (WORK1), and the presence or absence of data in the score and amount areas is determined. If there is no data for both points and amount data, load the department 2 totalizer in the same way and make a determination. If there is no data in all the totalizers, the data is not recorded on the cassette tape and the process moves on to printing a sales report.
これに対して、部門1〜5合計器の何れかにデ
ータが存在する場合には、ステツプ(8)が実行され
て、ロードした合計器の点数および金額データの
桁数が計算され、それぞれの桁数エリアに格納さ
れる。(WORK2,WORK3)。 On the other hand, if data exists in any of the department 1 to 5 totalizers, step (8) is executed, the points of the loaded totalizer and the number of digits of the amount data are calculated, and each Stored in the number of digits area. (WORK2, WORK3).
次に、初期セツト処理において、プリセツトさ
れた、記録データ桁数制限値による、本発明のデ
ータ記録方式の処理に入る。 Next, in the initial set processing, processing of the data recording method of the present invention is started using the preset recording data digit limit value.
今仮に、部門1合計器のデータが、点数200点、
金額20000円、部門2合計器のデータが、点数
1000点、金額1000000円であり、また制限桁数お
よび制限データが、点数3桁(999点)、金額6桁
(999999円)でプリセツトされているものとする。 For example, if the data for the department 1 totalizer is 200 points,
The amount is 20,000 yen, and the data from the department 2 total meter is the score.
It is assumed that the number of points is 1,000 and the amount is 1,000,000 yen, and the limit number of digits and limit data are preset as 3 digits for points (999 points) and 6 digits for amount (999,999 yen).
この場合、部門1合計器をロードした時、デー
タ桁数、点数3桁、金額5桁となり、両データと
も、制限桁数以内であるので、ステツプ(9)→ステ
ツプ(10)→ステツプ(13)→ステツプ(14)→ステ
ツプ(18)と順次実行され、ロードされたデータ
はそのままカセツト記録データエリア1
(WORK4)に格納される。ついで、ステツプ
(19)が実行され、記録データとなつたデータを
ロードエリア(WORK1)より減算した結果を、
ロードエリアに格納する。このとき、ロードエリ
アは同じデータが減算されるのでその内容は0と
なる。 In this case, when the department 1 totalizer is loaded, the number of data digits, the score is 3 digits, and the amount is 5 digits, and both data are within the limit number of digits, so step (9) → step (10) → step (13) ) → Step (14) → Step (18) are executed sequentially, and the loaded data is transferred to the cassette recording data area 1 as it is.
Stored in (WORK4). Next, step (19) is executed, and the result of subtracting the recorded data from the load area (WORK1) is
Store in the load area. At this time, the same data is subtracted from the load area, so its contents become 0.
ついで、ステツプ(20)〜ステツプ(25)が実
行され、データフオーマツトの編集に入り、部門
コードが部門コードエリア(WORK5)にロード
されるとともに記録データエリア1(WORK4)
に格納されている点数および金額データが各制御
桁数だけ記録データエリア2(WORK6)にロー
ドされ、その後WORK5とWORK6のデータが第
7図の部門1合計器データ部に示すようにカセツ
トテープへと記録される。記録終了後、再度ロー
ドエリア(WORK1)のデータ有無が判定される
が、このとき当該エリアは0となつているので、
次の部門に合計器データのロードが行われる。 Next, steps (20) to (25) are executed, the data format is edited, the department code is loaded into the department code area (WORK5), and the recording data area 1 (WORK4) is loaded.
The points and amount data stored in are loaded into the recording data area 2 (WORK6) for each control digit, and then the data of WORK5 and WORK6 are transferred to the cassette tape as shown in the department 1 totalizer data section in Figure 7. is recorded. After recording is finished, the presence or absence of data in the load area (WORK1) is determined again, but at this time the area is 0, so
Totalizer data is loaded to the next department.
部門2合計器は、点数4桁、金額7桁のデータ
となつているため、両データとも、制限桁以上と
なり、記録データエリア1(WORK4)へは、プ
リセツトされている点数制御値データおよび金額
制限値データが格納される。これは、ステツプ(9)
→ステツプ(10)→ステツプ(11)→ステツプ(12)
→(15)の順次実行されることにより行われる。 Since the department 2 totalizer has data of 4 digits for points and 7 digits for amount, both data exceed the limit digits, and the preset point control value data and amount are stored in recording data area 1 (WORK4). Limit value data is stored. This is step (9)
→ Step (10) → Step (11) → Step (12)
→ (15) is executed in sequence.
更に、ロードした部門2合計器データより、こ
の記録データとなるべき制限データを点数、金額
共に減算し、結果をロードエリアへ格納する。従
つて、ロードエリアには、(部門2合計)−(制限
データ)の内容が格納されたことになる。つい
で、部門1合計データ記録時と同様に、部門コー
ドと記録データとなつた点数および金額の制限デ
ータ第7図の部門2合計器データ部の1回目部分
に示すようにカセツトテープへと記録される。記
録終了後、ロードエリア(WORK1)のデータ有
無が判定されるがこのとき該当エリアには、(部
門2合計)−(制限データ)の内容が格納されてお
り、またデータ桁数は点数1桁、金額1桁となり
両データとも制限桁数以内であるので、部門1合
計データ記録時と同様に、部門コードと点数およ
び金額データが各制限桁数だけ第7図の部門2合
計器データ部の2回目部分に示すようにカセツト
テープへと記録される。 Furthermore, both the points and the amount of the restriction data to be recorded data are subtracted from the loaded department 2 totalizer data, and the results are stored in the load area. Therefore, the contents of (total of department 2) - (restriction data) are stored in the load area. Then, in the same way as when recording the department 1 total data, the department code and the point and amount restriction data that became the recorded data are recorded on the cassette tape as shown in the first part of the department 2 totalizer data section in Figure 7. Ru. After recording is completed, the presence or absence of data in the load area (WORK1) is determined, but at this time, the content of (Department 2 total) - (restriction data) is stored in the corresponding area, and the number of data digits is 1 point. , since the amount is 1 digit and both data are within the limit number of digits, the department code, points, and amount data are stored in the department 2 totalizer data section in Figure 7 by the limit number of digits, just like when recording the department 1 total data. As shown in the second part, the data is recorded onto a cassette tape.
かくして、この実施例に示される磁気テープ記
録装置によれば、各部門別合計器の出力データ
が、それぞれ制限桁数以内である場合において
は、当該点数データおよび金額データはそれぞれ
1レコードエリア内に一括して記憶されるのに対
して、点数データおよび金額データが、それぞれ
制限桁数を超える場合には、第7図の部門2合計
器データ部の1回目部分に示すように制限データ
が記録され、制限データを超えた部分については
順次次のレコードエリアに記録され、最後に第7
図の部門2合計器データ部の2回目部分に示すよ
うなデータが記録されることになるから、前記レ
コードエリアの制限桁数を、たとえば最も発生頻
度の高い桁数に設定しておくことによつて、テー
プ上の記録エリアを効率良く使用することがで
き、同時にテープを無駄に走行させないため、記
録時間の短縮化を計ることができるのである。ま
た、このようにして、一つの部門のデータを二つ
以上のレコードエリアに分割記録した場合には、
各レコードエリアの先頭に当該データに対応する
部門コードが順次付されることとなるため(第7
図参照)、その後磁気テープを読み取る場合には、
この部門コードに基づいて当初のデータを確実に
再現することができるものである。 Thus, according to the magnetic tape recording device shown in this embodiment, when the output data of each departmental totalizer is within the limited number of digits, the score data and amount data are each stored in one record area. However, if the score data and amount data each exceed the limit number of digits, the limit data is recorded as shown in the first part of the department 2 totalizer data section in Figure 7. The portion exceeding the limit data is recorded in the next record area, and finally the 7th record area is recorded.
Since the data shown in the second part of the section 2 totalizer data section in the figure will be recorded, the limit number of digits in the record area should be set, for example, to the number of digits that occurs most frequently. Therefore, the recording area on the tape can be used efficiently, and at the same time, since the tape is not run unnecessarily, the recording time can be shortened. Also, if data for one department is divided and recorded in two or more record areas in this way,
Since the department code corresponding to the data is sequentially attached to the beginning of each record area (7th
(see figure), then when reading magnetic tape,
The original data can be reliably reproduced based on this department code.
なお、この実施例では、制限桁によつて各合計
器のデータを大小判別するように構成したが、制
限データによつて分割することも可能である。こ
の場合には、第6図のフローチヤートにおいて、
桁数判定ルーチンであるステツプ(10)、(12)およ
び(14)を、制限データの判定にすることによつ
て実現することができる。 In this embodiment, the data of each totalizer is determined in size based on the limit digit, but it is also possible to divide the data based on the limit data. In this case, in the flowchart of FIG.
This can be realized by making steps (10), (12) and (14), which are the digit number determination routine, to determine limit data.
以上の実施例の説明でも明らかなように、この
発明に係わる記録装置は、それぞれ任意の桁数を
有する複数の数値データを、記録媒体の各レコー
ドエリアに順次記録する記録装置であつて;
記録媒体に記録されるデータの桁数を制限する
桁数制限値を最も発生頻度の高い桁数に設定して
記憶するメモリ
被記録数値データの大きさと前記桁数制限値と
を比較するデータサイズ判別手段と;
前記データサイズ判別手段の判別結果が、制限
桁数より大きい場合には、前記桁数制限値を超え
る残りの数値データを、次のレコードエリアに順
次記録させるオーバサイズデータ処理手段とを具
備するものであるから、この種記録装置において
記録密度を向上させて記録媒体の記録エリアを無
駄に使用することを防止できるとともに、記録時
間を短縮することができる。 As is clear from the description of the embodiments above, the recording device according to the present invention is a recording device that sequentially records a plurality of numerical data each having an arbitrary number of digits in each record area of a recording medium; A memory that stores a digit limit value that limits the number of digits of data recorded on a medium by setting it to the number of digits that occurs most frequently.Data size determination that compares the size of recorded numerical data with the digit limit value. means; and oversize data processing means for sequentially recording the remaining numerical data exceeding the digit limit value in the next record area when the determination result of the data size determination means is larger than the limit number of digits. Because of this, it is possible to improve the recording density in this type of recording apparatus, prevent the recording area of the recording medium from being wasted, and shorten the recording time.
第1図は、従来の磁気テープ記録装置におけ
る、磁気テープ上の記録フオーマツトを示す図、
第2図は、ECRの外観図、第3図は、ECRの操
作パネルの正面図、第4図は、ECRのシステム
構成を示すブロツク図、第5図は、ワーキング
RAMの内容を示すメモリマツプ、第6図は、こ
のECRにおける、磁気テープ記録動作を示すフ
ローチヤート、第7図は、磁気テープ記録装置に
よる、磁気テープ上の記録フオーマツトを示す図
である。
5……カセツトデツキ、10,12,14……
データサイズ判別手段、19……オーバサイズデ
ータ処理手段。
FIG. 1 is a diagram showing a recording format on a magnetic tape in a conventional magnetic tape recording device.
Figure 2 is an external view of the ECR, Figure 3 is a front view of the ECR operation panel, Figure 4 is a block diagram showing the ECR system configuration, and Figure 5 is a working diagram of the ECR.
A memory map showing the contents of the RAM, FIG. 6 is a flowchart showing the magnetic tape recording operation in this ECR, and FIG. 7 is a diagram showing the recording format on the magnetic tape by the magnetic tape recording device. 5...Cassette deck, 10, 12, 14...
Data size determination means, 19... Oversize data processing means.
Claims (1)
タを、記録媒体の各レコードエリアに順次記録す
る記録装置であつて; 記録媒体に記録されるデータの桁数を制限する
桁数制限値を最も発生頻度の高い桁数に設定して
記憶するメモリと; 被記録数値データの大きさと前記桁数制限値と
を比較するデータサイズ判別手段と; 前記データサイズ判別手段の判別結果が、制限
桁数より大きい場合には、前記桁数制限値を越え
る残りの数値データを、次のレコードエリアに順
次記録させるオーバサイズデータ処理手段とを具
備することを特徴とする記録装置。 2 前記記録媒体の相連続レコードエリアに、同
一数値データが分割記録されていることを示す識
別符号を付すことを特徴とする特許請求の範囲第
1項記載の記録装置。 3 前記記録媒体は、磁気テープであることを特
徴とする特許請求の範囲第1項または第2項記載
の記録装置。[Claims] 1. A recording device that sequentially records a plurality of numerical data each having an arbitrary number of digits in each record area of a recording medium; A digit that limits the number of digits of data recorded on the recording medium. a memory for setting and storing a numerical limit value to the number of digits with the highest frequency of occurrence; a data size determining means for comparing the size of recorded numerical data with the digit limit value; a determination result of the data size determining means; is larger than the limit number of digits, oversize data processing means for sequentially recording the remaining numerical data exceeding the limit number of digits in the next record area. 2. The recording device according to claim 1, wherein an identification code indicating that the same numerical data is dividedly recorded is attached to consecutive record areas of the recording medium. 3. The recording device according to claim 1 or 2, wherein the recording medium is a magnetic tape.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9176281A JPS57205809A (en) | 1981-06-15 | 1981-06-15 | Magnetic tape recording device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9176281A JPS57205809A (en) | 1981-06-15 | 1981-06-15 | Magnetic tape recording device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57205809A JPS57205809A (en) | 1982-12-17 |
| JPH043023B2 true JPH043023B2 (en) | 1992-01-21 |
Family
ID=14035558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9176281A Granted JPS57205809A (en) | 1981-06-15 | 1981-06-15 | Magnetic tape recording device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57205809A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62107396A (en) * | 1985-11-05 | 1987-05-18 | 三洋電機株式会社 | Electronic type cash register |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS53110510A (en) * | 1977-03-08 | 1978-09-27 | Fujitsu Ltd | Data recording method for recording medium featuring plural fixed length recording units |
-
1981
- 1981-06-15 JP JP9176281A patent/JPS57205809A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57205809A (en) | 1982-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0361238B2 (en) | ||
| EP0114261B1 (en) | Information recording system | |
| US4419738A (en) | Unit-price presetting method for electronic cash registers | |
| JPS6299893A (en) | Electronic type cash register | |
| US3983577A (en) | Introduction of data entry completion signals to a cassette tape containing data processing terminal unit | |
| JPS63303495A (en) | Transaction processor | |
| JPS6246904B2 (en) | ||
| JPH043023B2 (en) | ||
| JPS6125187B2 (en) | ||
| JPH026119B2 (en) | ||
| JPS6226517B2 (en) | ||
| JPS5896368A (en) | Electronic cash register | |
| US3521043A (en) | Ripple-free binary coded decimal accumulator forming correct result during single memory accessing cycle | |
| JPS594350Y2 (en) | electronic cash register | |
| JPS6120019B2 (en) | ||
| JPS6137114Y2 (en) | ||
| JPH026120B2 (en) | ||
| JP2561355B2 (en) | Electronic cash register | |
| JPH0325262Y2 (en) | ||
| JPH0430292A (en) | electronic cash register | |
| JPS5831005B2 (en) | Electronics | |
| JP2796639B2 (en) | Sales data processing device | |
| JP2547614B2 (en) | Electronic cash register | |
| JPS58161073A (en) | Electronic cash register | |
| JPS5949659A (en) | Returned article registration controlling method of electronic cash register |