JPH0131575B2 - - Google Patents

Info

Publication number
JPH0131575B2
JPH0131575B2 JP6009382A JP6009382A JPH0131575B2 JP H0131575 B2 JPH0131575 B2 JP H0131575B2 JP 6009382 A JP6009382 A JP 6009382A JP 6009382 A JP6009382 A JP 6009382A JP H0131575 B2 JPH0131575 B2 JP H0131575B2
Authority
JP
Japan
Prior art keywords
data
weighing
moving average
raw data
latest
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
Application number
JP6009382A
Other languages
Japanese (ja)
Other versions
JPS58176527A (en
Inventor
Tanekazu Chiba
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.)
Kubota Corp
Original Assignee
Kubota Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kubota Corp filed Critical Kubota Corp
Priority to JP6009382A priority Critical patent/JPS58176527A/en
Publication of JPS58176527A publication Critical patent/JPS58176527A/en
Publication of JPH0131575B2 publication Critical patent/JPH0131575B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/18Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
    • G01G23/36Indicating the weight by electrical means, e.g. using photoelectric cells
    • G01G23/37Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting
    • G01G23/3707Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting using a microprocessor

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は電子式計重機における計重信号処理方
法に関し、その目的とするところはデータの移動
平均をとつて出力信号の安定化を図つた場合にお
ける非安定状態のはかりの応答性を改善すること
にある。 従来の電子式計重機は第1図のように構成され
ている。1は荷重Gをアナログ信号に変換するロ
ードセル、2は増幅器、3はアナログ・デジタル
変換器、4はゼロトラツキング値等を記憶するメ
モリ、5はアナログ・デジタル変換器3出力の計
重生データWを被減数とし前記メモリ4の内容を
減数とする第1の演算部、6は第1の演算部5を
介して補正された出力データW′を1/5して分解能
を落して安定度を稼ぐ第2の演算部、7は第2の
演算部6の出力をa倍〔但し、aは正の整数〕し
て計重値表示の最小目盛を揃える第3の演算部、
8は計重値をデジタル表示する重量表示部であ
る。また、第1の演算部5と第2の演算部6との
間にヒステリシス回路6′が介装されることもあ
る。 このようにして、従来では第2の演算部6やヒ
ステリシス回路6′を介装することによつて重量
表示部8でデジタル表示される重量値のちらつき
を防止しているが、この処理方法によると、分解
能を下げることなしに計重値表示のちらつきを更
に抑制するためには、前記アナログ・デジタル変
換器3としてはより高分解能のものを使用する必
要があり、この処理方法には限界がある。このよ
うな問題を回避する手段として計重生データWの
移動平均をとつて出力信号とすることが考えられ
る。第2図aは計重生データWの変化を示し、第
2図bは5つの計重生データWの移動平均値の変
化を示す。この第2図aとbを比較してわかるよ
うに、安定状態〔時刻t1〜t11、t19〜〕の計重値
表示のちらつきがなくなるものの、その反面、非
安定状態〔時刻t12〜t18〕の応答性が悪く、計重
値表示が非安定から安定状態に移行するのに遅れ
が発生し、迅速な計重値の読み取りが行えない欠
点がある。 本発明は、計重値信号を一定時間ごとにデジタ
ル変換して得られる計重生データの最新値をモニ
タして、計重値信号変化が安定か非安定かを判定
し、安定継続時には、最新の計重生データを移動
平均算出用レジスタにストアし、この最新の計重
生データと予め前記移動平均算出用レジスタにス
トアされた過去の計重生データとから移動平均値
を算出してこれを出力信号用データとし、非安定
から安定への移行時には、移動平均算出用レジス
タの内容を全て最新の計重生データに更新して算
出された移動平均を出力信号用データとし、非安
定時には、出力信号用データとして最新の計重生
データを出力することを特徴とし、安定状態のみ
移動平均値を採用して非安定状態では計重生デー
タを計重値表示用データとして逐次変換表示に切
換えることによつて、移動平均を採用した場合の
非安定状態の応答性を改善したものである。 以下本発明の具体的な処理方法を第3図〜第6
図に基づいて説明する。なお、第1図、第2図と
同様のものには同一符号を付けてその説明を省
く。 9は計重生データWの処理装置で、第4図に示
すように計重生データWの移動平均算出用のレジ
スタR1〜R5と、非安定状態にフラグがセツトさ
れるフラグビツト10と前記各レジスタR1〜R5
へのデータの書き込みと読み出しを実行すると共
に前記フラグビツト10の状態に応じて前記第1
の演算部5への出力信号用データを決定する中央
処理装置11とから構成されており、この中央処
理装置11は第5図のフローチヤートのようにプ
ログラムされている。 先ず、中央処理装置11は最近の計重生データ
W(t)と前記アナログ・デジタル変換器3の1
回前の変換時の計重生データW(t−1)とを比
較〔a−1〕し、 |W(t−1)−W(t)|≦N 但し、Nは正数、が検出されないと非安定状態
と判定して前記フラグビツト10をセツト〔a−
2〕し、〔a−2〕を完了すると第1の演算部5
へ最新の計重生データWtを出力〔a−3〕して
〔a−1〕にリターンする。前記〔a−1〕で安
定状態と判定されると、次いでフラグビツト10
をチエツク〔a−4〕し、フラグがセツトされて
いると前回のW(t−1)は不安定状態でW(t)
になつて安定したと判定されて、次いで〔a−
5〕が実行される。〔a−5〕では、レジスタR1
〜R5の内容を全て最新の計重生データW(t)に
更新される。そしてフラグビツト10のリセツト
〔a−6〕が実行されると共に〔a−7〕を実行
する。〔a−7〕では、レジスタR1〜R5の内容
(R1〜R5)をもとにして、 (R1)+(R2)+(R3)+(R4)+(R5)/5 の演算が実行されて、〔a−5〕が実行された場
合には第1の演算部5へ5・W(t)/5が出力
される。また、前記〔a−4〕でフラグがセツト
されていないと判定された場合には、前回のW
(t−1)も安定状態であつて安定状態が続いて
いるため、次いで〔a−8〕が実行される。〔a
−8〕では、この〔a−8〕を通過する度にレジ
スタR1〜R5のうちの1つの内容がW(t)に書き
換えられる。〔a−8〕を完了すると〔a−7〕
を実行して〔a−1〕にリターンする。 このように構成したため、計重生データWが第
2図aのように変化した場合、時刻t12〜t18にお
いては、アナログ・デジタル変換器3のデジタル
変換の度に〔a−2〕が実行されて〔a−3〕で
はW12〜W18が第1の演算部5へその都度出力さ
れて逐次変化表示が実行される。時刻t19になつ
て〔a−1〕で安定と判断されて〔a−4〕でフ
ラグがセツトされていないと判定された場合に
は、〔a−5〕でレジスタR1〜R5の内容(R1
R5)が全てW19に更新されて移動平均値が出力さ
れる。時刻t20,t21,……t25の〔a−1〕でそれ
ぞれ安定と判定された場合の〔a−8〕では、下
記表のようにレジスタR1〜R5の更新が行われる。
The present invention relates to a weighing signal processing method in an electronic weighing machine, and its purpose is to improve the responsiveness of a scale in an unstable state when the output signal is stabilized by taking a moving average of data. It is in. A conventional electronic weighing machine is constructed as shown in FIG. 1 is a load cell that converts the load G into an analog signal, 2 is an amplifier, 3 is an analog-to-digital converter, 4 is a memory for storing zero tracking values, etc., and 5 is raw weighing data W of the output of the analog-to-digital converter 3. A first arithmetic unit 6 takes the minuend and the content of the memory 4 as the subtrahend, and 6 reduces the resolution by reducing the resolution by 1/5 of the output data W′ corrected through the first arithmetic unit 5 to increase stability. A second calculation unit 7 is a third calculation unit that multiplies the output of the second calculation unit 6 by a (where a is a positive integer) to align the minimum scale of the weight value display;
8 is a weight display section that digitally displays the weighed value. Further, a hysteresis circuit 6' may be interposed between the first arithmetic section 5 and the second arithmetic section 6. In this way, flickering of the weight value digitally displayed on the weight display section 8 has conventionally been prevented by interposing the second calculation section 6 and the hysteresis circuit 6', but this processing method In order to further suppress the flickering of the weight value display without lowering the resolution, it is necessary to use a higher resolution analog-to-digital converter 3, and this processing method has its limits. be. As a means to avoid such problems, it is conceivable to take a moving average of the weighed raw data W and use it as an output signal. FIG. 2a shows changes in the weight raw data W, and FIG. 2b shows changes in the moving average value of five weight raw data W. As can be seen by comparing Figure 2 a and b, although the weight value display no longer flickers in the stable state [times t1 to t11 , t19 to], on the other hand, in the unstable state [time t12] ~t 18 ] is poor, and there is a delay in the transition of the weight value display from an unstable state to a stable state, which has the drawback that the weight value cannot be read quickly. The present invention monitors the latest value of weight raw data obtained by digitally converting the weight value signal at regular intervals, determines whether the change in the weight value signal is stable or unstable, and when the change in the weight value signal continues to be stable, updates the The weighted raw data of is stored in the moving average calculation register, the moving average value is calculated from this latest weighted raw data and the past weighted raw data previously stored in the moving average calculation register, and this is output as a signal. When transitioning from unstable to stable, all the contents of the moving average calculation register are updated to the latest weighted raw data, and the calculated moving average is used as the data for the output signal. It is characterized by outputting the latest weighing raw data as data, by adopting a moving average value only in stable conditions, and by switching to successive conversion display of weighing raw data as weighing value display data in unstable conditions. This improves the responsiveness in an unstable state when a moving average is used. The specific processing method of the present invention is shown in Figs. 3 to 6 below.
This will be explained based on the diagram. Components similar to those in FIGS. 1 and 2 are given the same reference numerals and their explanations will be omitted. Reference numeral 9 denotes a processing device for the weighed raw data W , and as shown in FIG. Registers R1 to R5
writing and reading data to and from the first flag bit 10 according to the state of the flag bit 10.
The central processing unit 11 determines data for output signals to the arithmetic unit 5, and the central processing unit 11 is programmed as shown in the flowchart of FIG. First, the central processing unit 11 inputs recent weighing raw data W(t) and one of the analog-to-digital converters 3.
Compare the weighing raw data W(t-1) from the previous conversion [a-1] and find |W(t-1)-W(t)|≦N, where N is a positive number, is not detected. It is determined that the state is unstable and the flag bit 10 is set [a-
2], and when [a-2] is completed, the first calculation unit 5
The latest weighing raw data Wt is outputted to [a-3] and returned to [a-1]. If it is determined that the state is stable in [a-1] above, then flag bit 10 is set.
Check [a-4] and if the flag is set, the previous W(t-1) is unstable and W(t)
It was determined that it was stable, and then [a-
5] is executed. In [a-5], register R 1
The contents of ~ R5 are all updated to the latest weighing raw data W(t). Then, the flag bit 10 is reset [a-6], and at the same time, [a-7] is executed. [a-7] Based on the contents of registers R 1 to R 5 (R 1 to R 5 ), (R 1 ) + (R 2 ) + (R 3 ) + (R 4 ) + (R 5 )/5 is executed, and when [a-5] is executed, 5·W(t)/5 is output to the first arithmetic unit 5. Also, if it is determined in [a-4] above that the flag is not set, the previous W
Since (t-1) is also in a stable state and continues to be stable, [a-8] is executed next. [a
-8], the content of one of the registers R 1 to R 5 is rewritten to W(t) every time the signal passes through [a-8]. After completing [a-8], [a-7]
Execute and return to [a-1]. With this configuration, when the weighing raw data W changes as shown in FIG . Then, in [a-3], W 12 to W 18 are output to the first arithmetic unit 5 each time, and a sequential change display is executed. At time t19 , if [a-1] determines that it is stable and [a-4] determines that the flag is not set, registers R1 to R5 are set at [a-5]. Contents (R 1 ~
R 5 ) are all updated to W 19 and the moving average value is output. At time t20 , t21 , ... t25 , at time t20 , t21 , .

【表】【table】

【表】 第6図の実線Aは、第2図aのように計重生デ
ータWが変化した場合の前記処理装置13の出力
信号用データを示し、破線Bは第2図bに示した
特性の非安定状態の区間を示す。すなわち、時刻
t19において非安定状態から安定状態に移つても、
破線Bで示すものでは時刻t19の第1の演算部5
への出力データWBは、 WB=W19+W18+W17+W16+W1/5 で過渡期の計重生データW18,W17,W16,W15
が入つてくるため、WB<W19であるのに対し、
実線Aで示すものでは時刻t19の第1の演算部5
への出力データWAはWB=W19で応答性が改善さ
れる。 以上説明のように本発明の計重信号処理方法に
よると、計重生データの移動平均を取つてちらつ
きを軽減すると共に、非安定から安定時への移行
点では移動平均算出用のデータを全て最新の計重
生データに書き替えるため、従来に比べて応答性
を大幅に改善することができ、計重値を迅速に読
み取ることができるものである。
[Table] The solid line A in FIG. 6 shows the output signal data of the processing device 13 when the weighing raw data W changes as shown in FIG. 2a, and the broken line B shows the characteristics shown in FIG. 2b. shows the interval of unstable state. That is, the time
Even if it moves from an unstable state to a stable state at t 19 ,
In the case shown by the broken line B, the first calculation unit 5 at time t19
The output data W B is the weighted raw data W 18 , W 17 , W 16 , W 15 during the transition period .
comes in, so W B < W 19 , whereas
In the case shown by the solid line A, the first calculation unit 5 at time t19
The response of the output data W A to W B = W 19 is improved. As explained above, according to the weighing signal processing method of the present invention, flickering is reduced by taking the moving average of raw weighing data, and at the transition point from unstable to stable state, all the data for calculating the moving average is updated to the latest data. Since the weighing raw data is rewritten, responsiveness can be greatly improved compared to conventional methods, and weighing values can be read quickly.

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

第1図は従来の電子式計重機の構成図、第2図
a,bは単純移動平均処理前の計重生データと処
理後の出力信号用データ、第3図は本発明を実行
することのできる一実施例の構成図、第4図と第
5図は第3図の要部構成図とそのフローチヤート
図、第6図は本発明による処理後の出力信号用デ
ータ変化を表わす特性図である。 1……ロードセル、3……アナログ・デジタル
変換器、8……重量表示部、9……処理装置、1
0……フラグビツト、11……中央処理装置、
R1〜R5……レジスタ。
Figure 1 is a configuration diagram of a conventional electronic weighing machine, Figures 2a and b are raw weighing data before simple moving average processing and output signal data after processing, and Figure 3 is a diagram showing how to implement the present invention. 4 and 5 are the main part configuration diagram of FIG. 3 and its flowchart, and FIG. 6 is a characteristic diagram showing changes in output signal data after processing according to the present invention. be. 1...Load cell, 3...Analog-digital converter, 8...Weight display section, 9...Processing device, 1
0...Flag bit, 11...Central processing unit,
R1 to R5 ...Registers.

Claims (1)

【特許請求の範囲】[Claims] 1 計重値信号を一定時間ごとにデジタル変換し
て得られる計重生データの最新値をモニタして、
計重値信号変化が安定か非安定かを判定し、安定
継続時には最新の計重生データを移動平均算出用
レジスタにストアし、この最新の計重生データと
予め前記移動平均算出用レジスタにストアされた
過去の計重生データとから移動平均値を算出して
これを出力信号用データとし、非安定から安定へ
の移行時には、移動平均算出用レジスタの内容を
全て最新の計重生データに更新して算出された移
動平均を出力信号用データとし、非安定時には、
出力信号用データとして最新の計重生データを出
力する計重信号処理方法。
1 Monitor the latest value of raw weighing data obtained by digitally converting the weighing value signal at regular intervals,
It is determined whether the change in the weighing value signal is stable or unstable, and if stability continues, the latest weighing raw data is stored in the moving average calculation register, and this latest weighing raw data is stored in advance in the moving average calculating register. The moving average value is calculated from the past weighing raw data, and this is used as the data for the output signal. When transitioning from unstable to stable, all the contents of the moving average calculation register are updated to the latest weighing raw data. The calculated moving average is used as the output signal data, and when it is unstable,
A weighing signal processing method that outputs the latest weighing raw data as output signal data.
JP6009382A 1982-04-09 1982-04-09 Processing method of weighing signal Granted JPS58176527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6009382A JPS58176527A (en) 1982-04-09 1982-04-09 Processing method of weighing signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6009382A JPS58176527A (en) 1982-04-09 1982-04-09 Processing method of weighing signal

