JP5817968B2 - Electromagnetic flow meter - Google Patents

Electromagnetic flow meter Download PDF

Info

Publication number
JP5817968B2
JP5817968B2 JP2011119437A JP2011119437A JP5817968B2 JP 5817968 B2 JP5817968 B2 JP 5817968B2 JP 2011119437 A JP2011119437 A JP 2011119437A JP 2011119437 A JP2011119437 A JP 2011119437A JP 5817968 B2 JP5817968 B2 JP 5817968B2
Authority
JP
Japan
Prior art keywords
flow rate
value
signal
variation
unit
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 - Fee Related
Application number
JP2011119437A
Other languages
Japanese (ja)
Other versions
JP2012247311A (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2011119437A priority Critical patent/JP5817968B2/en
Publication of JP2012247311A publication Critical patent/JP2012247311A/en
Application granted granted Critical
Publication of JP5817968B2 publication Critical patent/JP5817968B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Description

本発明は、流量信号にノイズが重畳していても、流量測定値のばらつきを小さくすることができる電磁流量計に関するものである。   The present invention relates to an electromagnetic flow meter that can reduce variations in flow rate measurement values even when noise is superimposed on the flow rate signal.

図4に電磁流量計の構成を示す。図4において、流量を測定する流体が流れる配管10には電極11a、11bが取り付けられ、また励磁コイル12から交流磁場が印加される。このため、電極11a、11bには、配管10に流れる流体の流量に比例する起電力が発生する。   FIG. 4 shows the configuration of the electromagnetic flow meter. In FIG. 4, electrodes 11 a and 11 b are attached to a pipe 10 through which a fluid for measuring a flow rate flows, and an alternating magnetic field is applied from an exciting coil 12. For this reason, an electromotive force proportional to the flow rate of the fluid flowing through the pipe 10 is generated in the electrodes 11a and 11b.

電極11a、11bに発生した起電力は差動増幅部13で増幅され、AD変換部14でデジタル値に変換されて、CPU15に入力される。   The electromotive force generated in the electrodes 11 a and 11 b is amplified by the differential amplifier 13, converted into a digital value by the AD converter 14, and input to the CPU 15.

CPU15は入力されたデジタル値から配管10に流れる流体の流量を演算し、この演算した流量値を出力部16および表示部17に出力する。出力部16は、入力された流量値を4−20mAの電流信号あるいはデジタル信号に変換して、外部に出力する。表示部17は入力された流量値を表示する。   The CPU 15 calculates the flow rate of the fluid flowing through the pipe 10 from the input digital value, and outputs the calculated flow rate value to the output unit 16 and the display unit 17. The output unit 16 converts the input flow rate value into a 4-20 mA current signal or digital signal and outputs the converted signal to the outside. The display unit 17 displays the input flow rate value.

CPU15は励磁回路18を制御する。励磁回路18は、CPU15から入力される制御信号に基づいて、励磁コイル12を駆動する駆動電流を発生させる。励磁コイル12はこの駆動電流によって交流磁場を発生する。   The CPU 15 controls the excitation circuit 18. The excitation circuit 18 generates a drive current for driving the excitation coil 12 based on a control signal input from the CPU 15. The exciting coil 12 generates an alternating magnetic field by this driving current.

AD変換部14として、従来は積分型AD変換部が多用されてきた。積分型AD変換器は電磁流量計特有の微分ノイズを除去し易いという利点はあるが、消費電流が大きく、かつ診断や信号の品質を上げる工夫がやり難いという欠点があった。特に、2線式電磁流量計は消費電流を低くすることが求められるので、消費電流が大きい積分型AD変換器は使用し難いという課題があった。   Conventionally, an integral AD converter has been frequently used as the AD converter 14. The integration type AD converter has an advantage of easily removing differential noise peculiar to an electromagnetic flow meter, but has a disadvantage that it consumes a large amount of current and is difficult to devise to improve diagnosis and signal quality. In particular, since a two-wire electromagnetic flow meter is required to reduce current consumption, there has been a problem that it is difficult to use an integral AD converter with large current consumption.

このため、消費電流が低く、かつ信号処理に優れている逐次比較型の離散サンプリング方式のAD変換器も用いられている。逐次比較型のAD変換器は、DA変換器の出力とAD変換する信号を比較して、両者が一致するようにDA変換器の入力値を制御する方式のAD変換器である。DA変換器は抵抗とスイッチ素子だけで構成することができるので構成が簡単であり、かつ積分型AD変換器より高速で動作させることができるという利点がある。   For this reason, successive approximation type discrete sampling AD converters with low current consumption and excellent signal processing are also used. The successive approximation AD converter is an AD converter that compares the output of the DA converter with the signal to be AD converted and controls the input value of the DA converter so that they match. Since the DA converter can be composed of only a resistor and a switch element, it has a simple structure and has an advantage that it can be operated at a higher speed than the integral type AD converter.

図5に、励磁電流の変化とアナログ流量信号(差動増幅部13の出力信号)、およびアナログ流量信号を取り込むタイミングを決めるサンプリング信号の関係を示す。図5において、(A)〜(C)はそれぞれ励磁電流、アナログ流量信号、サンプリング信号の波形である。   FIG. 5 shows the relationship between the excitation current change, the analog flow rate signal (the output signal of the differential amplifier 13), and the sampling signal that determines the timing for taking in the analog flow rate signal. In FIG. 5, (A) to (C) are waveforms of an excitation current, an analog flow rate signal, and a sampling signal, respectively.

時刻t1で励磁電流が立ち上がると、アナログ流量信号の出力は大きく変化する。時刻t2で励磁電流が一定になると、アナログ流量信号は流量に比例する一定値に落ち着く。サンプリング信号は差動増幅部13の出力が安定する時刻t3で高レベルに遷移する。この高レベルへの遷移タイミングで、AD変換部14はアナログ流量信号をデジタル値に変換する。   When the excitation current rises at time t1, the output of the analog flow signal changes greatly. When the excitation current becomes constant at time t2, the analog flow rate signal settles to a constant value proportional to the flow rate. The sampling signal transitions to a high level at time t3 when the output of the differential amplifier 13 is stabilized. At the transition timing to the high level, the AD conversion unit 14 converts the analog flow rate signal into a digital value.

このようにすることにより、正確な流量信号を取り込むことができる。AD変換部14は、サンプリング信号に基づいて、複数回アナログ流量信号をデジタル値に変換する。   By doing so, an accurate flow rate signal can be captured. The AD converter 14 converts the analog flow rate signal into a digital value a plurality of times based on the sampling signal.

特許文献1には、スイッチング制御方式の励磁回路を具備する電磁流量計が記載されている。特許文献1では、励磁電流に含まれる励磁スイッチング制御周波数成分のリプルに起因する出力揺動を除去するために、励磁スイッチング制御周波数を、励磁基本周波数の整数倍以外の周波数に選定するようにした。   Patent Document 1 describes an electromagnetic flow meter including a switching control type excitation circuit. In Patent Document 1, the excitation switching control frequency is selected to be a frequency other than an integral multiple of the excitation basic frequency in order to eliminate output fluctuation caused by ripple of the excitation switching control frequency component included in the excitation current. .

特開2002−202165号公報JP 2002-202165 A

しかしながら、このような電磁流量計には、次のような課題があった。
図5(A)に示すように、励磁電流にはその電源に起因するリプルが重畳する。20は励磁電流に重畳したリプルを表している。このリプルが誘導ノイズとして、アナログ流量信号に重畳される。21は重畳されたリプルを表している。
However, such an electromagnetic flow meter has the following problems.
As shown in FIG. 5 (A), a ripple caused by the power supply is superimposed on the excitation current. Reference numeral 20 denotes a ripple superimposed on the excitation current. This ripple is superimposed on the analog flow signal as induction noise. Reference numeral 21 denotes a superimposed ripple.

アナログ流量信号はサンプリング信号の立ち上がりに同期してデジタル値に変換されて取り込まれるが、このリプル21のために変換されたデジタル値のばらつきが大きくなり、正確な流量を測定することができないという課題があった。   The analog flow rate signal is converted into a digital value and captured in synchronism with the rising edge of the sampling signal. However, the variation in the digital value converted due to the ripple 21 increases, and an accurate flow rate cannot be measured. was there.

AD変換部14として逐次比較型の離散サンプリング方式AD変換部を用いる場合には、サンプリング周期Tとリプルの周波数fnとの間に下記(1)式の関係があるとビートが発生し、測定値のばらつきが大きくなって正確な流量を測定することができない。
fn=(2n+1)/T ・・・・・ (1)
(nは任意の整数)
When a successive approximation type discrete sampling AD converter is used as the AD converter 14, a beat occurs when the relationship of the following equation (1) exists between the sampling period T and the ripple frequency fn, and the measured value As a result, the flow rate cannot be measured accurately.
fn = (2n + 1) / T (1)
(N is an arbitrary integer)

特に、直流電流をスイッチングして交流磁場を発生させる方式の電磁流量計ではこのリプルが大きくなり、測定値のばらつきが大きくなって正確な流量を測定することが困難になるという課題があった。   In particular, in an electromagnetic flow meter of a type that switches a direct current to generate an alternating magnetic field, this ripple becomes large, and there is a problem that it becomes difficult to measure an accurate flow rate due to a large variation in measured values.

特許文献1記載の発明は、励磁スイッチング制御周波数を励磁基本周波数の整数倍以外の周波数に設定することによってリプルに起因する出力揺動を除去しているが、励磁スイッチング制御周波数に制限が生じることと、励磁電流のリプル以外のノイズによる影響を除去することができないという課題があった。   The invention described in Patent Document 1 eliminates output fluctuation caused by ripple by setting the excitation switching control frequency to a frequency other than an integral multiple of the excitation basic frequency, but the excitation switching control frequency is limited. However, there is a problem that the influence of noise other than the ripple of the excitation current cannot be removed.

本発明の目的は、アナログ流量信号にリプル等のノイズが重畳しても、測定値のばらつきを小さくすることができる電磁流量計を実現することにある。   An object of the present invention is to realize an electromagnetic flow meter that can reduce variations in measured values even when noise such as ripple is superimposed on an analog flow signal.

このような課題を達成するために、本発明のうち請求項1記載の発明は、
流体に交流磁場を印加し、この交流磁場によって発生する起電力に関連するアナログ流量信号をデジタル値に変換して、前記流体の流量を測定する電磁流量計において、
入力されたサンプリング信号の立ち上がりに同期して、前記アナログ流量信号をデジタル値に変換するAD変換部と、
前記AD変換部の出力値から流量値を演算して出力する流量演算部と、
前記流量演算部が演算した流量値が入力され、この流量値のばらつきを演算して出力するばらつき演算部と、
前記ばらつき演算部の出力が入力され、前記AD変換部に出力される前記サンプリング信号を生成すると共に、前記ばらつきが所定の閾値を越えたときに、前記サンプリング信号の周波数を変更するサンプリング信号生成部と、
を備えたものである。アナログ流量信号にリプルが重畳していても、正確に流量を測定できる。
In order to achieve such a problem, the invention according to claim 1 of the present invention is:
In an electromagnetic flowmeter that applies an alternating magnetic field to a fluid, converts an analog flow signal related to an electromotive force generated by the alternating magnetic field into a digital value, and measures the flow rate of the fluid,
An AD converter that converts the analog flow signal into a digital value in synchronization with the rising edge of the input sampling signal ;
A flow rate calculation unit that calculates and outputs a flow rate value from the output value of the AD conversion unit;
A flow rate value calculated by the flow rate calculation unit is input, a variation calculation unit that calculates and outputs a variation in the flow rate value, and
A sampling signal generation unit that receives the output of the variation calculation unit and generates the sampling signal output to the AD conversion unit , and changes the frequency of the sampling signal when the variation exceeds a predetermined threshold value When,
It is equipped with. Even if ripples are superimposed on the analog flow rate signal, the flow rate can be measured accurately.

請求項2記載の発明は、
流体に交流磁場を印加し、この交流磁場によって発生する起電力に関連するアナログ流量信号をデジタル値に変換して、前記流体の流量を測定する電磁流量計において、
前記アナログ流量信号をデジタル値に変換するAD変換部と、
前記AD変換部の出力デジタル値を間引いて出力すると共に、入力されたばらつきが所定の閾値を越えたときに、間引き率を変更する間引部と、
前記間引部の出力が入力され、この入力された値から流量値を演算して出力する流量演算部と、
前記流量演算部が演算した流量値が入力され、この流量値のばらつきを演算して、前記間引部に出力するばらつき演算部と、
を備えたものである。アナログ流量信号にリプルが重畳していても、正確に流量を測定できる。
The invention according to claim 2
In an electromagnetic flowmeter that applies an alternating magnetic field to a fluid, converts an analog flow signal related to an electromotive force generated by the alternating magnetic field into a digital value, and measures the flow rate of the fluid,
An AD converter for converting the analog flow signal into a digital value;
A thinning unit that thins out and outputs an output digital value of the AD conversion unit, and changes a thinning rate when an input variation exceeds a predetermined threshold;
An output of the thinning unit is input, and a flow rate calculation unit that calculates and outputs a flow rate value from the input value;
A flow rate value calculated by the flow rate calculation unit is input, a variation of the flow rate value is calculated, and a variation calculation unit that outputs to the thinning unit,
It is equipped with. Even if ripples are superimposed on the analog flow rate signal, the flow rate can be measured accurately.

請求項3記載の発明は、請求項1若しくは請求項2に記載の発明において、
前記電磁流量計は電流信号を出力する2線式電磁流量計であって、前記AD変換部に入力されるサンプリング信号の周波数の上限値を、前記電流信号の値によって変化させるようにしたものである。消費電流が制限される2線式電磁流量計において、効果が大きい。
The invention according to claim 3 is the invention according to claim 1 or 2,
The electromagnetic flow meter is a two-wire electromagnetic flow meter that outputs a current signal, and the upper limit value of the frequency of the sampling signal input to the AD converter is changed according to the value of the current signal. is there. The effect is large in a two-wire electromagnetic flow meter in which current consumption is limited.

請求項4記載の発明は、請求項1乃至請求項3いずれかに記載の発明において、
前記AD変換部として、逐次比較型の離散サンプリング方式のAD変換部を用いたものである。アナログ流量信号に重畳するリプルとサンプリング周波数との間でビートが発生し易い離散サンプリング方式のAD変換部で特に効果が大きい。
The invention according to claim 4 is the invention according to any one of claims 1 to 3,
As the AD conversion unit, a successive approximation type discrete sampling AD conversion unit is used. The effect is particularly great in a discrete sampling AD converter that easily generates a beat between the ripple superimposed on the analog flow signal and the sampling frequency.

本発明によれば以下のような効果がある。
請求項1、2、3、および4の発明によれば、アナログ流量信号をデジタル値に変換して流量を測定する電磁流量計において、流量値のばらつきを演算し、このばらつきが所定の閾値を越えると、AD変換部のサンプリング周波数あるいはデジタル値を間引く間引部の間引き率を変更するようにした。
The present invention has the following effects.
According to the first, second, third, and fourth aspects of the present invention, in the electromagnetic flowmeter that measures the flow rate by converting the analog flow rate signal into a digital value, the variation of the flow rate value is calculated, and the variation reaches a predetermined threshold value. If exceeded, the thinning rate of the thinning part for thinning the sampling frequency or digital value of the AD conversion part is changed.

アナログ流量信号に重畳されるリプル等のノイズとAD変換部のサンプリング周波数との間でビートが発生し、流量値のばらつきが大きくなるとサンプリング周波数あるいは間引き率を変更してビートの発生を防止するので、ばらつきが少ない、安定した流量値が得られるという効果がある。本発明は、ビートが発生し易い離散サンプリング方式のAD変換部を用いる電磁流量計において、特に効果が大きい。   A beat is generated between the noise such as ripple superimposed on the analog flow rate signal and the sampling frequency of the AD converter, and if the variation in the flow rate value increases, the sampling frequency or the thinning rate is changed to prevent the occurrence of the beat. There is an effect that a stable flow rate value can be obtained with little variation. The present invention is particularly effective in an electromagnetic flow meter that uses a discrete sampling AD converter that easily generates beats.

また、AD変換部の消費電流はそのサンプリング周波数が高くなると増大するので、2線式電磁流量計の場合、出力電流の値によってAD変換部のサンプリング周波数の上限値を変更するようにすることにより、正確で安定した電流信号を出力することができるという効果もある。   In addition, since the consumption current of the AD converter increases as the sampling frequency increases, in the case of a two-wire electromagnetic flow meter, the upper limit value of the sampling frequency of the AD converter is changed according to the value of the output current. There is also an effect that an accurate and stable current signal can be output.

本発明の一実施例を示した構成図である。It is the block diagram which showed one Example of this invention. 図1実施例の動作を説明するための図である。It is a figure for demonstrating operation | movement of the FIG. 1 Example. 本発明の他の実施例を示す構成図である。It is a block diagram which shows the other Example of this invention. 従来の電磁流量計の構成図である。It is a block diagram of the conventional electromagnetic flowmeter. 励磁電流とアナログ流量信号、サンプリング信号の関係を示す波形図である。It is a wave form diagram which shows the relationship between an exciting current, an analog flow signal, and a sampling signal.

以下本発明を、図面を用いて詳細に説明する。図1は本発明に係る電磁流量計の一実施例を示した構成図である。なお、図4と同じ要素には同一符号を付し、説明を省略する。   Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an electromagnetic flow meter according to the present invention. The same elements as those in FIG. 4 are denoted by the same reference numerals, and description thereof is omitted.

図1において、励磁回路18で生成された駆動電流は励磁コイル12に入力される。励磁コイル12は、入力された駆動電流によって交流磁場を発生する。この交流磁場は配管10に印加される。この交流磁場によって発生した起電力は電極11a、11bで検出され、差動増幅部13で増幅されて、AD変換部14でデジタル値に変換される。差動増幅部13の出力をアナログ流量信号とする。   In FIG. 1, the drive current generated by the excitation circuit 18 is input to the excitation coil 12. The exciting coil 12 generates an alternating magnetic field by the input drive current. This alternating magnetic field is applied to the pipe 10. The electromotive force generated by the AC magnetic field is detected by the electrodes 11a and 11b, amplified by the differential amplifier 13, and converted into a digital value by the AD converter 14. The output of the differential amplifier 13 is an analog flow signal.

30はCPUであり、流量演算部31、ばらつき演算部32、およびサンプリング信号生成部33で構成される。これら流量演算部31、ばらつき演算部32、サンプリング信号生成部33は、CPU30上で動作するソフトウエアで構成される。   A CPU 30 includes a flow rate calculation unit 31, a variation calculation unit 32, and a sampling signal generation unit 33. The flow rate calculation unit 31, the variation calculation unit 32, and the sampling signal generation unit 33 are configured by software that operates on the CPU 30.

AD変換部14で変換されたデジタル値は、流量演算部31に入力される。流量演算部31は、入力されたデジタル値から配管10に流れる流量を演算し、この流量値を出力部16、表示部17、およびばらつき演算部32に出力する。   The digital value converted by the AD conversion unit 14 is input to the flow rate calculation unit 31. The flow rate calculation unit 31 calculates the flow rate flowing through the pipe 10 from the input digital value, and outputs the flow rate value to the output unit 16, the display unit 17, and the variation calculation unit 32.

出力部16は、入力された流量値を4−20mAの電流値やデジタル信号に変換し、外部に出力する。表示部17は、入力された流量値を表示する。   The output unit 16 converts the input flow rate value into a 4-20 mA current value or a digital signal and outputs it to the outside. The display unit 17 displays the input flow rate value.

ばらつき演算部32は、流量演算部31が出力する流量値のばらつきを演算し、このばらつきをサンプリング信号生成部33に出力する。ばらつき演算部32は、下記(2)式に基づいて連続した複数の流量値についてその分散Vを演算し、この演算した分散Vをサンプリング信号生成部33に出力する。
V=(Σ(xi−xm))/n ・・・・・・ (2)
xi:流量値
xm:流量値xiの平均値
n:流量値xiの数
The variation calculator 32 calculates a variation in the flow rate value output from the flow rate calculator 31 and outputs this variation to the sampling signal generator 33. The variation calculator 32 calculates the variance V for a plurality of continuous flow values based on the following equation (2), and outputs the calculated variance V to the sampling signal generator 33.
V = (Σ (xi−xm) 2 ) / n (2)
xi: Flow rate value
xm: Average value of flow rate value xi
n: Number of flow rate values xi

サンプリング信号生成部33はサンプリング信号を生成し、この生成したサンプリング信号をAD変換部14に出力する。AD変換部14は、このサンプリング信号の立ち上がりのタイミングでアナログ流量信号をデジタル値に変換し、流量演算部31に出力する。   The sampling signal generation unit 33 generates a sampling signal and outputs the generated sampling signal to the AD conversion unit 14. The AD conversion unit 14 converts the analog flow rate signal into a digital value at the rising timing of the sampling signal, and outputs the digital value to the flow rate calculation unit 31.

また、サンプリング信号生成部33は、ばらつき演算部32の出力信号が予め設定された閾値より大きくなると、出力するサンプリング信号の周波数を変更する。   The sampling signal generation unit 33 changes the frequency of the sampling signal to be output when the output signal of the variation calculation unit 32 becomes larger than a preset threshold value.

なお、CPU30には励磁回路18を制御する制御信号を生成する制御信号生成部も内蔵されているが、図4従来例と同じなので、記載を省略している。   The CPU 30 also includes a control signal generation unit that generates a control signal for controlling the excitation circuit 18, but the description is omitted because it is the same as the conventional example of FIG.

次に、図2に基づいてこの実施例の動作を説明する。図2(A)は励磁コイル12に流れる励磁電流の波形図である。励磁電流は正側に一定期間流れ(正励磁)、続いて負側に一定時間流れる(負励磁)動作を1周期とし、この周期を繰り返す。   Next, the operation of this embodiment will be described with reference to FIG. FIG. 2A is a waveform diagram of the excitation current flowing through the excitation coil 12. The excitation current flows on the positive side for a certain period (positive excitation) and then flows on the negative side for a certain period of time (negative excitation) as one cycle, and this cycle is repeated.

同図(B)は、ばらつき演算部32の出力であるばらつきの波形図である。ばらつき演算部32は、流量演算部31の出力値の連続するn個について、前記(2)式に基づいて分散を演算し、この分散をサンプリング信号生成部33に出力する。   FIG. 5B is a waveform diagram of variation that is an output of the variation calculation unit 32. The variation calculation unit 32 calculates a variance for n consecutive output values of the flow rate calculation unit 31 based on the equation (2), and outputs this variance to the sampling signal generation unit 33.

同図(C)はサンプリング信号生成部33が生成、出力するサンプリング信号の波形図である。AD変換部14は、このサンプリング信号の立ち上がりに同期して、アナログ流量信号をデジタル値に変換して流量演算部31に出力し、流量演算部31はこのデジタル値に基づいて流量値を演算して出力する。   FIG. 6C is a waveform diagram of the sampling signal generated and output by the sampling signal generation unit 33. The AD conversion unit 14 converts the analog flow rate signal into a digital value and outputs it to the flow rate calculation unit 31 in synchronization with the rising edge of the sampling signal, and the flow rate calculation unit 31 calculates the flow rate value based on the digital value. Output.

時刻t10までは、ばらつき演算部32が出力するばらつきは小さい。このため、サンプリング信号生成部33は正励磁、負励磁の各期間で4個のサンプリングパルスを等間隔で出力する。   Until time t10, the variation output by the variation calculation unit 32 is small. For this reason, the sampling signal generator 33 outputs four sampling pulses at regular intervals in each period of positive excitation and negative excitation.

時刻t10の直前でアナログ流量信号に重畳されるリプルの周波数が変化し、AD変換部14のサンプリング周波数との間でビートが発生する。このため、時刻t10でばらつき演算部32が出力するばらつきが大きくなり、閾値Vthを越える。   The frequency of the ripple superimposed on the analog flow rate signal changes immediately before time t10, and a beat is generated between the sampling frequency of the AD conversion unit 14. For this reason, the variation output by the variation calculating unit 32 at time t10 increases and exceeds the threshold value Vth.

このため、サンプリング信号生成部33はサンプリング信号の周波数を変化させ、正励磁、負励磁の各々について8個のサンプリングパルスを出力する。AD変換部14は以前の倍の頻度で差動増幅器13の出力をデジタル値に変換する。なお、正励磁と負励磁でAD変換部14のサンプリング数を同じにすると、微分ノイズを容易に除去することができる。   For this reason, the sampling signal generator 33 changes the frequency of the sampling signal and outputs eight sampling pulses for each of positive excitation and negative excitation. The AD conversion unit 14 converts the output of the differential amplifier 13 into a digital value twice as often as before. If the sampling number of the AD conversion unit 14 is the same for positive excitation and negative excitation, differential noise can be easily removed.

この結果、アナログ流量信号に重畳されるリプルとAD変換部14のサンプリング周波数との間のビートが解消され、時刻t11でばらつき演算部32が出力するばらつきが小さくなる。サンプリング信号生成部33は時刻t10で変化させたサンプリング周波数を維持する。   As a result, the beat between the ripple superimposed on the analog flow rate signal and the sampling frequency of the AD conversion unit 14 is eliminated, and the variation output by the variation calculation unit 32 at time t11 is reduced. The sampling signal generator 33 maintains the sampling frequency changed at time t10.

このように、サンプリング信号生成部33はばらつき演算部32の出力であるばらつきが大きくなって閾値を越えると、サンプリング信号の周波数を変化させ、ばらつきが小さくなってもこの状態を維持するようにした。このため、アナログ流量信号に重畳されるリプルとAD変換部14のサンプリング周波数との間でビートが発生して流量信号のばらつきが大きくなると、自動的にサンプリング信号の周波数が変化してビートが解消されるので、ばらつきが少ない正確に流量を測定することができる。   As described above, the sampling signal generation unit 33 changes the frequency of the sampling signal when the variation as the output of the variation calculation unit 32 increases and exceeds the threshold value, and maintains this state even when the variation decreases. . For this reason, if a beat occurs between the ripple superimposed on the analog flow rate signal and the sampling frequency of the AD converter 14 and the variation in the flow rate signal increases, the frequency of the sampling signal automatically changes to eliminate the beat. Therefore, the flow rate can be accurately measured with little variation.

図3に、本発明の他の実施例を示す。この実施例はAD変換部14のサンプリング周波数を一定とし、ばらつき演算部32の出力で間引き率を変えるようにしたものである。なお、図1と同じ要素には同一符号を付し、説明を省略する。   FIG. 3 shows another embodiment of the present invention. In this embodiment, the sampling frequency of the AD conversion unit 14 is fixed, and the thinning rate is changed by the output of the variation calculation unit 32. In addition, the same code | symbol is attached | subjected to the same element as FIG. 1, and description is abbreviate | omitted.

図3において、40はCPUであり、間引部41、流量演算部31、ばらつき演算部32、サンプリング信号生成部42で構成される。AD変換部14として、オーバーサンプリング方式のAD変換器を用いる。   In FIG. 3, reference numeral 40 denotes a CPU, which includes a thinning unit 41, a flow rate calculation unit 31, a variation calculation unit 32, and a sampling signal generation unit 42. An oversampling AD converter is used as the AD converter 14.

AD変換部14が変換したデジタル値は間引部41に入力される。間引部41は、AD変換部14の出力デジタル値を設定された間引き率で間引き、この間引いたデジタル値を流量演算部31に出力する。すなわち、間引き率をmとすると、間引き部41は入力されたデジタル値m個について1個のデジタル値を出力する。   The digital value converted by the AD conversion unit 14 is input to the thinning unit 41. The thinning unit 41 thins the output digital value of the AD conversion unit 14 at a set thinning rate, and outputs the thinned digital value to the flow rate calculation unit 31. That is, assuming that the thinning rate is m, the thinning unit 41 outputs one digital value for m input digital values.

間引部41の出力は流量演算部31に入力されて流量値に変換され、ばらつき演算部32はこの流量値のばらつきを演算して、間引部41に出力する。サンプリング信号生成部42は一定周波数のサンプリング信号を生成し、AD変換部14に出力する。   The output of the thinning unit 41 is input to the flow rate calculation unit 31 and converted into a flow rate value, and the variation calculation unit 32 calculates the variation in the flow rate value and outputs it to the thinning unit 41. The sampling signal generation unit 42 generates a sampling signal having a constant frequency and outputs it to the AD conversion unit 14.

間引部41は、ばらつき演算部32が出力するばらつきが所定の閾値より大きくなると間引き率を変更し、この変更した間引き率でAD変換部14の出力を間引いて流量演算部31に出力する。このようにすると、AD変換部14のサンプリング周波数を変更する場合と同じ効果が得られる。   The thinning unit 41 changes the thinning rate when the variation output by the variation calculating unit 32 becomes larger than a predetermined threshold, and thins the output of the AD conversion unit 14 with the changed thinning rate and outputs the thinned output to the flow rate calculating unit 31. In this way, the same effect as when the sampling frequency of the AD converter 14 is changed can be obtained.

なお、図3実施例において、サンプリング信号生成部42を用いないで、AD変換部14が自律的に一定周期で差動増幅部13の出力をデジタル値に変換するようにしてもよい。   In the embodiment of FIG. 3, the AD converter 14 may autonomously convert the output of the differential amplifier 13 into a digital value at a constant cycle without using the sampling signal generator 42.

また、図1、図3実施例において、AD変換部14は逐次比較型の離散サンプリング方式AD変換器として説明したが、その他の方式のAD変換器を用いてもよい。
1 and 3 , the AD conversion unit 14 has been described as a successive approximation type discrete sampling AD converter. However, other types of AD converters may be used.

また、一般的にAD変換器はサンプリング周波数が大きくなると消費電流が増大する。2線式電磁流量計は消費電流の上限が出力電流に制限されるので、AD変換部14のサンプリング周波数の上限を出力電流の値に応じて変化させるようにしてもよい。   In general, the current consumption of the AD converter increases as the sampling frequency increases. Since the upper limit of the consumption current is limited to the output current in the two-wire electromagnetic flow meter, the upper limit of the sampling frequency of the AD conversion unit 14 may be changed according to the value of the output current.

このために、出力電流の値をサンプリング信号生成部33または42に入力し、サンプリング信号生成部33または42がAD変換部14に出力するサンプリング信号の周波数の上限を出力電流の値によって変化させればよい。   For this reason, the value of the output current is input to the sampling signal generation unit 33 or 42, and the upper limit of the frequency of the sampling signal output from the sampling signal generation unit 33 or 42 to the AD conversion unit 14 can be changed according to the value of the output current. That's fine.

また、図2実施例ではサンプリング信号の周波数を2倍に変更するようにしたが、サンプリング信号生成部33が出力するサンプリング信号の周波数、および間引部41に設定する間引き率は任意の値とすることができる。ビートを除去するためには、非整数の比率で変化させた方がよい。また、サンプリング信号、あるいは間引きの間隔は必ずしも一定でなくてもよい。   In the embodiment of FIG. 2, the frequency of the sampling signal is changed to twice, but the frequency of the sampling signal output by the sampling signal generation unit 33 and the thinning rate set in the thinning unit 41 are arbitrary values. can do. In order to remove the beat, it is better to change it at a non-integer ratio. In addition, the sampling signal or the thinning interval is not necessarily constant.

また、図2ではばらつきが閾値を越えたときにサンプリング信号の周波数を増加させるようにしたが、減少させるようにしてもよい。   In FIG. 2, the frequency of the sampling signal is increased when the variation exceeds the threshold, but may be decreased.

また、これらの実施例ではアナログ流量信号には励磁電流のリプルに起因するリプルが重畳するとして説明したが、励磁電流に起因するリプル以外のノイズが重畳した場合であっても、同様の効果を得ることができる。   In these embodiments, the analog flow rate signal has been described as having ripples due to excitation current ripple superimposed thereon, but the same effect can be obtained even when noise other than ripples due to excitation current is superimposed. Can be obtained.

さらに、図1、図3実施例では、ばらつき演算部32は流量値の分散を演算するようにしたが、必ずしも分散でなくてもよい。要は、流量値のばらつきを表す値であればよい。   Further, in the embodiment of FIGS. 1 and 3, the variation calculating unit 32 calculates the variance of the flow rate value, but it is not necessarily required to be the variance. In short, any value that represents the variation in the flow rate value may be used.

10 配管
11a、11b 電極
12 励磁コイル
13 差動増幅部
14 AD変換部
18 励磁回路
30、40 CPU
31 流量演算部
32 ばらつき演算部
33、42 サンプリング信号生成部
41 間引部
DESCRIPTION OF SYMBOLS 10 Piping 11a, 11b Electrode 12 Excitation coil 13 Differential amplification part 14 AD conversion part 18 Excitation circuit 30, 40 CPU
31 Flow rate calculation unit 32 Variation calculation unit 33, 42 Sampling signal generation unit 41 Decimation unit

Claims (4)

流体に交流磁場を印加し、この交流磁場によって発生する起電力に関連するアナログ流量信号をデジタル値に変換して、前記流体の流量を測定する電磁流量計において、
入力されたサンプリング信号の立ち上がりに同期して、前記アナログ流量信号をデジタル値に変換するAD変換部と、
前記AD変換部の出力値から流量値を演算して出力する流量演算部と、
前記流量演算部が演算した流量値が入力され、この流量値のばらつきを演算して出力するばらつき演算部と、
前記ばらつき演算部の出力が入力され、前記AD変換部に出力される前記サンプリング信号を生成すると共に、前記ばらつきが所定の閾値を越えたときに、前記サンプリング信号の周波数を変更するサンプリング信号生成部と、
を備えたことを特徴とする電磁流量計。
In an electromagnetic flowmeter that applies an alternating magnetic field to a fluid, converts an analog flow signal related to an electromotive force generated by the alternating magnetic field into a digital value, and measures the flow rate of the fluid,
An AD converter that converts the analog flow signal into a digital value in synchronization with the rising edge of the input sampling signal ;
A flow rate calculation unit that calculates and outputs a flow rate value from the output value of the AD conversion unit;
A flow rate value calculated by the flow rate calculation unit is input, a variation calculation unit that calculates and outputs a variation in the flow rate value, and
A sampling signal generation unit that receives the output of the variation calculation unit and generates the sampling signal output to the AD conversion unit , and changes the frequency of the sampling signal when the variation exceeds a predetermined threshold value When,
An electromagnetic flow meter comprising:
流体に交流磁場を印加し、この交流磁場によって発生する起電力に関連するアナログ流量信号をデジタル値に変換して、前記流体の流量を測定する電磁流量計において、
前記アナログ流量信号をデジタル値に変換するAD変換部と、
前記AD変換部の出力デジタル値を間引いて出力すると共に、入力されたばらつきが所定の閾値を越えたときに、間引き率を変更する間引部と、
前記間引部の出力が入力され、この入力された値から流量値を演算して出力する流量演算部と、
前記流量演算部が演算した流量値が入力され、この流量値のばらつきを演算して、前記間引部に出力するばらつき演算部と、
を備えたことを特徴とする電磁流量計。
In an electromagnetic flowmeter that applies an alternating magnetic field to a fluid, converts an analog flow signal related to an electromotive force generated by the alternating magnetic field into a digital value, and measures the flow rate of the fluid,
An AD converter for converting the analog flow signal into a digital value;
A thinning unit that thins out and outputs an output digital value of the AD conversion unit, and changes a thinning rate when an input variation exceeds a predetermined threshold;
An output of the thinning unit is input, and a flow rate calculation unit that calculates and outputs a flow rate value from the input value;
A flow rate value calculated by the flow rate calculation unit is input, a variation of the flow rate value is calculated, and a variation calculation unit that outputs to the thinning unit,
An electromagnetic flow meter comprising:
前記電磁流量計は電流信号を出力する2線式電磁流量計であって、前記AD変換部に入力されるサンプリング信号の周波数の上限値を、前記電流信号の値によって変化させるようにしたことを特徴とする請求項1若しくは請求項2記載の電磁流量計。 The electromagnetic flow meter is a two-wire electromagnetic flow meter that outputs a current signal, and an upper limit value of a frequency of a sampling signal input to the AD converter is changed according to a value of the current signal. The electromagnetic flowmeter according to claim 1 or 2, characterized in that 前記AD変換部は、逐次比較型の離散サンプリング方式のAD変換部であることを特徴とする請求項1乃至請求項3いずれかに記載の電磁流量計。   The electromagnetic flow meter according to any one of claims 1 to 3, wherein the AD conversion unit is a successive approximation type discrete sampling AD conversion unit.
JP2011119437A 2011-05-27 2011-05-27 Electromagnetic flow meter Expired - Fee Related JP5817968B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011119437A JP5817968B2 (en) 2011-05-27 2011-05-27 Electromagnetic flow meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011119437A JP5817968B2 (en) 2011-05-27 2011-05-27 Electromagnetic flow meter

Publications (2)

Publication Number Publication Date
JP2012247311A JP2012247311A (en) 2012-12-13
JP5817968B2 true JP5817968B2 (en) 2015-11-18

Family

ID=47467884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011119437A Expired - Fee Related JP5817968B2 (en) 2011-05-27 2011-05-27 Electromagnetic flow meter

Country Status (1)

Country Link
JP (1) JP5817968B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113252146B (en) * 2021-05-13 2024-05-10 宁波水表(集团)股份有限公司 Intelligent flow velocity simulation system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60190814A (en) * 1984-03-12 1985-09-28 Aichi Tokei Denki Co Ltd Electromagnetic flowmeter
JP3290843B2 (en) * 1995-03-15 2002-06-10 株式会社東芝 Electromagnetic flow meter
JP2000028408A (en) * 1998-07-07 2000-01-28 Fuji Electric Co Ltd Electromagnetic flow meter
DE10200768B4 (en) * 2001-12-06 2004-03-11 Krohne Ag Mass flow meter and method for operating a mass flow meter
JP2004294162A (en) * 2003-03-26 2004-10-21 Yokogawa Electric Corp Electromagnetic flowmeter
JP2004325208A (en) * 2003-04-24 2004-11-18 Yokogawa Electric Corp Magnetic flowmeter
JP5234336B2 (en) * 2008-06-17 2013-07-10 横河電機株式会社 Electromagnetic flow meter
JPWO2009154116A1 (en) * 2008-06-20 2011-12-01 株式会社キーエンス 2-wire electromagnetic flow meter
JP2010016768A (en) * 2008-07-07 2010-01-21 Japan Radio Co Ltd Down-sampling apparatus
JP5148405B2 (en) * 2008-08-11 2013-02-20 東洋ガスメーター株式会社 Gas meter

Also Published As

Publication number Publication date
JP2012247311A (en) 2012-12-13

Similar Documents

Publication Publication Date Title
JP5163852B2 (en) Electromagnetic flowmeter and its zero point measuring method
KR20130029738A (en) Pwm signal output circuit
US20190123725A1 (en) Pulse width modulation technique with time-ratio duty cycle computation
JP2008304348A (en) Voltage signal converting circuit and motor
JP2014165982A (en) Drive control device
JP5817968B2 (en) Electromagnetic flow meter
JP6481443B2 (en) Electromagnetic flow meter
JP6036720B2 (en) Air-fuel ratio detection device
JP5854677B2 (en) Motor speed detection device and motor control device
JP6484131B2 (en) Flow measuring device
JP2010273445A (en) Current measuring method and measuring device
JP4976769B2 (en) Sine wave effective value detection device and sine wave power supply device using the same
KR20130031245A (en) Power conversion circuit control device
JP5709693B2 (en) Motor control device
JP4775214B2 (en) ΣΔ AD converter circuit
JP2003315120A (en) Electromagnetic flowmeter
JP5463215B2 (en) Control device for motor for electric power steering
JP2013257276A (en) Electromagnetic flow meter
JP2017085744A (en) Reference voltage generating circuit and switching power supply device
JP5764855B2 (en) Physical quantity detection circuit and physical quantity detection method
JP2006003310A (en) Ultrasonic flowmeter
JP2014109450A (en) Electromagnetic flowmeter
CN109768784B (en) Decimation filter
JP2009055744A (en) Ultrasonic motor drive circuit and driving signal generating method of ultrasonic motor
JP2009038433A (en) Ad conversion circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150202

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150312

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150902

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150915

R150 Certificate of patent or registration of utility model

Ref document number: 5817968

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees