JPH0226733B2 - - Google Patents
Info
- Publication number
- JPH0226733B2 JPH0226733B2 JP7540181A JP7540181A JPH0226733B2 JP H0226733 B2 JPH0226733 B2 JP H0226733B2 JP 7540181 A JP7540181 A JP 7540181A JP 7540181 A JP7540181 A JP 7540181A JP H0226733 B2 JPH0226733 B2 JP H0226733B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- reg
- latest
- weight
- storage means
- 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
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/18—Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
- G01G23/36—Indicating the weight by electrical means, e.g. using photoelectric cells
- G01G23/37—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting
- G01G23/3707—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting using a microprocessor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Investigating Strength Of Materials By Application Of Mechanical Stress (AREA)
Description
【発明の詳細な説明】
本発明は、例えば電子料金はかり等に適用され
る重量測定方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a weight measuring method applied to, for example, electronic toll scales.
従来の電子料金はかりでは、被計量物の重量を
デジタル量として出力する重量検出部からのデー
タを順次レジスタへ記憶し、このレジスタに記憶
された最新の複数個例えば8越のデータM1〜M8
の中でデータM1,M2,M3とそれぞれ一致する
データの数n1、n2、n3を計数し、これらの計数値
の中で最も数の多いもの例えばn1が最も多いとす
ると、n1≧5のときのn1のデータM1を新たな計
量データとして表示を更新する一方、n1<5のと
きデータM1と以前の計量データMとの差が、或
設定値以内であれば以前の計量データMをそのま
ま残し、或設定値より大きければデータM1を新
たな計量データとして表示を更新する方法が採ら
れていた。 In conventional electronic toll scales, data from a weight detection unit that outputs the weight of the object to be weighed as a digital quantity is sequentially stored in a register, and the latest plural pieces of data, for example, over 8 , stored in this register are stored in the register. 8
Count the number of data n 1 , n 2 , n 3 that match data M 1 , M 2 , M 3 respectively among these numbers, and select the one with the largest number among these counted values, for example, if n 1 is the largest number. Then, when n 1 ≧ 5, the display is updated with the data M 1 of n 1 as new measurement data, while when n 1 < 5, the difference between data M 1 and the previous measurement data M is changed to a certain set value. If it is within the set value, the previous measurement data M is left as is, and if it is larger than a certain set value, the display is updated using data M1 as new measurement data.
ところが、このような方法は、(i)n1、n2、n3の
中で最も数の多いものが5以上の条件に満たすと
きを安定状態とみなしその最も数の多いデータを
表示し、(ii)n1、n2、n3の中で最も数の多いものが
5未満でかつそのデータと以前の計量データMと
の差が或設定値以内であるときを振動等によるち
らつき状態とみなし以前の計量データMをそのま
ま表示し、(iii)n1、n2、n3の中で最も数の多いもの
が5未満でかつそのデータと以前の計量データM
との差が或設定値を越えたとき重量変動状態とみ
なしその最も数の多いデータを表示するものであ
るから、次をような難点が生じる。 However, in this method, (i) when the largest number among n 1 , n 2 , and n 3 satisfies the condition of 5 or more, it is regarded as a stable state, and the data with the largest number is displayed; (ii) When the largest number among n 1 , n 2 , and n 3 is less than 5, and the difference between that data and the previous measurement data M is within a certain set value, it is considered to be a flickering state due to vibration, etc. The previous measurement data M is displayed as is, and (iii) the largest number among n 1 , n 2 , n 3 is less than 5, and that data and the previous measurement data M
When the difference between the weight and the weight exceeds a certain set value, it is regarded as a weight fluctuation state and the data with the largest number is displayed, which causes the following difficulties.
第1に、秤量皿に被計量物を載せてから安定状
態に達するまでの間では、前記(iii)の状態によつて
表示が著しく変化するため、極めて見ずらくかつ
疲れやすい難点がある。第2に、設置条件等の要
因によつて重量検出部から出力されるデータにば
らつきが多いと、前記(i)の条件が全く得られない
状態が起る。すると、例えば秤量皿に被計量物を
載せた際、まず前記(iii)の状態によつて順次計量デ
ータが増加した後、その最終段の計量データを基
準に前記(ii)の状態へ入るため、計量誤差が生じる
難点がある。第3に、秤量皿から被計量物をおろ
した際、前記(iii)の状態によつて前記第1と同様な
難点がある上、例えば重量区分に応じたランプを
点灯させる計量器にあつては特に零表示までに時
間がかかる欠点があつた。 First, the display changes significantly depending on the condition (iii) from when the object to be weighed is placed on the weighing pan until it reaches a stable state, making it extremely difficult to read and tiring. Second, if there are large variations in the data output from the weight detection section due to factors such as installation conditions, a situation may occur where the condition (i) above cannot be obtained at all. Then, for example, when an object to be weighed is placed on the weighing pan, the weighing data increases sequentially according to the state (iii) above, and then the state enters the state (ii) above based on the weighing data of the final stage. , there is a drawback that measurement errors occur. Thirdly, when the object to be weighed is taken down from the weighing pan, there is a problem similar to the first point due to the condition (iii) above, and, for example, in a weighing instrument that lights up a lamp according to the weight category. In particular, the disadvantage was that it took a long time to display zero.
そこで、本発明の目的は、上述した欠点を解決
した重量測定方法を提供することにある。 SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a weight measuring method that solves the above-mentioned drawbacks.
以下、本発明の一実施例として電子料金はかり
について説明する。第1図に電子料金はかり全体
の回路構成を示す。同図において、1は被計量物
の重量をアナログ量とし検出した後デジタル量に
変換する重量検出部で、重量センサ2、差動増幅
器3、ローパスフイルタ4およびA−D変換器5
から構成されている。前記重量センサ2として
は、例えば秤量皿に被計量物を載せた際その被計
量物の重量に比例して生じる機械的歪をアナログ
電圧信号として検出する電気抵抗線式ロードセル
を利用している。前記差動増幅器3は、前記重量
センサ2によつて検出されたアナログ電圧信号を
増幅し、ローパスフイルタ4へ与える。ローパス
フイルタ4は、与えられる信号のうち比較的周波
数の高い振動や雑音を波し、A−D変換器5へ
与える。A−D変換器5は、前記ローパスフイル
タ4を通過したアナログ電圧信号を略一定時間毎
にサンプリングし、アナログ信号をデジタル信号
に変換した後I/Oポート6を通じてデータ処理
部7へ与える。 An electronic toll scale will be described below as an embodiment of the present invention. Figure 1 shows the overall circuit configuration of the electronic toll scale. In the figure, reference numeral 1 denotes a weight detection unit that detects the weight of the object to be weighed as an analog quantity and then converts it into a digital quantity, which includes a weight sensor 2, a differential amplifier 3, a low-pass filter 4, and an A-D converter 5.
It consists of As the weight sensor 2, for example, an electrical resistance wire type load cell is used which detects, as an analog voltage signal, mechanical strain generated in proportion to the weight of an object to be weighed when it is placed on a weighing pan. The differential amplifier 3 amplifies the analog voltage signal detected by the weight sensor 2 and supplies it to the low-pass filter 4 . The low-pass filter 4 filters out relatively high-frequency vibrations and noise from the applied signal and supplies it to the A-D converter 5 . The A-D converter 5 samples the analog voltage signal that has passed through the low-pass filter 4 at approximately regular intervals, converts the analog signal into a digital signal, and then supplies the digital signal to the data processing section 7 through the I/O port 6.
データ処理部7は、中央処理装置(CPU)8、
リードオンリメモリ(ROM)9およびランダン
ムアクセスメモリ(RAM)10から構成されて
いる。前記CPU8は、前記重量検出部1から与
えられる重量データを後述の処理手順に従つてち
らつき防止処理した後、キーボード・表示器コン
トローラ11を介して接続されたキーボード12
から入力されたデータに基づき演算処理するとと
もに、それらのデータを表示器13にデジタル表
示する。また、前記ROM9には、CPU8の上述
した動作を制御するためのプログラムが記憶され
ている。更に、前記RAM10には、第2図に示
す如く、レジスタREG00〜REG05,REG10〜
REG14,REG20、カウンタC1〜C5およびフラグ
Fが所定のアドレスに割付けられている。 The data processing unit 7 includes a central processing unit (CPU) 8,
It consists of a read only memory (ROM) 9 and a random access memory (RAM) 10. The CPU 8 performs flicker prevention processing on the weight data provided from the weight detection section 1 according to the processing procedure described below, and then sends the weight data to a keyboard 12 connected via a keyboard/display controller 11.
It performs arithmetic processing based on the data input from the computer, and digitally displays the data on the display 13. Further, the ROM 9 stores a program for controlling the above-described operations of the CPU 8. Furthermore, as shown in FIG. 2, the RAM 10 includes registers REG 00 to REG 05 and REG 10 to
REG 14 , REG 20 , counters C 1 to C 5 and flag F are assigned to predetermined addresses.
ここで、前記レジスタREG00〜REG05には前記
重量検出部1から入力される入力データが、前記
レジスタREG10〜REG14には前記レジスタ00〜
REG05に転送されたデータの中から後述する条件
のもとで選択される選択データが、前記レジスタ
REG20には後述のちらつき防止処理後の計量がそ
れぞれ記憶される。また、前記カウンタC1には
前記レジスタREG00〜REG05へ転送されたデータ
の中でレジスタREG00のデータと一致するデータ
数が、前記カウンタC2には前記レジスタREG00
〜REG05へ転送されたデータの中でレジスタ
REG01のデータと一致するデータ数が、前記カウ
ンタC3には前記レジスタREG10〜REG14へ転送さ
れた選択データの中でレジスタREG10の選択デー
タと一致するデータ数が、前記カウンタC4には
第4図のフローチヤートにおいて以後を通つた
処理回路が、前記カウンタC5には入力データが
減少しているときの減少回数がそれそれ入れられ
る。更に、前記フラグFは、後述のちらつき防止
処理において、レジスタREG20のデータからレジ
スタREG10の選択データを減算した結果が正また
は零のとき“0”、負のとき“1”がセツトされ
る。 Here, the input data inputted from the weight detection section 1 is inputted to the registers REG 00 to REG 05 , and the input data inputted from the weight detection section 1 is inputted to the registers REG 10 to REG 14 .
Selected data selected under the conditions described below from among the data transferred to REG 05 is transferred to the register.
REG 20 stores measurements after flicker prevention processing, which will be described later. Further, the counter C1 stores the number of data that matches the data in the register REG 00 among the data transferred to the registers REG 00 to REG 05 , and the counter C2 stores the number of data that matches the data in the register REG 00.
~Register in the data transferred to REG 05
The number of data that matches the data in REG 01 is stored in the counter C3 , and the number of data that matches the selection data in register REG 10 among the selected data transferred to the registers REG 10 to REG 14 is stored in the counter C4 . 4, the processing circuit passed through in the flowchart of FIG. 4 stores the number of decreases when the input data is decreasing in the counter C5 . Furthermore, in the flicker prevention processing described below, the flag F is set to "0" when the result of subtracting the selection data of register REG 10 from the data of register REG 20 is positive or zero, and is set to "1" when it is negative. .
さて、次に本装置のデータ処理を第3図のフロ
ーチヤートに沿つて説明する。まず、電源が投入
されると、CPU8は、初期設定例えばRAM10
やI/Oポート6等をクリヤした後、重量検出部
1からの入力データを受けとり、ちらつき防止処
理(第4図のフローチヤート)を行う。ちらつき
防止処理については後で詳述する。次に、キー入
力を調べ、何らかのキーが押されていたらその押
されたキーに対応するフラグ(図示せず)を
“1”にセツトした後、セツトされているフラグ
に基づく演算処理を行う。例えば、単価キーの操
作によつてそれに対応するフラグがセツトされて
いれば、その単価キーの前に入力された単位重量
当りの単価データとちらつき防止処理後の計量デ
ータつまりレジスタREG20のデータとの演算によ
つて価格を算出する。そし、この弁算処理終了
後、単価、重量および価格を表示器13にデジタ
ル表示した後、データ入力へ戻るループを繰返
す。 Next, the data processing of this apparatus will be explained with reference to the flowchart shown in FIG. First, when the power is turned on, the CPU 8 defaults to RAM 10, for example.
After clearing the I/O port 6, etc., the input data from the weight detection section 1 is received, and flicker prevention processing (flow chart in FIG. 4) is performed. The flicker prevention process will be explained in detail later. Next, key input is checked, and if any key is pressed, a flag (not shown) corresponding to the pressed key is set to "1", and then arithmetic processing is performed based on the set flag. For example, if the corresponding flag is set by operating a unit price key, the unit price data per unit weight input before that unit price key and the weighing data after flicker prevention processing, that is, the data in register REG 20 , are The price is calculated by the calculation. After the calculation process is completed, the unit price, weight, and price are digitally displayed on the display 13, and the loop of returning to data input is repeated.
ここで、前記ちらつき防止処理を第4図のフロ
ーチヤートに沿つて詳述する。 Here, the flicker prevention process will be explained in detail along the flowchart of FIG. 4.
まず、レジスタREG00〜REG05のデータを順
にシフトする。即ち、レジスタREG00のデータ
をレジスタREG01へ、レジスタREG01のデータ
をレジスタREG02へ、……順に転送する。この
とき、レジスタREG05のデータは捨てられる。 First, data in registers REG 00 to REG 05 is shifted in order. That is, the data in register REG 00 is transferred to register REG 01 , the data in register REG 01 is transferred to register REG 02 , and so on in this order. At this time, the data in register REG 05 is discarded.
次に、重量検出部1から与えられる最新のデ
ータをレジスタREG00へ転送する。 Next, the latest data given from the weight detection section 1 is transferred to the register REG 00 .
次に、レジスタREG10〜REG14のデータ(選
択データ)を順にシフトする。即ち、レジスタ
REG10の選択データをレジスタREG11へ、レジ
スタREG11の選択データをレジスタREG12へ、
……順に転送する。このとき、レジスタREG14
の選択データは捨てられる。 Next, the data (selected data) in registers REG 10 to REG 14 are shifted in order. i.e. register
Selection data of REG 10 to register REG 11 , selection data of register REG 11 to register REG 12 ,
...Transfer in order. At this time, register REG 14
selection data is discarded.
次に、レジスタREG00〜REG05のデータの中
でレジスタREG00のデータと一致するデータが
有るかを調べ、一致するデータが有れそのデー
タ数をカウンタC1へセツトする。 Next, it is checked whether there is any data that matches the data in register REG 00 among the data in registers REG 00 to REG 05 , and if there is data that matches, the number of data is set in counter C1 .
次に、レジスタREG00〜REG05のデータの中
でレジスタREG01のデータと一致するデータが
有るかを調べ、一致するデータが有れそのデー
タ数をカウンタC2へセツトする。 Next, it is checked whether there is any data that matches the data in register REG 01 among the data in registers REG 00 to REG 05 , and if there is data that matches, the number of data is set in counter C2 .
次に、前記カウンタC1のデータ数からカウ
ンタC2のデータ数を減算し、その結果が零以
上であるか否かを判断する。 Next, the number of data in the counter C2 is subtracted from the number of data in the counter C1 , and it is determined whether the result is greater than or equal to zero.
前記の減算結果が零または正の場合つまり
レジスタREG00のデータと一致するデータ数が
レジスタREG01のデータと一致するデータ数と
同じまたはそれより多い場合には、レジスタ
REG00のデータをレジスタREG10へ選択データ
として転送する。 If the above subtraction result is zero or positive, that is, if the number of data that matches the data in register REG 00 is the same as or greater than the number of data that matches the data in register REG 01 , the register
Transfer the data in REG 00 to register REG 10 as selection data.
また、前記の減算結果が負の場合つまりレ
ジスタREG01のデータと一致するデータ数がレ
ジスタREG00のデータと一致するデータ数より
多い場合には、レジスタREG01のデータをレジ
スタREG10へ選択データとして転送する。 Additionally, if the above subtraction result is negative, that is, if the number of data that matches the data in register REG 01 is greater than the number of data that matches the data in register REG 00 , the data in register REG 01 is transferred to register REG 10 as selected data. Transfer as.
次に、前記またはの処理の後、レジスタ
REG10〜REG14の選択データの中でレジスタ
REG10の選択データと一致するデータが有るか
を調べ、一致するデータが有ればそのデータ数
をカウンタC3へセツトする。 Then, after processing the above or the register
Registers in the selection data of REG 10 to REG 14
It is checked whether there is data that matches the selected data of REG 10 , and if there is matching data, the number of data is set in counter C3 .
次に、そのカウンタC3のデータ数が“3”
以上であるか否かを判断する。なお、この判断
において、データ数が“3”以上でない場合つ
まりレジスタREG10の選択データと一致する選
択データが2個以下の場合には、第3図のフロ
ーチヤートにおけるへジヤンプする。従つ
て、このの条件が満たされるまで上述した処
理が繰返される。この場合、レジスタREG20の
データは変化しないため、表示は前の表示状態
のままである。 Next, the number of data in counter C 3 is “3”
Determine whether or not the above is true. In this judgment, if the number of data is not "3" or more, that is, if the number of selected data that matches the selected data of register REG 10 is two or less, the process jumps to the flowchart of FIG. 3. Therefore, the above-described process is repeated until this condition is satisfied. In this case, the data in register REG 20 does not change, so the display remains in its previous display state.
前記の判断において、カウンタC3のデー
タ数が“3”以上の場合つまりレジスタ10の選
択データと一致する選択データが3個以上の場
合には、レジスタREG20のデータからレジスタ
REG10のデータを減算し、その差Sを求める。 In the above judgment, if the number of data in counter C 3 is "3" or more, that is, if there are 3 or more selected data that match the selected data in register 10 , the register is read from the data in register REG 20 .
Subtract the data of REG 10 and find the difference S.
次に、前記の減算によつて求められた差S
が零以上であるか否かを判断する。 Next, the difference S obtained by the above subtraction
Determine whether or not is greater than or equal to zero.
前記の判断において、差Sが零または正の
場合つまり重量変動が無いか或いは減少方向の
場合には、フラグFを“0”にする。 In the above judgment, if the difference S is zero or positive, that is, if there is no weight change or if the weight is decreasing, the flag F is set to "0".
また、前記の判断において、差Sが負の場
合つまり重量変動が増加方向の場合には、フラ
グFを“1”にする。 Further, in the above judgment, if the difference S is negative, that is, if the weight fluctuation is in the increasing direction, the flag F is set to "1".
次に、前記またはの処理の後、前記の
減算によつて求められた差Sの絶対値|S|が
“5”カウント以上であるか否かを判断する。
なお、ここでは最小計量単位例えば1gに対し
て8カウントとしてある。 Next, after the processing of or, it is determined whether the absolute value |S| of the difference S obtained by the subtraction described above is equal to or greater than "5" count.
Note that here, the minimum measurement unit is 8 counts per 1 g, for example.
前記の判断において、絶対値|S|が
“5”カウント以上の場合には、レジスタ
REG10のデータをレジスタREG20へ転送つまり
レジスタREG10のデータをちらつき防止処理後
の計量データとする。 In the above judgment, if the absolute value |S| is more than "5" count, the register
The data in REG 10 is transferred to register REG 20 , that is, the data in register REG 10 is used as the measurement data after flicker prevention processing.
次に、カウンタC4の処理回路を“0”にク
リアした後、第3図のフローチヤートのへ戻
り、演算処理、表示を行う。従つて、この場合
には、ちらつき防止処理後のデータがレジスタ
REG10のデータに更新されているため、そのレ
ジスタREG10のデータによつて演算処理がなさ
れるとともに、表示される。 Next, after clearing the processing circuit of the counter C4 to "0", the process returns to the flowchart of FIG. 3 and arithmetic processing and display are performed. Therefore, in this case, the data after flicker prevention processing is stored in the register.
Since the data has been updated to the data in register REG 10 , arithmetic processing is performed and displayed using the data in register REG 10 .
また、前記の判断において、絶対値|S|
が“5”カウント未満の場合には、カウンタ
C4の処理回路が“5”に達しているか否かを
判断する。ここで、その処理回路が“5”に達
している場合には前記の処理へ進む。 In addition, in the above judgment, the absolute value |S|
If the count is less than “5”, the counter
It is determined whether the processing circuit of C4 has reached "5". Here, if the processing circuit has reached "5", the process proceeds to the above processing.
また、前記の判断において、処理回数が
“5”に達していない場合には、前記の減算
によつて求められた差Sが零であるか否かを判
断する。 Further, in the above judgment, if the number of processing times has not reached "5", it is judged whether or not the difference S obtained by the above subtraction is zero.
次に、前記の判断において、差Sが零でな
い場合つまり重量変動が増加または減少方向の
場合には、フラグFが“0”であるか否かを判
断する。 Next, in the above judgment, if the difference S is not zero, that is, if the weight fluctuation is in the increasing or decreasing direction, it is judged whether the flag F is "0" or not.
〓〓 前記の判断において、フラグFが“0”で
ない場合つまり重量変動が増加方向の場合に
は、カウンタC5の減少回路を“0”にクリア
する。In the above judgment, if the flag F is not "0", that is, if the weight fluctuation is in the increasing direction, the decrement circuit of the counter C5 is cleared to "0".
〓〓 次に、カウンタC4の処理回路に“1”を加
算し、その結果を再びカウンタC4へセツトし
た後、第3図のフローチヤートにおけるへジ
ヤンプする。この場合、レジスタREG20のデー
タが更新されていないため表示器13の表示は
変化しない。〓〓 Next, "1" is added to the processing circuit of the counter C4 , and after setting the result to the counter C4 again, the process jumps to the flowchart of FIG. In this case, the display on the display 13 does not change because the data in the register REG 20 has not been updated.
〓〓 また、前記の判断において、フラグFが
“0”の場合つまり重量変動が増加方向の場合
には、カウンタC5の減少回数に“1”を加算
し、その結果を再びカウンタC5へセツトする。〓〓 Also, in the above judgment, if the flag F is "0", that is, if the weight fluctuation is in the increasing direction, "1" is added to the number of decreases in the counter C5 , and the result is sent to the counter C5 again. Set.
〓〓 次に、そのカウンタC5の減少回数が“3”
に達したか否かを判断する。ここで、その減少
回数が“3”に達していない場合には、前記〓〓
の処理へ進む。〓〓 Next, the number of times the counter C 5 decreases is “3”
Determine whether it has been reached. Here, if the number of decreases has not reached "3", the above
Proceed to processing.
〓〓 また、前記〓〓の判断において、減少回数が
“3”に達している場合には、カウンタC5の
処理回数を“0”にクリアした後前記の処理
へ進む。この場合、重量変動が増加方向のとき
前記〓〓の処理によつて、または重量変動が無い
とき後述する〓〓の処理によつてカウンタC5の
処理回数が“0”にクリアされるため、絶対値
|S|が“5”カウント未満の状態で減少方向
が3回続いたときのみ実行される。〓〓 Further, in the above judgment 〓〓, if the number of decreases has reached "3", the processing number of the counter C5 is cleared to "0" and then the process proceeds to the above processing. In this case, the number of processing times of the counter C5 is cleared to "0" by the process 〓〓 described above when the weight fluctuation is increasing, or by the process 〓〓 described later when there is no weight fluctuation. This is executed only when the absolute value |S| continues to decrease three times in a state where the absolute value |S| is less than "5" count.
〓〓 また、前記の判断において、前記の減算
によつて求められた差Sが零の場合つまり重量
変動が無い場合には、カウンタC4の処理回数
が“3”以下であるか否かを判断する。ここ
で、その処理回数が“3”以下の場合には前記
〓〓の処理へ進む。〓〓 In addition, in the above judgment, if the difference S obtained by the above subtraction is zero, that is, if there is no weight fluctuation, it is determined whether the number of processings of the counter C4 is "3" or less. to decide. Here, if the number of times of processing is "3" or less, the process proceeds to the process of 〓〓.
〓〓 前記〓〓の判断において、処理回数が4以上の
場合には、カウンタC5の減少回数を“0”に
クリアする。〓〓 In the above judgment 〓〓, if the number of processing is 4 or more, the number of decreases in the counter C5 is cleared to "0".
〓〓 次に、カウンタC4の処理回数をクリアした
後、第3図のフローチヤートにおけるへジヤ
ンプする。従つて、カウンタC4の処理回数が
4以上の場合において差Sが零になると、カウ
ンタC4,C5が“0”にクリアされ、前記〓〓
の条件によつてレジスタREG10の選択データが
レジスタREG20へ転送されないため、振動等に
よるちらつきを防止することになる。〓〓 Next, after clearing the processing number of counter C4 , the process jumps to the flowchart of FIG. Therefore, when the difference S becomes zero when the number of processings of the counter C4 is 4 or more, the counters C4 and C5 are cleared to "0" and the above 〓〓
Because the selection data of register REG 10 is not transferred to register REG 20 under the conditions of , flickering due to vibrations etc. can be prevented.
以上が本実施例によるちらつき防止処理である
が、本発明はこれらに限られるものではない。 Although the flicker prevention processing according to this embodiment has been described above, the present invention is not limited thereto.
本発明によれば、検出手段により検出された重
量データを略周期的にサンプリングし順次第1の
データ記憶手段へ記憶するとともに、そのサンプ
リング毎に、第1のデータ記憶手段に記憶された
複数個のデータの中で最新のデータおよびその最
新のデータ以前の少なくとも1以上のデータとそ
れぞれ一致するデータの数を計数した数、その計
数値が最も大きいデータを選択データとして第2
のデータ記憶手段へ記憶する処理を繰返すように
したので、検出手段からのデータが比較的ばらつ
いている場合でも次の処理へ進む条件つまり第2
のデータ記憶手段に記憶された選択データの中で
最新の選択データと一致するデータの数が所定数
に達する条件を満たすことができ、次にこの条件
が満たれされたとき前回の計量データの最新の選
択データとの差が設定値以内であるか否かを判断
し、その差が設定値を越えたときおよび規定回数
続けて設定値以内であるとき最新の選択データを
計量データとして更新するようにしたので、より
正確な重量測定ができるとともに、被計量物を載
せたりおろしたりする際の重量変動時の値が表示
されないため見やすい表示にすることができる。
また、前回の計量データの最新の選択データとの
差が設定値以内の条件を第1の規定回数繰返すと
き最新の選択データを新たな計量データとして更
新するとともに、その差ざ重量減少方向でかつ第
1の規定回数より少ない第2の規定回数続けて繰
返されるとき最新の選択データを新たな計量デー
タとして更新するようにしたので、例えば秤量皿
から被計量物をおろした後の最終表示つまり零の
表示を迅速に行うことができる。 According to the present invention, the weight data detected by the detection means is sampled approximately periodically and sequentially stored in the first data storage means, and for each sampling, a plurality of weight data stored in the first data storage means are stored in the first data storage means. The number of data that matches the latest data and at least one or more data before the latest data is counted, and the data with the largest counted value is selected as the second selected data.
Since the process of storing the data in the data storage means is repeated, even if the data from the detection means is relatively scattered, the condition for proceeding to the next process, that is, the second
The condition that the number of pieces of data that match the latest selected data among the selected data stored in the data storage means reaches a predetermined number is satisfied, and when this condition is met, the previous weighing data is Determine whether the difference with the latest selected data is within the set value, and update the latest selected data as measurement data when the difference exceeds the set value or if it is within the set value for a specified number of consecutive times. This makes it possible to measure weight more accurately, and also provides an easy-to-read display because the value when the weight changes when the object to be weighed is placed or taken down is not displayed.
In addition, when repeating the condition that the difference between the previous weighing data and the latest selected data is within the set value for the first prescribed number of times, the latest selected data is updated as new weighing data, and the difference is in the direction of weight reduction and Since the latest selected data is updated as new weighing data when the second specified number of times is repeated less than the first specified number of times, for example, the final display after unloading the weighing object from the weighing pan can be displayed quickly.
図は本発明を電子料金はかりに適用した一実施
例を示すもので、第1図はその全体の回路構成を
示すブロツク図、第2図はRAMの内容を示す説
明図、第3図は全体の処理を示すフローチヤー
ト、第4図はちらつき防止処理を示すフローチヤ
ートである。
REG00〜REG05……第1のデータ記憶手段、
REG10〜REG14……第2のデータ記憶手段、
REG20……ちらつき防止処理後の計量データを記
憶するレジスタ。
The figures show an example in which the present invention is applied to an electronic toll scale. Fig. 1 is a block diagram showing the overall circuit configuration, Fig. 2 is an explanatory diagram showing the contents of the RAM, and Fig. 3 is the overall structure. FIG. 4 is a flowchart showing flicker prevention processing. REG 00 to REG 05 ...first data storage means,
REG 10 ~ REG 14 ... second data storage means,
REG 20 ...A register that stores the weighing data after flicker prevention processing.
Claims (1)
タル量として検出し、この検出手段により検出さ
れたデータを略周期的にサンプリングし順次第1
のデータ記憶手段へ記憶するとともに、そのサン
プリング毎に、前記第1のデータ記憶手段に記憶
された複数個のデータの中で最新のデータおよび
その最新のデータ以前の少なくとも1以上のデー
タとそれぞれ一致するデータの数を計数した後、
その計数値が最も大きいデータを選択データとし
て第2のデータ記憶手段へ記憶する処理を繰返
し、前記第2のデータ記憶手段に記憶された選択
データの中で最新の選択データと一致するデータ
の数が所定数に達したとき、前回の計量データと
最新の選択データとの差が設定値以内であるか否
かを判断し、その差が設定値を越えたときおよび
規定回数続けて設定値以内であるとき最新の選択
データを前記計量データとして更新することを特
徴とする重量測定方法。 2 被計量物の重量データを検出手段によりデジ
タル量として検出し、この検出手段により検出さ
れたデータを略周期的にサンプリングし順次第1
のデータ記憶手段へ記憶するとともに、そのサン
プリング毎に、前記第1のデータ記憶手段に記憶
された複数個のデータの中で最新のデータおよび
その最新のデータ以前の少なくとも1以上のデー
タとそれぞれ一致するデータの数を計数した後、
その計数値が最も大きいデータを選択データとし
て第2のデータ記憶手段へ記憶する処理を繰返
し、前記第2のデータ記憶手段に記憶された選択
データの中で最新の選択データと一致するデータ
の数が所定数に達したとき、前回の計量データと
最新の選択データとの差が設定値以内であるか否
かを判断し、その差が設定値を越えたとき、第1
の規定回数続けて設定値以内であるときおよび前
記計量データに対して重量減少方向でかつ前記第
1の規定回数より少ない第2の規定回数続けて設
定値以内であるとき最新の選択データを前記計量
データとして更新することを特徴とする重量測定
方法。[Scope of Claims] 1. The weight data of the object to be measured is detected as a digital quantity by a detection means, and the data detected by this detection means is sampled approximately periodically and sequentially 1
data storage means, and each sampling corresponds to the latest data among the plurality of data stored in the first data storage means and at least one or more data before the latest data. After counting the number of data to
The process of storing the data with the largest count value as selection data in the second data storage means is repeated, and the number of data that matches the latest selection data among the selection data stored in the second data storage means reaches a predetermined number, it is determined whether the difference between the previous weighing data and the latest selected data is within the set value, and when the difference exceeds the set value or for a specified number of consecutive times, the difference is within the set value. A method for measuring weight, comprising updating the latest selected data as the weighing data when . 2 The weight data of the object to be weighed is detected as a digital quantity by a detection means, and the data detected by this detection means is sampled approximately periodically and sequentially 1
data storage means, and each sampling corresponds to the latest data among the plurality of data stored in the first data storage means and at least one or more data before the latest data. After counting the number of data to
The process of storing the data with the largest count value as selection data in the second data storage means is repeated, and the number of data that matches the latest selection data among the selection data stored in the second data storage means reaches a predetermined number, it is determined whether the difference between the previous weighing data and the latest selected data is within a set value, and when the difference exceeds the set value, the first
When the specified number of consecutive times is within the set value, and when the second specified number of times is consecutively within the set value in the weight decreasing direction with respect to the weighing data and is smaller than the first specified number of times, the latest selected data is A weight measurement method characterized by updating as weighing data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7540181A JPS57190226A (en) | 1981-05-19 | 1981-05-19 | Weight measuring method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7540181A JPS57190226A (en) | 1981-05-19 | 1981-05-19 | Weight measuring method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57190226A JPS57190226A (en) | 1982-11-22 |
| JPH0226733B2 true JPH0226733B2 (en) | 1990-06-12 |
Family
ID=13575112
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7540181A Granted JPS57190226A (en) | 1981-05-19 | 1981-05-19 | Weight measuring method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57190226A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05240057A (en) * | 1992-02-28 | 1993-09-17 | Mitsubishi Motors Corp | Engine for vehicle |
-
1981
- 1981-05-19 JP JP7540181A patent/JPS57190226A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05240057A (en) * | 1992-02-28 | 1993-09-17 | Mitsubishi Motors Corp | Engine for vehicle |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57190226A (en) | 1982-11-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0132054A2 (en) | Electronic balance | |
| EP0091274B1 (en) | Electronic counting scale | |
| JPS6052365B2 (en) | Weight measurement method and device | |
| JPH0652190B2 (en) | Electronic balance | |
| JPH0152685B2 (en) | ||
| JPH0226733B2 (en) | ||
| JPH0226732B2 (en) | ||
| JPS5916648B2 (en) | counting scale | |
| JPS6244601B2 (en) | ||
| JPH03282331A (en) | electronic balance | |
| JP3120883B2 (en) | Counting scale | |
| JPS63309823A (en) | electronic balance | |
| JPH0348452B2 (en) | ||
| JPH0121449B2 (en) | ||
| JPH0715407B2 (en) | Electronic balance | |
| JPS63208723A (en) | Electronic balance | |
| JPS5833529Y2 (en) | Measured value correction method | |
| JPH0762632B2 (en) | Digital scale | |
| JPS608449B2 (en) | How to count the number of items using a scale | |
| JPH0121447B2 (en) | ||
| JPH0132928B2 (en) | ||
| JPH02304388A (en) | Digital counting rate meter | |
| JPH081396B2 (en) | Weighing device | |
| JPH0132927B2 (en) | ||
| JPS5862524A (en) | Electronic balance |