Publications (2)

Publication Number Publication Date
JPS58176527A JPS58176527A (en) 1983-10-17
JPH0131575B2 true JPH0131575B2 (en) 1989-06-27

Family

ID=13132123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6009382A Granted JPS58176527A (en) 1982-04-09 1982-04-09 Processing method of weighing signal

Country Status (1)

Country Link
JP (1) JPS58176527A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6991652B2 (en) * 2017-09-21 2022-01-12 株式会社ミツトヨ Measuring instrument and its control method

Also Published As

Publication number Publication date
JPS58176527A (en) 1983-10-17

Similar Documents

Publication Publication Date Title
JPS5873231A (en) Analog-to-digital converter
US4337456A (en) Analog to digital converter with offset error correction
JPH0131575B2 (en)
JPS6315788Y2 (en)
JPS59218550A (en) Logarithm converting circuit of digital signal
JPS5950373A (en) Fault point marking device
JP3115358B2 (en) Pressure control device
JPS646684B2 (en)
JPS6314885B2 (en)
JPS622505Y2 (en)
JPS5935529B2 (en) analog to digital converter
JPH0116013Y2 (en)
JPH0835891A (en) Inner force sensor
JPS6146425Y2 (en)
JPH0413934A (en) Weight detector of weight control type packing machine
JPS6122247Y2 (en)
JPS6120505Y2 (en)
JPS6030886B2 (en) Display stabilization circuit for electronic digital display scales
JPS6341405B2 (en)
JPH0143250B2 (en)
JPS6033468Y2 (en) Digital signal input circuit
JPS60123635U (en) Vehicle residual liquid level measuring circuit
JPS603604B2 (en) Digital weighing device
JPH05149781A (en) Electronic balance
JPS638409B2 (en)