JPH07104881B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH07104881B2
JPH07104881B2 JP22326884A JP22326884A JPH07104881B2 JP H07104881 B2 JPH07104881 B2 JP H07104881B2 JP 22326884 A JP22326884 A JP 22326884A JP 22326884 A JP22326884 A JP 22326884A JP H07104881 B2 JPH07104881 B2 JP H07104881B2
Authority
JP
Japan
Prior art keywords
data
flag
sales
area
classification
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
Application number
JP22326884A
Other languages
Japanese (ja)
Other versions
JPS61101894A (en
Inventor
伴三 都築
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP22326884A priority Critical patent/JPH07104881B2/en
Publication of JPS61101894A publication Critical patent/JPS61101894A/en
Publication of JPH07104881B2 publication Critical patent/JPH07104881B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、データ収集装置との間でデータの送受信を
実行可能な売上データ処理装置に関する。
Description: TECHNICAL FIELD The present invention relates to a sales data processing device capable of transmitting / receiving data to / from a data collecting device.

[従来の技術] 近年、電子レジスタのシステム化が進み、オンラインま
たはインラインを用いてスレーブ側の電子レジスタ(売
上データ処理装置)からマスター側の電子レジスタ(デ
ータ収集装置)に対して点検を行う都度、売上データ処
理装置の売上合計データの全てを伝送してデータ収集装
置で集計させるようになっている。
[Prior Art] In recent years, systemization of electronic registers has progressed, and each time an electronic register (sales data processing device) on the slave side inspects the electronic register (data collection device) on the master side using online or inline. , All the sales total data of the sales data processing device is transmitted and totaled by the data collection device.

[発明が解決しようとする課題] しかしながら、売上合計データの全てを点検毎に伝送す
ることは、伝送時間が長くなり、電話回線等のランニン
グコストが高くなり、その費用も膨大なものとなる。そ
こで、更新されている売上合計データだけを点検毎にオ
ペレータが別ファイルに抽出して伝送することで電話回
線等のランニングコストを下げることも考えられるが別
ファイルを作成するために非常に手間がかかってしま
う。
[Problems to be Solved by the Invention] However, transmitting all the sales total data for each inspection requires a long transmission time, a high running cost of a telephone line, and the cost thereof is enormous. Therefore, it is conceivable that the operator may reduce the running cost of the telephone line etc. by extracting and transmitting only the updated sales total data to a separate file for each inspection, but it is very troublesome to create a separate file. It will take.

この発明の課題は、更新されたデータのみを出力するこ
とがその出力の度に簡単に行えるようにすることであ
る。
An object of the present invention is to make it possible to easily output only updated data each time it is output.

[課題を解決するための手段] この発明の手段は次の通りである。[Means for Solving the Problems] Means of the present invention are as follows.

データ記憶手段は、複数の分類を有し、この各分類に対
応してデータを記憶する、例えば売上合計データを分類
別に記憶する合計メモリ3のエリアM1、M2、M3等であ
る。
The data storage means has a plurality of classifications, and stores data corresponding to each classification, for example, areas M1, M2, M3, etc. of the total memory 3 that stores sales total data by classification.

更新手段は、上記複数の分類のうち何れかの分類を指定
して、その分類に対応するデータを更新する、例えば登
録された売上データを累計するCPU2及びこのCPU2で処理
されるステップS4、S7等である。
The updating means specifies any one of the plurality of classifications and updates the data corresponding to the classification, for example, CPU2 that accumulates registered sales data and steps S4 and S7 processed by this CPU2. Etc.

フラグ記憶手段は、この更新手段により上記指定分類に
対応するデータが更新された際に、そのことを示すフラ
グを上記指定分類に対応づけて記憶する、例えば初期あ
るいは伝送後において売上合計データ等が更新されたこ
とを示すフラグを前記分類別の売上合計データに対応づ
けて記憶する合計メモリ3のエリアM4等である。
The flag storage means, when the data corresponding to the designated classification is updated by the updating means, stores a flag indicating that in association with the designated classification. For example, the total sales data etc. at the initial stage or after the transmission is stored. An area M4 and the like of the total memory 3 for storing a flag indicating that it has been updated in association with the sales total data for each classification.

出力指定手段は、上記データ記憶手段に記憶された各デ
ータの出力、例えばデータ収集装置へ売上合計データを
伝送することを指定するモードスイッチ1D及び、現金/
預かりキー等である。
The output designating means is an output of each data stored in the data storing means, for example, a mode switch 1D for designating transmission of total sales data to a data collecting device, and cash / cash /
A custody key or the like.

判別手段は、上記出力指定手段によりデータの出力が指
定された際に、上記各分類のうちのどの分類のデータが
更新されたかを、上記フラグに基づいて判別する、例え
ば伝送処理に先立って売上合計データが更新されたかを
フラグを参照して判別するCPU2及びこのCPU2で処理され
るステップS35等である。
The determining means determines, based on the flag, which of the above categories the data has been updated when the output of the data is designated by the output designating means, for example, sales prior to transmission processing. CPU2 for determining whether the total data has been updated by referring to the flag, step S35 processed by this CPU2, and the like.

データ出力手段は、上記判別手段により上記フラグが対
応づけて記憶された分類を抽出し、その抽出された分類
に対応するデータを出力する、例えば売上合計データの
うち更新されたと判別された売上合計データのみをデー
タ収集装置へ伝送する伝送部4等である。
The data output means extracts the category stored by being associated with the flag by the determining means and outputs the data corresponding to the extracted category, for example, the total sales determined to be updated in the total sales data. The transmission unit 4 and the like transmit only data to the data collection device.

解除手段は、上記データ出力手段によりデータ出力の行
われた分類については、その分類に対応する上記フラグ
を解除する例えば伝送を行った売上合計データについて
は、この伝送した売上合計データと対応するフラグを売
上合計データが未更新であることを示す状態となるよう
解除するCPU2及びこのCPU2で処理されるステップS28等
である。
The canceling means cancels the flag corresponding to the classification for which the data is output by the data outputting means. For example, for the total sales data transmitted, the flag corresponding to the total sales data transmitted. Is a CPU2 for releasing the total sales data to a state indicating that it has not been updated, and step S28 and the like processed by this CPU2.

[作用] この発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

複数の分類の各分類に対応してデータが記憶されるデー
タ記憶手段と、また上記各分類に対応づけられてフラグ
が記憶されるフラグ記憶手段が設けられており、複数の
分類のうち何れかの分類を指定することで、その分類に
対応するデータが更新手段によって更新される。そし
て、更新手段により上記指定分類に対応するデータが更
新された際に、そのことを示すフラグが上記指定分類に
対応づけられているフラグ記憶手段に記憶される。そし
て、出力指定手段によって上記データ記憶手段に記憶さ
れた各データを出力することが指定された際に、判別手
段は上記各分類のうちのどの分類のデータが更新された
かを、上記フラグに基づいて判別し、データ出力手段は
上記判別手段により上記フラグが対応づけて記憶された
分類を抽出し、その抽出された分類に対応するデータを
出力する。また、上記データ出力手段によりデータ出力
の行われた分類については、その分類に対応する上記フ
ラグが解除手段によって解除される。
Data storage means for storing data corresponding to each of a plurality of classifications and flag storage means for storing a flag corresponding to each of the above classifications are provided, and any one of the plurality of classifications is provided. By specifying the category, the data corresponding to the category is updated by the updating means. Then, when the data corresponding to the designated classification is updated by the updating means, a flag indicating that is stored in the flag storage means associated with the designated classification. Then, when the output designating unit designates to output each data stored in the data storing unit, the discriminating unit determines, based on the flag, which data in each of the categories has been updated. The data output means extracts the classification stored by the determination means in association with the flag, and outputs the data corresponding to the extracted classification. Further, with respect to the classification whose data is output by the data output means, the flag corresponding to the classification is canceled by the canceling means.

したがって、更新された売上合計データのみを伝送する
ことがその伝送の度に簡単にできるようになる。
Therefore, it becomes possible to easily transmit only the updated sales total data for each transmission.

[実施例] 以下、図面に示す一実施例に基づいて具体的に説明す
る。第1図はスレーブ側の電子レジスタにおける概略シ
ステム構成図を示している。入力部1のキーボード上に
は、置数キー1A、部門別キー1B、現金/預かり金キー1C
等の各種のキーが備えられている他、モードスイッチ1
D、クリアキー1Eが設けられている。モードスイッチ1D
は設定モード、精算モード、点検モード、電源OFFモー
ド、登録モードを切換える。しかして、入力部1から操
作キーに対応して出力されるキー操作信号およびモード
スイッチ1Dの各切換位置に対応して出力されるモード指
定信号はCPU(中央演算処理回路)2に入力される。
[Embodiment] Hereinafter, a specific description will be given based on an embodiment shown in the drawings. FIG. 1 shows a schematic system configuration diagram in an electronic register on the slave side. On the keyboard of the input unit 1, a numeric key 1A, a department key 1B, a cash / deposit key 1C
In addition to various keys such as, mode switch 1
D and clear key 1E are provided. Mode switch 1D
Switches between setting mode, settlement mode, inspection mode, power OFF mode and registration mode. Then, the key operation signal output from the input unit 1 corresponding to the operation key and the mode designation signal output corresponding to each switching position of the mode switch 1D are input to the CPU (central processing unit) 2. .

CPU2は予め記憶されているマイクロ命令にしたがって各
種の動作を制御するもので、A〜Fレジスタ、制御部C
T、演算部ALを有する構成となっている。しかして、CPU
2は合計メモリ3との間でデータの授受を行うことによ
り合計メモリ3内の売上データを累計したり、合計メモ
リ3内の売上合計データを読み出して伝送部4に送り、
後述するデータ収集装置へ伝送する。なお、CPU2の制御
下において、売上データ等が表示部5および印字部6に
送られ、またドロア7が開放されるようになっている。
The CPU 2 controls various operations according to prestored micro-instructions. The A to F registers, the control unit C
It has a configuration including T and an arithmetic unit AL. Then the CPU
2 transmits and receives data to and from the total memory 3 to accumulate the sales data in the total memory 3 or read the total sales data in the total memory 3 and send it to the transmission unit 4.
It is transmitted to the data collection device described later. Under the control of the CPU 2, sales data and the like are sent to the display unit 5 and the printing unit 6, and the drawer 7 is opened.

合計メモリ3は例えば、RAM(ランダムアクセスメモ
リ)によって構成され、CPU2の制御下でデータの書き込
みおよび読み出し動作が制御される。そして、この合計
メモリ3には取引別、責任者別等の売上合計データを記
憶するエリアMの他、部門別売上合計用のエリアM1〜M4
等を有している。ここで、エリアM1は部門コード、エリ
アM2は売上個数、エリアM3は売上金額、エリアM4は伝送
後売上入力無しフラグ即ち、部門別売上データをデータ
収集装置へ伝送したのちに、当該部門の売上げ有無に応
じてその部門の売上データを伝送するかを示すフラグを
記憶する。また、合計メモリ3には精算直後の最初の点
検を検出するために用いられる精算後点検無しフラグを
記憶するエリアM5、一取引の小計を記憶するエリアM6
当該電子レジスタ固有のマシンナンバを記憶するエリア
M7を有している。
The total memory 3 is composed of, for example, a RAM (random access memory), and data writing and reading operations are controlled under the control of the CPU 2. In addition to the area M that stores the total sales data for each transaction and each responsible person, the total memory 3 also includes areas M 1 to M 4 for total sales for each department.
And so on. Here, the area M 1 is the department code, the area M 2 is the sales quantity, the area M 3 is the sales amount, and the area M 4 is the no sales input flag after transmission, that is, after the sales data by department is transmitted to the data collection device, A flag is stored that indicates whether sales data of the department is to be transmitted depending on whether or not the sales of the department is performed. Further, in the total memory 3, an area M 5 for storing a post-settlement check-out flag used for detecting the first inspection immediately after the settlement, an area M 6 for storing a subtotal of one transaction,
Area for storing the machine number unique to the electronic register
Has M 7 .

次に、マスター側の電子レジスタ、即ち、データ収集装
置の構成を第2図を参照して説明する。このデータ収集
装置には集計用記憶部Sの他、各端末の電子レジスタに
対応する個別記憶部Kを有し、その他は、スレーブ側電
子レジスタと略同様に構成されているので、同一のもの
は同一符号をもって示し、その説明は省略する。集計用
記憶部Sは、取引別、責任者別等の集計データを記憶す
る他、部門コードに対応して売上個数、売上金額を記憶
するもので、各スレーブ側からの売上データが集計され
る。また、個別記憶部Kは、端末の数に対応した記憶部
K1〜Knを有し、各記憶部K1〜Knは対応する端末機のマシ
ンナンバを記憶するエリアMc1〜Mcnと、部門コードに対
応して売上個数、売上金額を記憶するエリアM1〜M3と、
集計の終了を示すフラグを記憶するエリアMsを有する構
成となっている。
Next, the configuration of the electronic register on the master side, that is, the data collecting device will be described with reference to FIG. This data collection device has an individual storage unit K corresponding to the electronic register of each terminal in addition to the totaling storage unit S. Are denoted by the same reference numerals, and the description thereof will be omitted. The tally storage unit S stores tally data for each transaction, each person in charge, and the like, and also stores the number of sales and the amount of sales corresponding to the department code, and the sales data from each slave side is tallyed. . The individual storage unit K is a storage unit corresponding to the number of terminals.
K 1 has a Kn, each storage unit K 1 Kn is the corresponding area Mc 1 for storing the machine number of the terminal that ~Mcn, the area M 1 for storing sales quantity, sales amount corresponding to the department code ~ M 3
It is configured to have an area Ms for storing a flag indicating the end of counting.

[実施例の動作] 次に、第3図〜第6図を参照してこの実施例の動作につ
いて説明する。第3図は部門別登録動作を示すフローチ
ャートである。置数キーを操作してから部門別キーを操
作すると、第3図のフローが実行開始される。先ず、ス
テップS1〜S8により部門別登録処理が実行される。即
ち、Aレジスタ(アドレスカウンタ)の値を+1ずつイ
ンクリメントしながら合計メモリ3のエリアM1からCレ
ジスタ内の部門コードを検索する(ステップS1、S2)。
このようにして指定部門が検索されると、指定部門に対
応するエリアM2内の売上個数が+1される(ステップ
S3、S4、S5)。そして、指定部門に対応するエリアM3
の売上金額にDレジスタの内容(今回の売上金額)が加
算される(ステップS6、S7、S8)。しかして、エリアM6
内の小計に今回の売上金額を加算する処理が実行される
(ステップS9、S10、S11)。
[Operation of Embodiment] Next, the operation of this embodiment will be described with reference to FIGS. FIG. 3 is a flowchart showing the registration operation by department. When the number keys are operated and then the department keys are operated, the flow of FIG. 3 is started. First, the divisional registration process is executed in steps S 1 to S 8 . That is, the department code in the C register is searched from the area M 1 of the total memory 3 while incrementing the value of the A register (address counter) by +1 (steps S 1 and S 2 ).
When the designated department is searched in this way, the number of sales in the area M 2 corresponding to the designated department is incremented by 1 (step
S 3 , S 4 , S 5 ). Then, the contents of the D register (current sales amount) is added to the sales amount in the area M 3 corresponding to the specified sector (step S 6, S 7, S 8 ). Then area M 6
The process of adding the sales amount of this time to the subtotal in is executed (steps S 9 , S 10 and S 11 ).

このような処理が終ると、次のステップS12ではエリアM
5内のフラグが「1」か否かが判断される。ここで、エ
リアM5内のフラグは、精算直後に「1」となり、精算直
後の最初の点検で「0」となるものであり、したがっ
て、ステップS12は精算後最初の点検が行なわれるまで
の間の初期登録かを検出するもので、初期登録でなけれ
ば、Aレジスタで指定される部門に対応するエリアM4
のフラグが「0」となる(ステップS13)。したがっ
て、最初の点検が行なわれてから部門別登録が行なわれ
ると、当該部門の売上データを伝送すべきことを示すフ
ラグ「0」がセットされるが、初期登録であれば、精算
時にエリアM4が全てクリアされているので、このような
処理(ステップS13)は実行されない。しかして、次の
ステップS14ではA〜Eレジスタの内容が全てクリアさ
れる。なお、第6図Aは、精算後における合計メモリ3
内のエリアM1〜M4の内容を示し、エリアM2の売上個数、
エリアM3の売上金額と共にエリアM4内のフラグは全て
「0」となっている。しかして、第6図Bは精算後最初
の点検が行なわれるまでの間に上述のような部門別登録
が実行された際における合計メモリ3内のエリアM1〜M4
の内容を示している。この場合、上述した部門別登録動
作から明らかなようにエリアM4内の各フラグは全て
「0」となっている。
When such processing is complete, the next step S 12 the area M
It is determined whether the flag in 5 is "1". Here, the flag in the area M 5, becomes "1" immediately after the settlement, which becomes "0" at the first inspection after settlement, hence, to step S 12 the first inspection carried out after settlement It detects the initial registration or during, if the initial registration, the flag in the area M 4 corresponding to the sector specified by the a register is "0" (step S 13). Therefore, if the division-based registration is performed after the first inspection, the flag “0” indicating that the sales data of the division should be transmitted is set, but if it is the initial registration, the area M is set at the time of settlement. Since all 4 are cleared, such processing (step S 13 ) is not executed. Thus, the contents of the next step S 14 the A~E register is cleared. In addition, FIG. 6A shows the total memory 3 after the settlement.
Shows the contents of the area M 1 ~M 4 of the inner, sales quantity of the area M 2,
All flags in the area M 4 along with the sales amount of the area M 3 and has a "0". Then, FIG. 6B shows areas M 1 to M 4 in the total memory 3 when the above-mentioned divisional registration is executed before the first inspection is performed after the settlement.
Shows the contents of. In this case, all the flags in the area M 4 are “0”, as is clear from the above-mentioned divisional registration operation.

次に、モードスイッチ1Dを操作して点検モードに切換え
ると共に、現金/預かり金キーを操作すると、第4図に
示したフローにしたがって点検処理が実行開始される。
即ち、先ず、データ収集装置に対してデータを送信する
ことを知らせる送信信号を発信し、これに伴ってデータ
収集装置から受信可能信号が来るまで待機する(ステッ
プS21、S22)。そして、受信可能信号が来ると、次のス
テップS23でAレジスタの値を+1したのち、エリアM5
内のフラグが「1」が、即ち、精算後の最初の点検かが
判断される(ステップS24)。最初の点検であれば、次
のステップS25でAレジスタの値が最終アドレス「n」
かが判断されるが、最初は最終アドレスには達していな
いので、ステップS25に進む。ここではエリアM7からマ
シンナンバ、Aレジスタで指定されるエリアM1〜M3から
部門コード、売上個数、売上金額を読み出してC〜Fレ
ジスタに転送される。このようにしてC〜Fレジスタに
取り込んだデータは、伝送部4に送られ、データ収集装
置へ伝送される(ステップS27)。その後、Aレジスタ
で指定されるエリアM4にフラグ「1」が書き込まれる
(ステップS28)。そして、Aレジスタの値が最終アド
レス「n」となるまで、ステップS29からステップS21
戻り、上述の動作が繰り返される結果、各部門に対応す
る売上データが伝送されると共に各部門に対するエリア
M4内のフラグが全て「1」となる。第6図Cはこの状態
におけるエリアM1〜M4の内容を示したものである。しか
して、各部門別売上データを伝送すると共に、最終の部
門に対応するエリアM4にフラグ「1」が書き込まれる
と、マシンナンバと共に伝送終了信号が伝送される(ス
テップS30、S31)。しかして、エリアM5内のフラグが
「0」にセットされたのち、A〜Fレジスタの内容が夫
々クリアされる(ステップS32、S33)。
Next, when the mode switch 1D is operated to switch to the inspection mode and the cash / deposit money key is operated, the inspection process is started according to the flow shown in FIG.
That is, first, a transmission signal for informing the data collection device that data is to be transmitted is transmitted, and along with this, it waits until a receivable signal comes from the data collection device (steps S 21 and S 22 ). Then, when a receivable signal arrives, the value of the A register is incremented by 1 in the next step S 23 , and then the area M 5
Flag of the inner is "1", i.e., the first or servicing after settlement is determined (step S 24). If the first inspection, the value of the A register in the next step S 25 the final address "n"
While either is determined, since initially does not reach the final address, the process proceeds to step S 25. Here machine number from the area M 7 is the department code from the area M 1 ~M 3 specified by the A register is transferred sales quantity, it reads the sales amount to C~F register. Data taken in C~F register this way is sent to the transmission unit 4 is transmitted to the data acquisition device (step S 27). Thereafter, the flag "1" is written into the area M 4 specified by the A register (step S 28). Then, until the value of the A register is the final address "n", the process returns from step S 29 to step S 21, the result of the above-described operation is repeated, the area of each sector together with the sales data corresponding to each sector is transmitted
Flag in the M 4 is all set to "1". FIG. 6C shows the contents of the areas M 1 to M 4 in this state. Thus, the transmitting departmental sales data, when the area M 4 corresponding to the last sector flag "1" is written, the transmission end signal is transmitted along with the machine number (step S 30, S 31) . Thus, after the flag in the area M 5 is set to "0", the contents of A~F register is s cleared respectively (step S 32, S 33).

このように最初の点検が終ると、エリアM5内のフラグが
「0」にセットされるので、部門別登録処理を行ったの
ち、次の点検操作が行なわれると、第4図のフローが実
行開始されるが、今度はステップS24では「NO」、即
ち、精算直後の点検ではないことが判別され、ステップ
S34に進み、Aレジスタの値で指定されるエリアM4内の
フラグがBレジスタに転送され、このBレジスタの内容
に基づいてそのフラグが「1」か否かの判断が行なわれ
る。この場合、最初は部門1に対応するフラグが読み出
されるが、第6図dに示すように最初の点検から次の点
検までの間にその部門の登録が行なわれず、その部門の
売上データが更新されてないときにはフラグは「1」の
ままであるから、次のステップS36に進むが、最初はA
レジスタの値が最終アドレス「n」に達していないの
で、ステップS21に戻る。したがって、エリアM4内のフ
ラグが「1」のままとなっている部門1の売上データは
最初の点検時に伝送したので今回の点検では伝送されな
いことになる。しかして、次に部門2が指定され、その
部門に対応するフラグが読み出されるが、部門2におい
ては、第6図dに示すように、最初の点検から次の点検
までの間にその部門の登録が行なわれたから、第3図の
部門別登録処理のステップS13でエリアM4内のフラグは
「0」となっている。したがって、この場合には、ステ
ップS35からステップS25に進み、そしてステップS26、S
27の実行により部門2に対する売上データが伝送され
る。その後、その部門に対応するエリアM4内のフラグが
「1」にセットされる(ステップS28)。このような動
作が各部門に対して実行され、最終部門に対する処理が
終了すると、ステップS36でそのことが検出され、ステ
ップS30以降が順次実行されることになる。このように
2回目以降の点検では点検から点検までの間に部門別登
録が行なわれ、その部門の売上データが更新されたもの
のみを伝送するようになるから、データの伝送量を削減
することが可能となる。
When the first inspection is completed in this way, the flag in area M 5 is set to "0". Therefore, when the next inspection operation is performed after performing the departmental registration processing, the flow of FIG. 4 is performed. Although starts running, turn in step S 24, "nO", i.e., it is determined that it is not at the inspection immediately after the settlement, the step
Proceeds to S 34, the flag in the area M 4 specified by the value of the A register is transferred to B register, the flag on the basis of the contents of the B register is "1" whether the determination is made. In this case, the flag corresponding to the department 1 is first read, but as shown in FIG. 6d, the department is not registered between the first inspection and the next inspection, and the sales data of the department is updated. If not, the flag remains "1", so the process proceeds to the next step S36 , but initially A
Since the value of the register has not reached the final address "n", the flow returns to step S 21. Therefore, the sales data of the department 1 in which the flag in the area M 4 remains “1” is transmitted at the first inspection and is not transmitted at this inspection. Then, the department 2 is designated next, and the flag corresponding to the department is read out. However, in the department 2, as shown in FIG. Since the registration has been performed, the flag in the area M 4 is “0” in step S 13 of the departmental registration processing of FIG. Therefore, in this case, the process proceeds from step S 35 to step S 25, and step S 26, S
Execution of 27 transmits the sales data for department 2. Thereafter, the flag in the area M 4 corresponding to the sector is set to "1" (step S 28). Such operation is performed for each division, the processing for the last sector ends, the fact is detected in step S 36, so that the step S 30 and subsequent steps are executed sequentially. In this way, in the second and subsequent inspections, registration by department is performed between inspections, and only the updated sales data for that department will be transmitted, so reduce the amount of data transmission. Is possible.

次に、第5図を参照してデータ収集装置側の動作につい
て説明する。まず、スレーブ側から送信信号の有無を判
別し、あれば受信可能信号を発信する(ステップS41、S
42)。その後、伝送データの有無を判断し、有れば、伝
送されたマシンナンバに対応するメモリを個別記憶部K
を検索するが、無ければ伝送データが有るまで待機する
(ステップS43、S44)。しかして、次のステップS45
はエンド信号の有無を判断し、無ければ、伝送データの
部門を検索する(ステップS46)。このような検索処理
が終了すると、ステップS47〜S50では売上データの集計
処理が行なわれる。この場合、集計は売上個数および売
上金額に対して夫々行なわれると共に、伝送データから
個別記憶部K内の売上データを減算してからその値を集
計用記憶部Sに加算することにより行なわれる。しかし
て、次のステップS51では全ての端末機に対応するエリ
アMs内のフラグ「1」か、即ち、全ての端末に対する集
計処理が終了したかが判断され、終了していなければ、
ステップS41に戻り、上述の動作が繰り返される。しか
して、ステップS45でエリアMs内のフラグが「1」とな
り、その端末の伝送が終了したことを検出すると、次の
ステップS52でそのマシンナンバに対応するエリアMsに
フラグ「1」をセットしたのち、ステップS51に進む。
Next, the operation of the data collection device side will be described with reference to FIG. First, the slave side determines whether or not there is a transmission signal, and if there is, transmits a receivable signal (steps S 41 , S
42 ). After that, the presence or absence of the transmission data is determined, and if there is, the memory corresponding to the transmitted machine number is stored in the individual storage unit K.
Is searched, but if there is not, it waits until there is transmission data (steps S 43 and S 44 ). Thus, it is determined whether there is a next step S 45 the end signal, if not, retrieves the division of the transmission data (step S 46). When such a search process is completed, a sales data tabulation process is performed in steps S 47 to S 50 . In this case, the totaling is performed for each of the sales quantity and the sales amount, and is performed by subtracting the sales data in the individual storage unit K from the transmission data and then adding the value to the totaling storage unit S. Thus, the flag "1" or in the area Ms corresponding to the next step S all the 51 terminal, i.e., whether aggregation processing for all the terminals has been completed is determined, and if not completed,
Returning to step S 41 , the above operation is repeated. Thus, the flag is "1" in the area Ms in step S 45, the transmission of the terminal detects that it has ended, the flag "1" to the area Ms corresponding to the machine number in the next step S 52 After setting, proceed to step S 51 .

このようにして全ての端末に対する集計処理が終ると、
ステップS51でそのことが検出され、ステップS53に進
み、個別記憶部Kおよび集計要記憶部Sの内容を全て読
み出し、印字部5に送り、記録用紙に順次印字させる。
そして、個別記憶部Kおよび集計要記憶部Sからデータ
を読み出したエリアを夫々クリアすると共に、全てのエ
リアMsをクリアする(ステップS54、S55)。
In this way, when the counting process for all terminals is completed,
As it is detected in step S 51, the process proceeds to step S 53, reads the entire contents of the individual storage unit K and aggregate main storage unit S, the feed to the printing unit 5, thereby sequentially printing on a recording paper.
Then, the areas from which data has been read out from the individual storage unit K and the totalization storage unit S are cleared, respectively, and all areas Ms are cleared (steps S 54 and S 55 ).

なお、上記実施例では各部門に対応するエリアM4内のフ
ラグに応じてその部門の売上データを伝送するかを判別
するようにしたが、売上データが更新されたか否かに応
じて売上データ自身を用いて判別するようにしてもよ
い。この場合、売上データとしては売上個数であっても
よく、また売上金額であってもよい。更に、最初の点検
時には全ての売上データを伝送するようにしたが、最初
の点検時までに登録がないものは伝送しなくともよい。
その他、この発明を逸脱しない範囲内において種々変形
応用可能である。
In the above embodiment, it is determined whether the sales data of the department is to be transmitted according to the flag in the area M 4 corresponding to each department, but the sales data is determined according to whether the sales data is updated. You may make it discriminate | determining using itself. In this case, the sales data may be the number of units sold or the amount of sales. Further, although all sales data are transmitted at the time of the first inspection, data not registered by the time of the first inspection need not be transmitted.
Besides, various modifications can be applied without departing from the present invention.

[発明の効果] この発明によれば、データ更新されたことを示すフラグ
が記憶されているデータのみを出力しこのデータ出力の
行なわれた分類に対応するフラグを解除するようにした
ことで、更新されたデータのみの出力をその出力の度に
簡単に行えるようになる。したがって、点検出力等によ
るデータ伝送の度に伝送データ量を大幅に減らすことが
簡単にできるようになる。
[Effects of the Invention] According to the present invention, only the data in which the flag indicating that the data has been updated is stored and the flag corresponding to the classification in which this data is output is canceled. It becomes possible to easily output only the updated data for each output. Therefore, it becomes possible to easily greatly reduce the amount of transmitted data each time data is transmitted by inspection output or the like.

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

図面は実施例を示し、第1図はスレーブ側の電子レジス
タを示した概略システム構成図、第2図はマスター側の
データ収集装置の概略システム構成図、第3図および第
4図はスレーブ側の動作を説明するフローチャートを示
した図、第5図はマスター側の動作を説明するフローチ
ャートを示した図、第6図は第1図で示した合計メモリ
の記憶状態を時系列的に示したもので、第6図Aは精算
後、第6図Bは登録後、第6図Cは最初の点検後、第6
図dは次の点検後を示した図である。 1……入力部、2……CPU、3……合計メモリ、4……
伝送部。
The drawings show embodiments, FIG. 1 is a schematic system configuration diagram showing an electronic register on the slave side, FIG. 2 is a schematic system configuration diagram of a data acquisition device on the master side, and FIGS. 3 and 4 are slave sides. 5 is a diagram showing a flow chart for explaining the operation of FIG. 5, FIG. 5 is a diagram showing a flow chart for explaining the operation on the master side, and FIG. 6 is a time series showing the storage state of the total memory shown in FIG. Fig. 6A shows after payment, Fig. 6B shows after registration, and Fig. 6C shows after inspection.
FIG. D is a view showing after the next inspection. 1 ... Input section, 2 ... CPU, 3 ... Total memory, 4 ...
Transmission section.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G07G 1/14 (56)参考文献 特開 昭60−3770(JP,A) 特開 昭55−146562(JP,A) 特開 昭58−105375(JP,A) 特開 昭57−141742(JP,A) 特開 昭58−144277(JP,A)─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G07G 1/14 (56) References JP-A-60-3770 (JP, A) JP-A-55- 146562 (JP, A) JP 58-105375 (JP, A) JP 57-141742 (JP, A) JP 58-144277 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の分類を有し、この各分類に対応して
データを記憶するデータ記憶手段と、 上記複数の分類のうち何れかの分類を指定して、その分
類に対応するデータを更新する更新手段と、 この更新手段により上記指定分類に対応するデータが更
新された際に、そのことを示すフラグを上記指定分類に
対応づけて記憶するフラグ記憶手段と、 上記データ記憶手段に記憶された各データの出力を指定
する出力指定手段と、 この出力指定手段によりデータの出力が指定された際
に、上記各分類のうちのどの分類のデータが更新された
かを、上記フラグに基づいて判別する判別手段と、 上記判別手段により上記フラグが対応づけて記憶された
分類を抽出し、その抽出された分類に対応するデータを
出力するデータ出力手段と、 上記データ出力手段によりデータ出力の行われた分類に
ついては、その分類に対応する上記フラグを解除する解
除手段と、 を備えたことを特徴とするデータ処理装置。
1. A data storage unit having a plurality of classifications, which stores data corresponding to each of the classifications, and any one of the plurality of classifications is designated, and data corresponding to the classifications is stored. Update means for updating, flag storage means for storing a flag indicating that when the data corresponding to the designated classification is updated by the updating means, and stored in the data storage means Based on the flag, the output designating means for designating the output of each of the above-mentioned data and the classification of the data of each of the above classifications when the output of the data is designated by the output designating means is performed. Discriminating means for discriminating, a data output means for extracting the classification stored by the discrimination means in association with the flag and outputting data corresponding to the extracted classification, and the data outputting means. Classification made of data output by the means, the data processing apparatus characterized by comprising a releasing means for releasing the flag corresponding to the classification, the.
JP22326884A 1984-10-24 1984-10-24 Data processing device Expired - Lifetime JPH07104881B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22326884A JPH07104881B2 (en) 1984-10-24 1984-10-24 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22326884A JPH07104881B2 (en) 1984-10-24 1984-10-24 Data processing device

Publications (2)

Publication Number Publication Date
JPS61101894A JPS61101894A (en) 1986-05-20
JPH07104881B2 true JPH07104881B2 (en) 1995-11-13

Family

ID=16795449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22326884A Expired - Lifetime JPH07104881B2 (en) 1984-10-24 1984-10-24 Data processing device

Country Status (1)

Country Link
JP (1) JPH07104881B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5839352B2 (en) * 1979-04-28 1983-08-29 東芝テック株式会社 electronic cash register
JPS58105375A (en) * 1981-12-16 1983-06-23 Fujitsu Ltd Pos terminal device

Also Published As

Publication number Publication date
JPS61101894A (en) 1986-05-20

Similar Documents

Publication Publication Date Title
US4855908A (en) POS system
US4570223A (en) Cash register control system for authorization of selected operator functions
EP0114261A2 (en) Information recording system
US4399508A (en) Cash checking read operation in an electronic cash register
JPH07104881B2 (en) Data processing device
KR940001956B1 (en) Automatic processing method of transaction substance for cash register
JP3700763B2 (en) Product sales data processing system
JP2832936B2 (en) Customer management terminal
JP2993794B2 (en) Product sales data processing device
JP2001118149A (en) Merchandise sales data processor
JPS63300384A (en) Electronic cash register
JPS60114958A (en) Data cancelling control system
JPH0429554B2 (en)
JPH0413757B2 (en)
JP2509928B2 (en) Refund handling period setting method
KR940008128B1 (en) Cash drawer multi-driving method for cash register
JPS61283996A (en) Electronic type cash register
JPS6213709B2 (en)
JPS5814696B2 (en) electronic cash register
JPH0950581A (en) Substitutive storage/registration data processor
JP3132570B2 (en) Sales data processing device
JPS5833981B2 (en) electronic cash register
JPH0155515B2 (en)
JPH0594589A (en) Commodity sales data processor
JPH07105415A (en) Method and device for processing commutation ticket

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term